What variable value should I change here?

for num_image = 1 : 1 : 313
ct1 = dicomread(sprintf('1-%03d.dcm', num_image));
ct_8 = (ct1)/16;
c9 = imresize(ct_8, 2);
ct_fin = uint8(c9);
%figure, imshow(ct_fin);
eval(['imwrite(ct_fin,''' 'test_' num2str([1+(num_image-1)]', '%03i') '.jpg'');']);
end

답변 (1개)

KSSV
KSSV 2021년 11월 1일
편집: KSSV 2021년 11월 1일

0 개 추천

for num_image = 1 : 1 : 313
ct1 = dicomread(sprintf('1-%03d.dcm', num_image));
ct_8 = (ct1)/16;
c9 = imresize(ct_8, 2);
ct_fin = uint8(c9);
%figure, imshow(ct_fin);
imgName = ['test_',num2str(1+(num_image-1)),'.jpg']
imwrite(ct_fin,imgName);
end

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2021년 11월 1일

편집:

2021년 11월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by