Hi all
i want try open multiple images using implay. but want to change contrast first. Below is my code, but still error. anyone can help me.
P = zeros(512, 512, 313);
for K = 1 : 313
petname = sprintf('TRANSA001_CT%03d.dcm', K);
P(:,:,K) = dicomread(petname);
end
Out(:,:,K) = imadjust(P(:,:,K));
implay(Out, [-182 292]);

댓글 수: 9

KSSV
KSSV 2018년 3월 14일
What error you facing? Show us the error and error line.
mohd akmal masud
mohd akmal masud 2018년 3월 14일
Operands to the and && operators must be convertible to logical scalar values.
Error in uiscopes.ScopeCLI/checkSource (line 92) if ~isnumeric(fps) isnan(fps) isinf(fps) ~isreal(fps)
Error in matlabshared.scopes.UnifiedScope (line 105) checkSource( hScopeCfg.ScopeCLI );
Error in uiscopes/new (line 22) hScope = matlabshared.scopes.UnifiedScope(hScopeCfg, varargin{:});
Error in implay (line 60) obj = uiscopes.new(hScopeCfg);
Error in JDT (line 7) implay(Out, [-182 292]);
KSSV
KSSV 2018년 3월 14일
problem is at implay..I think imadjust is working fine.
mohd akmal masud
mohd akmal masud 2018년 3월 14일
i know. do you have idea?
What is class and size of out ?
simply try:
implay(Out)
mohd akmal masud
mohd akmal masud 2018년 3월 14일
what is out
Name Size Bytes Class Attributes
C2 512x512 524288 int16
if true
% code
end
implay(Out, [-182 292]);
What is Out class?
Name Size Bytes Class Attributes
Out 512x512 524288 int16

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

 채택된 답변

DGM
DGM 2023년 4월 9일

0 개 추천

The second argument to implay() is the framerate in FPS. It's a scalar. I have no idea why you're passing it a vector including negative values, but that won't work.

추가 답변 (0개)

질문:

2018년 3월 14일

답변:

DGM
2023년 4월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by