<div dir="ltr"><div dir="ltr">+1 for this feature, this will be of great help for us too !<br><br>The same "rough" effect is visible along the faces of the bounding box of the volume, will this improvement works when we use the SetCroppingRegionPlanes( ... ) method of the GPUVolumeMapper, ie without using clipping planes but "CroppingRegionPlanes" ?<br><br>Thanks !<br>Simon<br></div></div><br><div class="gmail_quote"><div dir="ltr">Le mer. 29 août 2018 à 15:52, Andras Lasso <<a href="mailto:lasso@queensu.ca" target="_blank">lasso@queensu.ca</a>> a écrit :<br></div><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 class="m_5339089100730225392m_-6223600407584368477WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">This is awesome! Thanks a lot for implementing this. It will greatly improve clipped volume visualization.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Andras<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Sankhesh Jhaveri <<a href="mailto:sankhesh.jhaveri@kitware.com" target="_blank">sankhesh.jhaveri@kitware.com</a>>
<br>
<b>Sent:</b> Wednesday, August 29, 2018 9:49 AM<br>
<b>To:</b> Andras Lasso <<a href="mailto:lasso@queensu.ca" target="_blank">lasso@queensu.ca</a>><br>
<b>Cc:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Subject:</b> Re: [vtkusers] Volume rendering produces rough surface at clipping plane<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p><span style="font-family:"Lucida Sans",sans-serif;color:#0b5394">Hi Andras,<u></u><u></u></span></p>
<p style="margin:1.2em!important"><span style="font-family:"Lucida Sans",sans-serif;color:#0b5394"><a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.kitware.com%2Fvtk%2Fvtk%2Fmerge_requests%2F4627&data=02%7C01%7Classo%40queensu.ca%7C1b0e2ad2d9874241678b08d60db63cd7%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636711473694883358&sdata=9QSPhtudVqpDJdcEPxqZWO9hV0iqEG%2Fmt58KwRe9w8I%3D&reserved=0" target="_blank">!4627</a>
 implements a mode in </span><code><span style="font-size:11.5pt;font-family:Consolas;color:#0b5394;border:solid #dadada 1.0pt;padding:0in;background:#e8e8e8">vtkVolumeProperty</span></code><span style="font-family:"Lucida Sans",sans-serif;color:#0b5394"> that
 lets you use custom intensity values for voxels in the clipped space when computing gradients at the clip face.<u></u><u></u></span></p>
<p style="margin:1.2em!important"><span style="font-family:"Lucida Sans",sans-serif;color:#0b5394">Best,<br>
Sankhesh<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:1.0pt;font-family:"Arial",sans-serif;color:#0b5394">​</span><span style="font-size:1.0pt;font-family:"Lucida Sans",sans-serif;color:#0b5394"><u></u><u></u></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Fri, Nov 3, 2017 at 10:48 AM Andras Lasso <<a href="mailto:lasso@queensu.ca" target="_blank">lasso@queensu.ca</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Hi all,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I’m working on visualizing cardiac images using volume rendering. I need to cut into the volume to see surfaces inside the heart, which works quite well by using clipping planes
 of the volume mapper. The only problem is that that surface at the cut plane looks very rough, which makes it difficult to distinguish from actual endocardial surfaces. If I “cut” the volume by setting voxel values outside the clipping box to “empty” (-1000
 = air intensity value) then the cut surface looks nice – smooth and flat. See example for both cutting method in the attached files.
