<div dir="ltr"><div>Hi Federico,</div><div><br></div><div>Thanks for the note. I've pushed a patch for this, so that it can be fixed in VTK 7.1.</div><a href="http://gitlab.kitware.com/vtk/vtk/merge_requests/1998">http://gitlab.kitware.com/vtk/vtk/merge_requests/1998</a><div><br></div><div> - David<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 21, 2016 at 3:25 AM, Miorelli, Federico <span dir="ltr"><<a href="mailto:Federico.Miorelli@cgg.com" target="_blank">Federico.Miorelli@cgg.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-family:Consolas">Dear All,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas">It seems like vtkLookupTable does not handle correclty NaN values when the Log10 scale is used.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas">In this case, all the NaNs in the input are not mapped to NanColor but to the minimum range color.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas">Unless there is a reason for this, I believe the bug is in vtkLookupTable::<wbr>vtkApplyLogScale().<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas">Here is a patch that might fix it (VTK 6.3.0)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">--- old/vtkLookupTable.cxx Wed Jul 13 15:11:08 2016<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">+++ new/vtkLookupTable.cxx Wed Sep 21 10:54:24 2016<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">@@ -358,6 +358,11 @@<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">inline double vtkApplyLogScale(double v, const double range[2],<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> <wbr> const double logRange[2])<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">{<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">+ if (vtkMath::IsNan(v))<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">+ {<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">+ return v;<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">+ }<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">+
<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> // is the range set for negative numbers?<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> if (range[0] < 0)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> {<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas">Federico<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="IT" style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#0093d0">______</span></b><b><span lang="IT" style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#6a737b">
</span></b><b><span lang="IT" style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#8cc63f">______</span></b><b><span lang="IT" style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#6a737b">
</span></b><b><span lang="IT" style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#fcb034">______</span></b><b><span lang="IT" style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#6a737b"><u></u><u></u></span></b></p>
<p class="MsoNormal"><span lang="IT" style="color:#404040">Federico Miorelli</span><span lang="IT"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="IT" style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="IT" style="color:#1f497d">Senior R&D Geophysicist<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1f497d">Subsurface Imaging - General Geophysics
</span></b><b><span style="font-size:9.0pt;color:#1f497d">Italy</span></b><span style="font-size:8.0pt;color:#404040"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#404040"><u></u> <u></u></span></p>
</div>
<p class="MsoNormal"><i><span lang="EN-GB" style="font-size:7.0pt;font-family:"Arial","sans-serif";color:#6a737b">This email and any accompanying attachments are confidential. If you received this email by mistake, please delete<br>
it from your system. Any review, disclosure, copying, distribution, or use of the email by others is strictly prohibited.</span></i></p></div></blockquote></div></div></div></div>