Compare two std::vector<cv::Point> vectors and safe common points to a third std::vector<cv::Point>
<p>I'm looking for an alternative version for the <code>std::set_intersection</code> function but for <code>std::vector&lt;cv::Point&gt;</code> vectors.</p>

<p>I try to compare two <code>std::vector&lt;cv::Point&gt;</code> vectors with different sizes. Those  two contain coordinate lists. The main task of the intersection-like Method should now be to detect common pairs and safe them to a third <code>std::vector&lt;cv::Point&gt;</code> via <code>push_back()</code></p>

<p>I searched for a function like <code>std::set_intersection(v1.begin(),v1.end(),v2.begin(),v2.end(),back_inserter(v3));</code></p>

<p>Any ideas how to solve this?</p>