Page MenuHomePhabricator

ImageCropper cannot crop some images (4d?)
Open, HighPublic


I was not able to perform a cropping. Steps to reproduce:

  1. Start MITK in debug, load US4DCyl.nrrd and open the ImageCropper-plugin
  2. Select the loaded image in the datamanager
    • see how the UI of the plugin is enabled
  3. Create a new bounding shape
  4. Click on Crop

-> I get the message: The Cropping filter could not process because of: No overlap of the image and the cropping object.

Revisions and Commits

Event Timeline

kalali triaged this task as Normal priority.Feb 6 2020, 4:01 PM
kalali created this task.
kislinsk edited projects, added MITK (2020); removed MITK.Apr 15 2020, 7:08 AM
kislinsk added a subscriber: kislinsk.

Can confirm with US4DCyl. Masking works however. @thomass Any idea?

kislinsk renamed this task from ImageCropper does not crop in Debug mode to ImageCropper cannot crop some images (4d?).Apr 15 2020, 7:09 AM
kislinsk updated the task description. (Show Details)
thomass claimed this task.Apr 15 2020, 11:40 AM
thomass added a comment.EditedApr 15 2020, 12:22 PM

The reason seems to be that a BoundingShape as such is 3D with an index of size=3 that does not equal the index array of the 4D image. I will test the fix for other images to make sure.

thomass added a revision: Restricted Differential Revision.Apr 22 2020, 1:05 PM
kislinsk raised the priority of this task from Normal to High.Wed, May 6, 2:20 PM