21 #ifndef __vtkBinaryLabelmapToClosedSurfaceConversionRule_h 22 #define __vtkBinaryLabelmapToClosedSurfaceConversionRule_h 28 #include "vtkSegmentationCoreConfigure.h" 31 #include <vtkPolyData.h> 69 bool CreateClosedSurface(
vtkOrientedImageData* inputImage, vtkPolyData* outputPolydata, std::vector<int> values);
79 unsigned int GetConversionCost(vtkDataObject* sourceRepresentation=
nullptr, vtkDataObject* targetRepresentation=
nullptr)
override;
82 const char*
GetName()
override {
return "Binary labelmap to closed surface"; };
93 bool IsLabelmapPaddingNecessary(vtkImageData* binaryLabelMap);
109 #endif // __vtkBinaryLabelmapToClosedSurfaceConversionRule_h Convert binary labelmap representation (vtkOrientedImageData type) to closed surface representation (...
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()
std::map< vtkOrientedImageData *, vtkSmartPointer< vtkPolyData > > JointSmoothCache
Abstract converter rule class. Subclasses perform conversions between specific representation types...
virtual vtkDataObject * ConstructRepresentationObjectByClass(std::string className)=0
static const std::string GetJointSmoothingParameterName()
Image data containing orientation information.
virtual unsigned int GetConversionCost(vtkDataObject *sourceRepresentation=nullptr, vtkDataObject *targetRepresentation=nullptr)
static const char * GetSegmentationClosedSurfaceRepresentationName()
This class encapsulates a segmentation that can contain multiple segments and multiple representation...
const char * GetTargetRepresentationName() override
Human-readable name of the target representation.
virtual vtkSegmentationConverterRule * CreateRuleInstance()=0
virtual bool Convert(vtkSegment *segment)=0
static const std::string GetDecimationFactorParameterName()
Conversion parameter: decimation factor.
const char * GetSourceRepresentationName() override
Human-readable name of the source representation.
const char * GetName() override
Human-readable name of the converter rule.
static const std::string GetSmoothingFactorParameterName()
Conversion parameter: smoothing factor.
static const std::string GetComputeSurfaceNormalsParameterName()
Conversion parameter: compute surface normals.