Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::LabelSetImageToSurfaceFilter Class Reference

#include <mitkLabelSetImageToSurfaceFilter.h>

Inheritance diagram for mitk::LabelSetImageToSurfaceFilter:
Collaboration diagram for mitk::LabelSetImageToSurfaceFilter:

Public Types

typedef LabelSetImage::PixelType LabelType
 
typedef std::map< LabelType, unsigned long > LabelMapType
 
typedef std::map< unsigned int, LabelTypeIndexToLabelMapType
 
- Public Types inherited from mitk::SurfaceSource
typedef SurfaceSource Self
 
typedef BaseDataSource Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef Surface OutputType
 
- Public Types inherited from mitk::BaseDataSource
typedef BaseDataSource Self
 
typedef itk::ProcessObject Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef BaseData OutputType
 
typedef itk::DataObject::DataObjectIdentifierType DataObjectIdentifierType
 

Public Member Functions

 mitkClassMacro (LabelSetImageToSurfaceFilter, SurfaceSource)
 
const mitk::ImageGetInput (void)
 
virtual void SetInput (const mitk::Image *image)
 
virtual void SetGenerateAllLabels (bool _arg)
 
virtual bool GetGenerateAllLabels ()
 
virtual void GenerateAllLabelsOn ()
 
virtual void GenerateAllLabelsOff ()
 
virtual void SetRequestedLabel (int _arg)
 
virtual int GetRequestedLabel ()
 
virtual void SetBackgroundLabel (int _arg)
 
virtual int GetBackgroundLabel ()
 
virtual void SetUseSmoothing (int _arg)
 
virtual void SetSigma (float _arg)
 
- Public Member Functions inherited from mitk::SurfaceSource
virtual std::vector< std::string > GetClassHierarchy () const override
 
virtual const char * GetClassName () const
 
Pointer Clone () const
 
OutputTypeGetOutput ()
 
const OutputTypeGetOutput () const
 
OutputTypeGetOutput (DataObjectPointerArraySizeType idx)
 
const OutputTypeGetOutput (DataObjectPointerArraySizeType idx) const
 
virtual itk::DataObject::Pointer MakeOutput (DataObjectPointerArraySizeType idx) override
 
virtual itk::DataObject::Pointer MakeOutput (const DataObjectIdentifierType &name) override
 
- Public Member Functions inherited from mitk::BaseDataSource
OutputTypeGetOutput ()
 
const OutputTypeGetOutput () const
 
OutputTypeGetOutput (DataObjectPointerArraySizeType idx)
 
