Sunteți pe pagina 1din 1

A = imread('C:\Users\Febriana\Pictures\malariaBNI.

jpg');
imshow(A);
B = rgb2gray(A);
C = histeq(B);
E = adapthisteq(C,'cliplimit',0.01,'Distribution','rayleigh');
h = [-1 -2 -1; 0 0 0; 1 2 1]; %kernel nya
G = abs(conv2(E,h));
G = uint8(G);
size(G)
size(E)

h2 = [-1 0 1; -2 0 2; -1 0 1];
J = abs(conv2(E,h2));
J = uint8(J);

K = G+J;
K = uint8(K);
figure, subplot(1,2,1),imshow(D), subplot(1,2,2),imshow(G), ...
subplot(2,2,3), imshow(J), subplot(2,2,4), imshow(K);

S-ar putea să vă placă și