Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkBoundingObjectCutAndCast.h
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 #ifndef BOUNDINGOBJECTCUTANDCAST_H_HEADER_INCLUDED_C10B22CD
18 #define BOUNDINGOBJECTCUTANDCAST_H_HEADER_INCLUDED_C10B22CD
19 
21 #include "mitkCommon.h"
22 
24 
25 namespace mitk
26 {
27  //##Documentation
28  //## @brief Cuts an Boundingobject out of an mitk Image
29  //##
30  //## Input Parameters are a mitk::BoundingObject and optionally an mitk::Image
31  //## if no mitk::Image is provided, the resulting image will have m_InsideValue as pixelvalue on inside pixel,
32  //## otherwise it will have the pixelvalue of the input image.
33  //## Pixel on the outside of the BoundingObject will have a pixelvalue of m_OutsideValue
34  //## \todo What Image resolution/spacing should be used, if no input image is given?
35  //## @ingroup Process
36  template <typename TPixel>
38  {
39  public:
41  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
42 
43  typedef TPixel PixelType;
44 
45  protected:
47  virtual ~BoundingObjectCutAndCast();
48 
49  virtual const std::type_info &GetOutputPixelType();
50 
51  virtual void ComputeData(mitk::Image *input3D, int boTimeStep);
52  };
53 } // namespace mitk
54 
55 #ifndef MITK_MANUAL_INSTANTIATION
56 #include "mitkBoundingObjectCutAndCast.txx" // because it is a template
57 #endif
58 
59 #endif /* BOUNDINGOBJECTCUTANDCAST_H_HEADER_INCLUDED_C10B22CD */
virtual void ComputeData(mitk::Image *input3D, int boTimeStep)
Cuts an Boundingobject out of an mitk Image.
Superclass of all classes generating some kind of mitk::BaseData.
STL namespace.
DataCollection - Class to facilitate loading/accessing structured data.
Cuts an Boundingobject out of an mitk Image.
virtual const std::type_info & GetOutputPixelType()
Image class for storing images.
Definition: mitkImage.h:76
mitkClassMacro(BoundingObjectCutAndCast, BoundingObjectCutter)