[vtkusers] Does VTK support loading MRC files ?
Lassi Paavolainen
lassi.paavolainen at jyu.fi
Tue Apr 5 04:15:48 EDT 2011
Hi again,
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:
http://bioimagexd.svn.sourceforge.net/viewvc/bioimagexd/bioimagexd/trunk/vtkBXD/Processing/vtkMRCReader.cxx?revision=1691
Cheers,
Lassi
On Tue, 5 Apr 2011, Lassi Paavolainen wrote:
> Hi Marcus and Ashika,
>
> BioImageXD has vtk reader for MRC file format available at:
> http://bioimagexd.svn.sourceforge.net/viewvc/bioimagexd/bioimagexd/trunk/vtkBXD/Processing/vtkMRCReader.cxx?revision=1690
> http://bioimagexd.svn.sourceforge.net/viewvc/bioimagexd/bioimagexd/trunk/vtkBXD/Processing/vtkMRCReader.h?revision=1690
>
> 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.
>
> Unfortunately its GPL licensed, but I think we can re-license it as BSD if
> needed.
>
> Cheers,
> Lassi Paavolainen
>
> On Mon, 4 Apr 2011, Marcus D. Hanwell wrote:
>
>> On Mon, Apr 4, 2011 at 4:36 AM, Ashika Umanga Umagiliya
>> <aumanga at biggjapan.com> wrote:
>>> Greetings all,
>>> I want to load volume data (vtkImageData) from MRC files.
>>> http://en.wikipedia.org/wiki/MRC_(file_format)
>>> Does VTK support this format?
>>> Thank in advace.
>>>
>> I am not aware of current support, but would certainly be interested
>> in adding support for the format. The spec looks quite
>> straightforward, if you (or someone else) interested in adding this
>> contributed a reader, along with an example file, it looks like it
>> would be quite straightforward to write. I should be able to help in
>> getting it integrated.
>>
>> I am working with other formats from computational chemistry, but this
>> is not currently in scope for the work I am doing.
>>
>> Marcus
>> --
>> Marcus D. Hanwell, Ph.D.
>> R&D Engineer, Kitware Inc.
>> (518) 881-4937
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
--
Lassi Paavolainen, M.Sc
Software Engineer, PhD Student in Computer Science
BioImageXD (http://www.bioimagexd.net)
University of Jyväskylä
The Department of Biological and Environmental Science
lassi.paavolainen at jyu.fi
More information about the vtkusers
mailing list