int scalarSize = bbGetInputIn()->GetScalarSize();
int lineSize = inputdims[0]*scalarSize*nbScalComp;
int planeSize = inputdims[1]*lineSize;
+ int volumeSize = inputdims[2]*planeSize;
char *pixelsIn = (char *)bbGetInputIn()->GetScalarPointer();
char *pixelsOut = (char *)mImageOut->GetScalarPointer();
char *debPlanOut;
int i,j,k;
- if ( (bbGetInputAxis()=="X") || (bbGetInputAxis()=="x") )
+ if ( (bbGetInputAxis()=="O") || (bbGetInputAxis()=="o") )
+ {
+ pixelsIn = (char *)bbGetInputIn()->GetScalarPointer(0,0,0);
+ pixelsOut = (char *)mImageOut->GetScalarPointer(0,0,0);
+ memcpy(pixelsOut, pixelsIn, volumeSize );
+ } else if ( (bbGetInputAxis()=="X") || (bbGetInputAxis()=="x") )
{
for(k=0; k<inputdims[2]; k++) // iterate planes
BBTK_DESCRIPTION("flips a <vtkImageData*>");
BBTK_CATEGORY("application, image");
BBTK_INPUT(Flip, In, "image", vtkImageData *, "");
- BBTK_INPUT(Flip, Axis, "Axe (default Y) X Y Z", std::string, "");
+ BBTK_INPUT(Flip, Axis, "Axe (default Y) X Y Z O(original)", std::string, "");
BBTK_OUTPUT(Flip, Out, "fliped image", vtkImageData *, "");
BBTK_END_DESCRIBE_BLACK_BOX(Flip);
//=================================================================