1 | initial version |
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