]> Creatis software - creaMaracasVisu.git/commitdiff
Set image origin to {0.0,0.0,0.0} in imageChangeInformation Box
authorEsteban Correa <correa@EI-MO-349.creatis.insa-lyon.fr>
Wed, 9 Jan 2013 16:36:23 +0000 (17:36 +0100)
committerEsteban Correa <correa@EI-MO-349.creatis.insa-lyon.fr>
Wed, 9 Jan 2013 16:36:23 +0000 (17:36 +0100)
bbtk/src/bbmaracasvisuImageChangeInformation.cxx

index 9adbae84db6c49f1d3f097cbb644948774483b6d..de4e0fc125400976ae792f080943cdeae05eb4c9 100644 (file)
@@ -40,7 +40,15 @@ void ImageChangeInformation::Process()
                        mchange->Delete();
                }
                mchange = vtkImageChangeInformation::New();
-               img->GetExtent( ext );                          
+               img->GetExtent( ext );  
+               
+               double origin[3];
+               origin[0]=0.0;
+               origin[1]=0.0;
+               origin[2]=0.0;
+                       
+               img->SetOrigin(origin);         
+               
                mchange->SetInput( img );
                mchange->SetExtentTranslation( -ext[0], -ext[2], -ext[4] );
                mchange->SetOutputOrigin (0, 0, 0);