Radiomics.jl is an open-source Julia library for extracting radiomics features from medical images.
📧 If you're interested in contributing to the project, please contact us via email at "p DOT zaffino AT unicz DOT it" 📧
Right now, the implemented features are:
- first-order features
- 2D shape features
- 3D shape features
- GLCM features
- GLDM features
- GLRLM features
- GLSZM features
- NGTDM features
To install Radiomics.jl, simply run:
import Pkg
Pkg.add("Radiomics")You can install Radiomics.jl on either your local machine or Google Colab.
Once the library is installed, radiomics features can be extracted as reported in the following example (sample data shipped with the library are used):
using NIfTI
using Radiomics
ct = niread("sample_data/CTChest.nii.gz")
mask = niread("sample_data/Lungs.nii.gz")
spacing = [ct.header.pixdim[2], ct.header.pixdim[3], ct.header.pixdim[4]]
radiomic_features = Radiomics.extract_radiomic_features(ct.raw, mask.raw, spacing)To compute only a subset of features, specify the desired ones using the features flag.
radiomic_features = Radiomics.extract_radiomic_features(ct.raw, mask.raw, spacing; features = [:glcm, :gldm])To compute more features with a specific bin_width
radiomic_features = Radiomics.extract_radiomic_features(ct.raw, mask.raw, spacing; features=[:glcm, :glszm], bin_width=25.0f0);To compute with a specific number of bins
radiomic_features = Radiomics.extract_radiomic_features(ct.raw, mask.raw, spacing; features=[:glcm, :glszm], n_bins=16);For complete documentation, visit the official website.