How to get the coordinates of the center of gravity of various triangles and rectangles on the image?
Show older comments
I would like to get the center of gravity of various (size / gradient) triangles and rectangles drawn on one image. Is there any useful toolbox or functions to get it in MATLAB? In some triangles are partially out of image, only one or two angles are drawn on the image. I'd installed MATLAB last month and am a beginner, so if possible, could you please let me which toolbox/function I should use, with a sample code?
3 Comments
phi
on 11 Aug 2015
Image Analyst
on 11 Aug 2015
You forgot to attach the image. I don't know what to change without it. Perhaps change the threshold or the direction of the < or > symbol. Or perhaps you should get rid of the size filtering. I don't really know what you want to find in the image because you didn't post it and didn't explain what "recognize" means. Do you simply want a count? Are there circles and triangles and you want to segment out only the triangles and not the circles? I have no idea.
phi
on 14 Aug 2015
Accepted Answer
More Answers (0)
Categories
Find more on Geometric Transformation and Image Registration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!