<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><div><br></div><div> - David</div><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 class="h5">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 class="h5"><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></div>