4 ms·
Re 3. the centroid seems wrong in the article (the one on the right is supposedly 'good') https://cdn-images-1.medium.com/max/2000/1*3VebDJ3XSt3g3syHYru3FQ.png
by ncr100 9y ago
Re 3. the centroid seems wrong in the article (the one on the right is supposedly 'good') https://cdn-images-1.medium.com/max/2000/1*3VebDJ3XSt3g3syHYru3FQ.png https://cdn-images-1.medium.com/max/2000/1*3VebDJ3XSt3g3syHY... . Both look uncomfortably off-center, too far to the left or right. There must be a better way than 'draw a circle around it' (imagine with Portlandia voice.)
- muglug 9y agoYeah, having spent a bit of time in Photoshop, for that particular problem I think the solution is an average of shape centre-of-mass and bounding rectangle centre.