]> Creatis software - creaMaracasVisu.git/commitdiff
#3552 Bug VisuSliceImage bug YZ
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Wed, 20 Mar 2024 15:36:20 +0000 (16:36 +0100)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Wed, 20 Mar 2024 15:36:20 +0000 (16:36 +0100)
bbtk/src/bbcreaMaracasVisuSliceImage.cxx

index d5bd08cdd35d11ea16f4229371e5a7222debe955..9157de1f707f08cead723bb90fe0c86b97e3b37b 100644 (file)
@@ -88,6 +88,7 @@ void SliceImage::Process()
                // v3 = [ -1 ,0 , 0 ]
                // SetResliceAxesDirectionCosines(v1x,v2x,v3x,v1y,v2y,v3y,v1z,v2z,v3z);
               imageReslice->SetResliceAxesDirectionCosines( 0,1,0,    0,0,-1,   -1,0,0 );  
+           imageReslice->SetResliceAxesOrigin( slice*bbGetInputIn()->GetSpacing()[0] ,0 ,0);
          } else if (bbGetInputTypeOrientation()==-2)
          {
                // Orientation -2 = ZY