Skip to content

Instantly share code, notes, and snippets.

@rahulremanan
Created September 30, 2021 12:20
Show Gist options
  • Save rahulremanan/5e45eff6f8be38a181a9a08fee4ab90f to your computer and use it in GitHub Desktop.
Save rahulremanan/5e45eff6f8be38a181a9a08fee4ab90f to your computer and use it in GitHub Desktop.
Resample MRI images using SimpleITK and PyDICOM -- Importing dependent libraries
import os, gc, ast, cv2, glob, json,shutil, random, collections, \
imageio, pydicom, numpy as np, pandas as pd, SimpleITK as sitk
from pathlib import Path
from tqdm.auto import tqdm
from pydicom.pixel_data_handlers.util import apply_voi_lut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment