int extMask[6];
vtkImageData *resultImage=NULL;
bbGetInputImage()->GetExtent( extImage );
- bbGetInputImage()->GetExtent( extMask );
+ bbGetInputMask()->GetExtent( extMask );
int dimXImage = extImage[1]-extImage[0]+1;
int dimYImage = extImage[3]-extImage[2]+1;
int dimZImage = extImage[5]-extImage[4]+1;
} //if dim
resultImage->Modified();
bbSetOutputOut( resultImage );
- } // if Image && Mask
+ } else {
+ if (bbGetInputType()==2)
+ {
+ bbSetOutputOut( bbGetInputImage() );
+ }
+ }// if Image && Mask
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)