Monday 22 April 2024

Fiji plugin to read Xradia files


This is a plugin for Fiji (ImageJ) that reads *.xrm*.txrm, and *.txm image files (from Xradia XRM systems, in their proprietary format, a form of OLE container) and opens them as image stacks, along with a text window displaying some metadata parameters. Download the .zip folder and just drop the two jar files (poi-3.7.jar and XRM_Reader.jar) onto the Fiji main window.  The program will put them in the right place. Restart Fiji and you should find it under Plugins > XRM_Reader


https://doi.org/10.5281/zenodo.10580258


I modified the above plugin from this one:
https://github.com/mrsutherland/XRM_Reader/releases  by mrsutherland, released 14 Nov 2017 

 

The folder at Zenodo also contains an ImageJ macro (XRM_files_thumbnails-6-3.ijm) for making a thumbnail image and metadata text file for every Xradia-format image in a folder. This is in the ImageJ macro language and requires the XRM_Thumbnails plugin, also included in the same archive. (This will appear in the plugins menu but isn't meant to be run on its own.)

 

I made this macro to help survey and index the many hundreds of Xradia scan files that have accumulated on my storage server. The script automatically processes a directory and its subdirectories, leaving an easily readable thumbnail image and metadata file with the same filename base as each unpreviewable *.xrm*.txrm, or *.txm image file. 

 

This version is working pretty well, and it makes an XYZ montage for each reconstructed stack and a 0°- 90° mugshot for each projection series (really first and middle projection - for a 360° scan it will be front and back images). I have not figured out how to read the date/time from the xrm files. 

 

A current version of the thumbnails macro can be found here: https://ucloud.univie.ac.at/index.php/s/RSJ05Nb9FTViCVK

This code is free for anyone to use. If you use it in a publication, please cite the Zenodo doi. 

 

Brian Metscher, Jan. 2024

 

 

>>  Real progress toward a Python solution can be found here: https://pypi.org/project/xrmreader/

It's based on the dxchange Python code, which seems to cover the reading of the xrm container files much better than the Java parser:  https://github.com/data-exchange/dxchange


>>  Note that Xradia .txm files can also be opened directly in Amira 6.4 and higher (Windows), and also in Drishti (https://github.com/nci/drishti). (Also in ORS Dragonfly Pro, but not in the free Dragonfly version.)


>> TXM-Wizard by fmeirerliuyijin can open Xradia files also:  

     https://sourceforge.net/projects/txm-wizard/files/?source=navbar

     https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3284347/ 

 


No comments:

Post a Comment