No BSD License  

Highlights from
Centroid Calculation Function

3.61538

3.6 | 13 ratings Rate this file 148 Downloads (last 30 days) File Size: 723 Bytes File ID: #5457

Centroid Calculation Function

by Fahd Ahmad Abbasi

 

11 Jul 2004 (Updated 13 Jul 2004)

Calculates centroid of an object present in an image.

| Watch this File

File Information
Description

Function takes a picture as an argument (suitably should contain only one object whose centroid is to be obtained) and returns the x and y coordinates of its centroid.

Required Products Image Processing Toolbox
MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (13)
10 Aug 2005 Carl Fischer

quick and useful. Save yourself a few minutes of coding.

06 Oct 2005 shaun truong  
06 Sep 2006 Lester Chong

Simple to implement. With instructions

17 Nov 2006 Shirley Hui

Works well.

08 Dec 2006 saga y  
10 Mar 2007 c koley

no

16 Nov 2007 Steve Jenkins  
11 Dec 2007 Asma Mughal

it helped me im my Computer Vision Assignment

02 Mar 2008 islam ali

thank you for this code but if there is shadow of object in pic. can this code measure the real C.G of the object

18 Mar 2008 Anonimous -

Thanks a lot for this code. It will be very useful for me =)

02 Apr 2008 Javeria Malik

thanks fahad this is the first step of my project implementation
Many thanks

21 May 2008 Kameron Rausch

This is a first order centroiding algorithm but is not suitable for determining the centroids of objects when a background in present.

10 Mar 2010 Anton Kylling

Calculates the centroid of the entire image.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
measurements Fahd Ahmad Abbasi 22 Oct 2008 07:27:10
centroid Fahd Ahmad Abbasi 22 Oct 2008 07:27:10
center of mass Fahd Ahmad Abbasi 22 Oct 2008 07:27:10
picture Fahd Ahmad Abbasi 22 Oct 2008 07:27:11
object Fahd Ahmad Abbasi 22 Oct 2008 07:27:11
image p Fahd Ahmad Abbasi 22 Oct 2008 07:27:11
y Fahd Ahmad Abbasi 22 Oct 2008 07:27:11
x Fahd Ahmad Abbasi 22 Oct 2008 07:27:11
center of mass Cansina Mente 20 Feb 2009 11:27:02
centroid Cansina Mente 20 Feb 2009 11:27:06
centroid Moises Hammon Roldan 30 May 2009 12:25:19
centroid cameron 19 Oct 2009 02:32:55
center of mass marco 29 Oct 2009 09:25:35
centroid marco 29 Oct 2009 09:25:53
centroid Jeff 28 Feb 2010 19:55:26
cursive sanjay 03 Mar 2010 04:51:17
working HariSingh Chaudhary 19 May 2010 06:28:27
center of mass Andrew 21 Jun 2010 15:15:48
centroid Casady Bowman 28 Jul 2010 12:10:58
centroid Yuri Kotliarov 05 Aug 2010 15:41:13
centroid John 23 Sep 2010 12:06:31
center of mass Tima Tima 01 Oct 2010 09:07:30
centroid Tima Tima 01 Oct 2010 09:07:44
y Salim Reza 12 Oct 2010 09:12:01
x Salim Reza 12 Oct 2010 09:12:03
centroid Salim Reza 12 Oct 2010 09:12:05
cursive Salim Reza 12 Oct 2010 09:12:06
image p Salim Reza 12 Oct 2010 09:12:09
object Salim Reza 12 Oct 2010 09:12:10
measurements Salim Reza 12 Oct 2010 09:12:10
picture Salim Reza 12 Oct 2010 09:12:12
working Salim Reza 12 Oct 2010 09:12:13
centroid Abhinav Saxena 11 Jan 2011 15:20:50
centroid faisal 16 Jan 2011 05:08:29
centroid Tranos 28 Feb 2011 04:03:14
centroid Nathan 18 May 2011 17:27:45
centroid Andrea 08 Jul 2011 10:17:11
centroid Mario Georgiou 18 Jul 2011 06:58:19
center of mass Omar 07 Aug 2011 03:40:18
center of mass chen 30 Aug 2011 20:56:36
centroid Oli 14 Sep 2011 02:04:17
center of mass CARLOS 26 Sep 2011 11:34:12
centroid Stella 06 Dec 2011 05:27:11
center of mass n00b_user 13 Jan 2012 03:26:34

Contact us at files@mathworks.com