21#ifndef __vtkFractionalLabelmapToClosedSurfaceConversionRule_h
22#define __vtkFractionalLabelmapToClosedSurfaceConversionRule_h
27#include "vtkSegmentationCoreConfigure.h"
60 unsigned int GetConversionCost(vtkDataObject* sourceRepresentation=
nullptr, vtkDataObject* targetRepresentation=
nullptr)
override;
63 const char*
GetName()
override {
return "Fractional labelmap to closed surface"; };
vtkBinaryLabelmapToClosedSurfaceConversionRule()
vtkSegmentationConverterRule * CreateRuleInstance() override
vtkDataObject * ConstructRepresentationObjectByRepresentation(std::string representationName) override
unsigned int GetConversionCost(vtkDataObject *sourceRepresentation=nullptr, vtkDataObject *targetRepresentation=nullptr) override
Get the cost of the conversion.
~vtkFractionalLabelmapToClosedSurfaceConversionRule() override
bool Convert(vtkSegment *segment) override
Update the target representation based on the source representation.
static const std::string GetThresholdFractionParameterName()
static const std::string GetFractionalLabelMapOversamplingFactorParameterName()
Conversion parameter: magnification factor.
vtkFractionalLabelmapToClosedSurfaceConversionRule()
vtkDataObject * ConstructRepresentationObjectByClass(std::string className) override
const char * GetName() override
Human-readable name of the converter rule.
void PadLabelmap(vtkOrientedImageData *fractionalLabelMap, double paddingConstant)
static vtkFractionalLabelmapToClosedSurfaceConversionRule * New()
const char * GetTargetRepresentationName() override
Human-readable name of the target representation.
const char * GetSourceRepresentationName() override
Human-readable name of the source representation.
Image data containing orientation information.
This class encapsulates a segment that is part of a segmentation.
vtkSegmentationConverterRule()
static const char * GetSegmentationFractionalLabelmapRepresentationName()
static const char * GetSegmentationClosedSurfaceRepresentationName()