Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
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 _mitkImageToLiveWireContourFilter_h__
18 #define _mitkImageToLiveWireContourFilter_h__
19 
20 #include "mitkCommon.h"
21 #include "mitkContourModel.h"
22 #include "mitkContourModelSource.h"
24 
25 #include <mitkImage.h>
26 #include <mitkImageAccessByItk.h>
27 #include <mitkImageCast.h>
28 
29 namespace mitk
30 {
39  {
40  public:
42  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
43 
45  typedef OutputType::Pointer OutputTypePointer;
46  typedef mitk::Image InputType;
47 
48  itkSetMacro(StartPoint, mitk::Point3D);
49  itkGetMacro(StartPoint, mitk::Point3D);
50 
51  itkSetMacro(EndPoint, mitk::Point3D);
52  itkGetMacro(EndPoint, mitk::Point3D);
53 
54  virtual void SetInput(const InputType *input);
55 
56  using Superclass::SetInput;
57  virtual void SetInput(unsigned int idx, const InputType *input);
58 
59  const InputType *GetInput(void);
60 
61  const InputType *GetInput(unsigned int idx);
62 
63  protected:
65 
66  virtual ~ImageToLiveWireContourFilter();
67 
68  void GenerateData() override;
69 
70  void GenerateOutputInformation() override{};
71 
72  mitk::Point3D m_StartPoint;
74 
77 
78  private:
79  template <typename TPixel, unsigned int VImageDimension>
80  void ItkProcessImage(const itk::Image<TPixel, VImageDimension> *inputImage);
81  };
82 }
83 #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.
itkEventMacroDeclaration(FocusChangedEvent, itk::AnyEvent) class MITKCORE_EXPORT TestingRenderingManager typedef RenderingManager Superclass
Superclass of all classes generating ContourModels.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Image class for storing images.
Definition: mitkImage.h:76