From fd5809bcc472277366296dec8e2cf13ef0fd970c Mon Sep 17 00:00:00 2001 From: Esteban Correa Date: Wed, 9 Jan 2013 17:36:23 +0100 Subject: [PATCH] Set image origin to {0.0,0.0,0.0} in imageChangeInformation Box --- bbtk/src/bbmaracasvisuImageChangeInformation.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bbtk/src/bbmaracasvisuImageChangeInformation.cxx b/bbtk/src/bbmaracasvisuImageChangeInformation.cxx index 9adbae8..de4e0fc 100644 --- a/bbtk/src/bbmaracasvisuImageChangeInformation.cxx +++ b/bbtk/src/bbmaracasvisuImageChangeInformation.cxx @@ -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); -- 2.47.1