import pydicom import os import numpy as np import matplotlib.pyplot as plt from sklearn.cluster import KMeans