Skip to content

pzaffino/Radiomics.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Radiomics.jl

Logo Radiomicsjl

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" 📧

Implemented features

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

Getting started

To install Radiomics.jl, simply run:

import Pkg
Pkg.add("Radiomics")

You can install Radiomics.jl on either your local machine or Google Colab.

Example

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);

Website with complete documentation

For complete documentation, visit the official website.

About

Julia library for radiomics

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

Languages