Slicer
5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
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>
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 | |
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. More... | |
vtkSegmentationConverterRule * | CreateRuleInstance () override |
virtual const char * | GetClassName () |
unsigned int | GetConversionCost (vtkDataObject *sourceRepresentation=nullptr, vtkDataObject *targetRepresentation=nullptr) override |
Get the cost of the conversion. More... | |
const char * | GetName () override |
Human-readable name of the converter rule. More... | |
const char * | GetSourceRepresentationName () override |
Human-readable name of the source representation. More... | |
const char * | GetTargetRepresentationName () override |
Human-readable name of the target representation. More... | |
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. More... | |
bool | PostConvert (vtkSegmentation *segmentation) override |
Public Member Functions inherited from vtkSegmentationConverterRule | |
virtual vtkSegmentationConverterRule * | Clone () |
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 bool | PostConvert (vtkSegmentation *vtkNotUsed(segmentation)) |
virtual bool | PreConvert (vtkSegmentation *vtkNotUsed(segmentation)) |
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 vtkFractionalLabelmapToClosedSurfaceConversionRule * | New () |
static vtkFractionalLabelmapToClosedSurfaceConversionRule * | SafeDownCast (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 | GetJointSmoothingParameterName () |
static const std::string | GetSmoothingFactorParameterName () |
Conversion parameter: smoothing factor. More... | |
static int | IsTypeOf (const char *type) |
static vtkBinaryLabelmapToClosedSurfaceConversionRule * | New () |
static vtkBinaryLabelmapToClosedSurfaceConversionRule * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkSegmentationConverterRule | |
static unsigned int | GetConversionInfiniteCost () |
static int | IsTypeOf (const char *type) |
static vtkSegmentationConverterRule * | SafeDownCast (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. More... | |
void | operator= (const vtkSegmentationConverterRule &) |
vtkSegmentationConverterRule () | |
~vtkSegmentationConverterRule () override | |
Additional Inherited Members | |
Protected Attributes inherited from vtkBinaryLabelmapToClosedSurfaceConversionRule | |
std::map< vtkOrientedImageData *, vtkSmartPointer< vtkPolyData > > | JointSmoothCache |
Protected Attributes inherited from vtkSegmentationConverterRule | |
ConversionParameterListType | ConversionParameters |
bool | ReplaceTargetRepresentation {false} |
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.
typedef vtkBinaryLabelmapToClosedSurfaceConversionRule vtkFractionalLabelmapToClosedSurfaceConversionRule::Superclass |
Definition at line 44 of file vtkFractionalLabelmapToClosedSurfaceConversionRule.h.
|
protected |
|
overrideprotected |
|
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.
|
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.
|
overridevirtual |
Update the target representation based on the source representation.
Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.
|
overridevirtual |
Create instance of the default node. Similar to New but virtual method. Subclasses should implement this method by
Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.
|
virtual |
Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.
|
overridevirtual |
Get the cost of the conversion.
Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.
|
inlinestatic |
Conversion parameter: magnification factor.
Definition at line 39 of file vtkFractionalLabelmapToClosedSurfaceConversionRule.h.
|
inlineoverridevirtual |
Human-readable name of the converter rule.
Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.
Definition at line 64 of file vtkFractionalLabelmapToClosedSurfaceConversionRule.h.
|
inlineoverridevirtual |
Human-readable name of the source representation.
Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.
Definition at line 67 of file vtkFractionalLabelmapToClosedSurfaceConversionRule.h.
|
inlineoverridevirtual |
Human-readable name of the target representation.
Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.
Definition at line 70 of file vtkFractionalLabelmapToClosedSurfaceConversionRule.h.
|
inlinestatic |
Definition at line 40 of file vtkFractionalLabelmapToClosedSurfaceConversionRule.h.
|
virtual |
Reimplemented from vtkBinaryLabelmapToClosedSurfaceConversionRule.
|
static |
|
static |
|
protected |
This function adds a border around the image that contains the paddingConstant value
FractionalLabelMap | The image that is being padded |
paddingConstant | The value that is used to fill the new voxels |
|
static |