I do have a set of openCV Point2f type image points (coordinates). I want to find the 4 nearest neighbors of each point in that set. Is there any specific build-in function in openCV to do this or should I measure the distance between each point and decide the four closest?