Medical Imaging Interaction Toolkit  2018.4.99-3e3f1a6e
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 mitkCropOpenCVImageFilter_h
14 #define mitkCropOpenCVImageFilter_h
15 
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 
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 // mitkCropOpenCVImageFilter_h
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKOPENCVVIDEOSUPPORT_EXPORT
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:49
mitk::Image::Pointer image
Interface for image filters on OpenCV images.