Ask Your Question

Compare two images and mark the unmatched object or remove unmatched

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

Suren gravatar image

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

berak gravatar image


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

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

BAHRAMUDIN ADIL gravatar image

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

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.


  • 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


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

Seen: 210 times

Last updated: Mar 17 '18