21 #ifndef __vtkClosedSurfaceToFractionalLabelmapConversionRule_h 22 #define __vtkClosedSurfaceToFractionalLabelmapConversionRule_h 27 #include <vtkSegmentationCoreConfigure.h> 31 #include "vtkSegmentationCoreConfigure.h" 34 #include <vtkPolyDataToImageStencil.h> 68 unsigned int GetConversionCost(vtkDataObject* sourceRepresentation=
nullptr, vtkDataObject* targetRepresentation=
nullptr)
override;
71 const char*
GetName()
override {
return "Closed surface to fractional labelmap (simple image stencil)"; };
93 #endif // __vtkClosedSurfaceToFractionalLabelmapConversionRule_h This class encapsulates a segment that is part of a segmentation.
static vtkClosedSurfaceToBinaryLabelmapConversionRule * New()
bool PostConvert(vtkSegmentation *vtkNotUsed(segmentation)) override
Overridden to prevent vtkClosedSurfaceToBinaryLabelmapConversionRule::PostConvert.
Abstract converter rule class. Subclasses perform conversions between specific representation types...
Convert closed surface representation (vtkPolyData type) to binary labelmap representation (vtkOrient...
static const char * GetSegmentationClosedSurfaceRepresentationName()
static const char * GetSegmentationFractionalLabelmapRepresentationName()
vtkSegmentationConverterRule * CreateRuleInstance() override
This class encapsulates a segmentation that can contain multiple segments and multiple representation...
vtkDataObject * ConstructRepresentationObjectByClass(std::string className) override
vtkDataObject * ConstructRepresentationObjectByRepresentation(std::string representationName) override
const char * GetTargetRepresentationName() override
Human-readable name of the target representation.
bool Convert(vtkSegment *segment) override
Update the target representation based on the source representation.
Convert closed surface representation (vtkPolyData type) to fractional labelmap representation (vtkOr...
unsigned int GetConversionCost(vtkDataObject *sourceRepresentation=nullptr, vtkDataObject *targetRepresentation=nullptr) override
Get the cost of the conversion.
const char * GetSourceRepresentationName() override
Human-readable name of the source representation.
const char * GetName() override
Human-readable name of the converter rule.