フィルターのクリア

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

2 ビュー (過去 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 件のコメント
juveria fatima
juveria fatima 2018 年 9 月 5 日
編集済み: Stephen23 2018 年 9 月 5 日
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 Center および File ExchangeImport, Export, and Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by