vtkImageResample produces incorrect extents
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
input is a 128x128x64 image (extents 0-127,0-127,0-63), if I do the folowing:
resample->SetAxisMagnificationFactor(0, 4); resample->SetAxisMagnificationFactor(1, 4); resample->Update(); resample->UpdateWholeExtent(); resample->GetOutput()->Update();
int dims; resample->GetOutput()->GetDimensions(dims); resample->GetOutput()->Print( cout ); cout<<"Dims: "<<dims<<", "<<dims<<endl;
dims and dims contain "509" and the Print shows extents of 0-508 for the x and y direction.
Expected results are dims of 512 and extents 0-511
the problem appears to be in the "wholeMax" calculation of the ExecuteInformation function.