calculating centroids

13 visualizaciones (últimos 30 días)
Pat
Pat el 12 de En. de 2012
I have divided the video into frames ,can u tell how to calculate cluster centroids using k means algorithm please

Respuesta aceptada

Image Analyst
Image Analyst el 12 de En. de 2012
Here's the demo:
After that, if you need spatial centroids (x,y,z locations) in addition to color centroids (the RGB values of the color clusters' centroids), it's a simple matter to find centroids using bwlabel() and regionprops(), like in my BlobsDemo ( http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 ).
  1 comentario
FIR
FIR el 12 de En. de 2012
Thanks a lot

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Filtering and Enhancement en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by