Medical Imaging Interaction Toolkit  2018.4.99-3e3f1a6e
Medical Imaging Interaction Toolkit
mitkAbstractOpenCVImageFilter.cpp
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 
14 
16 
18 {
19 }
20 
22 {
23  if (id < INVALID_IMAGE_ID) { id = INVALID_IMAGE_ID; }
24 
25  m_CurrentImageId = id;
26  return this->OnFilterImage(image);
27 }
28 
30 {
31  return m_CurrentImageId;
32 }
virtual bool OnFilterImage(cv::Mat &image)=0
Pure virtual method for filtering an image.
virtual bool FilterImage(cv::Mat &image, int id=INVALID_IMAGE_ID)
mitk::Image::Pointer image