From a0c7629578e2cacd44221ed5015454666f364df9 Mon Sep 17 00:00:00 2001 From: Romulo Pinho Date: Fri, 30 Mar 2012 13:26:27 +0200 Subject: [PATCH] bug in Z origin in clitkDicom2Image - bug happened when using --std_input --- tools/clitkDicom2Image.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.47.1