What is difference between dicomdisp vs dicominfo?

조회 수: 7 (최근 30일)
Kevin Fallon
Kevin Fallon 2016년 2월 8일
댓글: Walter Roberson 2018년 2월 19일
Good afternoon, I am trying to access data within a dicom rt file. When I use dicomdisp the data I am interested is shown but when dicominfo is called on this file, the data is not displayed. What are the differences between a function call of dicomdisp and dicominfo that would cause this data loss?

채택된 답변

Julianna Mather
Julianna Mather 2016년 11월 28일
What you're seeing here is the hierarchical nature of DICOM files. The "FluenceMapSeqeuence" struct in the dicominfo output contains the fields you want. (You can see this in the output of dicomdisp in the non-zero values of the "Level" column.)
In your example, you'd want to write something like this:
metadata = dicominfo('c:\file.dcm');
metadata.FluenceMapSequence.Item_1.FluenceDataScale
I hope this helps.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2016년 2월 8일
편집: Walter Roberson 2016년 2월 8일
One difference is that dicomdisp() is for displaying only, but dicominfo() returns the information as a structure and so is for program use.
Some of the information returned by dicominfo does not get displayed by default because what is being returned is a struct array and the default display of struct arrays give summaries of the content if the content is more than a fairly small size. To see that information you would need to store the resulting struct and ask to display a particular field of it.
  댓글 수: 6
mohd akmal masud
mohd akmal masud 2018년 2월 19일
Hi all,
I want to extract the RescaleSlope value from dicominfo for each slice. But i have 135 slice images. This is my code to extract RescaleSlope. But still failed. I JUST CAN EXTRACT ONE BY ONE ONLY.
P = zeros(256, 256, 135);
for K = 1 : 135
petname = sprintf('PET_I1001_PT%03d.dcm', K);
P(:,:,K) = dicominfo(petname);
end
info=dicominfo(P(:,:,K));
[r,c,slice] = findND (info.RescaleSlope);
Anyone who can help me solve this problem???
Walter Roberson
Walter Roberson 2018년 2월 19일
Do not keep posting the same question. You already created https://www.mathworks.com/matlabcentral/answers/383405-extract-rescale-slope-value

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

카테고리

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