필터 지우기
필터 지우기

Converting Dicom to Png gives dark Image.

조회 수: 2 (최근 30일)
Iram Shahzadi
Iram Shahzadi 2018년 11월 25일
편집: madhan ravi 2018년 11월 25일
I want to save dicom (uint 16) image to png format but image appear blank, although brain image is displayed well with imshow command
I converted image to uint 8 but the problem is same again. I have attached a zip folder with few dicom images. can anyone please help me in writing dicom image in same resolution as it appears with imshow command
I =uint8(dicomread(FileName));
imshow(I,[]);
imwrite(I,'DTP.png');

채택된 답변

Walter Roberson
Walter Roberson 2018년 11월 25일
inwrite(mat2gray(I), Filename)
  댓글 수: 1
Iram Shahzadi
Iram Shahzadi 2018년 11월 25일
편집: madhan ravi 2018년 11월 25일
Thank you... this solved my problem

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 DICOM Format에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by