SHI: Spatial Harmonic Imaging is a user-friendly software designed to facilitate Spatial Harmonic Imaging (SHI), a multi-contrast X-ray imaging modality. It produces high-resolution images in absorption, scattering, and differential phase modes very fast. The software is intended for users who are new to the technique, including students and companies seeking effective data analysis tools.
- Operating System: Linux (Ubuntu, Linux Mint, Debian)
- Hardware Requirements:
- Processor: At least 2 GHz
- RAM: Minimum 4 GB (8 GB or higher recommended for optimal performance)
- Disk Space: At least 20 GB of free disk space for installation and data storage
To create an appropriate environment for Python and the necessary scientific libraries:
-
Download Anaconda:
- Visit the official Anaconda website and download the Linux version with Python 3.7 or higher.
-
Install Anaconda:
-
Open a terminal and navigate to the directory where the Anaconda installer was downloaded.
-
Run the installer with:
bash Anaconda3-xxxx.xx-Linux-x86_64.sh
Replace
Anaconda3-xxxx.xx-Linux-x86_64.shwith the actual filename.
-
-
Set Up the Environment:
-
After installation, update your
PATHby adding the following line at the end of your.bashrcfile:export PATH="/home/your_username/anaconda3/bin:$PATH"
Replace
/home/your_username/anaconda3with your actual installation path.
-
-
Verify Installation:
-
Close and reopen the terminal, then run:
conda --version
This should display the installed version of Anaconda.
-
ImageJ is a widely used image processing software that complements the functionalities of SHI. Although ImageJ is an optional requirement, it is useful for visualizing the final results.
-
sudo apt install imagej
-
Verify Installation:
- Launch ImageJ from the terminal to ensure it starts without issues.
Download the ZIP file, extract its contents, and run the application from the terminal:
pip install .The software provides two main command-line tools:
shi- Main tool for SHI processingmorphos- Tool for morphostructural analysis
To see all available options for SHI processing:
shi calculate --helpBasic usage with automatic mode (2D):
shi calculate -m MASK_PERIOD --all-2dBasic usage with automatic mode (3D):
shi calculate -m MASK_PERIOD --all-3dTo clean up temporary files:
shi clean --extraThe morphostructural analysis tool provides two main commands:
-
analyze: Run the morphostructural analysismorphos analyze --left path/to/absorption.tif --right path/to/scattering.tif --contrast linear
Arguments for analyze:
-
--left: Path to the absorption image -
--right: Path to the scattering/phase image -
--contrast: Contrast type (linear or log)
-
clean: Clean temporary and annotation files# Clean temporary files morphos clean --temp
For additional support, to report issues, or to provide suggestions, please contact:
- Author: Jorge Luis Beltran Diaz and Danays Kunka
