GithubHelp home page GithubHelp logo

pygamma's Introduction

Distance to agreement calculations for radiotherapy dose distributions

RESEARCH USE ONLY

Currently an n-dimensional version of gamma evaluation is the only algorithm implemented. The resolution in the sample and reference cannot be different, however each axis of sample and reference respectively can have a different resolution.

from dta import gamma_evaluation

distance = 3                        # 3 mm
threshold = reference.max()*0.03    # 3 % of max in reference
sample_res, reference_res = (2, 2)  # 2 mm voxels in sample, 2 mm in ref

gamma_map = gamma_evaluation(sample, reference,
                             distance, threshold,
                             (sample_res, reference_res))

Installation

git clone https://github.com/christopherpoole/pygamma.git
# OR download the repository as a zip file
cd pygamma
python setup.py install

Signed Gamma Evaluation

Signed gamma evaluation makes hot and cold spots obvious in the calculated gamma map, to use it:

gamma_evaluation(sample, reference, distance, threshold, (sam_res, ref_res), signed=True)

See here for more details:

@article{mohammadi2012modification,
  title={Modification of the gamma function for the recognition of over-and under-dose regions in three dimensions},
  author={Mohammadi, Mohammad and Rostampour, Nima and Rutten, Thomas P},
  journal={Journal of medical physics/Association of Medical Physicists of India},
  volume={37},
  number={4},
  pages={200},
  year={2012},
  publisher={Medknow Publications}
}

pygamma's People

Contributors

christopherpoole avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pygamma's Issues

signed gamma evaluation

Is the current implementation correct? The determination of the sign should probably be calculated between the sample and the value closest to it in the reference under the distance footprint, rather than a straight diff of the sample and the reference?

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.