24 m_MitkToOpenCVFilter(nullptr),
27 m_ImageFilterMutex(
itk::FastMutexLock::
New())
37 m_ImageFilter->PushFilter(filter);
42 return m_ImageFilter->RemoveFilter(filter);
47 return m_ImageFilter->GetIsFilterOnTheList(filter);
55 if (m_ImageFilter.IsNotNull() && !m_ImageFilter->GetIsEmpty())
58 this->GetNextRawImage(image);
62 m_ImageFilterMutex->Lock();
63 m_ImageFilter->FilterImage(image, m_CurrentImageId);
64 m_ImageFilterMutex->Unlock();
67 this->m_OpenCVToMitkFilter->SetOpenCVMat(image);
68 this->m_OpenCVToMitkFilter->Update();
71 result = this->m_OpenCVToMitkFilter->GetOutput();
78 this->GetNextRawImage(result);
81 if (result.IsNotNull())
99 if (!m_MitkToOpenCVFilter)
106 this->GetNextRawImage(mitkImg);
108 if (mitkImg.IsNull() || !mitkImg->IsInitialized())
115 m_MitkToOpenCVFilter->SetImage(mitkImg);
116 image = m_MitkToOpenCVFilter->GetOpenCVMat();
itk::SmartPointer< Self > Pointer
DataCollection - Class to facilitate loading/accessing structured data.
bool RemoveFilter(AbstractOpenCVImageFilter::Pointer filter)
bool GetIsFilterInThePipeline(AbstractOpenCVImageFilter::Pointer filter)
Filter for creating MITK RGB Images from an OpenCV image.
virtual void GetNextRawImage(cv::Mat &)
Set the given OpenCV image matrix to the next image received from the device or file.
void PushFilter(AbstractOpenCVImageFilter::Pointer filter)
mitk::Image::Pointer GetNextImage()
Retrieves the next frame. This will typically be the next frame in a file or the last cached file in ...
static const char * IMAGE_PROPERTY_IDENTIFIER
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.