From: dsarrut Date: Fri, 27 May 2011 09:23:55 +0000 (+0200) Subject: Remove debug X-Git-Tag: v1.3.0~338^2~4 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;ds=inline;h=832d162fe5569ee5f48a42a07c176cc7615b8a90;p=clitk.git Remove debug --- diff --git a/vv/vvMesh.cxx b/vv/vvMesh.cxx index 72ed60d..5b11d48 100644 --- a/vv/vvMesh.cxx +++ b/vv/vvMesh.cxx @@ -141,6 +141,7 @@ void vvMesh::ComputeMasks(vtkImageData* sample,bool extrude) double * samp_origin=sample->GetOrigin(); double * spacing=sample->GetSpacing(); binary_image->SetSpacing(spacing); + /// Put the origin on a voxel to avoid small skips binary_image->SetOrigin(floor((bounds[0]-samp_origin[0])/spacing[0]-2)*spacing[0]+samp_origin[0], floor((bounds[2]-samp_origin[1])/spacing[1]-2)*spacing[1]+samp_origin[1], @@ -173,10 +174,13 @@ void vvMesh::ComputeMasks(vtkImageData* sample,bool extrude) stencil->SetInput(binary_image); stencil->Update(); this->AddMask(stencil->GetOutput()); - //vtkSmartPointer w = vtkSmartPointer::New(); - //w->SetInput(stencil->GetOutput()); - //w->SetFileName("binary.mhd"); - //w->Write(); + + /* + vtkSmartPointer w = vtkSmartPointer::New(); + w->SetInput(stencil->GetOutput()); + w->SetFileName("binary.mhd"); + w->Write(); + */ } }