MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkAbstractOpenCVImageFilter.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found 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
23namespace cv {
24class Mat;
25}
26
27namespace mitk {
28
36class MITKOPENCVVIDEOSUPPORT_EXPORT AbstractOpenCVImageFilter : public itk::Object
37{
38
39public:
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
54protected:
56
57 int GetCurrentImageId();
58
60};
61
62} // namespace mitk
63
64#endif
Interface for image filters on OpenCV images.
virtual bool OnFilterImage(cv::Mat &image)=0
Pure virtual method for filtering an image.
mitkClassMacroItkParent(AbstractOpenCVImageFilter, itk::Object)
IGT Exceptions.