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
mitkOclImageFilter.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 "
mitkOclImageFilter.h
"
18
#include "
mitkOclFilter.h
"
19
#include "
mitkOclImage.h
"
20
21
mitk::OclImageFilter::OclImageFilter
()
22
{
23
// set the filter type to default value = SHORT
24
this->
m_CurrentType
=
FILTER_SHORT
;
25
}
26
27
mitk::OclImageFilter::~OclImageFilter
()
28
{
29
}
30
31
void
mitk::OclImageFilter::SetInput
(
mitk::OclImage::Pointer
image)
32
{
33
m_Input = image;
34
}
35
36
void
mitk::OclImageFilter::SetInput
(
mitk::Image::Pointer
image)
37
{
38
m_Input =
mitk::OclImage::New
();
39
m_Input->InitializeByMitkImage(image);
40
41
// update current size
42
MITK_DEBUG
<<
"Current Type was: "
<< this->m_CurrentType;
43
this->m_CurrentType = m_Input->GetBytesPerPixel() - 1;
44
MITK_DEBUG
<<
"Current Type is: "
<< this->m_CurrentType;
45
}
46
mitk::OclImageFilter::SetInput
void SetInput(mitk::OclImage::Pointer image)
SetInput SetInput Set the input image (as mitk::OclImage).
Definition:
mitkOclImageFilter.cpp:31
FILTER_SHORT
#define FILTER_SHORT
Definition:
mitkOclImageFilter.h:24
mitk::Pointer
itk::SmartPointer< Self > Pointer
Definition:
mitkRenderingManager.h:389
mitk::OclImageFilter::m_CurrentType
short m_CurrentType
Definition:
mitkOclImageFilter.h:62
MITK_DEBUG
#define MITK_DEBUG
Definition:
mitkLogMacros.h:26
mitk::OclImage::New
static Pointer New()
mitkOclImageFilter.h
mitk::OclImageFilter::OclImageFilter
OclImageFilter()
Definition:
mitkOclImageFilter.cpp:21
mitk::OclImageFilter::~OclImageFilter
virtual ~OclImageFilter()
Definition:
mitkOclImageFilter.cpp:27
mitkOclFilter.h
mitkOclImage.h
itk::SmartPointer< Self >
git
MITK
Modules
OpenCL
mitkOclImageFilter.cpp
Generated on Fri Feb 3 2017 20:52:04 for Medical Imaging Interaction Toolkit by
1.8.9.1