Git Product home page Git Product logo

desubtraction_metric's Introduction

Introduction

This repository is an implementation of proposed IEC 62220-2 to assess image quality of dual energy x-ray imagers.

Nothing here will make sense if you are not familiar with the (as yet unpublished) standard. Sorry about that.

Usage

There are currently two ways to use the repository, as a python library or as a streamlit app.

Library

Installation

  1. git clone https://github.com/stilley2/desubtraction_metric
  2. cd desubtraction_metric
  3. pip install .

Usage

import desub

data, extra = desub.proc(high_energy_dicom_filename,  # file name of dicom file containing high energy data
                         low_energy_dicom_filename,  # file name of dicom file containing low energy data
                         air_kerma,  # air kerma in µGy
                         quad_detrend_all=False)  # whether to quadratically detrend before calculating the metric

where data is a DataFrame containing the output CNR for each DE image and feature and extra is a dictionary with intermediate processing data.

Streamlit app

Self host

Self hosting is much faster.

  1. git clone https://github.com/stilley2/desubtraction_metric
  2. pip install -r requirements.txt
  3. streamlit run desub_app/app.py

desubtraction_metric's People

Contributors

stilley2 avatar

Watchers

James Cloos avatar  avatar

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.