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 #1201 (closed defect: fixed)

Opened 2012-05-30T15:59:44-05:00

Last modified 2012-07-02T14:52:58-05:00

Implement overlay duplication by serialization

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b3-headless
Component: Data Model Version:
Severity: serious Keywords:
Cc: leek@… Blocked By:
Blocking: #1143

Description (last modified by bdezonia)

Recently a duplicate() functionality was added to Overlays. The implementation for this was left to each class to define. It turns out this works except for CompositeOverlay.

Lee recommends that duplication should be an operation that relies upon a serialize/deserialize step to/from memory from within AbstractOverlay::duplicate(). Other classes could override if needed (such as BinaryMaskOverlay) where efficiency might dictate another approach.

Change History

comment:1 Changed 2012-05-30T16:00:52-05:00 by bdezonia

I have some initial work done locally. It appears to get this working we'll need to make the Imglib RegionOfInterest classes implement Externalizable.

comment:2 Changed 2012-05-30T16:28:40-05:00 by bdezonia

  • Description modified

comment:3 Changed 2012-05-30T16:29:23-05:00 by bdezonia

  • Cc leek@… added

comment:4 Changed 2012-06-01T15:41:58-05:00 by bdezonia

I have at the moment avoided pushing Externalizable into Imglib by improving CompositeOverlay. The default implementation of duplicate() is in place and working.

CompositeOverlay needs to override some methods where it needs to composite results. This could be tricky. Must investigate.

comment:5 Changed 2012-06-08T12:36:37-05:00 by bdezonia

  • Blocking 1143 added

comment:6 Changed 2012-07-02T14:48:59-05:00 by bdezonia

The remaining issues with this ticket are tangential to the original problem. I have opened them as ticket #1268. The overlay duplication is mostly contained to IJ1. Closing.

comment:7 Changed 2012-07-02T14:52:58-05:00 by bdezonia

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