Skip to content

Commit 08a6726

Browse files
committed
default to no decimation in ExtractSurfaceFromSegmentation
Decimation creates irregular triangle sizes in the surface mesh, which may become a problem later in the workflow when mapping voxels onto the mesh
1 parent c9c8a89 commit 08a6726

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CemrgApp/Modules/CemrgAppModule/include/CemrgCommonUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class MITKCEMRGAPPMODULE_EXPORT CemrgCommonUtils {
7171

7272
//Mesh Utils
7373
static mitk::Surface::Pointer LoadVTKMesh(std::string path);
74-
static mitk::Surface::Pointer ExtractSurfaceFromSegmentation(mitk::Image::Pointer image, double thresh=0.5, double blur=0.8, double smoothIterations=3, double decimation=0.5);
74+
static mitk::Surface::Pointer ExtractSurfaceFromSegmentation(mitk::Image::Pointer image, double thresh=0.5, double blur=0.8, double smoothIterations=3, double decimation=0.0);
7575
static mitk::Surface::Pointer ClipWithSphere(mitk::Surface::Pointer surface, double x_c, double y_c, double z_c, double radius, QString saveToPath="");
7676
static void FlipXYPlane(mitk::Surface::Pointer surf, QString dir, QString vtkname="segmentation.vtk");
7777
static QString M3dlibParamFileGenerator(QString dir, QString filename="param-template.par", QString thicknessCalc="0");

0 commit comments

Comments
 (0)