<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Javier,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">you can also access image dimension with the other signature too, like this:</div><div class="gmail_default" style=""><font face="verdana, sans-serif">ImageType::ImageDimension</font><br></div><div class="gmail_default" style=""><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="verdana, sans-serif">Regards,</font></div><div class="gmail_default" style=""><font face="verdana, sans-serif">Dženan</font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 15, 2016 at 10:41 AM, Javier Juan Albarracín <span dir="ltr"><<a href="mailto:javij1@gmail.com" target="_blank">javij1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hello, I have an algorithm than can only be applied to 3D volumes, not 2D images.<br>
<br>
I plann to implement the function as:<br>
<br>
bool Algorithm<ImageType>::run(ImagePointer image)<br>
<br>
Is there any form to know through the ImageType or ImagePointer whether is a 3D or a 2D volume?? Or should I change the header of the function to something like:<br>
<br>
bool Algorithm<itk::Image<TPixel, VImageDimension>run(ImagePointer image)<br>
<br>
With this function header I have direct access to the image dimension, but in the other header, there is no form to know the image dimension through the typedef ImageType??<br>
<br>
Thank you<br>
<br>
_____________________________________<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/opensource/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/products/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_FAQ</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/mailman/listinfo/insight-users</a><br>
</blockquote></div><br></div>