Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Finding overlap of two objects in an image using OpenCV

I have this image and would like to find the intersection points of the two objects ( blue vector and red vector ). Unfortunately, the find_intersection method between the vectors returns a size 0 because ofcourse there in no overlap of the edges where the two objects meet.

So, is there an elegant way to find the intersecting part of the blue and the red part using OpenCV? Maybe using findContours or CannyEdge or any convolving filter? I am not sure, how I should proceed.image description

Finding overlap of two objects in an image using OpenCV

I have this image and would like to find the intersection points of the two objects ( blue vector and red vector ). Unfortunately, the find_intersection method between the vectors from the c++ standard library returns a size 0 because ofcourse there in no overlap of the edges where the two objects meet.

So, is there an elegant way to find the intersecting part of the blue and the red part using OpenCV? Maybe using findContours or CannyEdge or any convolving filter? I am not sure, how I should proceed.image description