]> Creatis software - creaMaracasVisu.git/commitdiff
2038 Feature Change of version v1_1_0 -> v1_1_1
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Fri, 7 Jun 2013 12:42:18 +0000 (14:42 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Fri, 7 Jun 2013 12:42:18 +0000 (14:42 +0200)
  2027 Feature ImageSlice Create differents Orientations

CMakeLists.txt
bbtk/src/bbcreaMaracasVisuSliceImage.cxx

index 7f896a63b672ef4f315147d452b7bbac7957f9e7..93b210c9fda32bc7d0325c8bf53392dec7d672e0 100644 (file)
@@ -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)
 
 #==================================
 
index f55ea4703c40cff05c617ee760f19695708b5a3a..d8a4b758cdf7ba8559b6ca8e603d0508a5380147 100644 (file)
@@ -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();