Moad Computer, the actionable insights company
  • Home
  • Contact
  • Shop
  • Blog
  • Home
  • Contact
  • Shop
  • Blog
Search

Actionable Insights blog




Resampling MRI images

9/30/2021

0 Comments

 
Picture
Dr. Rahul Remanan,
CEO, Moad Computer
In this Python3 code example, a set of MRI images from one scanning session is resampled to match the imaging axis of a reference scan. The DICOM images are handled using PyDICOM. The resampling function is implemented using SimpleITK.

An example use case for this code example is as follows. Consider two MRI scans, A and B, with scan A imaged along the sagittal (longitudinal) plane and scan B along the axial (horizontal) plane.

If the reference image is set as scan A, then the scan B images will be transformed to appear as image slices along the sagittal plane; instead of the original axial plane used during the scan acquisition.

Similarly, ​if the reference image is set as scan B, then the scan A images will be transformed to appear as image slices along the axial plane; instead of the original sagittal plane used during the scan acquisition.

​The example notebook is hosted in Kaggle. The MRI scans used in this notebook are from the RSNA MICCAI brain tumor classification dataset.
Importing dependencies
Picture
MRI scan resampling function using SimpleITK
Picture
Convert to UINT8 array
Picture
Defining the data handling variables including the reference image scan
Picture
Function to save the resampled MRI images
Picture
Generating resampled images
Picture
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Overview

    Moad Computer is an actionable insights firm. We provide enterprises with end-to-end artificial intelligence solutions. Actionable Insights blog is a quick overview of things we are most excited about.

    Archives

    November 2022
    October 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    May 2020
    April 2020

    Categories

    All

    RSS Feed

Location

Our mission:

Cutting edge, insightful analytics using AI, for everyone.

Contact Us

    Subscribe Today!

Submit
  • Home
  • Contact
  • Shop
  • Blog