Medical Imaging Interaction Toolkit  2021.02.99-89548602
Medical Imaging Interaction Toolkit
mitk::VideoInputSource Class Reference

#include <mitkVideoInputSource.h>

Inheritance diagram for mitk::VideoInputSource:
Collaboration diagram for mitk::VideoInputSource:

Public Member Functions

 mitkClassMacro (VideoInputSource, OpenCVVideoSource)
 
Pointer Clone () const
 
void FetchFrame ()
 
void StartCapturing ()
 
void StopCapturing ()
 
void SetVideoCameraInput (int cameraindex, bool useCVCAMLib)
 
void SetVideoFileInput (const char *filename, bool repeatVideo, bool useCVCAMLib)
 
virtual bool GetShowSettingsWindow () const
 
virtual void SetShowSettingsWindow (bool _arg)
 
virtual bool GetVideoInput ()
 
- Public Member Functions inherited from mitk::OpenCVVideoSource
 mitkClassMacro (OpenCVVideoSource, VideoSource)
 
Pointer Clone () const
 
virtual double GetVideoCaptureProperty (int property_id)
 
virtual int SetVideoCaptureProperty (int property_id, double value)
 
virtual void GetCurrentFrameAsOpenCVImage (IplImage *image)
 
cv::Mat GetImage () override
 
virtual const IplImage * GetCurrentFrame ()
 
virtual void GetCurrentFrameAsItkHSVPixelImage (HSVPixelImageType::Pointer &Image)
 
unsigned char * GetVideoTexture () override
 
virtual IplImage * FlipImage (IplImage *input)
 
virtual void EnableOnlineImageUndistortion (mitk::Point3D focal, mitk::Point3D principal, mitk::Point4D distortion)
 
virtual void DisableOnlineImageUndistortion ()
 
virtual bool OnlineImageUndistortionEnabled () const
 
void PauseCapturing () override
 
virtual std::string GetVideoFileName () const
 
virtual void SetEnableXAxisFlip (bool enable)
 
virtual void SetEnableYAxisFlip (bool enable)
 
virtual short GetGrabbingDeviceNumber () const
 
virtual bool GetRepeatVideo ()
 
virtual void SetRepeatVideo (bool _arg)
 
- Public Member Functions inherited from mitk::VideoSource
 mitkClassMacroItkParent (VideoSource, itk::Object)
 
virtual bool IsCapturingEnabled () const
 
virtual int GetImageWidth ()
 
virtual int GetImageHeight ()
 
virtual unsigned long GetFrameCount () const
 
virtual bool GetCapturePaused () const
 
- Public Member Functions inherited from mitk::OpenCVImageSource
 mitkClassMacroItkParent (OpenCVImageSource, itk::Object)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from mitk::OpenCVVideoSource
static Pointer New ()
 

Protected Member Functions

 VideoInputSource ()
 
virtual ~VideoInputSource ()
 
- Protected Member Functions inherited from mitk::OpenCVVideoSource
 OpenCVVideoSource ()
 
 ~OpenCVVideoSource () override
 
void Reset ()
 
void UpdateVideoTexture ()
 
void sleep (unsigned int ms)
 
void RGBtoHSV (float r, float g, float b, float &h, float &s, float &v)
 
- Protected Member Functions inherited from mitk::VideoSource
 VideoSource ()
 
 ~VideoSource () override
 

Protected Attributes

videoInput * m_VideoInput
 
int m_DeviceNumber
 
int m_CaptureSize
 
unsigned char * m_CurrentVideoTexture
 
bool m_ShowSettingsWindow
 
- Protected Attributes inherited from mitk::OpenCVVideoSource
CvCapture * m_VideoCapture
 
IplImage * m_CurrentImage
 
unsigned char * m_CurrentVideoTexture
 
IplImage * m_PauseImage
 
std::string m_VideoFileName
 saves the video file name (is empty if a grabbing device is used or if this is not initialized) More...
 
short m_GrabbingDeviceNumber
 saves the grabbing device number (is -1 if a videofilename is used or if this is not initialized) More...
 
bool m_RepeatVideo
 
bool m_UseCVCAMLib
 
bool m_UndistortImage
 
mitk::UndistortCameraImage::Pointer m_UndistortCameraImage
 
bool m_FlipXAxisEnabled
 
