<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">It says that read_image<<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> 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"><<a href="mailto:Massinissa.Bandou@usherbrooke.ca" target="_blank">Massinissa.Bandou@usherbrooke.ca</a>></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>
<<a href="http://www.itk.org/Wiki/ITK/Examples/IO/ReadUnknownImageType" target="_blank">http://www.itk.org/Wiki/ITK/Examples/IO/ReadUnknownImageType</a>>   and I want<br>
to know what'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("myImage.mhd",itk::ImageIOFactory::ReadMode);<br>
        imageIO->SetFileName("myImage.mhd");<br>
        imageIO->ReadImageInformation();<br>
        const ScalarPixelType pixelType = imageIO->GetComponentType();<br>
<br>
       myClass *a = new myClass;<br>
       a->Read_Image(pixelType,pixelType);<br>
}<br>
<br>
myClass<br>
{<br>
   template <typename TYPE1,typename TYPE2><br>
<div class="im">void Read_Image(TYPE1 input1, TYPE2 input2)<br>
{<br>
        typedef itk::Image< input1, 3 >  ImageType1;<br>
        typedef itk::Image< input2, 3 >  ImageType2;<br>
        ...<br>
        ...<br>
}<br>
</div>};<br>
<br>
<br>
and I got an error:<br>
*Error  13      error LNK2019: unresolved external symbol "public: void __cdecl<br>
myClass::Read_Image<enum itk::ImageIOBase::IOComponentType>(enum<br>
itk::ImageIOBase::IOComponentType)" *<br>
<br>
I'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>