From: Eduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Date: Fri, 7 Jun 2013 12:42:18 +0000 (+0200)
Subject: 2038		Feature			Change of version v1_1_0 -> v1_1_1
X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c1b52c90d747fd4fd13a6ec2c50a4d76d88a51a5;p=creaMaracasVisu.git

2038		Feature			Change of version v1_1_0 -> v1_1_1
 	2027		Feature			ImageSlice Create differents Orientations
---

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();