Hi Lassi ,<span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">Marcus ,</span><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Thanks alot for the reply.</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Lassi, your source code is going to be very useful for us.</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; "><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Best Regards,<br>
</span></font><div><div><br><div class="gmail_quote">On 5 April 2011 17:15, Lassi Paavolainen <span dir="ltr"><<a href="mailto:lassi.paavolainen@jyu.fi">lassi.paavolainen@jyu.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi again,<br>
<br>
I just remembered that MRC file actually specifies machine stamp field, it just wasn't set on that one mrc file that we had problems. So I made a change now that also data type field is checked to have some reasonable value and if not then byte ordering is changed. New version available at:<br>
<a href="http://bioimagexd.svn.sourceforge.net/viewvc/bioimagexd/bioimagexd/trunk/vtkBXD/Processing/vtkMRCReader.cxx?revision=1691" target="_blank">http://bioimagexd.svn.sourceforge.net/viewvc/bioimagexd/bioimagexd/trunk/vtkBXD/Processing/vtkMRCReader.cxx?revision=1691</a><br>
<br>
Cheers,<br><font color="#888888">
Lassi</font><div><div></div><div class="h5"><br>
<br>
On Tue, 5 Apr 2011, Lassi Paavolainen wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Marcus and Ashika,<br>
<br>
BioImageXD has vtk reader for MRC file format available at:<br>
<a href="http://bioimagexd.svn.sourceforge.net/viewvc/bioimagexd/bioimagexd/trunk/vtkBXD/Processing/vtkMRCReader.cxx?revision=1690" target="_blank">http://bioimagexd.svn.sourceforge.net/viewvc/bioimagexd/bioimagexd/trunk/vtkBXD/Processing/vtkMRCReader.cxx?revision=1690</a><br>
<a href="http://bioimagexd.svn.sourceforge.net/viewvc/bioimagexd/bioimagexd/trunk/vtkBXD/Processing/vtkMRCReader.h?revision=1690" target="_blank">http://bioimagexd.svn.sourceforge.net/viewvc/bioimagexd/bioimagexd/trunk/vtkBXD/Processing/vtkMRCReader.h?revision=1690</a><br>
<br>
We have used it without problems to read several mrc files. I've only had one file that it currently reads wrongly since vtkMRCReader doesn't handle different byte orderings at the moment. Format itself doesn't specify that, but its easy to conclude that from values read from MRC file. I plan to make that small change to reader soon.<br>
<br>
Unfortunately its GPL licensed, but I think we can re-license it as BSD if needed.<br>
<br>
Cheers,<br>
Lassi Paavolainen<br>
<br>
On Mon, 4 Apr 2011, Marcus D. Hanwell wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, Apr 4, 2011 at 4:36 AM, Ashika Umanga Umagiliya<br>
<<a href="mailto:aumanga@biggjapan.com" target="_blank">aumanga@biggjapan.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Greetings all,<br>
I want to load volume data (vtkImageData) from MRC files.<br>
<a href="http://en.wikipedia.org/wiki/MRC_(file_format)" target="_blank">http://en.wikipedia.org/wiki/MRC_(file_format)</a><br>
Does VTK support this format?<br>
Thank in advace.<br>
<br>
</blockquote>
I am not aware of current support, but would certainly be interested<br>
in adding support for the format. The spec looks quite<br>
straightforward, if you (or someone else) interested in adding this<br>
contributed a reader, along with an example file, it looks like it<br>
would be quite straightforward to write. I should be able to help in<br>
getting it integrated.<br>
<br>
I am working with other formats from computational chemistry, but this<br>
is not currently in scope for the work I am doing.<br>
<br>
Marcus<br>
--<br>
Marcus D. Hanwell, Ph.D.<br>
R&D Engineer, Kitware Inc.<br>
(518) 881-4937<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 <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
-- <br>
Lassi Paavolainen, M.Sc<br>
Software Engineer, PhD Student in Computer Science<br>
BioImageXD (<a href="http://www.bioimagexd.net" target="_blank">http://www.bioimagexd.net</a>)<br>
University of Jyväskylä<br>
The Department of Biological and Environmental Science<br>
<a href="mailto:lassi.paavolainen@jyu.fi" target="_blank">lassi.paavolainen@jyu.fi</a></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 <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div></div></div>