videosource.h

来自「this is software for visual SLAM」· C头文件 代码 · 共 32 行

H
32
字号
// -*- c++ *--// Copyright 2008 Isis Innovation Limited//// VideoSource.h// Declares the VideoSource class// // This is a very simple class to provide video input; this can be// replaced with whatever form of video input that is needed.  It// should open the video input on construction, and provide two// function calls after construction: Size() must return the video// format as an ImageRef, and GetAndFillFrameBWandRGB should wait for// a new frame and then overwrite the passed-as-reference images with// GreyScale and Colour versions of the new frame.//#include <cvd/image.h>#include <cvd/byte.h>#include <cvd/rgb.h>struct VideoSourceData;class VideoSource{ public:  VideoSource();  void GetAndFillFrameBWandRGB(CVD::Image<CVD::byte> &imBW, CVD::Image<CVD::Rgb<CVD::byte> > &imRGB);  CVD::ImageRef Size();   private:  void *mptr;  CVD::ImageRef mirSize;};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?