how can xor first pixel with second and second with third and so on (for binary image)

1 次查看(过去 30 天)
image=imread('lena.jpg');
bin_image=dec2bin(image);
i have attached the pdf of my question kindly review
  2 个评论
juveria fatima
juveria fatima 2018-9-1
kindly go through the pdf u will understand what i want to do bitxor(first column with second column) then bitxor(third with fourth)as follows for full image and then atlast i have to get back my original image

请先登录,再进行评论。

采纳的回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2018-9-1
编辑:KALYAN ACHARJYA 2018-9-1
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 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Import, Export, and Conversion 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by