how can xor first pixel with second and second with third and so on (for binary image)
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
juveria fatima
le 1 Sep 2018
Commenté : Abubakar Abba
le 1 Août 2021
image=imread('lena.jpg');
bin_image=dec2bin(image);
i have attached the pdf of my question kindly review
2 commentaires
KALYAN ACHARJYA
le 1 Sep 2018
Modifié(e) : KALYAN ACHARJYA
le 1 Sep 2018
What do you mean by the second pixel...?
Réponse acceptée
KALYAN ACHARJYA
le 1 Sep 2018
Modifié(e) : KALYAN ACHARJYA
le 1 Sep 2018
image=imread('image_name.image_format'); %e.g. im1.jpg
bw_image=im2bw(rgb2gray(image));
[row colm]=size(bw_image);
for i=1:row-1
for j=1:colm-1
new_image(i,j)=xor(bw_image(i,j),bw_image(i+1,j+1));
end
end
imshow(c);
15 commentaires
Abubakar Abba
le 1 Août 2021
Why imshow(c);? I didnt see any variable c from the code. i think it should be imshow(new_image)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Convert Image Type dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!