Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
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,
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
#include "
mitkAbstractOpenCVImageFilter.h
"
18
19
int
mitk::AbstractOpenCVImageFilter::INVALID_IMAGE_ID
= -1;
20
21
mitk::AbstractOpenCVImageFilter::AbstractOpenCVImageFilter
()
22
{
23
}
24
25
bool
mitk::AbstractOpenCVImageFilter::FilterImage
( cv::Mat& image,
int
id
)
26
{
27
if
(
id
< INVALID_IMAGE_ID) {
id
= INVALID_IMAGE_ID; }
28
29
m_CurrentImageId = id;
30
return
this->OnFilterImage(image);
31
}
32
33
int
mitk::AbstractOpenCVImageFilter::GetCurrentImageId
()
34
{
35
return
m_CurrentImageId;
36
}
mitk::AbstractOpenCVImageFilter::AbstractOpenCVImageFilter
AbstractOpenCVImageFilter()
Definition:
mitkAbstractOpenCVImageFilter.cpp:21
mitk::AbstractOpenCVImageFilter::INVALID_IMAGE_ID
static int INVALID_IMAGE_ID
Definition:
mitkAbstractOpenCVImageFilter.h:44
mitk::AbstractOpenCVImageFilter::FilterImage
virtual bool FilterImage(cv::Mat &image, int id=INVALID_IMAGE_ID)
Definition:
mitkAbstractOpenCVImageFilter.cpp:25
mitk::AbstractOpenCVImageFilter::GetCurrentImageId
int GetCurrentImageId()
Definition:
mitkAbstractOpenCVImageFilter.cpp:33
mitkAbstractOpenCVImageFilter.h
git
MITK
Modules
OpenCVVideoSupport
Commands
mitkAbstractOpenCVImageFilter.cpp
Generated on Fri Feb 3 2017 20:51:53 for Medical Imaging Interaction Toolkit by
1.8.9.1