4.33333

4.3 | 6 ratings Rate this file 7 Downloads (last 30 days) File Size: 877 Bytes File ID: #1763

fastcentroid

by Marcelino Sanchez

 

30 May 2002 (Updated 31 May 2002)

fast centroid calculation

| Watch this File

File Information
Description

[iind,jind,numberofpixels]=fastcentroid(X)

Fastcentroid.m returns the centroid coordinates for the connected components in BW (iind,jind) and the number of pixels of each component (numberofpixels). For more information, type 'help fastcentroid' at the MATLAB command prompt after download.

software developed by: Marcelino Sanchez Gonzalez (C) May 2002
e-mail:sanchezmarcelino@hotmail.com

Required Products Image Processing Toolbox
MATLAB release MATLAB 6.1 (R12.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
16 Jan 2003 Yang Gaobo  
28 Jan 2004 Enrico Segre

at line 31, bwlabel has to be lowercased. Besides, the idea is simple but ok and indeed a time-saver. Thx!

09 Apr 2004 TATA SA  
14 May 2004 Angel Ruiz

It is a very simple code, I like simple and it works excellent

20 Jul 2004 L N

A function that WORK.

01 Aug 2009 W Thielicke

Does what it says: Faster than regionprops (centroid and bounding box). Thumbs up.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
measurements Marcelino Sanchez 22 Oct 2008 06:45:07
image processing centroid Marcelino Sanchez 22 Oct 2008 06:45:07
fast Marcelino Sanchez 22 Oct 2008 06:45:07
image processi Marcelino Sanchez 22 Oct 2008 06:45:07
measurement Marcelino Sanchez 22 Oct 2008 06:45:07
centroid Marcelino Sanchez 22 Oct 2008 06:45:07
centroid Ken 22 Sep 2010 15:18:06

Contact us at files@mathworks.com