Page MenuHomePhabricator

Bounding object not displayed with 4D data
Closed, DuplicatePublic

Description

ImageCropper bounding object is not displayed with some 4D dataset. The problem comes from the line

size[i] = (aGeometry3D->GetExtentInMM(i)/2.0) - 1;

in mitkBoundingObject.cpp. The size[i] will be negative if the extent in mm / 2.0 is < 1.0. Removing the - 1 solves the issue.

Event Timeline

Thanks again for your patches. In the mean - time, the mitkBoundingObject.cpp file changed a little and I am not sure if your problems still persist. Could you please try again with your 4D dataset and tell us if it works or not? Thanks!