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