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
KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 9월 1일
편집: KALYAN ACHARJYA 2018년 9월 1일
What do you mean by the second pixel...?
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
Abubakar Abba
Abubakar Abba 2021년 8월 1일
Why imshow(c);? I didnt see any variable c from the code. i think it should be imshow(new_image)

댓글을 달려면 로그인하십시오.

추가 답변 (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