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 #312 (closed task: fixed)

Opened 2011-01-10T14:50:39-06:00

Last modified 2011-01-15T14:12:20-06:00

Verify data compatibility with ImgLib

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: biweekly-2011: Jan-03 to Jan-14
Component: Core Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking:

Description

As currently designed IJ2 has two ways of manipuating data: through a Dataset interface and through direct manipulation of an Imglib Image. For now make sure that both methods are exactly compatible.

Change History

comment:1 Changed 2011-01-10T14:50:44-06:00 by bdezonia

  • Status changed from new to accepted

comment:2 Changed 2011-01-10T14:55:52-06:00 by bdezonia

Wrote a class in ij2-imglib called DataCompatibilityTest that exercises both data access methods for all types. Current checked in version passes because actual testing commented out. It turns out there are incompatibilities.

I have a version of the code that is fixed and compatible. However we need to determine whether to make these changes or not. As currently implemented IJ2 clamps pixel values to their appropriate ranges. Imglib does not. If we match Imglib and use my changed source some existing tests will break and will need to be eliminated.

This issue is a philosophical one about what the correct assignment behavior is when one hands data outside a type's range.

comment:3 Changed 2011-01-15T14:12:20-06:00 by bdezonia

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

Implemented tests and made code compatible. Will likely need to move some functionality into Imglib.