Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <mitkVideoInputSource.h>
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 () |
![]() | |
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) |
![]() | |
mitkClassMacroItkParent (VideoSource, itk::Object) | |
virtual bool | IsCapturingEnabled () const |
virtual int | GetImageWidth () |
virtual int | GetImageHeight () |
virtual unsigned long | GetFrameCount () const |
virtual bool | GetCapturePaused () const |
![]() | |
mitkClassMacroItkParent (OpenCVImageSource, itk::Object) | |
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static Pointer | New () |
Protected Member Functions | |
VideoInputSource () | |
virtual | ~VideoInputSource () |
![]() | |
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) |
![]() | |
VideoSource () | |
~VideoSource () override | |
Protected Attributes | |
videoInput * | m_VideoInput |
int | m_DeviceNumber |
int | m_CaptureSize |
unsigned char * | m_CurrentVideoTexture |
bool | m_ShowSettingsWindow |
![]() | |
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 |
![]() | |
unsigned char * | m_CurrentVideoTexture |
int | m_CaptureWidth |
int | m_CaptureHeight |
bool | m_CapturingInProcess |
unsigned long | m_FrameCount |
bool | m_CapturePaused |
Additional Inherited Members | |
![]() | |
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< RGBPixelImageType > | RGBConstIteratorType |
typedef itk::ImageRegionIterator< HSVPixelImageType > | HSVConstIteratorType |
Definition at line 25 of file mitkVideoInputSource.h.
|
protected |
Definition at line 19 of file mitkVideoInputSource.cpp.
References mitk::VideoSource::m_CaptureHeight, m_CaptureSize, mitk::VideoSource::m_CaptureWidth, mitk::VideoSource::m_CapturingInProcess, mitk::OpenCVVideoSource::m_CurrentImage, m_CurrentVideoTexture, m_DeviceNumber, mitk::OpenCVVideoSource::m_UndistortImage, and m_VideoInput.
|
protectedvirtual |
Definition at line 39 of file mitkVideoInputSource.cpp.
References mitk::VideoSource::m_CapturingInProcess, m_DeviceNumber, and m_VideoInput.
Pointer mitk::VideoInputSource::Clone | ( | ) | const |
|
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 46 of file mitkVideoInputSource.cpp.
References mitk::VideoSource::m_CaptureHeight, mitk::VideoSource::m_CapturePaused, mitk::VideoSource::m_CaptureWidth, mitk::VideoSource::m_CapturingInProcess, mitk::OpenCVVideoSource::m_CurrentImage, m_DeviceNumber, mitk::OpenCVVideoSource::m_UndistortCameraImage, mitk::OpenCVVideoSource::m_UndistortImage, and m_VideoInput.
|
virtual |
|
virtual |
mitk::VideoInputSource::mitkClassMacro | ( | VideoInputSource | , |
OpenCVVideoSource | |||
) |
|
static |
|
virtual |
|
virtual |
Reimplemented from mitk::OpenCVVideoSource.
Definition at line 106 of file mitkVideoInputSource.cpp.
References m_DeviceNumber.
|
virtual |
Reimplemented from mitk::OpenCVVideoSource.
Definition at line 110 of file mitkVideoInputSource.cpp.
|
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 68 of file mitkVideoInputSource.cpp.
References mitk::VideoSource::m_CaptureHeight, m_CaptureSize, mitk::VideoSource::m_CaptureWidth, mitk::VideoSource::m_CapturingInProcess, m_DeviceNumber, m_ShowSettingsWindow, m_VideoInput, MITK_INFO, and MITK_WARN.
|
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 98 of file mitkVideoInputSource.cpp.
References mitk::VideoSource::m_CapturingInProcess, m_DeviceNumber, m_VideoInput, and MITK_INFO.
|
protected |
Definition at line 59 of file mitkVideoInputSource.h.
Referenced by StartCapturing(), and VideoInputSource().
|
protected |
Definition at line 62 of file mitkVideoInputSource.h.
Referenced by VideoInputSource().
|
protected |
Definition at line 58 of file mitkVideoInputSource.h.
Referenced by FetchFrame(), SetVideoCameraInput(), StartCapturing(), StopCapturing(), VideoInputSource(), and ~VideoInputSource().
|
protected |
Show vendor specific settings window?
Definition at line 67 of file mitkVideoInputSource.h.
Referenced by StartCapturing().
|
protected |
Definition at line 57 of file mitkVideoInputSource.h.
Referenced by FetchFrame(), StartCapturing(), StopCapturing(), VideoInputSource(), and ~VideoInputSource().