I have a stack of medical images that I need to convert them into png or any other image format. It is, for example, 281x389x104 (i.e., 104 images, Width: 281 and Height: 389). The files are in .mhd and .raw format. After reading that, how can I convert each slice into an image format without losing information?
Your help is appreciated