Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitkImageToUnstructuredGridFilter.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 mitkImageToUnstructuredGridFilter_h
14
#define mitkImageToUnstructuredGridFilter_h
15
16
#include <
MitkAlgorithmsExtExports.h
>
17
18
#include <
mitkCommon.h
>
19
20
#include <
mitkImage.h
>
21
#include <
mitkUnstructuredGrid.h
>
22
#include <
mitkUnstructuredGridSource.h
>
23
24
namespace
mitk
25
{
33
class
MITKALGORITHMSEXT_EXPORT
ImageToUnstructuredGridFilter
:
public
UnstructuredGridSource
34
{
35
public
:
36
mitkClassMacro
(
ImageToUnstructuredGridFilter
,
UnstructuredGridSource
);
37
itkFactorylessNewMacro(
Self
);
38
itkCloneMacro(
Self
);
39
41
void
GenerateData()
override
;
42
44
void
GenerateOutputInformation()
override
;
45
47
const
mitk::Image
*GetInput(
void
)
const
;
48
49
mitk::Image
*GetInput(
void
);
50
52
using
itk::ProcessObject::SetInput;
53
virtual
void
SetInput(
const
mitk::Image
*image);
54
59
void
SetThreshold(
double
threshold);
60
62
double
GetThreshold();
63
65
itkGetMacro(NumberOfExtractedPoints,
int
);
66
67
protected :
68
70
ImageToUnstructuredGridFilter
();
71
73
~
ImageToUnstructuredGridFilter
()
override
;
74
78
template
<
typename
TPixel,
unsigned
int
VImageDimension>
79
void
ExtractPoints(
const
itk::Image<TPixel, VImageDimension> *image);
80
82
int
m_NumberOfExtractedPoints
;
83
private
:
84
89
mitk::BaseGeometry
*m_Geometry;
90
92
double
m_Threshold;
93
95
mitk::UnstructuredGrid::Pointer
m_UnstructGrid;
96
};
97
98
}
// namespace mitk
99
100
#endif
mitk::ImageToUnstructuredGridFilter::m_NumberOfExtractedPoints
int m_NumberOfExtractedPoints
Definition:
mitkImageToUnstructuredGridFilter.h:82
mitk::UnstructuredGridSource
Superclass of all classes generating unstructured grids (instances of class UnstructuredGrid) as outp...
Definition:
mitkUnstructuredGridSource.h:32
mitkImage.h
mitk::Image
Image class for storing images.
Definition:
mitkImage.h:69
MitkAlgorithmsExtExports.h
mitkUnstructuredGrid.h
MITKALGORITHMSEXT_EXPORT
#define MITKALGORITHMSEXT_EXPORT
Definition:
MitkAlgorithmsExtExports.h:15
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition:
mitkBaseDataSource.h:71
mitk::BaseGeometry
BaseGeometry Describes the geometry of a data object.
Definition:
mitkBaseGeometry.h:94
mitkCommon.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition:
mitkCommon.h:36
mitkUnstructuredGridSource.h
mitk::ImageToUnstructuredGridFilter
Converts an Image into an UnstructuredGrid represented by Points. The filter uses a Threshold to extr...
Definition:
mitkImageToUnstructuredGridFilter.h:33
mitk::BaseData::Pointer
itk::SmartPointer< Self > Pointer
Definition:
mitkBaseData.h:46
src
MITK
Modules
AlgorithmsExt
include
mitkImageToUnstructuredGridFilter.h
Generated on Sat Nov 23 2024 02:13:12 for Medical Imaging Interaction Toolkit by
1.8.17