<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Is there a way to change volume renderer to get smooth cut surfaces (the same look as we get by setting outside voxels to “empty” values)?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Andras<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">---<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">See full resolution images and more examples here:<u></u><u></u></p>
<p class="MsoNormal"><a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2F1drv.ms%2Ff%2Fs!Arm_AFxB9yqHsOsClG_QsMx-4sh8rg&data=02%7C01%7Classo%40queensu.ca%7C1b0e2ad2d9874241678b08d60db63cd7%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636711473694883358&sdata=Kv2zau7vHuPxMEosN89SF1IGYjCwCKQk0lrngO9Tnzg%3D&reserved=0" target="_blank">https://1drv.ms/f/s!Arm_AFxB9yqHsOsClG_QsMx-4sh8rg</a><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">CT volume can be downloaded from here:<u></u><u></u></p>
<p class="MsoNormal"><a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fslicer.kitware.com%2Fmidas3%2Fdownload%2Fitem%2F292309%2FCTA-cardio.nrrd&data=02%7C01%7Classo%40queensu.ca%7C1b0e2ad2d9874241678b08d60db63cd7%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636711473694893363&sdata=atKizvUvC92hjztLus1b6ybp8OrwZJh6%2B599fLLctbU%3D&reserved=0" target="_blank">http://slicer.kitware.com/midas3/download/item/292309/CTA-cardio.nrrd</a><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#595959">________________________</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#595959">Andras Lasso, PhD</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#595959">Senior Research Engineer, Associate Director (Engineering)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#595959">Laboratory for Percutaneous Surgery</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#595959">School of Computing, Queen's University</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#595959">Kingston, ON, Canada</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Powered by <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com&data=02%7C01%7Classo%40queensu.ca%7C1b0e2ad2d9874241678b08d60db63cd7%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636711473694893363&sdata=ZRfjX2PMLuebTLfEAI6BAwlcJJfS6pcq9XD7FZ13orU%3D&reserved=0" target="_blank">
www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7C1b0e2ad2d9874241678b08d60db63cd7%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636711473694903376&sdata=XJBH963yUgggk7W0IrZ9QlvSu11RcSUG%2FRcfMdU7DFs%3D&reserved=0" 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="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7C1b0e2ad2d9874241678b08d60db63cd7%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636711473694903376&sdata=pDypE3JBYa%2FB%2Foc%2BJXo7GQ%2Bgg4uUexo5jNlMZwRASpE%3D&reserved=0" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7C1b0e2ad2d9874241678b08d60db63cd7%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636711473694913376&sdata=zglxMXZOb8qtwFhuQa9pp3SUnyX3xPHz4BN1rIOvk4s%3D&reserved=0" target="_blank">
http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40queensu.ca%7C1b0e2ad2d9874241678b08d60db63cd7%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636711473694913376&sdata=390T8zwwdAIGas8hHZxmOhQZMnsVEZAfnqchhT6NVZ4%3D&reserved=0" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<div>
<div style="border:none;border-bottom:solid #eeeeee 1.0pt;padding:0in 0in 0in 0in">
<h5 style="margin-right:0in;margin-bottom:12.0pt;margin-left:0in;border:none;padding:0in">
<span style="font-size:13.0pt;font-family:"Arial",sans-serif;color:#0b4194">Sankhesh Jhaveri<u></u><u></u></span></h5>
</div>
<h6 style="margin-right:0in;margin-bottom:12.0pt;margin-left:0in" id="m_5339089100730225392m_-6223600407584368477inbox-inbox-inbox-inbox-inbox-inbox-inbox-inbox--sr-research-development-engineer-kitware-http-www-kitware-com-518-881-4417">
<em><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#0b5394;font-weight:normal">Sr. Research & Development Engineer</span></em><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#0b5394;font-weight:normal"> |
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2F&data=02%7C01%7Classo%40queensu.ca%7C1b0e2ad2d9874241678b08d60db63cd7%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636711473694923385&sdata=xG1z%2FYjSiFip4mRTr7C%2FjGrQgt2by0Ndw1H20yKomSU%3D&reserved=0" target="_blank">
Kitware</a> | (518) 881-4417<u></u><u></u></span></h6>
<div>
<p class="MsoNormal"><span style="font-size:1.0pt;font-family:"Arial",sans-serif;color:#00386b">​<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>
</div>

_______________________________________________<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/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" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_5339089100730225392gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>------------------------------------------------------------------<br>Simon Esneault<div>Rennes, France<br>------------------------------------------------------------------</div></div></div></div>