Shape feature extraction in Matlab

10 views (last 30 days)
I would like to know how to extract shape features like area,perimeter ,eccentricity,symmetry distance in Matlab.Do i need to convert the colour image into grayscale for doing this calculation.Or is the calculation done in the pre-processed segmented image.

Accepted Answer

Image Analyst
Image Analyst on 21 Nov 2015
You need to first segment the image to get a binary image then you can call regionprops(). Whether you call rgb2gray() or just extract one of the RGB color channels, or use rgb2hsv() or rgb2lab(), or PCA or something else really depends on your image and what you need to find in it. Post your image(s) if you want more advice.
  6 Comments
Dileep Kumar Kothamasu
Dileep Kumar Kothamasu on 17 Mar 2018
can someone attach the code for shape feature extraction?

Sign in to comment.

More Answers (1)

junnie vix
junnie vix on 21 Mar 2017
I am using SURF to extract shape in matlab. I don't have any idea how to start it. Any helpful guidance or reference?

Community Treasure Hunt

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

Start Hunting!