Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 (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 
13 #include "mitkOclImageFilter.h"
14 #include "mitkOclFilter.h"
15 #include "mitkOclImage.h"
16 
18 {
19  // set the filter type to default value = SHORT
21 }
22 
24 {
25 }
26 
27 void mitk::OclImageFilter::SetInput(mitk::OclImage::Pointer image)
28 {
29  m_Input = image;
30 }
31 
33 {
35  m_Input->InitializeByMitkImage(image);
36 
37  // update current size
38  MITK_DEBUG << "Current Type was: " << this->m_CurrentType;
39  this->m_CurrentType = m_Input->GetBytesPerPixel() - 1;
40  MITK_DEBUG << "Current Type is: " << this->m_CurrentType;
41 }
42 
void SetInput(mitk::OclImage::Pointer image)
SetInput SetInput Set the input image (as mitk::OclImage).
#define MITK_DEBUG
Definition: mitkLogMacros.h:22
static Pointer New()
mitk::OclImage::Pointer m_Input
#define FILTER_SHORT
mitk::Image::Pointer image