Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
mitkAbstractOpenCVImageFilter.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkAbstractOpenCVImageFilter_h
14 #define mitkAbstractOpenCVImageFilter_h
15 
16 #include <MitkOpenCVVideoSupportExports.h>
17 
18 #include <mitkCommon.h>
19 
20 //itk headers
21 #include <itkMacro.h>
22 
23 namespace cv {
24 class Mat;
25 }
26 
27 namespace mitk {
28 
36 class MITKOPENCVVIDEOSUPPORT_EXPORT AbstractOpenCVImageFilter : public itk::Object
37 {
38 
39 public:
40  static int INVALID_IMAGE_ID;
41 
43 
44  virtual bool FilterImage( cv::Mat& image, int id = INVALID_IMAGE_ID );
45 
52  virtual bool OnFilterImage( cv::Mat& image ) = 0;
53 
54 protected:
56 
57  int GetCurrentImageId();
58 
60 };
61 
62 } // namespace mitk
63 
64 #endif
mitk::AbstractOpenCVImageFilter
Interface for image filters on OpenCV images.
Definition: mitkAbstractOpenCVImageFilter.h:36
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::AbstractOpenCVImageFilter::m_CurrentImageId
int m_CurrentImageId
Definition: mitkAbstractOpenCVImageFilter.h:59
mitkCommon.h
cv
Definition: mitkAbstractOpenCVImageFilter.h:23
mitk::AbstractOpenCVImageFilter::INVALID_IMAGE_ID
static int INVALID_IMAGE_ID
Definition: mitkAbstractOpenCVImageFilter.h:40