13 #ifndef mitkUSImageVideoSource_h
14 #define mitkUSImageVideoSource_h
17 #include <itkProcessObject.h>
26 #include <opencv2/videoio.hpp>
43 itkFactorylessNewMacro(Self);
57 : topLeftX(0), topLeftY(0), bottomRightX(0), bottomRightY(0) { };
58 USImageRoi(
unsigned int topLeftX,
unsigned int topLeftY,
unsigned int bottomRightX,
unsigned int bottomRightY)
59 : topLeftX(topLeftX), topLeftY(topLeftY), bottomRightX(bottomRightX), bottomRightY(bottomRightY) { };
73 : top(0), bottom(0), left(0), right(0) { };
74 USImageCropping(
unsigned int top,
unsigned int bottom,
unsigned int left,
unsigned int right)
75 : top(top), bottom(bottom), left(left), right(right) { };
82 void SetVideoFileInput(std::string path);
89 void SetCameraInput(
int deviceID);
98 void SetColorOutput(
bool isColor);
107 void SetRegionOfInterest(
int topLeftX,
int topLeftY,
int bottomRightX,
int bottomRightY);
118 void SetRegionOfInterest(USImageRoi regionOfInterest);
129 void SetCropping(USImageCropping cropping);
135 void RemoveRegionOfInterest();
145 void OverrideResolution(
int width,
int height);
148 itkGetMacro(IsVideoReady,
bool);
149 itkGetMacro(ResolutionOverride,
bool);
150 itkSetMacro(ResolutionOverride,
bool);
151 itkGetMacro(IsGreyscale,
bool);
152 itkGetMacro(ResolutionOverrideWidth,
int);
153 itkGetMacro(ResolutionOverrideHeight,
int);
154 int GetImageHeight();
156 USImageCropping GetCropping();
157 USImageRoi GetRegionOfInterest();
177 void GetNextRawImage( std::vector<cv::Mat>& image )
override;
184 void GetNextRawImage( std::vector<mitk::Image::Pointer>& image )
override;