Azzera filtri
Azzera filtri

Do I need to convert units in the following codes?

1 visualizzazione (ultimi 30 giorni)
soe
soe il 3 Feb 2019
% 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);

Risposte (0)

Categorie

Scopri di più su Convert Image Type in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by