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

1 回表示 (過去 30 日間)
Rida Memon
Rida Memon 2020 年 1 月 27 日
編集済み: Walter Roberson 2020 年 1 月 27 日
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 件のコメント
Rida Memon
Rida Memon 2020 年 1 月 27 日
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?
Walter Roberson
Walter Roberson 2020 年 1 月 27 日
編集済み: Walter Roberson 2020 年 1 月 27 日
im8 = im2uint8(img);
imwrite(im8, 'OutputFileName.png')

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeBiomedical Imaging についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by