Medical Imaging Interaction Toolkit  2016.11.0
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,
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 _mitkContourModelSubDivisionFilter_h__
18 #define _mitkContourModelSubDivisionFilter_h__
19 
20 #include "mitkCommon.h"
21 #include "mitkContourModel.h"
22 #include "mitkContourModelSource.h"
24 
25 namespace mitk
26 {
40  {
41  public:
43  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
44 
46  typedef OutputType::Pointer OutputTypePointer;
48 
53  void SetNumberOfIterations(int iterations) { this->m_InterpolationIterations = iterations; }
54  using Superclass::SetInput;
55 
56  virtual void SetInput(const InputType *input);
57 
58  virtual void SetInput(unsigned int idx, const InputType *input);
59 
60  const InputType *GetInput(void);
61 
62  const InputType *GetInput(unsigned int idx);
63 
64  protected:
66 
68 
69  void GenerateOutputInformation() override{};
70 
71  void GenerateData() override;
72 
74  };
75 }
76 
77 #endif
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
#define MITKCONTOURMODEL_EXPORT
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
Superclass of all classes generating ContourModels.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
This filter interpolates a subdivision curve between control points of the contour. For inserting subpoints Dyn-Levin-Gregory (DLG) interpolation scheme is used. Interpolating a cruve subdivision is done by: F2i = Ci F2i+1 = -1/16Ci-1 + 9/16Ci + 9/16Ci+1 - 1/16Ci+2.