bool m_FlipYAxisEnabled
 
- Protected Attributes inherited from mitk::VideoSource
unsigned char * m_CurrentVideoTexture
 
int m_CaptureWidth
 
int m_CaptureHeight
 
bool m_CapturingInProcess
 
unsigned long m_FrameCount
 
bool m_CapturePaused
 

Additional Inherited Members

- Public Types inherited from mitk::OpenCVVideoSource
typedef itk::RGBPixel< unsigned char > CharPixelType
 
typedef itk::FixedArray< float, 3 > HSVPixelType
 
typedef itk::Image< CharPixelType, 2 > RGBPixelImageType
 
typedef itk::Image< HSVPixelType, 2 > HSVPixelImageType
 
typedef itk::ImageRegionIterator< RGBPixelImageTypeRGBConstIteratorType
 
typedef itk::ImageRegionIterator< HSVPixelImageTypeHSVConstIteratorType
 

Detailed Description

Definition at line 25 of file mitkVideoInputSource.h.

Constructor & Destructor Documentation

◆ VideoInputSource()

mitk::VideoInputSource::VideoInputSource ( )
protected

◆ ~VideoInputSource()

virtual mitk::VideoInputSource::~VideoInputSource ( )
protectedvirtual

Member Function Documentation

◆ Clone()

Pointer mitk::VideoInputSource::Clone ( ) const

◆ FetchFrame()

void mitk::VideoInputSource::FetchFrame ( )
virtual

assigns the grabbing devices for acquiring the next frame. in this base implementation it does nothing except incrementing m_FrameCount

Reimplemented from mitk::OpenCVVideoSource.

◆ GetShowSettingsWindow()

virtual bool mitk::VideoInputSource::GetShowSettingsWindow ( ) const
virtual

◆ GetVideoInput()

virtual bool mitk::VideoInputSource::GetVideoInput ( )
virtual

◆ mitkClassMacro()

mitk::VideoInputSource::mitkClassMacro ( VideoInputSource  ,
OpenCVVideoSource   
)

◆ New()

static Pointer mitk::VideoInputSource::New ( )
static

◆ SetShowSettingsWindow()

virtual void mitk::VideoInputSource::SetShowSettingsWindow ( bool  _arg)
virtual

◆ SetVideoCameraInput()

void mitk::VideoInputSource::SetVideoCameraInput ( int  cameraindex,
bool  useCVCAMLib 
)
virtual

Reimplemented from mitk::OpenCVVideoSource.

◆ SetVideoFileInput()

void mitk::VideoInputSource::SetVideoFileInput ( const char *  filename,
bool  repeatVideo,
bool  useCVCAMLib 
)
virtual

Reimplemented from mitk::OpenCVVideoSource.

◆ StartCapturing()

void mitk::VideoInputSource::StartCapturing ( )
virtual

advices this class to start the video capturing. in this base implementation: toggles m_CapturingInProcess, resets m_FrameCount ATTENTION: this should be also done in subclasses overwriting this method

Reimplemented from mitk::OpenCVVideoSource.

◆ StopCapturing()

void mitk::VideoInputSource::StopCapturing ( )
virtual

advices this class to stop the video capturing. in this base implementation: toggles m_CapturingInProcess, resets m_FrameCount ATTENTION: this should be also done in subclasses overwriting this method

Reimplemented from mitk::OpenCVVideoSource.

Member Data Documentation

◆ m_CaptureSize

int mitk::VideoInputSource::m_CaptureSize
protected

Definition at line 59 of file mitkVideoInputSource.h.

◆ m_CurrentVideoTexture

unsigned char* mitk::VideoInputSource::m_CurrentVideoTexture
protected

Definition at line 62 of file mitkVideoInputSource.h.

◆ m_DeviceNumber

int mitk::VideoInputSource::m_DeviceNumber
protected

Definition at line 58 of file mitkVideoInputSource.h.

◆ m_ShowSettingsWindow

bool mitk::VideoInputSource::m_ShowSettingsWindow
protected

Show vendor specific settings window?

Definition at line 67 of file mitkVideoInputSource.h.

◆ m_VideoInput

videoInput* mitk::VideoInputSource::m_VideoInput
protected

Definition at line 57 of file mitkVideoInputSource.h.


The documentation for this class was generated from the following file: