Coder Social home page Coder Social logo

radxtools / topology-radiomics Goto Github PK

View Code? Open in Web Editor NEW
4.0 6.0 2.0 136.95 MB

Python implementation of topology descriptors which capture subtle sharpness and curvature differences along the surface of diseased pathologies on imaging.

License: BSD 3-Clause "New" or "Revised" License

Batchfile 1.66% Shell 0.37% Dockerfile 1.54% Jupyter Notebook 38.93% Makefile 1.13% Python 56.37%
radiomics radiomics-features computational-imaging cancer-imaging-research cancer-imaging python docker feature-extraction radiomics-feature-extraction itcr

topology-radiomics's People

Contributors

nathanhillyer avatar neshdev avatar robtoth avatar satishev avatar tgd15 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

rohand24 tgd15

topology-radiomics's Issues

Read the docs

  • Sign up for RTD
  • Setup python code to generate docs while building the package
  • Setup automated pipeline github actions

Readme files

  • rename references for bric/invent lab repos
  • github url
  • docker url
  • setup.py file

Pypi Integration

  • Setup credentials on testpypi
  • Setup credentials on pypi
  • Copy credentials for test to github workflow env variables
  • Copy credentials for prod to github workflow env variables
  • Setup github workflow for upload to test in dev branch
  • Setup github workflow for upload to prod in master branch

Imaging Format Compatibility

Currently, the Topology Radiomics packages only supports nifty (.nii) images via nibabel.

Sometimes, the labs use the .mha or .mhd imaging formats. Could you please add SimpleITK and/or NumPy support in the compute_morphology_features function to expand imaging format compatibility?

SimpleITK example:

volume = sitk.ReadImage("/path/to/volume.mha") # vol type is SimpleITK.SimpleITK.Image
features = rad.compute_morphology_features(volume, config)

NumPy Array from SimpleITK example:

volume = sitk.ReadImage("/path/to/volume.mha")
volume_np = sitk.GetArrayFromImage(volume) # vol_np type is numpy.ndarray
features = rad.compute_morphology_features(volume_np, config)

To pass a NumPy array from SimpleITK into the compute_morphology_features function, I made the following change:

def compute_morphology_features(mri_mask_voxels: BinaryVoxelMask,
                                config: MorphologyConfig = MorphologyConfig()) -> MorphologyFeatures:
    #mask = mri_mask_voxels.mri_voxel_mask # commented this line out because NumPy array does not have this object
    mask = mri_mask_voxels

New Feature - Gaussian Filter config values

  • Sigma value in the config object should be given in millimeters.
  • Notes:
  • This would make it slightly more complicated as we would need to know the x,y,z length of a voxel.
  • Most MRI pictures have x and y of the same length, but the z length is normally smaller. (x == y, x > z, y > z). This is due the way the scans are taken.

Image for Documentation

Could you please add the following image to the documentation? It provides a really nice visualization of what curvature features look like.

You can find the image here.

Topological-characteristics-of-curvature-indices-Each-descriptor-highlights-different

Adjustment to Documentation

In the documentation, could you please add a note indicating outliers are clipped on a per lesion basis? This would notify users to adjust their code accordingly.

Clipping outliers on a per lesion basis does not need to be changed. Based on conversations with the lab, this behavior is ok and is needed for viewing the meshes.

Please let me know if you need any additional information.

Thank you!

New Feature - Sanitization

The merge labels function should be rewritten such that 0 is empty space. All other integers are labels.

0 - should be background, not min value

default behavior:
merge all other labels

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.