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

Opened 2012-04-13T16:45:00-05:00

Last modified 2012-11-21T11:46:31-06:00

ImgPlus::validateAxes() may be too lax

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

Description

In implementing code I ran across the following problem with axis validation. If you create a 3 channel unsigned byte dataset but only specify two axes (X & Y) it can display poorly. Once you've created the dataset set it's merged flag true. Code that displays it may show it as grayscale. The last axis (which we want to be channel) is recorded as UNKNOWN. Maybe ImgPlus::validateAxes() should accept null or num axes == num dims. Or complain more loudly. Otherwise its a hard to debug error. (One could define a merged color dataset creator that would avoid these problems but plugin developers might run into the same problem).

Change History

comment:1 Changed 2012-07-12T17:01:13-05:00 by curtis

  • Milestone changed from imagej-2.0.0-beta3 to imagej-2.0.0-beta4

comment:2 Changed 2012-07-19T21:51:28-05:00 by dscho

  • Blocking 1349 added

comment:3 Changed 2012-09-10T15:48:12-05:00 by curtis

  • Milestone changed from imagej-2.0.0-beta4 to imagej-2.0.0-beta5

comment:4 Changed 2012-11-05T13:09:09-06:00 by bdezonia

  • Status changed from new to closed
  • Resolution set to fixed
  • Component changed from imglib to ij-data-model

With commit ebcd6c046d807652b18ac1dea6e5499fcdd01c3b i added validation code to DefaultDataset::setRGBMerged() which should keep this issue from arising.

comment:5 Changed 2012-11-21T10:09:26-06:00 by bdezonia

  • Blocking 1572 added; 1349 removed

comment:6 Changed 2012-11-21T11:46:31-06:00 by bdezonia

  • Milestone changed from imagej-2.0.0-beta7 to imagej-2.0.0-beta6