计算图片中大米的个数,计算每个大米的周长和中心点
Here we are interested to find number of rices and their perimeters as well as their center of gravities.
Using the image, segment rices in a binary image. Then you can use the help mfile (Q2.m) to see how we can lable, find perimeter and calculate center of gravity for each object. (you should get 97 rices for good segmentation). (2011-09-27, matlab, 45KB, 下载14次)