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

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -