Hi all,<br><br>thank you guys for the inputs and thanks Shekhar for pointing me the MRCImageIO (I wasn&#39;t aware of).<br>I recompiled ITK with Use Review code ON, but when I compile my application the compiler doesn&#39;t like the:<div class="im">
<br>
&quot;stackReader-&gt;SetImageIO( itk::MRCImageIO::New() );&quot;<br></div>I&#39;ve unsuccessfully tried few variation of it but I&#39;m a bit clueless at the moment.<br><br><br>this is the error message I got:<br><br>CMakeFiles/mrc2dcm.dir/src/<div id=":1ch">
mrc2dcm.cxx.o: In function `main&#39;:<br>
mrc2dcm.cxx:(.text+0xd1): undefined reference to `typeinfo for itk::MRCImageIO&#39;<br>mrc2dcm.cxx:(.text+0xed): undefined reference to `typeinfo for itk::MRCImageIO&#39;<br>mrc2dcm.cxx:(.text+0x264): undefined reference to `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;<div class="im"><br> ReaderType::Pointer stackReader = ReaderType::New();<br> stackReader-&gt;SetImageIO( itk::MRCImageIO::New() );<br> stackReader-&gt;SetFileName( argv[1] );<br>
</div>
 return 0;<br>}<br><br>thanks a lot,<br><font color="#888888">Mauro</font></div><br><br><div class="gmail_quote">On Thu, Oct 14, 2010 at 9:45 AM, 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 Guys,<br>
<br>
ITK has the MRCImageIO class in the Code Review area for MRC images. 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<div><div></div><div class="h5"><br>
<br>
On 14/10/2010 3:23 AM, Jeff Donner wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have code just about ready to go - I just need to rebase the 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; 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 Vera&lt;<a href="mailto:sergio.vera@alma3d.com" target="_blank">sergio.vera@alma3d.com</a>&gt;  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<br>
One of the improvements of the next version of ITK (v4) will 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 will or will  not<br>
support.<br>
It may be a good idea to get in touch with some of the developers to give a<br>
hand and/or publish your code<br>
regards<br>
On Wed, Oct 13, 2010 at 6:38 AM, Mauro Maiorca&lt;<a href="mailto:mauromaiorca@gmail.com" target="_blank">mauromaiorca@gmail.com</a>&gt;<br>
wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hello all,<br>
<br>
I&#39;m currently working with electron microscope images, 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 (natively) support the mrc<br>
file format. Am I right? There is any plan to include microscopy file<br>
formats into itk?<br>
(At the moment I&#39;m using a mrc-MetaIO (and vice-versa) converter I wrote,<br>
I don&#39;t have any problem to publish the software somewhere if useful to<br>
other people).<br>
<br>
cheers,<br>
Mauro<br>
<br>
<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.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>
</blockquote>
<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>
  <a href="http://www.alma3d.com" target="_blank">www.alma3d.com</a><br>
<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.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>
</blockquote>
_____________________________________<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.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>
</blockquote>
</div></div><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.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></blockquote></div><br>