]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbcreaMaracasVisuSliceImage.cxx
no message
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuSliceImage.cxx
index cb13df8d9856ff8c6222e241dd21a513e6f7072e..c9117ac70f41fd7758a3fae322e54b3513497b4f 100644 (file)
@@ -9,22 +9,22 @@ BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,SliceImage)
 BBTK_BLACK_BOX_IMPLEMENTATION(SliceImage,bbtk::AtomicBlackBox);
 void SliceImage::Process()
 {
-       printf("EED 0 SliceImage::Process \n");
+       //printf("EED 0 SliceImage::Process \n");
        vtkImageData *imagedata=NULL;
 
-       std::cout<<"MSJ: test SliceImage::Process()"<<this<<std::endl;
+       //std::cout<<"MSJ: test SliceImage::Process()"<<this<<std::endl;
        if ( bbGetInputIn()!=NULL ){
 
          imageReslice->SetInput( bbGetInputIn() );
          imageReslice->SetInformationInput(bbGetInputIn() );
          imageReslice->SetResliceAxesDirectionCosines(1,0,0, 0,1,0 ,0,0,1);
-         imageReslice->SetResliceAxesOrigin(0,0, bbGetInputZ() );
+         imageReslice->SetResliceAxesOrigin(0,0, bbGetInputZ()*bbGetInputIn()->GetSpacing()[2] );
          imageReslice->SetOutputDimensionality(2);
          imageReslice->SetInterpolationModeToLinear();
           imagedata = imageReslice->GetOutput();
          imagedata->Update();
          imagedata->UpdateInformation();       
-         printf("EED 1 SliceImage::Process %p\n", imagedata);
+         //printf("EED 1 SliceImage::Process %p\n", imagedata);
   }
   bbSetOutputOut( imagedata );
 }