Skip to main content

Tools and scripts for visualization and comparison of 3d MRI scans (T1, T2 etc)

Project description


# mrivis

Tools for comparison of registration and spatial similarity of 3d MRI scans (T1, T2, PET etc) using checkerboard plots.


![https://img.shields.io/pypi/v/mrivis.svg](https://pypi.python.org/pypi/mrivis)


## to compare two T1 MRI scans (checkerboard plots)

Usage:

```bash
mrivis --checkerboard path_image1 path_image2 --patch_size 10 # square patch

mrivis --checkerboard path_image1 path_image2 --patch_size 10 30 # rectangular patch

```

A sample output (when the two scans are mismatched):

![vis_all3](../docs/zoomed_in/vis_all3.png)

When there is mismatch, you can clearly see it (patch size 15 voxels square):

![vis_all3_mismatch_ps15](../docs/zoomed_in/vis_all3_mismatch_ps15.png)

Let's make the patches a bit bigger (patch size 25 voxels square):

![vis_all3_mismatch_ps25_axial](../docs/zoomed_in/vis_all3_mismatch_ps25_axial.png)
![vis_all3_mismatch_ps25_sagittal](../docs/zoomed_in/vis_all3_mismatch_ps25_sagittal.png)

Let's make the patches a even bigger (50 voxels square):

![vis_all3_mismatch_ps50](../docs/zoomed_in/vis_all3_mismatch_ps50.png)

Let's use a **rectangular** patch (10 voxels high and 30 voxels wide):

![vis_all3_mismatch__rect_ps10_30_sagittal](../docs/zoomed_in/vis_all3_mismatch__rect_ps10_30_sagittal.png)
![vis_all3_mismatch__rect_ps10_30_axial](../docs/zoomed_in/vis_all3_mismatch__rect_ps10_30_axial.png)

If they were identical (no mismatch at all), you won't see any edges or borders:

![identical](../docs/zoomed_in/vis_all3_identical.png)

Full layout with 6x6 pangels can be seen in [this folder](../docs/comprehensive).

## to visualize plans MRI scans (by themselves) using a collage

```bash
mrivis --collage path_image1 [path_image2]

```

![collage](../docs/comprehensive/vis_collage.png)




=======
History
=======

0.1.0 (2017-12-05)
------------------

* First release on PyPI.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mrivis-0.1.1.tar.gz (11.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mrivis-0.1.1-py2.py3-none-any.whl (7.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mrivis-0.1.1.tar.gz.

File metadata

  • Download URL: mrivis-0.1.1.tar.gz
  • Upload date:
  • Size: 11.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mrivis-0.1.1.tar.gz
Algorithm Hash digest
SHA256 00982eafe751861f8aed9b92a0a412c88c7b3979cf927e9d5d33f4f5edc2ef76
MD5 fae2c683a567f97865fa8a7e957d40ba
BLAKE2b-256 28c0b743b59ea0dfbac1d96259db93c90f88e1c2934b4f687807a63a3c3ceb8d

See more details on using hashes here.

File details

Details for the file mrivis-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mrivis-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 77586c8a8690c5d8570c93f2e16ee162a805b0b6fb46e649b4b6fd67b3e2969a
MD5 c0289db8dde419def17f299c5be55853
BLAKE2b-256 d590356dae3a0f56b5ae40dc920f03b0229c73cb483d19e7edb1108e940d6190

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page