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 <[email protected]>
To:     [email protected], Curtis Rueden <[email protected]>



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




_______________________________________________
ImageJ-devel mailing list
[email protected]
http://imagej.net/mailman/listinfo/imagej-devel

Reply via email to