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>
56 using FrameType =
typename VideoStreamType::FrameType;
58 static constexpr
unsigned int Dimensions = FrameType::ImageDimension;
79 itkExceptionMacro(
"itk::OpenCVVideoCapture::open(filename) -> If you just want "
80 "to read from a file, use cv::VideoCapture since there is nothing to be "
81 "gained using itk's version.");
87 itkExceptionMacro(
"itk::OpenCVVideoCapture::open(device) -> If you just want "
88 "to read from a device, use cv::VideoCapture since there is nothing to be "
89 "gained using itk's version.");
95 open(VideoStreamType * videoStream);
101 return m_VideoStream == 0;
117 retrieve(cv::Mat & image,
int channel = 0);
126 read(cv::Mat & image);
132 set(
int propId,
double value);
150 #ifndef ITK_MANUAL_INSTANTIATION
151 # include "itkOpenCVVideoCapture.hxx"