Ticket #1281 (new defect)

Opened 8 years ago

Last modified 8 years ago

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


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 8 years ago by bdezonia

  • Blocking 1331 added

comment:2 Changed 8 years ago 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 8 years ago by bdezonia (previous) (diff)
Note: See TracTickets for help on using tickets.