<div dir="ltr">Hi Sam,<div><br></div><div>Yes, your summary is correct, with one caveat: the STL file format (unlike DICOM) does not specify units, so you have to trust that whoever created the file was using millimeters as their units.</div><div><br></div><div> - David</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 25, 2014 at 8:51 PM, Sam Raby <span dir="ltr"><<a href="mailto:rabysam28@gmail.com" target="_blank">rabysam28@gmail.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">Thanks David.<div><br></div><div>OK. Then, if the actor is not coming from a VTK class such as vtkTubeFilter, but instead it is coming from an STL file (for example it is a model of catheter designed in SolidWork), then once this actor is shown in 3D scene next to the DICOM slice, the size of the actor (which is from the STL file) should make sense without having to be worried about any sort of calibration (unless the DICOM is corrupted). </div><div><br></div><div>Did I get it right?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-S</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 25, 2014 at 6:52 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.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">Hi Sam,<div><br></div><div>You shouldn't have to perform any size calibration. If you load a DICOM</div><div>file that uses millimeter units into VTK, then VTK ipso facto measures all</div><div>physical distances in millimeters.</div><div><br></div><div>If you have to set the radius to 1.4 in order to make it "fit" one millimeter,</div><div>that suggests that the DICOM metadata has become corrupted somehow,</div><div>either before being loaded into VTK, or after being loading into VTK.</div><div><br></div><div>Make sure that the DICOM PixelSpacing is correct, and make sure that</div><div>the after the DICOM is loaded into VTK, that the image data "Spacing"</div><div>is also correct.</div><span><font color="#888888"><div><br></div><div> - David</div></font></span><span><div><br></div><div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 25, 2014 at 5:15 PM, Sam Raby <span dir="ltr"><<a href="mailto:rabysam28@gmail.com" target="_blank">rabysam28@gmail.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">Thanks David.<div>If a slice of DICOM is shown in 3D scene, and a tube actor is shown along with it, now I am not sure how to set the radius of the tube to be actually 5 mm, because DICOM image is also present there in the same scene and DICOM has a sense of unit.</div><div><br></div><div>Should I "calibrate" the unit of the Tube? For example, I may end up concluding that if I set the radius of Tube to 1.4 then it is equal to 1 mm in DICOM image.</div><div><br></div><div>-S</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Sat, Oct 25, 2014 at 5:43 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</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><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div>On Sat, Oct 25, 2014 at 4:11 PM, Sam Raby <span dir="ltr"><<a href="mailto:rabysam28@gmail.com" target="_blank">rabysam28@gmail.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>Hi,<br></div><div><br></div><div>Consider an instant of vtkTubeFilter which has a method named "SetRadius". I was wondering how this Radius is related to millimeter?</div><div><br></div><div>I am using vtkTubeFilter as an example but in general I wanted to know how units are involved in actors.</div></div></blockquote><div><br></div></div></div><div>The VTK filters have no units. It's the same as looking at the</div><div>equation y = m*x + b and asking what the units are: all you can</div><div>tell for certain is that 'y' and 'b' have the same units, and that 'm'</div><div>has units of 'y/x'. Other than that, it's up to whoever is using the</div><div>equation to decide on the units. VTK is the same.</div><div><br></div><div>If you want to use millimeters, then set the radius in millimeters.</div><div>Just make sure that you use millimeters everywhere else, too.</div><div><br></div><div>Also make sure that all the files you load use millimeters. If they</div><div>don't, you'll have to convert their units before you use them in your</div><div>pipeline.</div><span><font color="#888888"><div><br></div></font></span></div><span><font color="#888888"> - David</font></span></div></div></div></div></blockquote></div></div>
</blockquote></div><br></div></div></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>