<div dir="ltr"><div><div><div><div><div><div><div><div>Hello<br><br>Please keep the ML in the cc so everyone can provide.<br><br></div>You should be able to do that in the python shell.<br><br></div>Views->Python Shell<br></div><br></div>s = GetActiveSource()<br></div>r=Show(s)<br></div>l=r.LookupTable<br></div>l.RGBPoints<br><br><br></div>Best,<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote">On Thu, Apr 12, 2018 at 3:14 PM, Andrei Cimpoeru <span dir="ltr"><<a href="mailto:andrei.cimpoeru@cfms.org.uk" target="_blank">andrei.cimpoeru@cfms.org.uk</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">Dear Mathieu,<div><br></div><div>Please see the attached picture. I think that I can see a way to get back to the original data. Is there a change to access the table with the <b>Color Transfer Function Values?</b></div><div><br></div><div>Cheers,</div><div><br></div><div>Andrei</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 12, 2018 at 2:10 PM, Mathieu Westphal <span dir="ltr"><<a href="mailto:mathieu.westphal@kitware.com" target="_blank">mathieu.westphal@kitware.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"><div><div><div>Dear Andrei<br><br></div>There is no way to guess the pressure values with only the RGB data. One can only guess the range and the color map used for generating the image.<br></div>You will need to find the original data.<br><br></div>Best,<br></div><div class="gmail_extra"><br clear="all"><div><div class="m_3835936723365213025m_4616399942755073985gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div><div><div class="m_3835936723365213025h5">
<br><div class="gmail_quote">On Thu, Apr 12, 2018 at 2:59 PM, Andrei Cimpoeru <span dir="ltr"><<a href="mailto:andrei.cimpoeru@cfms.org.uk" target="_blank">andrei.cimpoeru@cfms.org.uk</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"><div><br></div>Hi Mathieu, <div><br></div><div>Thanks for getting back to me. Let's say that I have the image below (attached). If you load it in Paraview  you have a vector field of PNG consisting of RGB values. How do I turn these values back to pressure. </div><div>I am interested in this because I want to map the RGB colors back to pressure field. Is there any way to this using vtk-python? </div><div><br></div><div>Cheers,</div><div><br></div><div>Andrei </div><div><br></div><div><br></div></div><div class="m_3835936723365213025m_4616399942755073985HOEnZb"><div class="m_3835936723365213025m_4616399942755073985h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 12, 2018 at 12:00 PM, Mathieu Westphal <span dir="ltr"><<a href="mailto:mathieu.westphal@kitware.com" target="_blank">mathieu.westphal@kitware.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"><div><div><div>Dear Andrei,<br><br></div>I'm not sure to follow what your are trying to achieve. Please explain again.<br><br>In any case, the mapping between the pressure and the RGB values you see in paraview is controlled by<br></div>the Color Map Editor and the range of the data. All these tools are accessible in the Toolbar visible in the attached image, I've highligthed the Color Editor button.<br><br></div><div></div>Best regards,<br><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_3835936723365213025m_4616399942755073985m_6704201538325992282m_3957187972406776277gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote"><div><div class="m_3835936723365213025m_4616399942755073985m_6704201538325992282h5">On Thu, Apr 12, 2018 at 12:28 PM, Andrei Cimpoeru <span dir="ltr"><<a href="mailto:andrei.cimpoeru@cfms.org.uk" target="_blank">andrei.cimpoeru@cfms.org.uk</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_3835936723365213025m_4616399942755073985m_6704201538325992282h5"><div dir="ltr">Hi ,<div><br></div><div>I am currently working with Paraview  and deep learning models. I have created a set of images (.png) using Paraview. The images are related to the pressure field around a wing. When I load images back to Paraview all I can visualise are the RGB  values. </div><div><b>When the image are exported from Paraview the pressure field is transferred into RGB values. Is there a way to obtain the function that does that?</b></div><div>Instead of exporting to .png a data format that I like is the .vti. This format keep the current information about pressure, velocity, mach number etc. Is there something that I could export a slice  to .vti?</div><div><br></div><div> Many thanks and I am looking forward to hear from you.</div><div><br></div><div>Cheers,</div><div><br></div><div>Andrei</div><span class="m_3835936723365213025m_4616399942755073985m_6704201538325992282m_3957187972406776277HOEnZb"><font color="#888888"><div><br></div><div><br clear="all"><div><br></div>-- <br><div class="m_3835936723365213025m_4616399942755073985m_6704201538325992282m_3957187972406776277m_7350828664551642104gmail_signature" data-smartmail="gmail_signature"><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><b style="font-family:Arial;font-size:small">Andrei<span style="color:rgb(81,80,88)"> </span>Cimpoeru</b><span style="font-family:Arial;font-size:small;color:rgb(0,174,255)"> // </span><font style="font-family:Arial" size="2">CFD Engineer</font></div><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><font style="font-family:Arial" size="2"><br></font></div><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><a href="https://cfms.org.uk/news-events/events/2018/july/farnborough-international-airshow-2018/" target="_blank"><img style="width:500px;height:105px" src="https://cfms.org.uk/media/267028/fia-email-sig-blue-dark-3.jpg"></a></div><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><br><font face="Arial" size="1"><strong><span style="color:rgb(0,174,255)">e: </span></strong><a href="mailto:andrei.cimpoeru@cfms.org.uk" style="color:rgb(81,80,88)" target="_blank">andrei.cimpoeru@cfms.org.uk</a><wbr> <span style="color:rgb(0,174,255)"> </span><font color="#222222"> </font><font color="#00aeff"><b>t</b>:</font><font color="#222222"> 0117 906 1106</font> <font color="#222222"> </font><span style="color:rgb(0,174,255)"> <strong>w: </strong></span><a href="http://www.cfms.org.uk/" rel="noreferrer" style="color:rgb(81,80,88)" target="_blank">www.cfms.org.uk</a> <span style="color:rgb(0,174,255)"> </span></font></div><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><font face="Arial" size="1"><span style="color:rgb(81,80,88)">CFMS Services Ltd</span><span style="color:rgb(0,174,255)"> // </span><span style="color:rgb(81,80,88)">Bristol & Bath Science Park</span> <span style="color:rgb(0,174,255)">//</span> <span style="color:rgb(81,80,88)">Dirac Crescent</span> <span style="color:rgb(0,174,255)">//</span> <span style="color:rgb(81,80,88)">Emersons Green</span> <span style="color:rgb(0,174,255)">//</span> <span style="color:rgb(81,80,88)">Bristol</span> <span style="color:rgb(0,174,255)">//</span> <span style="color:rgb(81,80,88)">BS16 7FR</span> </font></div><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><font style="font-size:small" face="Verdana"><img src="http://cfms.org.uk/images/logo.png"> </font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><span style="font-family:Verdana"><span style="color:rgb(81,80,88);font-size:xx-small">CFMS Services Ltd is registered in England and Wales No 05742022 - a subsidiary of CFMS Ltd</span> <br><span style="color:rgb(81,80,88);font-size:xx-small">CFMS Services Ltd registered office // </span></span><font face="Verdana" color="#515058"><span style="font-size:xx-small">43 Queens Square // Bristol // BS1 4QP</span></font></div></div>
</div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">https://public.kitware.com/mai<wbr>lman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_3835936723365213025m_4616399942755073985m_6704201538325992282gmail_signature" data-smartmail="gmail_signature"><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><b style="font-family:Arial;font-size:small">Andrei<span style="color:rgb(81,80,88)"> </span>Cimpoeru</b><span style="font-family:Arial;font-size:small;color:rgb(0,174,255)"> // </span><font style="font-family:Arial" size="2">CFD Engineer</font></div><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><font style="font-family:Arial" size="2"><br></font></div><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><a href="https://cfms.org.uk/news-events/events/2018/july/farnborough-international-airshow-2018/" target="_blank"><img style="width:500px;height:105px" src="https://cfms.org.uk/media/267028/fia-email-sig-blue-dark-3.jpg"></a></div><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><br><font face="Arial" size="1"><strong><span style="color:rgb(0,174,255)">e: </span></strong><a href="mailto:andrei.cimpoeru@cfms.org.uk" style="color:rgb(81,80,88)" target="_blank">andrei.cimpoeru@cfms.org.uk</a><wbr> <span style="color:rgb(0,174,255)"> </span><font color="#222222"> </font><font color="#00aeff"><b>t</b>:</font><font color="#222222"> 0117 906 1106</font> <font color="#222222"> </font><span style="color:rgb(0,174,255)"> <strong>w: </strong></span><a href="http://www.cfms.org.uk/" rel="noreferrer" style="color:rgb(81,80,88)" target="_blank">www.cfms.org.uk</a> <span style="color:rgb(0,174,255)"> </span></font></div><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><font face="Arial" size="1"><span style="color:rgb(81,80,88)">CFMS Services Ltd</span><span style="color:rgb(0,174,255)"> // </span><span style="color:rgb(81,80,88)">Bristol & Bath Science Park</span> <span style="color:rgb(0,174,255)">//</span> <span style="color:rgb(81,80,88)">Dirac Crescent</span> <span style="color:rgb(0,174,255)">//</span> <span style="color:rgb(81,80,88)">Emersons Green</span> <span style="color:rgb(0,174,255)">//</span> <span style="color:rgb(81,80,88)">Bristol</span> <span style="color:rgb(0,174,255)">//</span> <span style="color:rgb(81,80,88)">BS16 7FR</span> </font></div><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><font style="font-size:small" face="Verdana"><img src="http://cfms.org.uk/images/logo.png"> </font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><span style="font-family:Verdana"><span style="color:rgb(81,80,88);font-size:xx-small">CFMS Services Ltd is registered in England and Wales No 05742022 - a subsidiary of CFMS Ltd</span> <br><span style="color:rgb(81,80,88);font-size:xx-small">CFMS Services Ltd registered office // </span></span><font face="Verdana" color="#515058"><span style="font-size:xx-small">43 Queens Square // Bristol // BS1 4QP</span></font></div></div>
</div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_3835936723365213025gmail_signature" data-smartmail="gmail_signature"><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><b style="font-family:Arial;font-size:small">Andrei<span style="color:rgb(81,80,88)"> </span>Cimpoeru</b><span style="font-family:Arial;font-size:small;color:rgb(0,174,255)"> // </span><font style="font-family:Arial" size="2">CFD Engineer</font></div><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><font style="font-family:Arial" size="2"><br></font></div><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><a href="https://cfms.org.uk/news-events/events/2018/july/farnborough-international-airshow-2018/" target="_blank"><img style="width:500px;height:105px" src="https://cfms.org.uk/media/267028/fia-email-sig-blue-dark-3.jpg"></a></div><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><br><font face="Arial" size="1"><strong><span style="color:rgb(0,174,255)">e: </span></strong><a href="mailto:andrei.cimpoeru@cfms.org.uk" style="color:rgb(81,80,88)" target="_blank">andrei.cimpoeru@cfms.org.uk</a><wbr> <span style="color:rgb(0,174,255)"> </span><font color="#222222"> </font><font color="#00aeff"><b>t</b>:</font><font color="#222222"> 0117 906 1106</font> <font color="#222222"> </font><span style="color:rgb(0,174,255)"> <strong>w: </strong></span><a href="http://www.cfms.org.uk/" rel="noreferrer" style="color:rgb(81,80,88)" target="_blank">www.cfms.org.uk</a> <span style="color:rgb(0,174,255)"> </span></font></div><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><font face="Arial" size="1"><span style="color:rgb(81,80,88)">CFMS Services Ltd</span><span style="color:rgb(0,174,255)"> // </span><span style="color:rgb(81,80,88)">Bristol & Bath Science Park</span> <span style="color:rgb(0,174,255)">//</span> <span style="color:rgb(81,80,88)">Dirac Crescent</span> <span style="color:rgb(0,174,255)">//</span> <span style="color:rgb(81,80,88)">Emersons Green</span> <span style="color:rgb(0,174,255)">//</span> <span style="color:rgb(81,80,88)">Bristol</span> <span style="color:rgb(0,174,255)">//</span> <span style="color:rgb(81,80,88)">BS16 7FR</span> </font></div><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><font style="font-size:small" face="Verdana"><img src="http://cfms.org.uk/images/logo.png"> </font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><span style="font-family:Verdana"><span style="color:rgb(81,80,88);font-size:xx-small">CFMS Services Ltd is registered in England and Wales No 05742022 - a subsidiary of CFMS Ltd</span> <br><span style="color:rgb(81,80,88);font-size:xx-small">CFMS Services Ltd registered office // </span></span><font face="Verdana" color="#515058"><span style="font-size:xx-small">43 Queens Square // Bristol // BS1 4QP</span></font></div></div>
</div>
</div></div></blockquote></div><br></div>