Medical Imaging Interaction Toolkit
2023.04.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
"
19
#include <
MitkSegmentationExports.h
>
20
21
#include <
mitkImage.h
>
22
#include <
mitkImageAccessByItk.h
>
23
#include <
mitkImageCast.h
>
24
25
namespace
mitk
26
{
34
class
MITKSEGMENTATION_EXPORT
ImageToLiveWireContourFilter
:
public
ContourModelSource
35
{
36
public
:
37
mitkClassMacro
(
ImageToLiveWireContourFilter
,
ContourModelSource
);
38
itkFactorylessNewMacro(
Self
);
39
itkCloneMacro(
Self
);
40
41
typedef
ContourModel
OutputType
;
42
typedef
OutputType::Pointer
OutputTypePointer
;
43
typedef
mitk::Image
InputType
;
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
:
61
ImageToLiveWireContourFilter
();
62
63
~
ImageToLiveWireContourFilter
()
override
;
64
65
void
GenerateData()
override
;
66
67
void
GenerateOutputInformation()
override
{};
68
69
mitk::Point3D
m_StartPoint;
70
mitk::Point3D
m_EndPoint
;
71
72
mitk::Point3D
m_StartPointInIndex
;
73
mitk::Point3D
m_EndPointInIndex
;
74
75
private
:
76
template
<
typename
TPixel,
unsigned
int
VImageDimension>
77
void
ItkProcessImage(
const
itk::Image<TPixel, VImageDimension> *inputImage);
78
};
79
}
80
#endif
mitk::ImageToLiveWireContourFilter::OutputTypePointer
OutputType::Pointer OutputTypePointer
Definition:
mitkImageToLiveWireContourFilter.h:42
mitk::ImageToLiveWireContourFilter::m_EndPoint
mitk::Point3D m_EndPoint
Definition:
mitkImageToLiveWireContourFilter.h:70
mitkContourModelSource.h
mitkImage.h
mitkImageCast.h
mitkImageAccessByItk.h
mitk::ImageToLiveWireContourFilter::InputType
mitk::Image InputType
Definition:
mitkImageToLiveWireContourFilter.h:43
mitk::Image
Image class for storing images.
Definition:
mitkImage.h:69
itk::SmartPointer< Self >
mitk::ImageToLiveWireContourFilter::m_EndPointInIndex
mitk::Point3D m_EndPointInIndex
Definition:
mitkImageToLiveWireContourFilter.h:73
mitk::ImageToLiveWireContourFilter
Definition:
mitkImageToLiveWireContourFilter.h:34
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
RenderingTests.dox:1
mitkContourModel.h
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition:
mitkBaseDataSource.h:71
mitk::Point< ScalarType, 3 >
mitk::ImageToLiveWireContourFilter::m_StartPointInIndex
mitk::Point3D m_StartPointInIndex
Definition:
mitkImageToLiveWireContourFilter.h:72
mitk::ImageToLiveWireContourFilter::OutputType
ContourModel OutputType
Definition:
mitkImageToLiveWireContourFilter.h:39
mitk::ContourModel
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
Definition:
mitkContourModel.h:47
mitkCommon.h
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition:
MitkSegmentationExports.h:15
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition:
mitkCommon.h:36
MitkSegmentationExports.h
mitk::ContourModelSource
Superclass of all classes generating ContourModels.
Definition:
mitkContourModelSource.h:26
src
MITK
Modules
Segmentation
Algorithms
mitkImageToLiveWireContourFilter.h
Generated on Wed May 17 2023 16:26:08 for Medical Imaging Interaction Toolkit by
1.8.17