<div dir="ltr"><div dir="ltr"><div>Hi Matt, <br></div><div><br></div><div>Units are intended to be used to describe the quantity of a given object. Units should help the application to be smarter about how the user can access/view/interact with the data. For example, units help the user by displaying the current unit in spinboxes as a suffix (1.3mm instead of 1.3). <br></div><div><br></div><div>For more details, see <a href="https://www.slicer.org/wiki/Documentation/Nightly/Developers/Units">here</a></div><div><br></div><div>Jc<br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 21, 2018 at 9:28 AM Matthew Troke <<a href="mailto:matthew.troke@avalonholographics.com">matthew.troke@avalonholographics.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Could you elaborate a little more on support for units in Slicer? What do you mean by "built-in"?</div><div><br></div><div>Matt<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 20, 2018 at 10:41 PM Jean-Christophe Fillion-Robin <<a href="mailto:jcfr@kitware.com" target="_blank">jcfr@kitware.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hi Gavin,<div dir="auto"><br></div><div dir="auto">If you are working with medical data, you could look at 3D slicer (<a href="https://slicer.org" target="_blank">https://slicer.org</a>), it leverages VTK and ITK and also has the notion of units built-in.</div><div dir="auto"><br></div><div dir="auto">Hth</div><div dir="auto">Jc</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 20, 2018, 9:13 AM David Gobbi <<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Gavin,<div><br></div><div>Using mm for medical image data (with the exception of microscopy) is the most common choice.  I certainly wouldn't recommend using anything else.  I've also noticed the need to tweak volume rendering depending on resolution.</div><div><br></div><div>  David</div><div><br><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 20, 2018 at 8:00 AM Wheeler, Gavin via vtkusers <<a href="mailto:vtkusers@public.kitware.com" rel="noreferrer" target="_blank">vtkusers@public.kitware.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">
<div class="m_8024215934290654136m_-8973629384746662316m_-2011634890746741056m_5742490606079986046WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">We’ve not been using OpenVR directly, but have been using it indirectly with medical data. We ended up using m as the real world units,
 and then scaling loaded medical data by a factor of 1000 to convert from the commonly used mm, to m. This has worked well, but there are the odd gotchas when doing this– watch out for things like volume rendering step size which you may also need to scale.<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">Gavin Wheeler<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 lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> vtkusers <<a href="mailto:vtkusers-bounces@public.kitware.com" rel="noreferrer" target="_blank">vtkusers-bounces@public.kitware.com</a>>
<b>On Behalf Of </b>Ken Martin<br>
<b>Sent:</b> 19 November 2018 16:22<br>
<b>To:</b> Dave Demarle <<a href="mailto:dave.demarle@kitware.com" rel="noreferrer" target="_blank">dave.demarle@kitware.com</a>><br>
<b>Cc:</b> <a href="mailto:vtkusers@public.kitware.com" rel="noreferrer" target="_blank">vtkusers@public.kitware.com</a><br>
<b>Subject:</b> Re: [vtkusers] World Units<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Although the OpenVR module does use the notion of a physical to world transformation to map between meters in the VR room and the world coordinates.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Mon, Nov 19, 2018 at 9:57 AM David E DeMarle <<a href="mailto:dave.demarle@kitware.com" rel="noreferrer" target="_blank">dave.demarle@kitware.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal">vtk itself is unitless. it is up to the application to keep track of that.<u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">David E DeMarle<br>
Kitware, Inc.<br>
Principal Engineer<br>
21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: 518-881-4909</p></div></div></div></div></div></div></div></div></blockquote></div></div></div>
</blockquote></div></div></div>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer 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 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 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 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 noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></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"><br>-- <br><div dir="ltr" class="m_8024215934290654136gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="color:rgb(0,0,0)">Matthew Troke</span></div><div><span style="color:rgb(0,0,0)">Software Engineer</span></div><div><img src="http://www.avalonholographics.com/img/logo.png" width="200" height="46"></div><div><span style="color:rgb(0,0,0)">Office: 1-709-701-0239</span></div><div><span style="color:rgb(0,0,0)">Email:</span> <a href="mailto:matthew.troke@avalonholographics.com" target="_blank">matthew.troke@avalonholographics.com</a></div></div></div></div></div>

<br>
<span lang="EN-CA"><div><i style="background-color:rgb(255,255,255);color:red;font-family:arial,sans-serif;font-size:12.8px;font-weight:bold">This email and any attachments are confidential and may be privileged. Any unauthorized use, disclosure, copying or distribution of the information received is prohibited. If you are not the intended recipient please contact the sender immediately by return email confirming that you have and will delete all communications related to the email and any attachments sent to you in error.</i></div></span></blockquote></div>