21 #ifndef __vtkClosedSurfaceToBinaryLabelmapConversionRule_h 22 #define __vtkClosedSurfaceToBinaryLabelmapConversionRule_h 28 #include "vtkSegmentationCoreConfigure.h" 73 unsigned int GetConversionCost(vtkDataObject* sourceRepresentation=
nullptr, vtkDataObject* targetRepresentation=
nullptr)
override;
76 const char*
GetName()
override {
return "Closed surface to binary labelmap (simple image stencil)"; };
84 vtkSetMacro(UseOutputImageDataGeometry,
bool);
92 bool CalculateOutputGeometry(vtkPolyData* closedSurfacePolyData,
vtkOrientedImageData* geometryImageData);
99 std::string GetDefaultImageGeometryStringForPolyData(vtkPolyData* polyData);
107 bool UseOutputImageDataGeometry{
false};
118 #endif // __vtkClosedSurfaceToBinaryLabelmapConversionRule_h This class encapsulates a segment that is part of a segmentation.
virtual vtkDataObject * ConstructRepresentationObjectByRepresentation(std::string representationName)=0
virtual bool PostConvert(vtkSegmentation *vtkNotUsed(segmentation))
void operator=(const vtkSegmentationConverterRule &)
static const char * GetSegmentationBinaryLabelmapRepresentationName()
static const std::string GetOversamplingFactorParameterName()
Abstract converter rule class. Subclasses perform conversions between specific representation types...
virtual vtkDataObject * ConstructRepresentationObjectByClass(std::string className)=0
const char * GetSourceRepresentationName() override
Human-readable name of the source representation.
Image data containing orientation information.
static const std::string GetCollapseLabelmapsParameterName()
Convert closed surface representation (vtkPolyData type) to binary labelmap representation (vtkOrient...
virtual unsigned int GetConversionCost(vtkDataObject *sourceRepresentation=nullptr, vtkDataObject *targetRepresentation=nullptr)
static const char * GetSegmentationClosedSurfaceRepresentationName()
const char * GetName() override
Human-readable name of the converter rule.
This class encapsulates a segmentation that can contain multiple segments and multiple representation...
static const std::string GetCropToReferenceImageGeometryParameterName()
virtual vtkSegmentationConverterRule * CreateRuleInstance()=0
virtual bool Convert(vtkSegment *segment)=0
const char * GetTargetRepresentationName() override
Human-readable name of the target representation.