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

Opened 2012-07-09T12:58:17-05:00

Last modified 2012-12-12T10:39:09-06:00

Image > Stacks > Label not quite working

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b6-legacy
Component: Data Model Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1574


The Image > Stacks > Label command works fine with default dialog values. However if the "use overlay" checkbox is enabled then the resulting image has no labels. This is because we do not yet have a TextOverlay type. We must add it and translate them between IJ1's version in OverlayHarmonizer.

Change History

comment:1 Changed 2012-07-09T12:58:27-05:00 by bdezonia

  • Component changed from ij-core to ij-data-model

comment:2 Changed 2012-07-16T14:17:17-05:00 by bdezonia

  • Blocked By 1331 added

comment:3 Changed 2012-07-16T14:34:05-05:00 by bdezonia

  • Blocking 1331 added
  • Blocked By 1331 removed

comment:4 Changed 2012-09-07T11:17:50-05:00 by bdezonia

  • Blocking 1459 added; 1331 removed
  • Milestone changed from imagej-2.0.0-beta4 to imagej-2.0.0-beta5

comment:5 Changed 2012-11-30T11:01:36-06:00 by bdezonia

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from imagej-2.0.0-beta7 to imagej-2.0.0-beta6

With commit 07a3baed383e860d97c14c2aef7b5c171b6aa2f7 the label TextRois in the ImagePlus' overlay are now translated to TextOverlays. This class provides rudimentary translation support. Nothing is yet displayed but that and other issues wait to be addressed in a ticket I am adding immediately. Note that this change also fixes a bug in that previously the ImagePlus overlay was never translated to IJ2 overlays.

comment:6 Changed 2012-11-30T11:02:47-06:00 by bdezonia

  • Blocking 1574 added; 1459 removed

comment:7 Changed 2012-11-30T17:04:04-06:00 by bdezonia

There is another problem with the "Use Overlay" checkbox after this fix. While doing this fix the IJ1 Overlay associated with an ImagePlus is used for storing the nonactive Overlays of IJ2. Any plugin that messes with the Overlay can cause nonactive IJ2 ROIs to disappear. The Stack Label command is one such plugin when "Use Overlay" is selected.

comment:8 Changed 2012-12-12T10:37:58-06:00 by bdezonia

  • Blocked By 948, 1581 added

<incorrect text deleted>

Last edited 2012-12-12T10:38:59-06:00 by bdezonia

comment:9 Changed 2012-12-12T10:39:09-06:00 by bdezonia

  • Blocked By 948, 1581 removed