필터 지우기
필터 지우기

Is there a bug in the dicomwrite function, can I work around it?

조회 수: 2 (최근 30일)
David Lieberman
David Lieberman 2012년 9월 10일
I have MR-DICOM images und i want to change pixel values of the DICOM-Images while maintaining the same Header of the images. I have tried with dicomread und write and info, But it has not worked. In particular, the dicomwrite program messes up the header. Presumably, one can use load dicom headers using:
info_in = dicominfo('infile');
load the data using: data = dicomread('infile');
and then write using: dicomwrite(data,'outfile',info_in,'CreateMode', 'copy');
However, the header field 'LargestImagePixelValue' gets' changed from 4000+ to 255! As far as I can tell, there is no way to avoid this flaw in the writer. Then, no dicom reader's can correctly show the data because the header is wrong. I tried leaving off the 'CreateMode', 'copy' flags in the write command... that didn't help. For all practical purposes, it seems like MATLAB has no useful dicom support
  댓글 수: 1
Sean de Wolski
Sean de Wolski 2012년 9월 10일
What does the info_in struct look like? Is it full, empty? Does it contain the 'LargestImagePixelValue' property? It looks like somewhere something non-uint8 is being converted to uint8 but it's kind of hard to tell without being able to see it.
Also, take a peak at: FEX:dicom-toolbox

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Read and Write Image Data from Files에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by