Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

open dicom images python

import pydicom as dicom
import matplotlib.pylab as plt

# specify your image path
image_path = 'data/train_images/sample.dcm'
ds = dicom.dcmread(image_path)

plt.imshow(ds.pixel_array)
Comment

PREVIOUS NEXT
Code Example
Python :: delay time python 
Python :: pandas plot heatmap 
Python :: How to count occurences of a certain item in a numpy array 
Python :: making hexagon in python turtle 
Python :: python seconds counter 
Python :: python argparse 
Python :: python exit program 
Python :: python scond max function 
Python :: perimeter of semicircle formula 
Python :: send email hotmail using python 
Python :: remove duplicate space in string in pytoon 
Python :: add field placeholder layout crispy modelform 
Python :: pandas read csv unamed:o 
Python :: random permutation python 
Python :: how to import mnist dataset keras 
Python :: polynomial features random forest classifier 
Python :: how to install cuda in anaconda 
Python :: where to find python3 interpreter 
Python :: pandas replace data in specific columns with specific values 
Python :: adaptive thresholding with opencv python 
Python :: standard module 
Python :: how to change number of steps in tensorflow object detection api 
Python :: sort list of string datetimes python 
Python :: for each value in column pandas 
Python :: vsc python close all functions 
Python :: drop rows with certain values pandas 
Python :: pandas fill blanks with zero 
Python :: python make api request 
Python :: how to remove python3 on mac 
Python :: from sklearn.metrics import classification_report 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =