필터 지우기
필터 지우기

Do I need to convert units in the following codes?

조회 수: 1 (최근 30일)
soe
soe 2019년 2월 3일
% Do I need to convert units to do the following image processing?
% Which one is correct? Id1 (OR) Id?
Ia=imread('Fig0343(a)(skeleton_orig).tif'); %Fig. (a)
figure,imshow(Ia),title('Fig.(a) - Original Image');
w1=fspecial('sobel');
w2=w1';
Idx=imfilter(Ia,w1);
Idy=imfilter(Ia,w2);
Id1=Idx+Idy;
% (OR)
Id=im2uint8(mat2gray(double(Ia)+double(Idx)+double(Idy))); % Fig. (d) -> Sobel of Fig. (a)
figure,subplot(1,2,1),imshow(Id1);
subplot(1,2,2),imshow(Id);

답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by