<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Anja,<br>
<br>
SetColorWindow does set the range, but it doesn't necessarily go from 0
to the ColorWindow value; where the range starts and ends depends on
the value of ColorLevel. Use SetColorLevel to specify the center of the
ColorWindow.<br>
<br>
For example, if you set ColorWindow to 200 and ColorLevel to 100, then
the range goes from 0 to 200 as you describe in your second paragraph.
However, if you set the ColorLevel to 150, then the range goes from 50
to 250, and the outliers are mapped to 50 and 250, depending on whether
they are above or below the range.<br>
<br>
- Amy<br>
<br>
Anja Ende wrote:
<blockquote
cite="mid1f5d2b4f0608210617q784b8223ma600174d0838f5b3@mail.gmail.com"
type="cite">Hi all,<br>
<br>
Was looking at SetColorWindow and SetColorLevel functions in the
various vtk image viewers. I just have a confusion about what
SetColorLevel does.<br>
<br>
I think SetColorWindow basically maps the input pixel values to some
output pixel value range. S, if we have an input of say...0, 60,000 and
we set the color window to 0, 200, for example...than the input pixel
values are linearly mapped to this range and the outliers are mapped to
0 and 200 depending on which side they lie... Am I correct?
<br>
<br>
Now, I have no idea what SetColorLevel does? I know that it seems to be
related soemhow to the brightness of the image and I guess it is
scaling the lower intensity pixels... However, can someone explain what
exactly it is doing to the pixel values...
<br>
<br>
For example, if I map the input values of 0-60000 to 0-200 and set the
color level to 100, what exacxtly will it do to the pixel values...<br>
<br>
Sorry for asking such a newbie question...<br>
<br>
Thanks,<br>
<br>
Anja
<br>
<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
</body>
</html>