<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I meant to send this to the imagej-devel list...<br>
<br>
<div class="moz-forward-container">-------- Original Message
--------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
</th>
<td>IJ2 work/LUTs</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
<td>Tue, 07 Aug 2012 13:45:04 -0500</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
<td>Aivar Grislis <a class="moz-txt-link-rfc2396E" href="mailto:grislis@wisc.edu"><grislis@wisc.edu></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:imagej-devel@imagejdev.org">imagej-devel@imagejdev.org</a>, Curtis Rueden
<a class="moz-txt-link-rfc2396E" href="mailto:ctrueden@wisc.edu"><ctrueden@wisc.edu></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>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
</pre>
<br>
<br>
</div>
<br>
</body>
</html>