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

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - UICollectionView Self Sizing Cells with Auto Layout -