2017-07-11 18:31:14 -0600 | answered a question | How to Expand contour similar dilatation of contour? If you have a contour as a vector of points and you want to scale it up or down then you need to find center of mass of that contour, and then for each point:
To find center of mass you can simple take an average from all points location or calculate centroid from contour moments, see documentation on topic of contour moments |
2016-07-03 11:41:12 -0600 | received badge | ● Enthusiast |
2015-08-13 16:24:00 -0600 | received badge | ● Supporter (source) |