Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkCropOpenCVImageFilter_h
18 #define mitkCropOpenCVImageFilter_h
19 
20 #include <MitkOpenCVVideoSupportExports.h>
21 
22 #include <mitkCommon.h>
23 
24 //itk headers
25 #include <itkMacro.h>
26 
27 namespace cv {
28 class Mat;
29 }
30 
31 namespace mitk {
32 
40 class MITKOPENCVVIDEOSUPPORT_EXPORT AbstractOpenCVImageFilter : public itk::Object
41 {
42 
43 public:
44  static int INVALID_IMAGE_ID;
45 
47 
48  virtual bool FilterImage( cv::Mat& image, int id = INVALID_IMAGE_ID );
49 
56  virtual bool OnFilterImage( cv::Mat& image ) = 0;
57 
58 protected:
60 
61  int GetCurrentImageId();
62 
64 };
65 
66 } // namespace mitk
67 
68 #endif // mitkCropOpenCVImageFilter_h
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
Interface for image filters on OpenCV images.