Ask Your Question
0

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

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

2 answers

Sort by ยป oldest newest most voted
0

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.

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
-1

answered 2018-03-17 14:48:59 -0500

crackwitz gravatar image

what do you have so far?

edit flag offensive delete link more

Comments

1

Please put your question in the comment. Here is the answer place.

BAHRAMUDIN ADIL gravatar imageBAHRAMUDIN ADIL ( 2018-03-17 15:18:29 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 159 times

Last updated: Mar 17 '18