|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkOpenCVVideoCapture_h
19 #define itkOpenCVVideoCapture_h
24 #include "opencv2/core/version.hpp"
25 #if !defined(CV_VERSION_EPOCH)
27 # include "opencv2/videoio.hpp"
50 template <
typename TV
ideoStream>
60 using FrameType =
typename VideoStreamType::FrameType;
62 static constexpr
unsigned int Dimensions = FrameType::ImageDimension;
83 itkExceptionMacro(
"itk::OpenCVVideoCapture::open(filename) -> If you just want "
84 "to read from a file, use cv::VideoCapture since there is nothing to be "
85 "gained using itk's version.");
91 itkExceptionMacro(
"itk::OpenCVVideoCapture::open(device) -> If you just want "
92 "to read from a device, use cv::VideoCapture since there is nothing to be "
93 "gained using itk's version.");
99 open(VideoStreamType * videoStream);
105 return m_VideoStream == 0;
121 retrieve(cv::Mat & image,
int channel = 0);
130 read(cv::Mat & image);
136 set(
int propId,
double value);
154 #ifndef ITK_MANUAL_INSTANTIATION
155 # include "itkOpenCVVideoCapture.hxx"
TVideoStream VideoStreamType
virtual bool open(const std::string &)
VideoStreamType * m_VideoStream
This class implements OpenCV's VideoCapture API and takes an itk VideoStream as input.
typename VideoStreamType::FrameType FrameType
std::istream & operator>>(std::istream &is, Point< T, NPointDimension > &vct)
virtual ~OpenCVVideoCapture()
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
typename FrameType::PixelType PixelType
virtual bool isOpened() const