NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #411 (closed task: fixed)

Opened 2011-03-30T14:24:36-05:00

Last modified 2011-03-30T14:30:09-05:00

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:


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 2011-03-30T14:24:41-05:00 by bdezonia

  • Status changed from new to accepted

comment:2 Changed 2011-03-30T14:30:09-05:00 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.