15,670,097 members
See more:
hi,

i have the project that needs to me to develop the source code for calculate irregular shapes area,length and width for rice seeds .i have the problem to do this solution.so,can anyone help me to make the solution.My project is for detect and extract the irregular shape and must calculate the area of irregular shape...

Regards
nitin dhiman
nittonly4u@gmail.com
Posted
Sergey Alexandrovich Kryukov 11-Sep-13 2:49am
It highly depends on what's on input. In particular, is image recognition involved?
—SA

## Solution 2

Thank you Sir Sergey Alexandrovich and Anurag Sinha V...For Comments

please give me Some help how to solve this..Any suggestion...

How to Paste an image in Comments to Know what is the actual problem...

thanks Again...

for image http://www.freewebs.com/bnip1/morphologyclearborder.htm[^]

## Solution 1

Basically, you need to learn elementary mathematics, and, for curved irregular shapes, some elementary calculus. This is hardly a topic for one of few Quick Answers. In practice, you need to approximate an irregular shape with a polygon, which you should know how to measure for area and perimeter.

—SA

Anurag Sinha V 11-Sep-13 2:53am
Rightly said Mr. SA, the above question is not a straight forward one and I agree on the fact that an irregular shape has to be approximated as the nearest polygon..
NIce suggestions..

-Anurag
Sergey Alexandrovich Kryukov 11-Sep-13 2:59am
Thank you, Anurag.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Top Experts
Last 24hrsThis month
 OriginalGriff 111 Richard MacCutchan 65 Patrice T 65 Richard Deeming 60 CPallini 50
 OriginalGriff 1,152 Richard MacCutchan 352 Patrice T 175 CPallini 135 Richard Deeming 120

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900