Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkContourModelSubDivisionFilter.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 mitkContourModelSubDivisionFilter_h
14 #define mitkContourModelSubDivisionFilter_h
15 
16 #include <mitkCommon.h>
17 #include <mitkContourModel.h>
18 #include <mitkContourModelSource.h>
20 
21 namespace mitk
22 {
40  {
41  public:
43  itkFactorylessNewMacro(Self);
44  itkCloneMacro(Self);
45 
49  typedef OutputType::Pointer OutputTypePointer;
52 
60  void SetNumberOfIterations(int iterations) { this->m_InterpolationIterations = iterations; }
61  using Superclass::SetInput;
62 
66  virtual void SetInput(const InputType *input);
67 
72  virtual void SetInput(unsigned int idx, const InputType *input);
73 
77  const InputType *GetInput(void);
78 
83  const InputType *GetInput(unsigned int idx);
84 
85  protected:
87 
89 
90  void GenerateOutputInformation() override{};
91 
92  void GenerateData() override;
93 
95  };
96 }
97 
98 #endif
#define MITKCONTOURMODEL_EXPORT
Base class for all pipeline sources that produce mitk::ContourModel outputs.
Filter that interpolates a subdivision curve between control points of a contour.
void SetNumberOfIterations(int iterations)
Set the number of subdivision iterations.
const InputType * GetInput(void)
Get the first input contour model.
virtual void SetInput(unsigned int idx, const InputType *input)
Set the input contour model at the given index.
mitk::ContourModel InputType
The input data type.
virtual void SetInput(const InputType *input)
Set the input contour model.
mitkClassMacro(ContourModelSubDivisionFilter, ContourModelSource)
OutputType::Pointer OutputTypePointer
Smart pointer type for the output.
const InputType * GetInput(unsigned int idx)
Get the input contour model at the given index.
A time-resolved contour representation consisting of linked vertices in 3D space.
Find image slices visible on a given plane.