Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 (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 #ifndef BOUNDINGOBJECTCUTANDCAST_H_HEADER_INCLUDED_C10B22CD
14 #define BOUNDINGOBJECTCUTANDCAST_H_HEADER_INCLUDED_C10B22CD
15 
17 #include "mitkCommon.h"
18 
20 
21 namespace mitk
22 {
23  //##Documentation
24  //## @brief Cuts an Boundingobject out of an mitk Image
25  //##
26  //## Input Parameters are a mitk::BoundingObject and optionally an mitk::Image
27  //## if no mitk::Image is provided, the resulting image will have m_InsideValue as pixelvalue on inside pixel,
28  //## otherwise it will have the pixelvalue of the input image.
29  //## Pixel on the outside of the BoundingObject will have a pixelvalue of m_OutsideValue
30  //## \todo What Image resolution/spacing should be used, if no input image is given?
31  //## @ingroup Process
32  template <typename TPixel>
34  {
35  public:
37  itkFactorylessNewMacro(Self);
38  itkCloneMacro(Self);
39 
40  typedef TPixel PixelType;
41 
42  protected:
44  virtual ~BoundingObjectCutAndCast();
45 
46  virtual const std::type_info &GetOutputPixelType();
47 
48  virtual void ComputeData(mitk::Image *input3D, int boTimeStep);
49  };
50 } // namespace mitk
51 
52 #ifndef MITK_MANUAL_INSTANTIATION
53 #include "mitkBoundingObjectCutAndCast.txx" // because it is a template
54 #endif
55 
56 #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.
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:72
mitkClassMacro(BoundingObjectCutAndCast, BoundingObjectCutter)