Medical Imaging Interaction Toolkit  2026.06.00
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 mitkBoundingObjectCutAndCast_h
14 #define mitkBoundingObjectCutAndCast_h
15 
17 #include <mitkCommon.h>
18 
19 #include <mitkBoundingObjectCutter.tpp>
20 
21 namespace mitk
22 {
39  template <typename TPixel>
41  {
42  public:
44  itkFactorylessNewMacro(Self);
45  itkCloneMacro(Self);
46 
48  typedef TPixel PixelType;
49 
50  protected:
53 
54  virtual const std::type_info &GetOutputPixelType();
55 
56  virtual void ComputeData(mitk::Image *input3D, int boTimeStep);
57  };
58 } // namespace mitk
59 
60 #ifndef MITK_MANUAL_INSTANTIATION
61 #include <mitkBoundingObjectCutAndCast.tpp> // because it is a template
62 #endif
63 
64 #endif
Cuts a BoundingObject region out of an image and casts the result to a specific pixel type.
virtual const std::type_info & GetOutputPixelType()
TPixel PixelType
The output pixel type for the cast operation.
virtual void ComputeData(mitk::Image *input3D, int boTimeStep)
mitkClassMacro(BoundingObjectCutAndCast, BoundingObjectCutter)
Cuts a BoundingObject region out of a mitk::Image.
Image class for storing multi-dimensional medical image data.
Definition: mitkImage.h:76
Find image slices visible on a given plane.