From: Romulo Pinho Date: Fri, 30 Mar 2012 11:26:27 +0000 (+0200) Subject: bug in Z origin in clitkDicom2Image X-Git-Tag: v1.3.0~62 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a0c7629578e2cacd44221ed5015454666f364df9;p=clitk.git bug in Z origin in clitkDicom2Image - bug happened when using --std_input --- diff --git a/tools/clitkDicom2Image.cxx b/tools/clitkDicom2Image.cxx index 0ad79ef..6410714 100644 --- a/tools/clitkDicom2Image.cxx +++ b/tools/clitkDicom2Image.cxx @@ -158,7 +158,7 @@ int main(int argc, char * argv[]) theorigin[0] = -spacing[0]*size[0]/2.0; theorigin[1] = -spacing[1]*size[1]/2.0; modifier->SetInput(vtk_image); - modifier->SetOutputOrigin(theorigin[0], theorigin[1], theorigin[2]); + modifier->SetOutputOrigin(theorigin[0], theorigin[1], sliceLocations[sliceIndex[0]]); modifier->Update(); vvImage::Pointer focal_image = vvImage::New(); focal_image->AddVtkImage(modifier->GetOutput());