21#ifndef __vtkClosedSurfaceToBinaryLabelmapConversionRule_h
22#define __vtkClosedSurfaceToBinaryLabelmapConversionRule_h
28#include "vtkSegmentationCoreConfigure.h"
72 unsigned int GetConversionCost(vtkDataObject* sourceRepresentation=
nullptr, vtkDataObject* targetRepresentation=
nullptr)
override;
75 const char*
GetName()
override {
return "Closed surface to binary labelmap (simple image stencil)"; };
bool CalculateOutputGeometry(vtkPolyData *closedSurfacePolyData, vtkOrientedImageData *geometryImageData)
unsigned int GetConversionCost(vtkDataObject *sourceRepresentation=nullptr, vtkDataObject *targetRepresentation=nullptr) override
Get the cost of the conversion.
bool UseOutputImageDataGeometry
~vtkClosedSurfaceToBinaryLabelmapConversionRule() override
static vtkClosedSurfaceToBinaryLabelmapConversionRule * New()
static const std::string GetCollapseLabelmapsParameterName()
vtkSegmentationConverterRule * CreateRuleInstance() override
vtkDataObject * ConstructRepresentationObjectByClass(std::string className) override
const char * GetTargetRepresentationName() override
Human-readable name of the target representation.
vtkClosedSurfaceToBinaryLabelmapConversionRule()
bool PostConvert(vtkSegmentation *segmentation) override
const char * GetName() override
Human-readable name of the converter rule.
vtkDataObject * ConstructRepresentationObjectByRepresentation(std::string representationName) override
bool Convert(vtkSegment *segment) override
Update the target representation based on the source representation.
const char * GetSourceRepresentationName() override
Human-readable name of the source representation.
static const std::string GetCropToReferenceImageGeometryParameterName()
std::string GetDefaultImageGeometryStringForPolyData(vtkPolyData *polyData)
static const std::string GetOversamplingFactorParameterName()
Image data containing orientation information.
This class encapsulates a segment that is part of a segmentation.
vtkSegmentationConverterRule()
void operator=(const vtkSegmentationConverterRule &)
static const char * GetSegmentationClosedSurfaceRepresentationName()
static const char * GetSegmentationBinaryLabelmapRepresentationName()
This class encapsulates a segmentation that can contain multiple segments and multiple representation...