Ticket #1525 (reviewing defect)
Opened 2012-10-15T13:11:10-05:00
Last modified 2013-07-22T11:45:37-05:00
Move some compositing code into Imglib
Reported by: | bdezonia | Owned by: | hinerm |
---|---|---|---|
Priority: | major | Milestone: | imagej2-b8-analysis |
Component: | ImgLib2 | Version: | |
Severity: | serious | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #1519 |
Description (last modified by bdezonia)
Right now DatasetView has a method that can take a set of data values and turn them into a ColorRGB. This is needed in a couples places in IJ2. Unfortunately it is done by replicating a compositing algorithm from the Projectors code of Imglib2. We need to change the Imglib projectors to allow one to query them with values and get values back as a result. So you could query a projector with channel values and get the RGBA type value back. Then eliminate the code in DefaultDatasetView that copies the Imglib logic.
(One thing to wonder; how will these two areas of code be affected when ticket #721 is addressed)
Change History
comment:3 Changed 2013-06-04T12:30:04-05:00 by bdezonia
- Blocking 1519 added; 1398 removed
- Milestone changed from imagej2-b7-ndim-data to imagej2-b8-analysis
comment:4 Changed 2013-07-22T11:45:37-05:00 by bdezonia
- Owner changed from bdezonia to hinerm
- Status changed from new to reviewing
Hinerm, you've done work on the projectors. Would you be willing to tackle this? The method in questions is DefaultDatasetVIew::getColor(channelCollection).