[ImageJ-devel] Fwd: IJ2 work/LUTs
Aivar Grislis
grislis at wisc.edu
Tue Aug 7 13:58:07 CDT 2012
I meant to send this to the imagej-devel list...
-------- Original Message --------
Subject: IJ2 work/LUTs
Date: Tue, 07 Aug 2012 13:45:04 -0500
From: Aivar Grislis <grislis at wisc.edu>
To: imagej-devel at imagejdev.org, Curtis Rueden <ctrueden at wisc.edu>
I've been looking at IJ2 trying to figure out how SLIM Plugin fits in.
I was looking at the LUT code & am interested in refactoring it.
I found some non-linearity bugs in the way LUTs are applied in the
AutoContrast and DefaultImageDisplay plugins that I could fix.
The LUT API could be improved. There are two kinds of LUTs, ColorTable8
and ColorTable16, the former is what's being used as a LUT, the latter
is in the codebase but not really used or displayed AFAIK.
This could be a Service or other Plugin. I would consolidate the
RealLUTConverter class into LUTs, LUTs would contain a ColorTable, the
API might be something like this:
// constructor
LUT(ColorTable colorTable);
// given a min/max range for the LUT, what is the color for current value?
ARGBType lookup(double min, double max, double value);
// get a swath of colors to use to display the LUT
ARGBType[] getColors(int bins);
Refactoring this isn't essential to SLIM Plugin, but it might be a good
way to get up to speed with IJ2 work.
Aivar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20120807/d0f3fab0/attachment.html>
More information about the ImageJ-devel
mailing list