Ask Your Question
0

Compare two images and mark the unmatched object or remove unmatched

asked 2018-03-16 13:39:43 -0600

Suren gravatar image

updated 2018-03-16 14:34:17 -0600

berak gravatar image

Hi,

I want to compare two images and want to plot or remove the unmatched objects found. I was using ORB to find matches between two images, But how can I plot and show the unmatched one.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-03-17 15:23:41 -0600

BAHRAMUDIN ADIL gravatar image

updated 2018-03-17 16:01:00 -0600

Many ways to do this, but the simple one is to use the void absdiff(InputArray src1, InputArray src2, OutputArray dst) function.

Calculates the per-element absolute difference between two arrays or between an array and a scalar.

Parameters:

  • src1 โ€“ first input array or a scalar.
  • src2 โ€“ second input array or a scalar.
  • dst โ€“ output array that has the same size and type as input arrays.
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-03-16 13:39:43 -0600

Seen: 417 times

Last updated: Mar 17 '18