Borrar filtros
Borrar filtros

intersection of multiple images

4 visualizaciones (últimos 30 días)
k.v.swamy
k.v.swamy el 6 de Dic. de 2011
hi chandra, what should i do if i want to display the intersection portion.
  1 comentario
Image Analyst
Image Analyst el 6 de Dic. de 2011
There is no context for this question. You should reply to your other thread and delete this one, or at the very least, put in a link to the other thread that you split off from.

Iniciar sesión para comentar.

Respuesta aceptada

Chandra Kurniawan
Chandra Kurniawan el 6 de Dic. de 2011
Hello,
Sorry for waiting.
Here the code :
array = uint8(intersection);
for row = size(intersection,1) : -1 : 1
if ~any(find(intersection(row,:)))
array(row,:) = [];
end
end
for col = size(intersection,2) : -1 : 1
if ~any(find(intersection(:,col)))
array(:,col) = [];
end
end
imshow(array);
  19 comentarios
Chandra Kurniawan
Chandra Kurniawan el 7 de Dic. de 2011
Hi, k
I think it is impossible.
You can only do matrix subtraction if both of dimension and size are same.
If we know about matrix concept, if we have matrix A [p x q] and B [r x s], subtraction matrix A with matrix B can be occur only is p == r and q == s.
So, you cannot perform it with different size of two matrices.
k.v.swamy
k.v.swamy el 7 de Dic. de 2011
yes i do agree with the answer,but in my assignment iam given two sets of images for which i have to find the intersection
https://picasaweb.google.com/103266594409982679463/ImagesSet1?authuser=0&feat=directlink
https://picasaweb.google.com/103266594409982679463/IMAGESSET2?authuser=0&feat=directlink
i hav given u the links and i have written the code like
clc;
clear all;
close all;
I = double(imread('work.jpg'));
J = double(imread('work1.jpg'));
imshow(uint8(I)),figure,imshow(uint8(J))
l=length(I);
for i=1:l
for j=1:l
if i>1200
i=1200
end
if I(i,j)==J(i,j)
s(i,j)=I(i,j);
elseif I(i,j)~=J(i,j)
k(i,j)=I(i,j);
end
end
end
figure,imshow(uint8(k))
pl verify for once

Iniciar sesión para comentar.

Más respuestas (1)

Chandra Kurniawan
Chandra Kurniawan el 7 de Dic. de 2011
I got little confused with your question.
Let me pick one picture.
Then which another picture will be intersected with that image??
  3 comentarios
k.v.swamy
k.v.swamy el 8 de Dic. de 2011
chandra if u get any clue pl reply me.
k.v.swamy
k.v.swamy el 9 de Dic. de 2011
hi chandra,can u pl look at my problem and giv me reply.

Iniciar sesión para comentar.

Categorías

Más información sobre Feature Detection and Extraction en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by