NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | Protected Member Functions | List of all members
mitk::BaseVideoProcessor Class Referenceabstract
Inheritance diagram for mitk::BaseVideoProcessor:
Inheritance graph
[legend]
Collaboration diagram for mitk::BaseVideoProcessor:
Collaboration graph
[legend]

Public Member Functions

 mitkClassMacroItkParent (BaseVideoProcessor, itk::Object) virtual void Initialize()
 This method does any initialization necessary, and derived classes can override it, but must call BaseVideoProcessor::Initialize first within their Initialize method. More...
 
virtual void Run ()=0
 This is the main method, implemented in derived classes, to run the processing. More...
 

Protected Member Functions

 ~BaseVideoProcessor ()
 
 BaseVideoProcessor (CvCapture *capture=NULL, CvVideoWriter *writer=NULL)
 
 BaseVideoProcessor (const std::string &inputFile, const std::string &outputFile)
 
 BaseVideoProcessor (const BaseVideoProcessor &)
 
BaseVideoProcessoroperator= (const BaseVideoProcessor &)
 
virtual CvSize GetOutputImageSize ()=0
 Derived classes must indicate an output image size, and the derived class must call this->Initialize() before calling this method. More...
 
IplImage * GetCurrentImage () const
 Returns the pointer to the current image. More...
 
IplImage * GrabNewImage ()
 Grabs a new image from the capture device. OpenCV documentation says to NOT try and clear up this memory. More...
 
CvVideoWriter * GetWriter () const
 Returns the writer,. More...
 

Constructor & Destructor Documentation

BaseVideoProcessor::~BaseVideoProcessor ( )
protected
BaseVideoProcessor::BaseVideoProcessor ( CvCapture *  capture = NULL,
CvVideoWriter *  writer = NULL 
)
protected
BaseVideoProcessor::BaseVideoProcessor ( const std::string inputFile,
const std::string outputFile 
)
protected
mitk::BaseVideoProcessor::BaseVideoProcessor ( const BaseVideoProcessor )
protected

Member Function Documentation

IplImage * BaseVideoProcessor::GetCurrentImage ( ) const
protected

Returns the pointer to the current image.

virtual CvSize mitk::BaseVideoProcessor::GetOutputImageSize ( )
protectedpure virtual

Derived classes must indicate an output image size, and the derived class must call this->Initialize() before calling this method.

Implemented in mitk::MonoVideoProcessorTemplateMethod, and mitk::StereoVideoProcessorTemplateMethod.

CvVideoWriter * BaseVideoProcessor::GetWriter ( ) const
protected

Returns the writer,.

IplImage * BaseVideoProcessor::GrabNewImage ( )
protected

Grabs a new image from the capture device. OpenCV documentation says to NOT try and clear up this memory.

mitk::BaseVideoProcessor::mitkClassMacroItkParent ( BaseVideoProcessor  ,
itk::Object   
)

This method does any initialization necessary, and derived classes can override it, but must call BaseVideoProcessor::Initialize first within their Initialize method.

BaseVideoProcessor& mitk::BaseVideoProcessor::operator= ( const BaseVideoProcessor )
protected
virtual void mitk::BaseVideoProcessor::Run ( )
pure virtual

This is the main method, implemented in derived classes, to run the processing.

Implemented in mitk::MonoVideoProcessorTemplateMethod, mitk::StereoOneTimePointVideoProcessorTemplateMethod, and mitk::StereoTwoTimePointVideoProcessorTemplateMethod.


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