Medical Imaging Interaction Toolkit
2016.11.0
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) static Pointer New() | |
Pointer | Clone () const |
virtual void | GenerateData () override |
virtual 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) static Pointer New() | |
Pointer | Clone () const |
virtual mitkBaseDataSourceGetOutputDeclarations itk::DataObject::Pointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
virtual 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... | |
Protected Member Functions | |
ImageToUnstructuredGridFilter () | |
virtual | ~ImageToUnstructuredGridFilter () |
template<typename TPixel , unsigned int VImageDimension> | |
void | ExtractPoints (const itk::Image< TPixel, VImageDimension > *image) |
Protected Member Functions inherited from mitk::UnstructuredGridSource | |
UnstructuredGridSource () | |
virtual | ~UnstructuredGridSource () |
Protected Member Functions inherited from mitk::BaseDataSource | |
BaseDataSource () | |
virtual | ~BaseDataSource () |
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 Public Member Functions inherited from mitk::BaseDataSource | |
static const char * | GetStaticNameOfClass () |
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 37 of file mitkImageToUnstructuredGridFilter.h.
|
protected |
Constructor
Definition at line 28 of file mitkImageToUnstructuredGridFilter.cpp.
References mitk::UnstructuredGrid::New().
|
protectedvirtual |
Destructor
Definition at line 33 of file mitkImageToUnstructuredGridFilter.cpp.
Pointer mitk::ImageToUnstructuredGridFilter::Clone | ( | ) | const |
|
protected |
Access method for extracting the points from the input image
Definition at line 83 of file mitkImageToUnstructuredGridFilter.cpp.
References mitk::New().
|
overridevirtual |
This method is called by Update().
Reimplemented in mitk::ImageToPointCloudFilter, and mitk::FeatureBasedEdgeDetectionFilter.
Definition at line 37 of file mitkImageToUnstructuredGridFilter.cpp.
References AccessByItk, mitk::BaseData::GetGeometry(), mitk::BaseData::IsInitialized(), and MITK_ERROR.
|
overridevirtual |
Initializes the output information
Reimplemented in mitk::ImageToPointCloudFilter, and mitk::FeatureBasedEdgeDetectionFilter.
Definition at line 137 of file mitkImageToUnstructuredGridFilter.cpp.
const mitk::Image * mitk::ImageToUnstructuredGridFilter::GetInput | ( | void | ) | const |
Returns a const reference to the input image
Definition at line 60 of file mitkImageToUnstructuredGridFilter.cpp.
References MITK_ERROR.
Referenced by mitk::FeatureBasedEdgeDetectionFilter::GenerateData(), and mitk::ImageToPointCloudFilter::GenerateData().
mitk::Image * mitk::ImageToUnstructuredGridFilter::GetInput | ( | void | ) |
Definition at line 71 of file mitkImageToUnstructuredGridFilter.cpp.
References MITK_ERROR.
|
virtual |
Reimplemented in mitk::ImageToPointCloudFilter.
double mitk::ImageToUnstructuredGridFilter::GetThreshold | ( | ) |
Returns the threshold
Definition at line 132 of file mitkImageToUnstructuredGridFilter.cpp.
mitk::ImageToUnstructuredGridFilter::mitkClassMacro | ( | ImageToUnstructuredGridFilter | , |
UnstructuredGridSource | |||
) |
|
virtual |
Definition at line 55 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 127 of file mitkImageToUnstructuredGridFilter.cpp.