shape features for the segments?

hi i have to write a program for shape features for the segments with top 4 largest areas. and i dont know how to do this .
plz help me.

 Respuesta aceptada

Image Analyst
Image Analyst el 11 de Oct. de 2013

0 votos

My function that extracts the N biggest or smallest blobs is included in the demo I attached below. Once you have the 4 largest regions you can then call regionprops to measure things in them like the area, perimeter, equivalent circular diameter, etc.

7 comentarios

SAM
SAM el 11 de Oct. de 2013
Editada: SAM el 11 de Oct. de 2013
thanks for reply. can u tell me how could i do this with graph cut method. i wants to keep K=5.
basically i have to write for this equation.
G=(1/ area of regioni )sum(k)
where i ( i = 0, 1, 2,4 ) is the index of the largest three regions. (k) is the normalized coordinates (normalized by the width of the image) . plz reply me..
Image Analyst
Image Analyst el 11 de Oct. de 2013
Attach your image and I'll see what I can do, if I have time.
SAM
SAM el 11 de Oct. de 2013
any way thanks for your help.........
SAM
SAM el 12 de Oct. de 2013
hi can plz tell me a simple way of writing graphcut program with K-means method.
i.e an image divide into 6 parts (cluster).
plz reply.
Image Analyst
Image Analyst el 12 de Oct. de 2013
Steve Eddins has a demo for the k-means method for color segmentation: http://www.mathworks.com/products/demos/image/color_seg_k/ipexhistology.html
SAM
SAM el 12 de Oct. de 2013
Editada: SAM el 12 de Oct. de 2013
i have already try this but the problem with this code is it converting rgb to Lab and i wanted to use rgb image. moreover, its only valid for K=3.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Preguntada:

SAM
el 11 de Oct. de 2013

Comentada:

SAM
el 12 de Oct. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by