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 #1281 (new defect)

Opened 2012-07-05T13:03:37-05:00

Last modified 2012-08-29T16:45:52-05:00

Edit >> Selection >> Image To Selection broken

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b9-rois
Component: Legacy Compatibility Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #285

Description

Open boats. Create a new image (8-bit, 1024x1024). Run Edit >> Selection >> Image To Selection. A rectangular overlay is inserted. It is at the correct place and is the correct size. But the pixel data is all 0.

Change History

comment:1 Changed 2012-07-17T14:07:30-05:00 by bdezonia

  • Blocking 1331 added

comment:2 Changed 2012-08-29T16:45:52-05:00 by bdezonia

  • Blocking 285 added; 1331 removed
  • Milestone changed from imagej-2.0.0-beta4 to imagej-2.0.0-beta6

It seems that in IJ1 an ImageRoi is made. And it is a rectangle with internal image values. You can place it in image and drag it around. I think there might be a way to explode it so that pixels are draw into image.

Anyhow the legacy layer simply detects it as a Rectangle roi and makes a corresponding rectangle. The legacy layer needs to determine that the roi has an image associated with it and make an (as yet unwritten) ImageOverlay that can contain and draw the data. (In IJ1 ImageRoi overrides the draw() routine to draw the pixels as part of the roi over the already rendered canvas.)

Last edited 2012-08-29T17:15:33-05:00 by bdezonia