Giter VIP home page Giter VIP logo

lic_gasd-codes-'s Introduction

Estimation of Joint Local Intensity Distribution for Multi-Modal Image Registration

This repository is the official implementation of the article "Estimation of Joint Local Intensity Distribution for Multi-Modal Image Registration".

Requirements

To install requirements, please use pip to install:

pip install -r requirements.txt

One can directly use the brainweb dataset provided in the repository, or fetch new ones on its website.

For the MS-CMR dataset, one should apply the dataset on its homepage.

Contribution

The major implementations of LIC and GASD are provided in the file color_transfer.py.

Running

One can inspect the *.log files and use the *.ckpt files consisting of the state dictionaries for Exp3 in Table 4, manuscript.

To run the experiments, one should use the following command,

cd Exp124\ LIC_GASD
python3 Exp1_LIC_GASD.py --exp <experiment name>

for experiments in Tables 1 and 2.

Use commands,

cd Exp124\ LIC_GASD
python3 Exp1_LIC_GASD_same_modality.py --exp <experiment name>

for the experiments in Table 3.

The experiment names are listed in the dictionary Experiments in the Python files.

One can use the following options to design the experiments on his own.

--n_dim			# the spatial dimension of the used dataset
--loss			# the loss function; selected from LIC, GASD_only, SSD, NVI, MI, NMI, NCC, or the local versions including NVI_local, MI_local, NCC_local, or the losses after image translation: GASD, CTr_LIC
--n_batch		# the batch size for paralleled processing
--n_iter		# the number of iterations (for the iterative method)
--sig_p			# the strength of the partial volume effect, $sigma_p$
--noise			# the strength of noise added on input images
--down_sample	# the downscaling factor
--exp			# experiment name

Use commands,

cd Exp3_LIC_deep
python3 Exp3_LIC_deep.py --exp <experiment name>

for the experiments in Table 4.

One can design the experiments on his own by the following new options.

--n_epoch		# the number of training epochs
--n_epoch_save	# the period of model saving, in the unit of epoch numbers
--offset_scale	# the scaling of the predicted displacements

Contributing

This code is under CC BY 4.0 licence.

lic_gasd-codes-'s People

Contributors

bertie97 avatar

Watchers

 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.