fedorov/Reporting — pull request #45 by naucoin (2014-12-31 20:45:02+00:00)
Title: 42 rebase add special handling to images that have geometric inconsistencies

BUG: recover from selecting segmentation with wrong geometry

Offer to the user the option of resampling the chosen segmentation,
preserving any labels in it, to create a new label volume for the segmentation.
Added a new helper class for a popup question, returns True or False for a Yes or No
answer.

Call the volumes logic method CheckForLabelVolumeValidity to get a
verbose message string if the label map and scalar volumes don't
match geometry wise. An empty string means that they match, otherwise
print it out in the error message box.

Remove GeometriesMatch since we're now using the more extensive volumes
logic volumesLogic.CheckForLabelVolumeValidity

Update script to check geometry before resampling, add a geometry check and
only resample if necessary. Still use the BRAINS resample, the volumes logic
resample doesn't enforce the ushort output type.

Issue #42