<div dir="ltr">Can you post a small, compilable example that illustrates the problem?<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 19, 2013 at 9:20 PM, Rick Frank <span dir="ltr">&lt;<a href="mailto:rickfrank@me.com" target="_blank">rickfrank@me.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi,<br>
<br>
I&#39;m getting some behavior I don&#39;t understand when trying to map gray floating point image to a color image<br>
<br>
What I&#39;m seeing is that the output is completely white.<br>
<br>
my code is roughly as follows<br>
<br>
filter-&gt;SetOutputFormatToRGBA()<br>
<br>
colorTable-&gt;SetTableRange(0,1)<br>
colorTable-&gt;SetHueRange(0,1);<br>
colorTable-&gt;SetSaturationRange(0,1);<br>
colorTable-&gt;SetValueRange(0,1);<br>
colorTable-&gt;SetRampToLinear();<br>
<br>
colorTable-&gt;ForceBuild();<br>
<br>
Now, when I trace through the code, the values set in the RGBA image look correct. But the ultimate rendered image is completely white.<br>
<br>
If I modify the code so that all the RGBA values are 1,0,0,255 the image is solid red. If I change the alpha to 64 nothing changes.<br>
<br>
So, I suspect it&#39;s the mapper - I use the same mapper - vtkImageMapper to display the color image by resetting the input connection:<br>
<br>
mapper-&gt;SetInputConnection(filter-&gt;GetOutputPort());<br>
imageActor-&gt;SetMapper(mapper);<br>
<br>
Do I need to make a change to the mapper to get the proper RGBA display?<br>
<br>
<br>
Thanks<br>
<br>
Rick<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>