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

조회 수: 4 (최근 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 CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by