Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkFractionalLabelmapToClosedSurfaceConversionRule Class Reference

Convert Fractional labelmap representation (vtkOrientedImageData type) to closed surface representation (vtkPolyData type). The conversion algorithm performs a marching cubes operation on the image data followed by an optional decimation step. More...

#include <Libs/vtkSegmentationCore/vtkFractionalLabelmapToClosedSurfaceConversionRule.h>

Inheritance diagram for vtkFractionalLabelmapToClosedSurfaceConversionRule:
Inheritance graph
[legend]
Collaboration diagram for vtkFractionalLabelmapToClosedSurfaceConversionRule:
Collaboration graph
[legend]

Public Types

typedef vtkBinaryLabelmapToClosedSurfaceConversionRule Superclass
 
- Public Types inherited from vtkBinaryLabelmapToClosedSurfaceConversionRule
typedef vtkSegmentationConverterRule Superclass
 
- Public Types inherited from vtkSegmentationConverterRule
typedef std::map< std::string, std::pair< std::string, std::string > > ConversionParameterListType
 
typedef vtkObject Superclass
 

Public Member Functions

virtual vtkDataObject * ConstructRepresentationObjectByClass (std::string className) VTK_OVERRIDE
 
virtual vtkDataObject * ConstructRepresentationObjectByRepresentation (std::string representationName) VTK_OVERRIDE
 
virtual bool Convert (vtkDataObject *sourceRepresentation, vtkDataObject *targetRepresentation) VTK_OVERRIDE
 Update the target representation based on the source representation. More...
 
virtual vtkSegmentationConverterRuleCreateRuleInstance () VTK_OVERRIDE
 
virtual const char * GetClassName ()
 
virtual unsigned int GetConversionCost (vtkDataObject *sourceRepresentation=NULL, vtkDataObject *targetRepresentation=NULL) VTK_OVERRIDE
 Get the cost of the conversion. More...
 
virtual const char * GetName () VTK_OVERRIDE
 Human-readable name of the converter rule. More...
 
virtual const char * GetSourceRepresentationName () VTK_OVERRIDE
 Human-readable name of the source representation. More...
 
virtual const char * GetTargetRepresentationName () VTK_OVERRIDE
 Human-readable name of the target representation. More...
 
virtual int IsA (const char *type)
 
- Public Member Functions inherited from vtkSegmentationConverterRule
virtual vtkSegmentationConverterRuleClone ()
 Create a new instance of this rule and copy its contents. More...
 
virtual std::string GetConversionParameter (const std::string &name)
 Get a conversion parameter value. More...
 
virtual std::string GetConversionParameterDescription (const std::string &name)
 Get a conversion parameter description. More...
 
virtual void GetRuleConversionParameters (ConversionParameterListType &conversionParameters)
 
bool HasConversionParameter (const std::string &name)
 Determine if the rule has a parameter with a certain name. More...
 
virtual void SetConversionParameter (const std::string &name, const std::string &value, const std::string &description="")
 Set a conversion parameter. More...
 

Static Public Member Functions

static const std::string GetFractionalLabelMapOversamplingFactorParameterName ()
 Conversion parameter: magnification factor. More...
 
static const std::string GetThresholdFractionParameterName ()
 
static int IsTypeOf (const char *type)
 
static vtkFractionalLabelmapToClosedSurfaceConversionRuleNew ()
 
static vtkFractionalLabelmapToClosedSurfaceConversionRuleSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkBinaryLabelmapToClosedSurfaceConversionRule
static const std::string GetComputeSurfaceNormalsParameterName ()
 Conversion parameter: compute surface normals. More...
 
static const std::string GetDecimationFactorParameterName ()
 Conversion parameter: decimation factor. More...
 
static const std::string GetSmoothingFactorParameterName ()
 Conversion parameter: smoothing factor. More...
 
static int IsTypeOf (const char *type)
 
static vtkBinaryLabelmapToClosedSurfaceConversionRuleNew ()
 
static vtkBinaryLabelmapToClosedSurfaceConversionRuleSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkSegmentationConverterRule
static unsigned int GetConversionInfiniteCost ()
 
static int IsTypeOf (const char *type)
 
static vtkSegmentationConverterRuleSafeDownCast (vtkObject *o)
 

Protected Member Functions

void operator= (const vtkFractionalLabelmapToClosedSurfaceConversionRule &)
 
void PadLabelmap (vtkOrientedImageData *fractionalLabelMap, double paddingConstant)
 
 vtkFractionalLabelmapToClosedSurfaceConversionRule ()
 
 ~vtkFractionalLabelmapToClosedSurfaceConversionRule ()
 
- Protected Member Functions inherited from vtkBinaryLabelmapToClosedSurfaceConversionRule
bool IsLabelmapPaddingNecessary (vtkImageData *binaryLabelMap)
 
void operator= (const vtkBinaryLabelmapToClosedSurfaceConversionRule &)
 
 vtkBinaryLabelmapToClosedSurfaceConversionRule ()
 
 ~vtkBinaryLabelmapToClosedSurfaceConversionRule ()
 
- Protected Member Functions inherited from vtkSegmentationConverterRule
void operator= (const vtkSegmentationConverterRule &)
 
 vtkSegmentationConverterRule ()
 
 ~vtkSegmentationConverterRule ()
 

Additional Inherited Members

- Protected Attributes inherited from vtkSegmentationConverterRule
ConversionParameterListType ConversionParameters
 

Detailed Description

