Ask Your Question
0

how to find centroid, area, orientation of a particular region in an image

asked 2020-04-02 09:09:39 -0600

i need this for my project. i need to find the above mentioned features of an object

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-04-02 10:24:54 -0600

HagymaGyilkos gravatar image

updated 2020-04-02 10:27:33 -0600

If you have a mask over the region, you can convert it to a shape.

If the region in question is already a shape, you have jackpot-all those features are implemented to shapes. This article should be super useful for you. If in doubt, c++ is exactly the same, but different syntax.

Orientation can calculated from a fitted line. Be aware, that orientation is may trickier than first seems, look out for symmetries, and how you handle rotational errors.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-04-02 09:09:39 -0600

Seen: 660 times

Last updated: Apr 02 '20