I have medical images of 130 patients in a folder which includes two types of files for each patient. For example, patient1.mhd and patient1.rawfiles. I downloaded Matlab FileExchange to read these files. But I have to import each patients' files manually from the menu.

I want to save each stack of data into .png files for each patient. For instance, patient1 data has 3D matrix (281x389x104, (i.e., 104 images, Width: 281 and Height: 389)), and I want to save all patients' files in one folder with png or any other image e.g. jpg format without losing original information. What do you suggest? Does anyone know any function or code that helps me?

Your help is appreciated

Many thanks

0

There are 0 best solutions below