필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

help Dicominfo in Listbox

조회 수: 2 (최근 30일)
david martinez
david martinez 2018년 2월 5일
마감: MATLAB Answer Bot 2021년 8월 20일
Could you help me put the dicominfo function in a listbox, you should display the image information in the listbox
  댓글 수: 1
Walter Roberson
Walter Roberson 2018년 2월 5일
Are you certain you want it in a listbox ? listbox is an input control for the user to select a value or action. It would seem to make more sense to put it into a text box or uitable.

답변 (1개)

Walter Roberson
Walter Roberson 2018년 2월 5일
If you want to construct a textbox, one of the ways to proceed would be to evalc() dicominfo, or to assign the result of dicominfo to a variable and evalc() disp() of the variable.
Note that evalc() will give back a result with embedded newline characters. To break it up into lines, I suggest using
cell_result = regexp(dicominfo_result, '\r?\n', 'split');
Make sure that you set Max of the uicontrol('style','text') to at least 2 if you are displaying multiple lines this way.
  댓글 수: 7
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일
Stop posting the same question over and over again. You already created https://www.mathworks.com/matlabcentral/answers/383405-extract-rescale-slope-value

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by