indeed, thanks Shekhar, it&#39;s working now!<br><br>cheers,<br>Mauro<br><br><div class="gmail_quote">On Thu, Oct 14, 2010 at 6:57 PM, Shekhar Chandra <span dir="ltr">&lt;<a href="mailto:Shekhar.Chandra@monash.edu">Shekhar.Chandra@monash.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Mauro,<br>
<br>
&#39;undefined reference to&#39; error means a linking problem. You need to link to the ITKIOReview library, which should have been built when u turned on the review option.<br>
<br>
HTH<br>
Cheers<br>
Shekhar<div><div></div><div class="h5"><br>
<br>
On 14/10/2010 6:07 PM, Mauro Maiorca wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
Hi all,<br>
<br>
thank you guys for the inputs and thanks Shekhar for pointing me the<br>
MRCImageIO (I wasn&#39;t aware of).<br>
I recompiled ITK with Use Review code ON, but when I compile my<br>
application the compiler doesn&#39;t like the:<br>
<br>
&quot;stackReader-&gt;SetImageIO( itk::MRCImageIO::New() );&quot;<br>
I&#39;ve unsuccessfully tried few variation of it but I&#39;m a bit clueless at<br>
the moment.<br>
<br>
<br>
this is the error message I got:<br>
<br>
CMakeFiles/mrc2dcm.dir/src/<br>
mrc2dcm.cxx.o: In function `main&#39;:<br>
mrc2dcm.cxx:(.text+0xd1): undefined reference to `typeinfo for<br>
itk::MRCImageIO&#39;<br>
mrc2dcm.cxx:(.text+0xed): undefined reference to `typeinfo for<br>
itk::MRCImageIO&#39;<br>
mrc2dcm.cxx:(.text+0x264): undefined reference to<br>
`itk::MRCImageIO::MRCImageIO()&#39;<br>
collect2: ld returned 1 exit status<br>
make[2]: *** [bin/mrc2dcm] Error 1<br>
make[1]: *** [CMakeFiles/mrc2dcm.dir/all] Error 2<br>
make: *** [all] Error 2<br>
<br>
and this is the (simplified) code:<br>
<br>
#include &quot;itkImage.h&quot;<br>
#include &quot;itkImageFileReader.h&quot;<br>
#include &quot;itkMRCImageIO.h&quot;<br>
int main( int argc, char* argv[]){<br>
  typedef   signed int      InputPixelType;<br>
  const     unsigned int    Dimension = 3;<br>
  typedef itk::Image&lt; InputPixelType, Dimension &gt;  ImageType;<br>
  typedef itk::ImageFileReader&lt; ImageType &gt; ReaderType;<br>
<br>
  ReaderType::Pointer stackReader = ReaderType::New();<br>
  stackReader-&gt;SetImageIO( itk::MRCImageIO::New() );<br>
  stackReader-&gt;SetFileName( argv[1] );<br>
  return 0;<br>
}<br>
<br>
thanks a lot,<br>
Mauro<br>
<br>
<br>
On Thu, Oct 14, 2010 at 9:45 AM, Shekhar Chandra<br></div></div><div class="im">
&lt;<a href="mailto:Shekhar.Chandra@monash.edu" target="_blank">Shekhar.Chandra@monash.edu</a> &lt;mailto:<a href="mailto:Shekhar.Chandra@monash.edu" target="_blank">Shekhar.Chandra@monash.edu</a>&gt;&gt; wrote:<br>
<br>
    Hi Guys,<br>
<br>
    ITK has the MRCImageIO class in the Code Review area for MRC images.<br>
    I have used it successfully.<br>
<br>
    Compile ITK with Use Review code ON and use it something like<br>
<br>
    ReaderType::Pointer stackReader = ReaderType::New();<br>
                stackReader-&gt;SetImageIO( itk::MRCImageIO::New() );<br>
                stackReader-&gt;SetFileName( argv[1] );<br>
<br>
    HTH<br>
    Cheers<br>
    Shakes<br>
<br>
<br>
    On 14/10/2010 3:23 AM, Jeff Donner wrote:<br>
<br>
        I have code just about ready to go - I just need to rebase the<br>
        patches<br>
        for the current build. I&#39;ve been holding off because I&#39;ve been<br>
        confused about the meaning of MRC&#39;s orientation, for non-orthogonal<br>
        (and maybe for any rotation at all) cases. I&#39;m not a dev;<br>
        perhaps I&#39;ll<br>
        post them to this list, for someone else to do the commits. If<br>
        anyone&#39;s in a hurry I can just post what I have, but otherwise I<br>
        estimate maybe 2 days.<br>
<br>
        On Wed, Oct 13, 2010 at 1:44 AM, Sergio<br></div>
        Vera&lt;<a href="mailto:sergio.vera@alma3d.com" target="_blank">sergio.vera@alma3d.com</a> &lt;mailto:<a href="mailto:sergio.vera@alma3d.com" target="_blank">sergio.vera@alma3d.com</a>&gt;&gt;  wrote:<div class="im">
<br>
<br>
            Hi<br>
            One of the improvements of the next version of ITK (v4) will<br>
            be better<br>
            support for microscopy images:<br>
            <a href="http://www.itk.org/Wiki/ITK_Release_4/Microscopy" target="_blank">http://www.itk.org/Wiki/ITK_Release_4/Microscopy</a><br>
            however, I don&#39;t know the specific file formats that ITK<br>
            will or will  not<br>
            support.<br>
            It may be a good idea to get in touch with some of the<br>
            developers to give a<br>
            hand and/or publish your code<br>
            regards<br>
            On Wed, Oct 13, 2010 at 6:38 AM, Mauro<br></div>
            Maiorca&lt;<a href="mailto:mauromaiorca@gmail.com" target="_blank">mauromaiorca@gmail.com</a> &lt;mailto:<a href="mailto:mauromaiorca@gmail.com" target="_blank">mauromaiorca@gmail.com</a>&gt;&gt;<div class="im">
<br>
            wrote:<br>
<br>
<br>
                Hello all,<br>
<br>
                I&#39;m currently working with electron microscope images,<br>
                and I found  ITK<br>
                and related applications (i.e. itk-snap) very useful.<br>
                Unfortunately, it seems to me that ITK doesn&#39;t<br>
                (natively) support the mrc<br>
                file format. Am I right? There is any plan to include<br>
                microscopy file<br>
                formats into itk?<br>
                (At the moment I&#39;m using a mrc-MetaIO (and vice-versa)<br>
                converter I wrote,<br>
                I don&#39;t have any problem to publish the software<br>
                somewhere if useful to<br>
                other people).<br>
<br>
                cheers,<br>
                Mauro<br>
<br>
<br>
                _____________________________________<br></div>
                Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> &lt;<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>&gt;<div class="im"><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<br>
                information visit:<br>
                <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</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>
<br>
<br>
<br>
<br>
            --<br>
            Sergio Vera<br>
<br>
              Alma IT Systems<br>
              C/ Vilana, 4B, 4º 1ª<br>
              08022 Barcelona<br>
              T. (+34) 932 380 592<br></div>
            <a href="http://www.alma3d.com" target="_blank">www.alma3d.com</a> &lt;<a href="http://www.alma3d.com" target="_blank">http://www.alma3d.com</a>&gt;<br>
<br>
            _____________________________________<br>
            Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> &lt;<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>&gt;<div class="im"><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.html" target="_blank">http://www.kitware.com/products/protraining.html</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>
<br>
<br>
        _____________________________________<br></div>
        Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> &lt;<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>&gt;<div class="im"><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.html" target="_blank">http://www.kitware.com/products/protraining.html</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>
<br>
<br>
    _____________________________________<br></div>
    Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> &lt;<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>&gt;<div class="im"><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.html" target="_blank">http://www.kitware.com/products/protraining.html</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>
<br>
<br>
</div></blockquote>
</blockquote></div><br>