IMCROP does not support 'XData' or 'YData' specified in [max,min] order.

조회 수: 4 (최근 30일)
Stelios Fanourakis
Stelios Fanourakis 2018년 4월 30일
답변: Walter Roberson 2018년 4월 30일
I use this script and I get error line in imcrop
for indx=3:m
listing(indx).name
A = dicomread(strcat( 'C:\Echo Images\Stelios\FDB.dcm\' , listing(indx).name));
[t1 t2] = size(A); imshow(A);
A = imcrop(A, [200.5 59.75 591 480]);
%A = imresize(A, [360, 280]);
dicomwrite(A, strcat('C:\Echo Images\Stelios\FDB.dcm\test', int2str(indx-2) , '.dcm'));
end

답변 (1개)

Walter Roberson
Walter Roberson 2018년 4월 30일
The syntax is
J = imcrop(x,y,___)
so both vectors must be specified and they must go before the array to be cropped.

카테고리

Help CenterFile Exchange에서 DICOM Format에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by