Medical Imaging Interaction Toolkit  2016.11.0
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)
 
virtual cv::Mat GetImage () override
 
virtual const IplImage * GetCurrentFrame ()
 
virtual void GetCurrentFrameAsItkHSVPixelImage (HSVPixelImageType::Pointer &Image)
 
virtual 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
 
virtual 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 ()
 
virtual ~OpenCVVideoSource ()
 
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 ()
 
virtual ~VideoSource ()
 

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 30 of file mitkVideoInputSource.h.

Constructor & Destructor Documentation

mitk::VideoInputSource::~VideoInputSource ( )
protectedvirtual

Definition at line 43 of file mitkVideoInputSource.cpp.

Member Function Documentation

Pointer mitk::VideoInputSource::Clone ( ) const
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.

Definition at line 50 of file mitkVideoInputSource.cpp.

virtual bool mitk::VideoInputSource::GetShowSettingsWindow ( ) const
virtual
virtual bool mitk::VideoInputSource::GetVideoInput ( )
virtual
mitk::VideoInputSource::mitkClassMacro ( VideoInputSource  ,
OpenCVVideoSource   
)
static Pointer mitk::VideoInputSource::New ( )
static
virtual void mitk::VideoInputSource::SetShowSettingsWindow ( bool  _arg)
virtual
void mitk::VideoInputSource::SetVideoCameraInput ( int  cameraindex,
bool  useCVCAMLib 
)
virtual

Reimplemented from mitk::OpenCVVideoSource.

Definition at line 110 of file mitkVideoInputSource.cpp.

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

Reimplemented from mitk::OpenCVVideoSource.

Definition at line 114 of file mitkVideoInputSource.cpp.

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.

Definition at line 72 of file mitkVideoInputSource.cpp.

References MITK_INFO, and MITK_WARN.

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.

Definition at line 102 of file mitkVideoInputSource.cpp.

References MITK_INFO.

Member Data Documentation

int mitk::VideoInputSource::m_CaptureSize
protected

Definition at line 64 of file mitkVideoInputSource.h.

Referenced by VideoInputSource().

unsigned char* mitk::VideoInputSource::m_CurrentVideoTexture
protected

Definition at line 67 of file mitkVideoInputSource.h.

Referenced by VideoInputSource().

int mitk::VideoInputSource::m_DeviceNumber
protected

Definition at line 63 of file mitkVideoInputSource.h.

Referenced by VideoInputSource().

bool mitk::VideoInputSource::m_ShowSettingsWindow
protected

Show vendor specific settings window?

Definition at line 72 of file mitkVideoInputSource.h.

videoInput* mitk::VideoInputSource::m_VideoInput
protected

Definition at line 62 of file mitkVideoInputSource.h.

Referenced by VideoInputSource().


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