7 #ifndef __vtkPlusOpenCVCaptureVideoSource_h 8 #define __vtkPlusOpenCVCaptureVideoSource_h 10 #include "vtkPlusDataCollectionExport.h" 14 #include <opencv2/videoio.hpp> 56 vtkGetStdStringMacro(VideoURL);
57 vtkSetStdStringMacro(VideoURL);
59 vtkGetMacro(DeviceIndex,
int);
60 vtkSetMacro(DeviceIndex,
int);
62 vtkGetMacro(AutofocusEnabled,
bool);
63 vtkSetMacro(AutofocusEnabled,
bool);
65 vtkGetMacro(AutoexposureEnabled,
bool);
66 vtkSetMacro(AutoexposureEnabled,
bool);
68 vtkGetMacro(FourCC, std::string);
69 vtkSetMacro(FourCC, std::string);
71 static cv::VideoCaptureAPIs CaptureAPIFromString(
const std::string& apiString);
72 static std::string StringFromCaptureAPI(cv::VideoCaptureAPIs api);
84 std::shared_ptr<cv::VideoCapture>
Capture;
98 #endif // __vtkPlusOpenCVCaptureVideoSource_h virtual void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Abstract interface for tracker and video devices.
std::shared_ptr< cv::VideoCapture > Capture
virtual PlusStatus InternalConnect()
Class for interfacing an OpenCVC capture device and recording frames into a Plus buffer.
std::shared_ptr< cv::Mat > UndistortedFrame
virtual PlusStatus ReadConfiguration(vtkXMLDataElement *)
std::shared_ptr< cv::Mat > DistortionCoefficients
std::shared_ptr< cv::Mat > CameraMatrix
virtual PlusStatus WriteConfiguration(vtkXMLDataElement *)
cv::VideoCaptureAPIs RequestedCaptureAPI
std::shared_ptr< cv::Mat > Frame
virtual PlusStatus NotifyConfigured()
virtual bool IsTracker() const
virtual PlusStatus InternalDisconnect()
virtual PlusStatus InternalUpdate()
static vtkPlusDevice * New()