Borrar filtros
Borrar filtros

Convert RAW and MHD File (images) to JPG

26 visualizaciones (últimos 30 días)
rezvan raz
rezvan raz el 11 de Ag. de 2022
Comentada: Cris LaPierre el 11 de Ag. de 2022
Hi.
I have a MRI dataset file contain raw and mhd files.
i read this images with the below code :
id = fopen('filename.raw');
img = fread(id,'short');
imgsize = size(img);
rows = 512;
clos =512;
nums = imgsize(1)/rows/clos;
img = reshape(img,[rows,clos,nums]);
single_image = reshape(img(:,:,3),[rows,clos]);
single_show = uint8(single_image);
imshow(single_show)
But in the following I want to convert these images into JPG format.
I would be grateful if you could help me with this image conversion section.

Respuestas (0)

Categorías

Más información sobre Biomedical Imaging en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by