MATLAB Answers

How can i convert the chest x-ray images from JSRT database into png format?

6 views (last 30 days)
Rida Memon
Rida Memon on 27 Jan 2020
Edited: Walter Roberson on 27 Jan 2020
How can i convert the chest x-ray images from JSRT database into png format?
Link for the database: http://db.jsrt.or.jp/eng.php

  3 Comments

Walter Roberson
Walter Roberson on 27 Jan 2020
Probably fopen then fread with uint16 precision and 2048 2048 size. You might need to swapbytes() and you might need to transpose the array.
Rida Memon
Rida Memon on 27 Jan 2020
fid = fopen('JPCLN001.img','r','b');
oneSlice = fread(fid, [2048 2048], '*uint16','b');
img = mat2gray(oneSlice, [0,4096]);
imshow(img);
fclose(fid);
I have this code for conversion. But i want to permenantly save this image. Is that possible?

Sign in to comment.

Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!