<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Take a look at <a href="http://www.itk.org/pipermail/insight-users/2010-December/038894.html">this thread</a> and <a href="http://www.itk.org/Wiki/ITK/Examples/IO/ReadUnknownImageType">this example</a>.</div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 7, 2014 at 3:25 AM, Massinissa Bandou <span dir="ltr">&lt;<a href="mailto:Massinissa.Bandou@usherbrooke.ca" target="_blank">Massinissa.Bandou@usherbrooke.ca</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Matt,<br>
<br>
thanks for replying! I used the template function below to read two images<br>
but I don&#39;t know how can I extract their types (float, double or short)<br>
before calling Read_Image?<br>
<br>
template &lt;class TYPE1,class TYPE2&gt;<br>
void Read_Image(TYPE1 input1, TYPE2 input2)<br>
{<br>
        typedef itk::Image&lt; input1, 3 &gt;  ImageType1;<br>
        typedef itk::Image&lt; input2, 3 &gt;  ImageType2;<br>
        ...<br>
        ...<br>
}<br>
<br>
<br>
Massi<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-users.7.n7.nabble.com/newbie-C-question-tp33081p33137.html" target="_blank">http://itk-users.7.n7.nabble.com/newbie-C-question-tp33081p33137.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the ITK - Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" 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" 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" 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" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br></div>