Convert Fractional labelmap representation (vtkOrientedImageData type) to closed surface representation (vtkPolyData type). The conversion algorithm performs a marching cubes operation on the image data followed by an optional decimation step.

Definition at line 34 of file vtkFractionalLabelmapToClosedSurfaceConversionRule.h.

Member Typedef Documentation

◆ Superclass

Constructor & Destructor Documentation

◆ vtkFractionalLabelmapToClosedSurfaceConversionRule()

vtkFractionalLabelmapToClosedSurfaceConversionRule::vtkFractionalLabelmapToClosedSurfaceConversionRule ( )
protected

◆ ~vtkFractionalLabelmapToClosedSurfaceConversionRule()

vtkFractionalLabelmapToClosedSurfaceConversionRule::~vtkFractionalLabelmapToClosedSurfaceConversionRule ( )
protected

Member Function Documentation

◆ ConstructRepresentationObjectByClass()

virtual vtkDataObject* vtkFractionalLabelmapToClosedSurfaceConversionRule::ConstructRepresentationObjectByClass ( std::string  className)
virtual

Constructs representation object from class name for the supported representation classes (typically source and target representation VTK classes, subclasses of vtkDataObject) Note: Need to take ownership of the created object! For example using vtkSmartPointer<vtkDataObject>::Take

Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.

◆ ConstructRepresentationObjectByRepresentation()

virtual vtkDataObject* vtkFractionalLabelmapToClosedSurfaceConversionRule::ConstructRepresentationObjectByRepresentation ( std::string  representationName)
virtual

Constructs representation object from representation name for the supported representation classes (typically source and target representation VTK classes, subclasses of vtkDataObject) Note: Need to take ownership of the created object! For example using vtkSmartPointer<vtkDataObject>::Take

Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.

◆ Convert()

virtual bool vtkFractionalLabelmapToClosedSurfaceConversionRule::Convert ( vtkDataObject *  sourceRepresentation,
vtkDataObject *  targetRepresentation 
)
virtual

Update the target representation based on the source representation.

Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.

◆ CreateRuleInstance()

virtual vtkSegmentationConverterRule* vtkFractionalLabelmapToClosedSurfaceConversionRule::CreateRuleInstance ( )
virtual

Create instance of the default node. Similar to New but virtual method. Subclasses should implement this method by

Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.

◆ GetClassName()

virtual const char* vtkFractionalLabelmapToClosedSurfaceConversionRule::GetClassName ( )
virtual

◆ GetConversionCost()

virtual unsigned int vtkFractionalLabelmapToClosedSurfaceConversionRule::GetConversionCost ( vtkDataObject *  sourceRepresentation = NULL,
vtkDataObject *  targetRepresentation = NULL 
)
virtual

Get the cost of the conversion.

Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.

◆ GetFractionalLabelMapOversamplingFactorParameterName()

static const std::string vtkFractionalLabelmapToClosedSurfaceConversionRule::GetFractionalLabelMapOversamplingFactorParameterName ( )
inlinestatic

Conversion parameter: magnification factor.

Definition at line 39 of file vtkFractionalLabelmapToClosedSurfaceConversionRule.h.

◆ GetName()

virtual const char* vtkFractionalLabelmapToClosedSurfaceConversionRule::GetName ( )
inlinevirtual

Human-readable name of the converter rule.

Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.

Definition at line 64 of file vtkFractionalLabelmapToClosedSurfaceConversionRule.h.

◆ GetSourceRepresentationName()

virtual const char* vtkFractionalLabelmapToClosedSurfaceConversionRule::GetSourceRepresentationName ( )
inlinevirtual

Human-readable name of the source representation.

Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.

Definition at line 67 of file vtkFractionalLabelmapToClosedSurfaceConversionRule.h.

◆ GetTargetRepresentationName()

virtual const char* vtkFractionalLabelmapToClosedSurfaceConversionRule::GetTargetRepresentationName ( )
inlinevirtual

Human-readable name of the target representation.

Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.

Definition at line 70 of file vtkFractionalLabelmapToClosedSurfaceConversionRule.h.

◆ GetThresholdFractionParameterName()

static const std::string vtkFractionalLabelmapToClosedSurfaceConversionRule::GetThresholdFractionParameterName ( )
inlinestatic

◆ IsA()

virtual int vtkFractionalLabelmapToClosedSurfaceConversionRule::IsA ( const char *  type)
virtual

◆ IsTypeOf()

static int vtkFractionalLabelmapToClosedSurfaceConversionRule::IsTypeOf ( const char *  type)
static

◆ New()

static vtkFractionalLabelmapToClosedSurfaceConversionRule* vtkFractionalLabelmapToClosedSurfaceConversionRule::New ( )
static

◆ operator=()

void vtkFractionalLabelmapToClosedSurfaceConversionRule::operator= ( const vtkFractionalLabelmapToClosedSurfaceConversionRule )
protected

◆ PadLabelmap()

void vtkFractionalLabelmapToClosedSurfaceConversionRule::PadLabelmap ( vtkOrientedImageData fractionalLabelMap,
double  paddingConstant 
)
protected

This function adds a border around the image that contains the paddingConstant value

Parameters
FractionalLabelMapThe image that is being padded
paddingConstantThe value that is used to fill the new voxels

◆ SafeDownCast()

static vtkFractionalLabelmapToClosedSurfaceConversionRule* vtkFractionalLabelmapToClosedSurfaceConversionRule::SafeDownCast ( vtkObject *  o)
static

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