<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">It says that read_image&lt;<span style="font-size:15px;font-family:arial,sans-serif">enum itk::ImageIOBase::</span><span style="font-size:15px;font-family:arial,sans-serif">IOComponentType&gt; is not implemented. Only 1 type is mentioned, which means that your signature should not have 2 typenames.</span></div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 9, 2014 at 10:21 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 Dženan Zukić<br>
<br>
I tried  the example<br>
&lt;<a href="http://www.itk.org/Wiki/ITK/Examples/IO/ReadUnknownImageType" target="_blank">http://www.itk.org/Wiki/ITK/Examples/IO/ReadUnknownImageType</a>&gt;   and I want<br>
to know what&#39;s wrong with this following code?<br>
<br>
int main(){<br>
        typedef itk::ImageIOBase::IOComponentType ScalarPixelType;<br>
        itk::ImageIOBase::Pointer imageIO =<br>
itk::ImageIOFactory::CreateImageIO(&quot;myImage.mhd&quot;,itk::ImageIOFactory::ReadMode);<br>
        imageIO-&gt;SetFileName(&quot;myImage.mhd&quot;);<br>
        imageIO-&gt;ReadImageInformation();<br>
        const ScalarPixelType pixelType = imageIO-&gt;GetComponentType();<br>
<br>
       myClass *a = new myClass;<br>
       a-&gt;Read_Image(pixelType,pixelType);<br>
}<br>
<br>
myClass<br>
{<br>
   template &lt;typename TYPE1,typename TYPE2&gt;<br>
<div class="im">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>
</div>};<br>
<br>
<br>
and I got an error:<br>
*Error  13      error LNK2019: unresolved external symbol &quot;public: void __cdecl<br>
myClass::Read_Image&lt;enum itk::ImageIOBase::IOComponentType&gt;(enum<br>
itk::ImageIOBase::IOComponentType)&quot; *<br>
<br>
I&#39;d appreciate your help!<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-tp33081p33154.html" target="_blank">http://itk-users.7.n7.nabble.com/newbie-C-question-tp33081p33154.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>