Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitk::BasicCombinationOpenCVImageFilter Class Reference

#include <mitkBasicCombinationOpenCVImageFilter.h>

Inheritance diagram for mitk::BasicCombinationOpenCVImageFilter:
Collaboration diagram for mitk::BasicCombinationOpenCVImageFilter:

Public Member Functions

 mitkClassMacro (BasicCombinationOpenCVImageFilter, AbstractOpenCVImageFilter)
 
Pointer Clone () const
 
bool OnFilterImage (cv::Mat &image) override
 Apply list of filters to the given image. More...
 
void PushFilter (AbstractOpenCVImageFilter::Pointer filter)
 Push an additional filter to the list of filters for applying to an image. More...
 
AbstractOpenCVImageFilter::Pointer PopFilter ()
 Remove and return the last filter added to the list of filters. More...
 
bool RemoveFilter (AbstractOpenCVImageFilter::Pointer filter)
 Remove the given filter from the list of filters. More...
 
bool GetIsFilterOnTheList (AbstractOpenCVImageFilter::Pointer filter)
 Get the information if the given filter is on the filter list. More...
 
bool GetIsEmpty ()
 Get the information if no filter is on the filter list. More...
 
- Public Member Functions inherited from mitk::AbstractOpenCVImageFilter
 mitkClassMacroItkParent (AbstractOpenCVImageFilter, itk::Object)
 
virtual bool FilterImage (cv::Mat &image, int id=INVALID_IMAGE_ID)
 

Static Public Member Functions

static Pointer New ()
 

Protected Attributes

std::vector< AbstractOpenCVImageFilter::Pointer > m_FilterList
 All filters applied to the given image during call of mitk::mitkBasicCombinationOpenCVImageFilter::FilterImage(). More...
 
- Protected Attributes inherited from mitk::AbstractOpenCVImageFilter
int m_CurrentImageId
 

Additional Inherited Members

- Static Public Attributes inherited from mitk::AbstractOpenCVImageFilter
static int INVALID_IMAGE_ID
 
- Protected Member Functions inherited from mitk::AbstractOpenCVImageFilter
 AbstractOpenCVImageFilter ()
 
int GetCurrentImageId ()
 

Detailed Description

Definition at line 22 of file mitkBasicCombinationOpenCVImageFilter.h.

Member Function Documentation

◆ Clone()

Pointer mitk::BasicCombinationOpenCVImageFilter::Clone ( ) const

◆ GetIsEmpty()

bool mitk::BasicCombinationOpenCVImageFilter::GetIsEmpty ( )

Get the information if no filter is on the filter list.

Returns
true if the filter list if empty, false otherwise

◆ GetIsFilterOnTheList()

bool mitk::BasicCombinationOpenCVImageFilter::GetIsFilterOnTheList ( AbstractOpenCVImageFilter::Pointer  filter)

Get the information if the given filter is on the filter list.

Returns
true if the filter is on the list, false otherwise

◆ mitkClassMacro()

mitk::BasicCombinationOpenCVImageFilter::mitkClassMacro ( BasicCombinationOpenCVImageFilter  ,
AbstractOpenCVImageFilter   
)

◆ New()

static Pointer mitk::BasicCombinationOpenCVImageFilter::New ( )
static

◆ OnFilterImage()

bool mitk::BasicCombinationOpenCVImageFilter::OnFilterImage ( cv::Mat &  image)
overridevirtual

Apply list of filters to the given image.

Returns
false if one of the filter returns false. Be careful, that the image could already be changed when the function returned false.

Implements mitk::AbstractOpenCVImageFilter.

◆ PopFilter()

AbstractOpenCVImageFilter::Pointer mitk::BasicCombinationOpenCVImageFilter::PopFilter ( )

Remove and return the last filter added to the list of filters.

Returns
last filter added to the list of filters

◆ PushFilter()

void mitk::BasicCombinationOpenCVImageFilter::PushFilter ( AbstractOpenCVImageFilter::Pointer  filter)

Push an additional filter to the list of filters for applying to an image.

◆ RemoveFilter()

bool mitk::BasicCombinationOpenCVImageFilter::RemoveFilter ( AbstractOpenCVImageFilter::Pointer  filter)

Remove the given filter from the list of filters.

Returns
true if the filter was on the list, false if it wasn't

Member Data Documentation

◆ m_FilterList

std::vector<AbstractOpenCVImageFilter::Pointer> mitk::BasicCombinationOpenCVImageFilter::m_FilterList
protected

All filters applied to the given image during call of mitk::mitkBasicCombinationOpenCVImageFilter::FilterImage().

Definition at line 68 of file mitkBasicCombinationOpenCVImageFilter.h.


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