From c1b52c90d747fd4fd13a6ec2c50a4d76d88a51a5 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Fri, 7 Jun 2013 14:42:18 +0200 Subject: [PATCH] 2038 Feature Change of version v1_1_0 -> v1_1_1 2027 Feature ImageSlice Create differents Orientations --- CMakeLists.txt | 2 +- bbtk/src/bbcreaMaracasVisuSliceImage.cxx | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f896a6..93b210c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,7 @@ PROJECT(creaMaracasVisu) SET(PROJECT_MAJOR_VERSION 1) SET(PROJECT_MINOR_VERSION 1) -SET(PROJECT_BUILD_VERSION 0) +SET(PROJECT_BUILD_VERSION 1) #================================== diff --git a/bbtk/src/bbcreaMaracasVisuSliceImage.cxx b/bbtk/src/bbcreaMaracasVisuSliceImage.cxx index f55ea47..d8a4b75 100644 --- a/bbtk/src/bbcreaMaracasVisuSliceImage.cxx +++ b/bbtk/src/bbcreaMaracasVisuSliceImage.cxx @@ -45,17 +45,16 @@ void SliceImage::Process() if (bbGetInputTypeOrientation()==2) { - imageReslice->SetResliceAxesDirectionCosines(0,0,1, 1,0,0 ,0,1,0); // 2=YZ + imageReslice->SetResliceAxesDirectionCosines(0,0,-1, 1,0,0 ,0,-1,0); // 2=YZ + imageReslice->SetResliceAxesOrigin( bbGetInputZ()*bbGetInputIn()->GetSpacing()[0] ,0 ,0); } else if (bbGetInputTypeOrientation()==1) { imageReslice->SetResliceAxesDirectionCosines(1,0,0, 0,0,-1 ,0,1,0); // 1=XZ + imageReslice->SetResliceAxesOrigin(0, bbGetInputZ()*bbGetInputIn()->GetSpacing()[1],0 ); } else { imageReslice->SetResliceAxesDirectionCosines(1,0,0, 0,1,0 ,0,0,1); // 0=XY + imageReslice->SetResliceAxesOrigin(0,0, bbGetInputZ()*bbGetInputIn()->GetSpacing()[2] ); } - - - - imageReslice->SetResliceAxesOrigin(0,0, bbGetInputZ()*bbGetInputIn()->GetSpacing()[2] ); imageReslice->SetOutputDimensionality(2); imageReslice->SetInterpolationModeToLinear(); imagedata = imageReslice->GetOutput(); -- 2.47.1