Page MenuHomePhabricator

Image cropper image selection widget accepts bounding box
Open, NormalPublic

Description

After changes have been made to enable the auto selection mode (see D375) I realized that the image selection widget automatically selects a bounding box if the image has been removed from the data storage.

I propose to extend the node predicate for the imageSelectionWidget to only allow images, e.g.

m_Controls.imageSelectionWidget->SetNodePredicate(mitk::NodePredicateAnd::New(
    mitk::TNodePredicateDataType<mitk::Image>::New(),
    mitk::NodePredicateNot::New(mitk::NodePredicateProperty::New("helper object"))));

Event Timeline

kalali triaged this task as Normal priority.Aug 24 2020, 12:45 PM
kalali created this task.
kalali renamed this task from Image cropper image selection widgets accepts bounding box to Image cropper image selection widget accepts bounding box.Aug 24 2020, 1:21 PM