Ticket #411 (closed task: fixed)

Opened 8 years ago

Last modified 8 years ago

Make plugins allow in place editing of images

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej-2.0-alpha1
Component: Core Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking:

Description

Now that the display code allows one to update an existing display rather than always hatching new ones it has become apparent that many plugins hatch new images. Fix this so that plugins don't hatch Datasets unless absolutely necessary.

Change History

comment:1 Changed 8 years ago by bdezonia

  • Status changed from new to accepted

comment:2 Changed 8 years ago by bdezonia

  • Status changed from accepted to closed
  • Resolution set to fixed

Fixed all existing core plugins.

Modified Dataset to allow it's internal Image data reference to be changed to a new image (via setImage()). This allows algorithms that change the shape of an Image to work transparently by hiding the change behind Dataset.

At the moment cannot test those methods that change shape (crop, flip vertically, flip horizontally, rotate 90 left, rotate 90 right) as they the display code does not know it needs to refresh. The debug log indicates the plugin ran and that the input and output Datsets were the same.

Note: See TracTickets for help on using tickets.