|
Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Converts an Image into an UnstructuredGrid represented by Points. The filter uses a Threshold to extract every pixel, with value higher than the threshold, as point. If no threshold is set, every pixel is extracted as a point. More...
#include <mitkImageToUnstructuredGridFilter.h>


Public Member Functions | |
| mitkClassMacro (ImageToUnstructuredGridFilter, UnstructuredGridSource) | |
| Pointer | Clone () const |
| void | GenerateData () override |
| void | GenerateOutputInformation () override |
| const mitk::Image * | GetInput (void) const |
| mitk::Image * | GetInput (void) |
| virtual void | SetInput (const mitk::Image *image) |
| void | SetThreshold (double threshold) |
| double | GetThreshold () |
| virtual int | GetNumberOfExtractedPoints () |
Public Member Functions inherited from mitk::UnstructuredGridSource | |
| mitkClassMacro (UnstructuredGridSource, BaseDataSource) | |
| Pointer | Clone () const |
| mitkBaseDataSourceGetOutputDeclarations itk::DataObject::Pointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
| itk::DataObject::Pointer | MakeOutput (const DataObjectIdentifierType &name) override |
Public Member Functions inherited from mitk::BaseDataSource | |
| virtual std::vector< std::string > | GetClassHierarchy () const |
| virtual const char * | GetClassName () const |
| OutputType * | GetOutput () |
| const OutputType * | GetOutput () const |
| OutputType * | GetOutput (DataObjectPointerArraySizeType idx) |
| const OutputType * | GetOutput (DataObjectPointerArraySizeType idx) const |
| virtual void | GraftOutput (OutputType *output) |
| Graft the specified BaseData onto this BaseDataSource's output. More... | |
| virtual void | GraftOutput (const DataObjectIdentifierType &key, OutputType *output) |
| virtual void | GraftNthOutput (unsigned int idx, OutputType *output) |
| Graft the specified base data object onto this BaseDataSource's idx'th output. More... | |
| bool | Updating () const |
| Access itk::ProcessObject::m_Updating. More... | |
Static Public Member Functions | |
| static Pointer | New () |
Static Public Member Functions inherited from mitk::UnstructuredGridSource | |
| static Pointer | New () |
Static Public Member Functions inherited from mitk::BaseDataSource | |
| static const char * | GetStaticNameOfClass () |
Protected Member Functions | |
| ImageToUnstructuredGridFilter () | |
| ~ImageToUnstructuredGridFilter () override | |
| template<typename TPixel , unsigned int VImageDimension> | |
| void | ExtractPoints (const itk::Image< TPixel, VImageDimension > *image) |
Protected Member Functions inherited from mitk::UnstructuredGridSource | |
| UnstructuredGridSource () | |
| ~UnstructuredGridSource () override | |
Protected Member Functions inherited from mitk::BaseDataSource | |
| BaseDataSource () | |
| ~BaseDataSource () override | |
Protected Attributes | |
| int | m_NumberOfExtractedPoints |
Additional Inherited Members | |
Public Types inherited from mitk::UnstructuredGridSource | |
| typedef mitk::UnstructuredGrid | OutputType |
Public Types inherited from mitk::BaseDataSource | |
| typedef BaseDataSource | Self |
| typedef itk::ProcessObject | Superclass |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| typedef BaseData | OutputType |
| typedef itk::DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
Static Protected Member Functions inherited from mitk::BaseDataSource | |
| static Pointer | New () |
Converts an Image into an UnstructuredGrid represented by Points. The filter uses a Threshold to extract every pixel, with value higher than the threshold, as point. If no threshold is set, every pixel is extracted as a point.
Definition at line 33 of file mitkImageToUnstructuredGridFilter.h.
|
protected |
Constructor
Definition at line 24 of file mitkImageToUnstructuredGridFilter.cpp.
References mitk::UnstructuredGrid::New().
|
overrideprotected |
Destructor
Definition at line 29 of file mitkImageToUnstructuredGridFilter.cpp.
| Pointer mitk::ImageToUnstructuredGridFilter::Clone | ( | ) | const |
|
protected |
Access method for extracting the points from the input image
Definition at line 79 of file mitkImageToUnstructuredGridFilter.cpp.
References mitk::BaseGeometry::IndexToWorld(), and m_NumberOfExtractedPoints.
Referenced by GenerateData().
|
override |
This method is called by Update().
Definition at line 33 of file mitkImageToUnstructuredGridFilter.cpp.
References AccessByItk, ExtractPoints(), mitk::BaseData::GetGeometry(), GetInput(), mitk::BaseDataSource::GetOutput(), image, mitk::BaseData::IsInitialized(), m_NumberOfExtractedPoints, and MITK_ERROR.
|
override |
Initializes the output information
Definition at line 133 of file mitkImageToUnstructuredGridFilter.cpp.
References GetInput(), and mitk::BaseDataSource::GetOutput().
| const mitk::Image * mitk::ImageToUnstructuredGridFilter::GetInput | ( | void | ) | const |
Returns a const reference to the input image
Definition at line 56 of file mitkImageToUnstructuredGridFilter.cpp.
References MITK_ERROR.
Referenced by GenerateData(), mitk::FeatureBasedEdgeDetectionFilter::GenerateData(), mitk::ImageToPointCloudFilter::GenerateData(), and GenerateOutputInformation().
| mitk::Image * mitk::ImageToUnstructuredGridFilter::GetInput | ( | void | ) |
Definition at line 67 of file mitkImageToUnstructuredGridFilter.cpp.
References MITK_ERROR.
|
virtual |
Returns the number of extracted points after edge detection
| double mitk::ImageToUnstructuredGridFilter::GetThreshold | ( | ) |
Returns the threshold
Definition at line 128 of file mitkImageToUnstructuredGridFilter.cpp.
| mitk::ImageToUnstructuredGridFilter::mitkClassMacro | ( | ImageToUnstructuredGridFilter | , |
| UnstructuredGridSource | |||
| ) |
|
static |
Referenced by mitk::FeatureBasedEdgeDetectionFilter::GenerateData().
|
virtual |
Definition at line 51 of file mitkImageToUnstructuredGridFilter.cpp.
| void mitk::ImageToUnstructuredGridFilter::SetThreshold | ( | double | threshold | ) |
Set the threshold for extracting points. Every pixel, which value is higher than this value, will be a point.
Definition at line 123 of file mitkImageToUnstructuredGridFilter.cpp.
|
protected |
The number of points extracted by the filter
Definition at line 82 of file mitkImageToUnstructuredGridFilter.h.
Referenced by ExtractPoints(), GenerateData(), and mitk::ImageToPointCloudFilter::GenerateData().