const OutputTypeGetOutput (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::SurfaceSource
static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 
- Static Public Member Functions inherited from mitk::BaseDataSource
static const char * GetStaticNameOfClass ()
 

Protected Member Functions

 LabelSetImageToSurfaceFilter ()
 
virtual ~LabelSetImageToSurfaceFilter ()
 
template<class T1 , class T2 , class T3 >
void mitkVtkLinearTransformPoint (T1 matrix[4][4], T2 in[3], T3 out[3])
 
template<typename TPixel , unsigned int VImageDimension>
void InternalProcessing (const itk::Image< TPixel, VImageDimension > *input, mitk::Surface *surface)
 
virtual void GenerateData () override
 
virtual void GenerateOutputInformation () override
 
- Protected Member Functions inherited from mitk::SurfaceSource
 SurfaceSource ()
 
virtual ~SurfaceSource ()
 
- Protected Member Functions inherited from mitk::BaseDataSource
 BaseDataSource ()
 
virtual ~BaseDataSource ()
 

Protected Attributes

mitk::Image::Pointer m_ResultImage
 
bool m_GenerateAllLabels
 
int m_RequestedLabel
 
int m_BackgroundLabel
 
int m_UseSmoothing
 
float m_Sigma
 
LabelMapType m_AvailableLabels
 
IndexToLabelMapType m_IndexToLabels
 
mitk::Vector3D m_InputImageSpacing
 

Additional Inherited Members

- Static Protected Member Functions inherited from mitk::BaseDataSource
static Pointer New ()
 

Detailed Description

Generates surface meshes from a labelset image. If you want to calculate a surface representation for all available labels, you may call GenerateAllLabelsOn().

Definition at line 38 of file mitkLabelSetImageToSurfaceFilter.h.

Member Typedef Documentation

Definition at line 47 of file mitkLabelSetImageToSurfaceFilter.h.

Constructor & Destructor Documentation

mitk::LabelSetImageToSurfaceFilter::LabelSetImageToSurfaceFilter ( )
protected

Definition at line 41 of file mitkLabelSetImageToSurfaceFilter.cpp.

mitk::LabelSetImageToSurfaceFilter::~LabelSetImageToSurfaceFilter ( )
protectedvirtual

Definition at line 46 of file mitkLabelSetImageToSurfaceFilter.cpp.

Member Function Documentation

virtual void mitk::LabelSetImageToSurfaceFilter::GenerateAllLabelsOff ( )
virtual
virtual void mitk::LabelSetImageToSurfaceFilter::GenerateAllLabelsOn ( )
virtual
void mitk::LabelSetImageToSurfaceFilter::GenerateData ( )
overrideprotectedvirtual

Definition at line 76 of file mitkLabelSetImageToSurfaceFilter.cpp.

References AccessFixedDimensionByItk_1.

void mitk::LabelSetImageToSurfaceFilter::GenerateOutputInformation ( void  )
overrideprotectedvirtual

Definition at line 71 of file mitkLabelSetImageToSurfaceFilter.cpp.

virtual int mitk::LabelSetImageToSurfaceFilter::GetBackgroundLabel ( )
virtual

Gets the label value of the background. No surface will be generated for this label.

Parameters
_argthe label of the background, by default 0
virtual bool mitk::LabelSetImageToSurfaceFilter::GetGenerateAllLabels ( )
virtual
Returns
if all labels or only a specific label should be extracted.
const mitk::Image * mitk::LabelSetImageToSurfaceFilter::GetInput ( void  )

Returns a const pointer to the labelset image set as input

Definition at line 61 of file mitkLabelSetImageToSurfaceFilter.cpp.

virtual int mitk::LabelSetImageToSurfaceFilter::GetRequestedLabel ( )
virtual

Returns the label you want to extract. This method only has an effect, if GenerateAllLabels() is set to false

Returns
_arg the label to extract, by default 1
template<typename TPixel , unsigned int VDimension>
void mitk::LabelSetImageToSurfaceFilter::InternalProcessing ( const itk::Image< TPixel, VDimension > *  input,
mitk::Surface surface 
)
protected
mitk::LabelSetImageToSurfaceFilter::mitkClassMacro ( LabelSetImageToSurfaceFilter  ,
SurfaceSource   
)
template<class T1 , class T2 , class T3 >
void mitk::LabelSetImageToSurfaceFilter::mitkVtkLinearTransformPoint ( T1  matrix[4][4],
T2  in[3],
T3  out[3] 
)
inlineprotected

Transforms a point by a 4x4 matrix

Definition at line 121 of file mitkLabelSetImageToSurfaceFilter.h.

static Pointer mitk::LabelSetImageToSurfaceFilter::New ( )
static
virtual void mitk::LabelSetImageToSurfaceFilter::SetBackgroundLabel ( int  _arg)
virtual

Sets the label value of the background. No surface will be generated for this label.

Parameters
_argthe label of the background, by default 0
virtual void mitk::LabelSetImageToSurfaceFilter::SetGenerateAllLabels ( bool  _arg)
virtual

Set whether you want to extract all labesl (true) or a single one.

void mitk::LabelSetImageToSurfaceFilter::SetInput ( const mitk::Image image)
virtual

Definition at line 50 of file mitkLabelSetImageToSurfaceFilter.cpp.

virtual void mitk::LabelSetImageToSurfaceFilter::SetRequestedLabel ( int  _arg)
virtual

Set the label you want to extract. This method only has an effect, if GenerateAllLabels() is set to false

Parameters
_argthe label to extract, by default 1
virtual void mitk::LabelSetImageToSurfaceFilter::SetSigma ( float  _arg)
virtual

Sets the Sigma used in the gaussian smoothing

virtual void mitk::LabelSetImageToSurfaceFilter::SetUseSmoothing ( int  _arg)
virtual

Sets whether to provide a smoothed surface

Member Data Documentation

LabelMapType mitk::LabelSetImageToSurfaceFilter::m_AvailableLabels
protected

Definition at line 146 of file mitkLabelSetImageToSurfaceFilter.h.

int mitk::LabelSetImageToSurfaceFilter::m_BackgroundLabel
protected

Definition at line 140 of file mitkLabelSetImageToSurfaceFilter.h.

bool mitk::LabelSetImageToSurfaceFilter::m_GenerateAllLabels
protected

Definition at line 136 of file mitkLabelSetImageToSurfaceFilter.h.

IndexToLabelMapType mitk::LabelSetImageToSurfaceFilter::m_IndexToLabels
protected

Definition at line 148 of file mitkLabelSetImageToSurfaceFilter.h.

mitk::Vector3D mitk::LabelSetImageToSurfaceFilter::m_InputImageSpacing
protected

Definition at line 150 of file mitkLabelSetImageToSurfaceFilter.h.

int mitk::LabelSetImageToSurfaceFilter::m_RequestedLabel
protected

Definition at line 138 of file mitkLabelSetImageToSurfaceFilter.h.

mitk::Image::Pointer mitk::LabelSetImageToSurfaceFilter::m_ResultImage
protected

Definition at line 131 of file mitkLabelSetImageToSurfaceFilter.h.

float mitk::LabelSetImageToSurfaceFilter::m_Sigma
protected

Definition at line 144 of file mitkLabelSetImageToSurfaceFilter.h.

int mitk::LabelSetImageToSurfaceFilter::m_UseSmoothing
protected

Definition at line 142 of file mitkLabelSetImageToSurfaceFilter.h.


The documentation for this class was generated from the following files: