Category "pydicom"

How to color a grayscale image based on a mask?

I have two images: A grayscale image, and a binary mask with the same dimensions. How do I color the image on the mask, while the rest of the image remains gray

How can I save the metadata only of a dicom image, without the PixelArray?

I have a Dicom Image and I did read it with pydicom.dcmread('1.dcm'). how can I write just the metadata, without the pixel_array? either as dictionary, or as di

Is it possible to retrieve beam real world position from RT PLAN

I am currently working on some radiotherapy plan generation and I am trying to retrieve the beam source position from a DICOM RTPLAN file and point it on a rela