<div dir="ltr">Okay, here is a very simple work-around for this issue: Just call Build() on the table after you have set all the other table parameters.  Please let me know if this fixes the issue.<div><br></div><div>I've submitted a fix for mapper so that it will call Build() automatically.  I'm not sure why it didn't do this before.</div><div><br></div><div> - David</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 2, 2017 at 8:41 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I've discovered more about this issue.  The Above/Below colors will work if you call SetNumberOfColors after turning them on:<div><br></div><div><div>table->SetBelowRangeColor(1,0,<wbr>0,1);</div><div>table->SetAboveRangeColor(0,1,<wbr>0,1);</div><div>table->UseAboveRangeColorOn();</div><div>table->UseBelowRangeColorOn();</div><div>table->SetNumberOfColors(256);</div><div><br></div><div>I'm still investigating to see why this happens.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div> - David</div></font></span><div><div class="h5"><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 2, 2017 at 7:20 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">Hi Sophonet,</div><div class="gmail_quote"><br></div><div class="gmail_quote">I have confirmed that what you report is true: the vtkImageResliceMapper (and vtkImageSliceMapper) seem to ignore the AboveRangeColor and the BelowRangeColor.  This is also true for the current VTK master branch.  My current theory is that the mapper clamps the scalars to the range before they go through the lookup table.  Hopefully I'll have a fix for this soon.</div><div class="gmail_quote"><br></div><div class="gmail_quote">As a workaround (a inefficient workaround), you can use vtkImageMapToColors to apply the lookup table to the image before it goes to the mapper.</div><span class="m_-2391685435834316159gmail-HOEnZb"><font color="#888888"><div class="gmail_quote"><br></div><div class="gmail_quote"> - David</div></font></span><span class="m_-2391685435834316159gmail-"><div class="gmail_quote">   </div><div class="gmail_quote"><br></div><div class="gmail_quote">On Thu, Feb 2, 2017 at 5:10 AM, Sophonet <span dir="ltr"><<a href="mailto:vtk12af6bc42@kant.sophonet.de" target="_blank">vtk12af6bc42@kant.sophonet.de</a><wbr>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear list,<br>
<br>
for displaying images, I am using vtkImageResliceMapper. For changing the colormap, I set a dedicated color map to the imageSlice's property (which is a vtkLookupTable) and tell to use its scalar range:<br>
<br>
colorMap_->SetNumberOfTableVal<wbr>ues(256);<br>
colorMap_->SetRange(0, 1);<br>
<br>
imageProperty_->SetLookupTable<wbr>(colorMap_);<br>
imageProperty_->UseLookupTable<wbr>ScalarRangeOn();<br>
<br>
<br>
Now, when changing level/window interactively with the mouse, I am setting the range in the colorMap via<br>
<br>
double minmax[2];<br>
// set values of minmax correctly<br>
colorMap_->SetRange(minmax);<br>
<br>
The changes are displayed correctly - however, areas in which original scalars of the image are clipped, the resulting color is displayed as transparent. However, I would like to display the maximum / minimum value in the color table.<br>
<br>
I have tried using colorMap_->SetAboveRangeColor(<wbr>) and colorMap_->SetAboveRangeColorO<wbr>n() (likewise for ...BelowRange...), with no apparent effect.<br>
<br>
Any advice?<br>
<br>
I am using VTK 7.1.0.<br>
<br>
Thanks,<br>
<br>
     Sophonet<br></blockquote></div></span></div></div>
</blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div>