Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Filter for creating MITK RGB Images from an OpenCV image. More...
#include <mitkOpenCVToMitkImageFilter.h>
Public Types | |
typedef itk::RGBPixel< unsigned char > | UCRGBPixelType |
typedef itk::RGBPixel< unsigned short > | USRGBPixelType |
typedef itk::RGBPixel< float > | FloatRGBPixelType |
typedef itk::RGBPixel< double > | DoubleRGBPixelType |
Public Types inherited from mitk::ImageSource | |
typedef ImageSource | Self |
typedef BaseDataSource | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef mitk::Image | OutputImageType |
Some convenient typedefs. More... | |
typedef OutputImageType | OutputType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef SlicedData::RegionType | OutputImageRegionType |
Public Types inherited from mitk::BaseDataSource | |
typedef BaseDataSource | Self |
typedef itk::ProcessObject | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef BaseData | OutputType |
typedef itk::DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
Public Member Functions | |
mitkClassMacro (OpenCVToMitkImageFilter, ImageSource) | |
Pointer | Clone () const |
void | SetOpenCVImage (const IplImage *image) |
void | SetOpenCVMat (const cv::Mat &image) |
virtual cv::Mat | GetOpenCVMat () |
OutputImageType * | GetOutput (void) |
void | InsertOpenCVImageAsMitkTimeSlice (const cv::Mat openCVImage, Image::Pointer mitkImage, int timeStep) |
Convenient method to insert an openCV image as a slice at a certain time step into a 3D or 4D mitk::Image. More... | |
Public Member Functions inherited from mitk::ImageSource | |
virtual std::vector< std::string > | GetClassHierarchy () const override |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
OutputType * | GetOutput () |
Get the output data of this image source object. More... | |
const OutputType * | GetOutput () const |
OutputType * | GetOutput (DataObjectPointerArraySizeType idx) |
const OutputType * | GetOutput (DataObjectPointerArraySizeType idx) const |
itk::DataObject::Pointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
Make a DataObject of the correct type to used as the specified output. More... | |
itk::DataObject::Pointer | MakeOutput (const DataObjectIdentifierType &name) override |
virtual vtkImageData * | GetVtkImageData () |
virtual const vtkImageData * | GetVtkImageData () const |
Public Member Functions inherited from mitk::BaseDataSource | |
OutputType * | GetOutput () |
const OutputType * | GetOutput () const |
OutputType * | GetOutput (DataObjectPointerArraySizeType idx) |
const OutputType * | GetOutput (DataObjectPointerArraySizeType idx) const |
virtual void | GraftOutput (OutputType *output) |
Graft the specified BaseData onto this BaseDataSource's output. More... | |
virtual void | GraftOutput (const DataObjectIdentifierType &key, OutputType *output) |
virtual void | GraftNthOutput (unsigned int idx, OutputType *output) |
Graft the specified base data object onto this BaseDataSource's idx'th output. More... | |
bool | Updating () const |
Access itk::ProcessObject::m_Updating. More... | |
Static Public Member Functions | |
template<typename TPixel , unsigned int VImageDimension> | |
static Image::Pointer | ConvertCVMatToMitkImage (const cv::Mat input) |
static Pointer | New () |
Static Public Member Functions inherited from mitk::ImageSource | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
Method for creation through the object factory. More... | |
Static Public Member Functions inherited from mitk::BaseDataSource | |
static const char * | GetStaticNameOfClass () |
Protected Member Functions | |
OpenCVToMitkImageFilter () | |
~OpenCVToMitkImageFilter () override | |
void | GenerateData () override |
Protected Member Functions inherited from mitk::ImageSource | |
ImageSource () | |
~ImageSource () override | |
void | GenerateData () override |
A version of GenerateData() specific for image processing filters. More... | |
virtual void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType threadId) |
If an imaging filter can be implemented as a multithreaded algorithm, the filter will provide an implementation of ThreadedGenerateData(). More... | |
void | PrepareOutputs () override |
This method is intentionally left blank. More... | |
virtual void | AllocateOutputs () |
The GenerateData method normally allocates the buffers for all of the outputs of a filter. More... | |
virtual void | BeforeThreadedGenerateData () |
If an imaging filter needs to perform processing after the buffer has been allocated but before threads are spawned, the filter can can provide an implementation for BeforeThreadedGenerateData(). More... | |
virtual void | AfterThreadedGenerateData () |
If an imaging filter needs to perform processing after all processing threads have completed, the filter can can provide an implementation for AfterThreadedGenerateData(). More... | |
virtual unsigned int | SplitRequestedRegion (unsigned int i, unsigned int num, OutputImageRegionType &splitRegion) |
Split the output's RequestedRegion into "num" pieces, returning region "i" as "splitRegion". More... | |
Protected Member Functions inherited from mitk::BaseDataSource | |
BaseDataSource () | |
~BaseDataSource () override | |
Protected Attributes | |
Image::Pointer | m_Image |
cv::Mat | m_OpenCVMat |
std::mutex | m_ImageMutex |
std::mutex | m_OpenCVMatMutex |
Additional Inherited Members | |
Static Protected Member Functions inherited from mitk::ImageSource | |
static itk::ITK_THREAD_RETURN_TYPE | ThreaderCallback (void *arg) |
Static function used as a "callback" by the MultiThreader. More... | |
Static Protected Member Functions inherited from mitk::BaseDataSource | |
static Pointer | New () |
Filter for creating MITK RGB Images from an OpenCV image.
Definition at line 37 of file mitkOpenCVToMitkImageFilter.h.
typedef itk::RGBPixel< double > mitk::OpenCVToMitkImageFilter::DoubleRGBPixelType |
Definition at line 43 of file mitkOpenCVToMitkImageFilter.h.
typedef itk::RGBPixel< float > mitk::OpenCVToMitkImageFilter::FloatRGBPixelType |
Definition at line 42 of file mitkOpenCVToMitkImageFilter.h.
typedef itk::RGBPixel< unsigned char > mitk::OpenCVToMitkImageFilter::UCRGBPixelType |
Definition at line 40 of file mitkOpenCVToMitkImageFilter.h.
typedef itk::RGBPixel< unsigned short > mitk::OpenCVToMitkImageFilter::USRGBPixelType |
Definition at line 41 of file mitkOpenCVToMitkImageFilter.h.
|
protected |
|
overrideprotected |
Pointer mitk::OpenCVToMitkImageFilter::Clone | ( | ) | const |
|
static |
the static function for the conversion
|
overrideprotected |
|
virtual |
OutputImageType* mitk::OpenCVToMitkImageFilter::GetOutput | ( | void | ) |
void mitk::OpenCVToMitkImageFilter::InsertOpenCVImageAsMitkTimeSlice | ( | const cv::Mat | openCVImage, |
Image::Pointer | mitkImage, | ||
int | timeStep | ||
) |
Convenient method to insert an openCV image as a slice at a certain time step into a 3D or 4D mitk::Image.
openCVImage | - the image that is inserted into the mitk Image |
mitkImage | - pointer to the mitkImage, which is changed by this method! |
timeStep | - the time step, at which the openCVImage is inserted |
mitk::OpenCVToMitkImageFilter::mitkClassMacro | ( | OpenCVToMitkImageFilter | , |
ImageSource | |||
) |
|
static |
void mitk::OpenCVToMitkImageFilter::SetOpenCVImage | ( | const IplImage * | image | ) |
sets an iplimage as input
void mitk::OpenCVToMitkImageFilter::SetOpenCVMat | ( | const cv::Mat & | image | ) |
sets an opencv mat as input (will be used if OpenCVImage Ipl image is 0)
|
protected |
Definition at line 88 of file mitkOpenCVToMitkImageFilter.h.
|
protected |
Definition at line 91 of file mitkOpenCVToMitkImageFilter.h.
|
protected |
Definition at line 89 of file mitkOpenCVToMitkImageFilter.h.
|
protected |
Definition at line 92 of file mitkOpenCVToMitkImageFilter.h.