![]() |
ITK
5.3.0
Insight Toolkit
|
#include <itkOpenCVVideoCapture.h>
Public Types | |
using | FrameType = typename VideoStreamType::FrameType |
using | PixelType = typename FrameType::PixelType |
using | Self = OpenCVVideoCapture< VideoStreamType > |
using | VideoStreamType = TVideoStream |
Public Member Functions | |
virtual double | get (int propId) |
virtual bool | grab () |
virtual bool | isOpened () const |
itkTypeMacroNoParent (OpenCVVideoCapture) | |
virtual bool | open (const std::string &) |
virtual bool | open (int) |
virtual bool | open (VideoStreamType *videoStream) |
OpenCVVideoCapture () | |
OpenCVVideoCapture (VideoStreamType *videoStream) | |
virtual Self & | operator>> (cv::Mat &image) |
virtual bool | read (cv::Mat &image) |
virtual void | release () |
virtual bool | retrieve (cv::Mat &image, int channel=0) |
virtual bool | set (int propId, double value) |
virtual | ~OpenCVVideoCapture () |
Static Public Attributes | |
static constexpr unsigned int | Dimensions = FrameType::ImageDimension |
Protected Attributes | |
int | m_FourCC |
double | m_FpS |
VideoStreamType * | m_VideoStream |
This class implements OpenCV's VideoCapture API and takes an itk VideoStream as input.
This implementation of cv::VideoCapture provides the additional method open( itk::VideoStream* ) to "open" video data from an ITK pipeline. The traditional open methods will throw exceptions, so it can only be used to access the output of an ITK video pipeline from an OpenCV capture context.
Definition at line 51 of file itkOpenCVVideoCapture.h.
using itk::OpenCVVideoCapture< TVideoStream >::FrameType = typename VideoStreamType::FrameType |
Definition at line 60 of file itkOpenCVVideoCapture.h.
using itk::OpenCVVideoCapture< TVideoStream >::PixelType = typename FrameType::PixelType |
Definition at line 61 of file itkOpenCVVideoCapture.h.
using itk::OpenCVVideoCapture< TVideoStream >::Self = OpenCVVideoCapture<VideoStreamType> |
Definition at line 59 of file itkOpenCVVideoCapture.h.
using itk::OpenCVVideoCapture< TVideoStream >::VideoStreamType = TVideoStream |
-CONSTRUCTORS AND DESTRUCTOR-----------------------------------------— ITK stype type alias
Definition at line 58 of file itkOpenCVVideoCapture.h.
itk::OpenCVVideoCapture< TVideoStream >::OpenCVVideoCapture | ( | ) |
Constructor that initializes internal VideoStream to null
itk::OpenCVVideoCapture< TVideoStream >::OpenCVVideoCapture | ( | VideoStreamType * | videoStream | ) |
Constructor that takes a VideoStream as input
|
inlinevirtual |
Destructor that does nothing. The VideoStream will be freed by the source that generated it.
Definition at line 72 of file itkOpenCVVideoCapture.h.
|
virtual |
Get a property
|
virtual |
-FRAME ACCESS--------------------------------------------------------— Grab the next frame from the VideoStream
|
inlinevirtual |
Check if the VideoStream is null
Definition at line 103 of file itkOpenCVVideoCapture.h.
itk::OpenCVVideoCapture< TVideoStream >::itkTypeMacroNoParent | ( | OpenCVVideoCapture< TVideoStream > | ) |
ITK's type info
|
inlinevirtual |
-OPEN CLOSE FUNCTIONALITY--------------------------------------------— overload reading from file and camera just to throw exceptions
Definition at line 81 of file itkOpenCVVideoCapture.h.
|
inlinevirtual |
Definition at line 89 of file itkOpenCVVideoCapture.h.
|
virtual |
Add an open method that takes a TemporalDataObject. This checks to make sure that it can be cast to a VideoStream
|
virtual |
Stream the next frame into the provided image. Equivalent to grab() + retrieve(image, 0)
|
virtual |
non-operator version of >>'s functionality
|
virtual |
Just set the internal pointer to null. Let the upstream filters take care of actually freeing the memory
|
virtual |
Access the current frame of the VideoStream
|
virtual |
-PROPERTIES----------------------------------------------------------— Set a property
|
staticconstexpr |
Definition at line 62 of file itkOpenCVVideoCapture.h.
|
protected |
Definition at line 148 of file itkOpenCVVideoCapture.h.
|
protected |
Property members
Definition at line 147 of file itkOpenCVVideoCapture.h.
|
protected |
Internal VideoStream
Definition at line 144 of file itkOpenCVVideoCapture.h.