Ticket #498 (closed enhancement: wontfix)

Opened 9 years ago

Last modified 9 years ago

Speed up RGBImageTranslator?

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: biweekly-2011: Jun-06 to Jun-17
Component: Legacy Compatibility Version:
Severity: serious Keywords:
Cc: Blocked By:


RGBImageTranslator is very general in making ImagePluses from Datasets. It makes no assumptions about which axes are present (requiring only x, y, and c==3) nor in what order they appear.

Since we pretty much assume the x axis is axis 0 and the y axis is axis 1 in many places in the code this generality may not be necessary. However it does allow API consumers to send this translator complex data.

None the less the current method might be slower than we want. We can make it faster via fixing the x and y axes and iterating over the others by setting plane position via dimensional axis indices and calling getPlane() using the plane position as needed. However for nonplanar data structures this could be problematic. The current implementation is immune to such problems.

Change History

comment:1 Changed 9 years ago by bdezonia

  • Summary changed from Spped up RGBImageTranslator? to Speed up RGBImageTranslator?

comment:2 Changed 9 years ago by bdezonia

  • Status changed from new to closed
  • Resolution set to wontfix

After further thought I think it does not make sense to change this. At best we could add a speical case for planar access and iterate grabbing planes and then doing direct pixel lookup in the returned arrays. This removes generality and adds little performance improvement.

comment:3 Changed 9 years ago by bdezonia

  • Milestone changed from imagej-2.0-beta1 to biweekly-2011: Jun-06 to Jun-17
Note: See TracTickets for help on using tickets.