Hi all,<br><br>thank you guys for the inputs and thanks Shekhar for pointing me the MRCImageIO (I wasn't aware of).<br>I recompiled ITK with Use Review code ON, but when I compile my application the compiler doesn't like the:<div class="im">
<br>
"stackReader->SetImageIO( itk::MRCImageIO::New() );"<br></div>I've unsuccessfully tried few variation of it but I'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':<br>
mrc2dcm.cxx:(.text+0xd1): undefined reference to `typeinfo for itk::MRCImageIO'<br>mrc2dcm.cxx:(.text+0xed): undefined reference to `typeinfo for itk::MRCImageIO'<br>mrc2dcm.cxx:(.text+0x264): undefined reference to `itk::MRCImageIO::MRCImageIO()'<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 "itkImage.h"<br>
#include "itkImageFileReader.h"<br>#include "itkMRCImageIO.h"<br>int main( int argc, char* argv[]){<br> typedef signed int InputPixelType;<br> const unsigned int Dimension = 3;<br> typedef itk::Image< InputPixelType, Dimension > ImageType;<br>
typedef itk::ImageFileReader< ImageType > ReaderType;<div class="im"><br> ReaderType::Pointer stackReader = ReaderType::New();<br> stackReader->SetImageIO( itk::MRCImageIO::New() );<br> stackReader->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"><<a href="mailto:Shekhar.Chandra@monash.edu">Shekhar.Chandra@monash.edu</a>></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->SetImageIO( itk::MRCImageIO::New() );<br>
stackReader->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've been holding off because I've been<br>
confused about the meaning of MRC's orientation, for non-orthogonal<br>
(and maybe for any rotation at all) cases. I'm not a dev; perhaps I'll<br>
post them to this list, for someone else to do the commits. If<br>
anyone'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<<a href="mailto:sergio.vera@alma3d.com" target="_blank">sergio.vera@alma3d.com</a>> 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'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<<a href="mailto:mauromaiorca@gmail.com" target="_blank">mauromaiorca@gmail.com</a>><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'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'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'm using a mrc-MetaIO (and vice-versa) converter I wrote,<br>
I don'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>