imageReslice->SetResliceAxesOrigin( slice*bbGetInputIn()->GetSpacing()[0] ,0 ,0);
} else if (bbGetInputTypeOrientation()==2)
{
- // Orientation 2 = YZ
- // v1 = [ 0 , 0 ,-1 ]
- // v2 = [ 1 , 0 , 0 ]
- // v3 = [ 0 ,-1 , 0 ]
+ // Orientation 2 = Y-Z
+ // v1 = [ 0 , 1 ,0 ]
+ // v2 = [ 0 , 0 ,-1 ]
+ // 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
+ // v1 = [ 0 , 0 , 1 ]
+ // v2 = [ 0 , 1 , 0 ]
+ // 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->SetResliceAxesDirectionCosines( 0,0,1, 0,1,0, -1,0,0 );
imageReslice->SetResliceAxesOrigin( slice*bbGetInputIn()->GetSpacing()[0] ,0 ,0);
} else if (bbGetInputTypeOrientation()==1) {
- // Orientation 1 = XZ
+ // Orientation 1 = X-Z
+ // v1 = [ 1 , 0 , 0 ]
+ // v2 = [ 0 , 0 , -1 ]
+ // v3 = [ 0 ,1 , 0 ]
+ // SetResliceAxesDirectionCosines(v1x,v2x,v3x,v1y,v2y,v3y,v1z,v2z,v3z);
+ imageReslice->SetResliceAxesDirectionCosines( 1,0,0, 0,0,-1, 0,1,0 );
+ imageReslice->SetResliceAxesOrigin(0, slice*bbGetInputIn()->GetSpacing()[1],0 );
+ } else if (bbGetInputTypeOrientation()==-1) {
+ // Orientation -1 = XZ
// v1 = [ 1 , 0 , 0 ]
// v2 = [ 0 , 0 , 1 ]
// v3 = [ 0 ,-1 , 0 ]
// SetResliceAxesDirectionCosines(v1x,v2x,v3x,v1y,v2y,v3y,v1z,v2z,v3z);
- imageReslice->SetResliceAxesDirectionCosines(1,0,0, 0,0,-1 ,0,1,0);
+ imageReslice->SetResliceAxesDirectionCosines( 1,0,0, 0,0,1, 0,-1,0 );
imageReslice->SetResliceAxesOrigin(0, slice*bbGetInputIn()->GetSpacing()[1],0 );
} else
{
imageReslice->SetInterpolationModeToLinear();
+
+
+
+
+
+
+
//EED 2017-01-01 Migration VTK7
#if VTK_MAJOR_VERSION <= 5
imagedata = imageReslice->GetOutput();