Ask Your Question

iOS - How to find the difference area in the two images

asked 2017-10-13 01:35:21 -0600

Prakash iOS gravatar image

I'm new to the OpenCV. I want to find the difference area in the two images.



In the attached images, i need to find the different area i.e, the small circle coordinates.

Please guide me to do it.


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-10-13 05:24:35 -0600

gino0717 gravatar image

hi try thing:

Mat image1=imread("1.png");     
Mat image2=imread("2.png");     
Mat result=image1-image2;

and you can get this image as result

image description

then maybe look up some findcontour function to find area center

something like this , maybe in different program language but similar.

edit flag offensive delete link more


Thanks! Also i need to know the rect coordinates of the circle.

Prakash iOS gravatar imagePrakash iOS ( 2017-10-13 05:40:46 -0600 )edit

Question Tools

1 follower


Asked: 2017-10-13 01:35:21 -0600

Seen: 323 times

Last updated: Oct 13 '17