Medical Imaging Interaction Toolkit  2021.10.00
Medical Imaging Interaction Toolkit
mitkImageToLiveWireContourFilter.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 _mitkImageToLiveWireContourFilter_h__
14 #define _mitkImageToLiveWireContourFilter_h__
15 
16 #include "mitkCommon.h"
17 #include "mitkContourModel.h"
18 #include "mitkContourModelSource.h"
20 
21 #include <mitkImage.h>
22 #include <mitkImageAccessByItk.h>
23 #include <mitkImageCast.h>
24 
25 namespace mitk
26 {
35  {
36  public:
38  itkFactorylessNewMacro(Self);
39  itkCloneMacro(Self);
40 
41  typedef ContourModel OutputType;
44 
45  itkSetMacro(StartPoint, mitk::Point3D);
46  itkGetMacro(StartPoint, mitk::Point3D);
47 
48  itkSetMacro(EndPoint, mitk::Point3D);
49  itkGetMacro(EndPoint, mitk::Point3D);
50 
51  virtual void SetInput(const InputType *input);
52 
53  using Superclass::SetInput;
54  virtual void SetInput(unsigned int idx, const InputType *input);
55 
56  const InputType *GetInput(void);
57 
58  const InputType *GetInput(unsigned int idx);
59 
60  protected:
62 
63  ~ImageToLiveWireContourFilter() override;
64 
65  void GenerateData() override;
66 
67  void GenerateOutputInformation() override{};
68 
71 
74 
75  private:
76  template <typename TPixel, unsigned int VImageDimension>
77  void ItkProcessImage(const itk::Image<TPixel, VImageDimension> *inputImage);
78  };
79 }
80 #endif
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
Superclass of all classes generating some kind of mitk::BaseData.
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Superclass of all classes generating ContourModels.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
Image class for storing images.
Definition: mitkImage.h:69