Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
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 
22 {
23  // set the filter type to default value = SHORT
25 }
26 
28 {
29 }
30 
32 {
33  m_Input = image;
34 }
35 
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 
void SetInput(mitk::OclImage::Pointer image)
SetInput SetInput Set the input image (as mitk::OclImage).
#define FILTER_SHORT
itk::SmartPointer< Self > Pointer
#define MITK_DEBUG
Definition: mitkLogMacros.h:26
static Pointer New()