<div dir="ltr"><div>Hello Sidharta,<br><br><br></div>See answers inline below:<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 10, 2017 at 11:10 AM, sidharta <span dir="ltr"><<a href="mailto:sidharta.gupta93@gmail.com" target="_blank">sidharta.gupta93@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Froncois<br>
<br>
Thank you for your reply. The reason why I need this dome is because it<br>
mimics a burr (drill bit). So, I extract densities in a cubic volume and<br>
then mask this cube with the dome, which essentially would give me an image<br>
which shows what densities will the burr encounter while drilling. The<br>
ellipse object seems to be the key here but I don't know how to transform.<br>
The rotation would be identity but the translation is the key. So following<br>
is a pseudo code with I came up with, correct me if I am wrong:<br>
<br>
1. Make an ellipse object of radius = 2 * edge length of the cube.<br></blockquote><div>Don't you mean that the ellipse radius is 1/2 of the edge length of the cube?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2. With SpatialObjectToImageFilter, set size of the image as the edge length<br>
of the cube (in all dimensions). Then transform the object (ellipse) so that<br>
the center of the ellipse lies at the origin of the image. This is what I am<br>
not able to figure how to achieve.<br></blockquote><div> <br></div><div>You probably don't want the center of the image to lie at the origin, but in the center of your edge if I understand correctly, at least for 2 of your 3 dimensions, and at the origin for the 3rd dimension to obtain a half-dome.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Kindly let me know what you think<br>
<br>
Regards,<br>
Sidharta<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-users.7.n7.nabble.com/Creating-3D-dome-using-ITK-tp38201p38218.html" rel="noreferrer" target="_blank">http://itk-users.7.n7.nabble.c<wbr>om/Creating-3D-dome-using-ITK-<wbr>tp38201p38218.html</a><br>
<div class="m_-4246973647190908975HOEnZb"><div class="m_-4246973647190908975h5">Sent from the ITK - Users mailing list archive at Nabble.com.<br>
______________________________<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<br>
<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>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/product<wbr>s/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FA<wbr>Q</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/insight-users</a><br>
</div></div></blockquote></div><br></div></div>