How to sement a grayscale image into 8 halves?

1 回表示 (過去 30 日間)
Mehreen Hussain
Mehreen Hussain 2013 年 6 月 24 日
i've a grayscale image and i want to segment it in 8 parts then find the distance between those segments and then coorelate them kindly help me with matlab commands,any help is highly appreciated.
  1 件のコメント
Nitin
Nitin 2013 年 6 月 24 日
It would be helpful if you could post an image, there are different types ways to segment an image. One would be to use Canny and get the binary image

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2013 年 6 月 24 日
See my image segmentation tutorial where I find centroids: http://www.mathworks.com/matlabcentral/fileexchange/25157-image-segmentation-tutorial-blobsdemo. From there it's easy to use the Pythagorean theorem to find the distance between all the centroids.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by