Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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:
Collaboration diagram for vtkFractionalLabelmapToClosedSurfaceConversionRule:

Public Types

typedef vtkBinaryLabelmapToClosedSurfaceConversionRule Superclass
 
- Public Types inherited from vtkBinaryLabelmapToClosedSurfaceConversionRule
typedef vtkSegmentationConverterRule Superclass
 
- Public Types inherited from vtkSegmentationConverterRule
typedef vtkObject Superclass
 

Public Member Functions

vtkDataObject * ConstructRepresentationObjectByClass (std::string className) override
 
vtkDataObject * ConstructRepresentationObjectByRepresentation (std::string representationName) override
 
bool Convert (vtkSegment *segment) override
 Update the target representation based on the source representation.
 
vtkSegmentationConverterRuleCreateRuleInstance () override
 
virtual const char * GetClassName ()
 
unsigned int GetConversionCost (vtkDataObject *sourceRepresentation=nullptr, vtkDataObject *targetRepresentation=nullptr) override
 Get the cost of the conversion.
 
const char * GetName () override
 Human-readable name of the converter rule.
 
const char * GetSourceRepresentationName () override
 Human-readable name of the source representation.
 
const char * GetTargetRepresentationName () override
 Human-readable name of the target representation.
 
virtual int IsA (const char *type)
 
- Public Member Functions inherited from vtkBinaryLabelmapToClosedSurfaceConversionRule
bool CreateClosedSurface (vtkOrientedImageData *inputImage, vtkPolyData *outputPolydata, std::vector< int > values)
 Perform the actual binary labelmap to closed surface conversion.
 
bool PostConvert (vtkSegmentation *segmentation) override
 
- Public Member Functions inherited from vtkSegmentationConverterRule
virtual vtkSegmentationConverterRuleClone ()
 Create a new instance of this rule and copy its contents.
 
virtual std::string GetConversionParameter (const std::string &name)
 Get a conversion parameter value.
 
virtual std::string GetConversionParameterDescription (const std::string &name)
 Get a conversion parameter description.
 
virtual void GetRuleConversionParameters (vtkSegmentationConversionParameters *conversionParameters) VTK_EXPECTS(conversionParameters !
 
bool HasConversionParameter (const std::string &name)
 Determine if the rule has a parameter with a certain name.
 
virtual bool PostConvert (vtkSegmentation *vtkNotUsed(segmentation))
 
virtual bool PreConvert (vtkSegmentation *vtkNotUsed(segmentation))
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
virtual void SetConversionParameter (const std::string &name, const std::string &value, const std::string &description="")
 Set a conversion parameter.
 

Static Public Member Functions

static const std::string GetFractionalLabelMapOversamplingFactorParameterName ()
 Conversion parameter: magnification factor.
 
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.
 
static const std::string GetConversionMethodParameterName ()
 Conversion parameter: Conversion method (flying edges or surface nets)
 
static const std::string GetDecimationFactorParameterName ()
 Conversion parameter: decimation factor.
 
static const std::string GetJointSmoothingParameterName ()
 
static const std::string GetSmoothingFactorParameterName ()
 Conversion parameter: smoothing factor.
 
static const std::string GetSurfaceNetInternalSmoothingParameterName ()
 
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 PadLabelmap (vtkOrientedImageData *fractionalLabelMap, double paddingConstant)
 
 vtkFractionalLabelmapToClosedSurfaceConversionRule ()
 
 ~vtkFractionalLabelmapToClosedSurfaceConversionRule () override
 
- Protected Member Functions inherited from vtkBinaryLabelmapToClosedSurfaceConversionRule
bool IsLabelmapPaddingNecessary (vtkImageData *binaryLabelMap)
 
 vtkBinaryLabelmapToClosedSurfaceConversionRule ()
 
 ~vtkBinaryLabelmapToClosedSurfaceConversionRule () override
 
- Protected Member Functions inherited from vtkSegmentationConverterRule
virtual bool CreateTargetRepresentation (vtkSegment *segment)
 Update the target representation based on the source representation.
 
void operator= (const vtkSegmentationConverterRule &)
 
 vtkSegmentationConverterRule ()
 
 ~vtkSegmentationConverterRule () override
 

Additional Inherited Members

- Static Public Attributes inherited from vtkBinaryLabelmapToClosedSurfaceConversionRule
static const std::string CONVERSION_METHOD_FLYING_EDGES
 
static const std::string CONVERSION_METHOD_SURFACE_NETS
 
- Protected Attributes inherited from vtkBinaryLabelmapToClosedSurfaceConversionRule
std::map< vtkOrientedImageData *, vtkSmartPointer< vtkPolyData > > JointSmoothCache
 
- Protected Attributes inherited from vtkSegmentationConverterRule
vtkNew< vtkSegmentationConversionParametersConversionParameters
 
bool ReplaceTargetRepresentation {false}
 

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 33 of file vtkFractionalLabelmapToClosedSurfaceConversionRule.h.

Member Typedef Documentation

◆ Superclass

Constructor & Destructor Documentation

◆ vtkFractionalLabelmapToClosedSurfaceConversionRule()

vtkFractionalLabelmapToClosedSurfaceConversionRule::vtkFractionalLabelmapToClosedSurfaceConversionRule ( )
protected

◆ ~vtkFractionalLabelmapToClosedSurfaceConversionRule()

vtkFractionalLabelmapToClosedSurfaceConversionRule::~vtkFractionalLabelmapToClosedSurfaceConversionRule ( )
overrideprotected

Member Function Documentation

◆ ConstructRepresentationObjectByClass()

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

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()

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

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()

bool vtkFractionalLabelmapToClosedSurfaceConversionRule::Convert ( vtkSegment * segment)
overridevirtual

Update the target representation based on the source representation.

Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.

◆ CreateRuleInstance()

vtkSegmentationConverterRule * vtkFractionalLabelmapToClosedSurfaceConversionRule::CreateRuleInstance ( )
overridevirtual

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()

unsigned int vtkFractionalLabelmapToClosedSurfaceConversionRule::GetConversionCost ( vtkDataObject * sourceRepresentation = nullptr,
vtkDataObject * targetRepresentation = nullptr )
overridevirtual

Get the cost of the conversion.

Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.

◆ GetFractionalLabelMapOversamplingFactorParameterName()

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

Conversion parameter: magnification factor.

Definition at line 38 of file vtkFractionalLabelmapToClosedSurfaceConversionRule.h.

◆ GetName()

const char * vtkFractionalLabelmapToClosedSurfaceConversionRule::GetName ( )
inlineoverridevirtual

Human-readable name of the converter rule.

Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.

Definition at line 63 of file vtkFractionalLabelmapToClosedSurfaceConversionRule.h.

◆ GetSourceRepresentationName()

const char * vtkFractionalLabelmapToClosedSurfaceConversionRule::GetSourceRepresentationName ( )
inlineoverridevirtual

Human-readable name of the source representation.

Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.

Definition at line 66 of file vtkFractionalLabelmapToClosedSurfaceConversionRule.h.

◆ GetTargetRepresentationName()

const char * vtkFractionalLabelmapToClosedSurfaceConversionRule::GetTargetRepresentationName ( )
inlineoverridevirtual

Human-readable name of the target representation.

Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.

Definition at line 69 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

◆ 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: