<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><div class="gmail_quote"><br></div><div class="gmail_quote"> - David</div><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>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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></div></div>