c++ - Convert "Cartesian coordinates" to "polar coordinates with respect to user specified origin" -
i trying convert few points in image polar coordinates in opencv. came across function called carttopolar give me polar coordinates points respect 0,0 being origin. want conversion considering point in image origin. can me doing so? came across posts remap helps shift origin not clear how works.
then have move ref point origin:
px -= ref.x; py -= ref.y;
now pass (px,py) carttopolar
function
Comments
Post a Comment