int ext[6];
vtkImageData* img = bbGetInputIn();
if(img!=NULL){
- img->GetExtent( ext );
- if (mchange!=NULL) { mchange->Delete(); }
+ if(mchange != NULL){
+ mchange->Delete();
+ }
mchange = vtkImageChangeInformation::New();
+ img->GetExtent( ext );
mchange->SetInput( img );
mchange->SetExtentTranslation( -ext[0], -ext[2], -ext[4] );
mchange->Update(); //important
}
void ImageChangeInformation::bbUserConstructor()
{
- mchange=NULL;
+ mchange = NULL;
bbSetOutputOut( NULL);
bbSetInputIn(NULL);
}
void ImageChangeInformation::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
{
- mchange=NULL;
+ mchange = NULL;
}
void ImageChangeInformation::bbUserDestructor()
{