Ticket #312 (closed task: fixed)

Opened 9 years ago

Last modified 9 years ago

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

  • Status changed from new to accepted

comment:2 Changed 9 years ago 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 9 years ago 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.

Note: See TracTickets for help on using tickets.