How to separate query and train image after doing the matching

asked 2015-04-13 09:53:18 -0600

RB gravatar image

updated 2015-04-13 10:00:31 -0600

since the Mat object returned from .DrawMatches(..) method includes both of the query/object image on the left side and the train/scene image on the right side. is there any way get two separate Mat objects, one for the query/object image and the other for the train/scene image?

i am asking this question because i am tryin to detect an object when the camera spots it, and what i got displayed on the designated area from the camera stream is, NOT only the train/scene image with the detected object highlighted, BUT an image with the query/object on the left side and the train/scene on the right with the detected object highlighted.

in such case, how to got only either the query/object image or the train/scene image after doing the matching?

edit retag flag offensive close merge delete


Have you tried DRAW_OVER_OUTIMG as the flag? Or can you post the function that you are talking about if it is not he one from opencv?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-04-15 09:00:52 -0600 )edit