addition of binary image matlab
Mostrar comentarios más antiguos
clear all;close all;clc;
a=[0 15 135;10 100 200; 20 50 150];
b=[100 105 110; 60 80 90;40 10 120];
c=zeros(size(a));
[m,n]=size(a);
for i=1:m
for j=1:n
c=dec2bin(a(i,j),7),pause
end
end
k=zeros(size(b));
[m,n]=size(b);
for i=1:m
for j=1:n
k=dec2bin(b(i,j),7),pause
end
end
g=uint8([0000000 0001111 10000111;0001010 1100100 11001000;0010100 0110010 10010110]);
r=uint8([1100100 1101001 0001010;1111000 1010000 1011010;0101000 0001010 1111000]);
TT = bitand(g,r)
please help me additioner both binary matrix.tks :)
1 comentario
Image Analyst
el 26 de Nov. de 2013
Editada: Image Analyst
el 26 de Nov. de 2013
This should help: http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup. This should also help: http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
What do you want to do? Your code has two dead/useless for loops, and some useless code after that. I can't figure out if you want to add two binary images, or AND them bitplane-by-bitplane. And why you'd want or need to do either one.
Respuestas (0)
Categorías
Más información sobre Images en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!