Code Directory
 Visual Basic & VB.NET
New Code
On-demand Service Booking Solution - Agriya 1.0
Ticketmaster Script 1
Lookbook for Magento 2 2.0
LuaStudio 9.70
Product Design Software 1.0
PHP Poll 1.0
Magento 2 Product Tabs 2.0.x, 2.1.x, 2.2.x
Database Workbench Pro 5.4.0
ByteScout Text Recognition SDK
Equipment Rental Script 1.0
Aliexpress Clone- Ec21 Script 1
Agriya Event Booking Solution v2.0b5
Key Transformation 8.1133
IP2Location Geolocation Database 2018
Top Code
Online Vacation Rental Booking Website Script 4.3.0
Ping Pong Game Code Script 1.1
Detect circles with various radii in grayscale image via Hough Transform 1.0
weCloud 1.0
Library Management System 1.0
Hawkeye Computer Graphics Projects in C++ 1.0
InSPIRE -- 2D to 3D Conversion for further image analysis 1.0
Restaurant Table Booking System 2.0
Ad2Ex Adverser Php Script 1.06
EyeOS 2.5
Implementation of the token bucket algorithm
RLE coding 1.0
Hough transform for circles 1.0
Copy-move forgery detection in images
Top Rated
Indiegogo Clone 3.0
PHP Image Resize Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
Travel Portal Script 9.29
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
Deals and Discounts Website Script 1.0.2
Readymade MLM Products 2.01
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Label connected components in 2-D array 1.0
File ID: 82126

Label connected components in 2-D array 1.0
Download Label connected components in 2-D array 1.0http://www.mathworks.comReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 12
Submit Rating:
Label connected components in 2-D array 1.0 Description
Description: LABEL is a generalization of BWLABEL: BWLABEL works with 2-D binary images only, whereas LABEL works with 2-D arrays of any class.

L = LABEL(I,N) returns a matrix L, of the same size as I, containing labels for the connected components in I. Two adjacent components (pixels), of respective indexes IDX1 and IDX2, are connected if I(IDX1) and I(IDX2) are equal.

N can have a value of either 4 or 8, where 4 specifies 4-connected objects and 8 specifies 8-connected objects; if the argument is omitted, it defaults to 8.

Important remark:
NaN values are ignored and considered as background. Because LABEL works with arrays of any class, the 0s are NOT considered as the background.

The elements of L are integer values greater than or equal to 0. The pixels labeled 0 are the background (corresponding to the NaN components of the input array). The pixels labeled 1 make up one object, the pixels labeled 2 make up a second object, and so on.

[L,NUM] = LABEL(...) returns in NUM the number of connected objects found in I.

[L,NUM,SZ] = LABEL(...) returns a matrix SZ, of the same size as I, that contains the sizes of the connected objects. For a pixel whose index is IDX, we have: SZ(IDX) = NNZ(L==L(IDX)).

Enter "help label" in the Matlab Command Window for two examples.


License: Shareware

Related: Input, labeled, Array, Object, Number, greater, integer

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 12

More Similar Code

accumconncomps creates vectors by accumulating elements in one vector using the connected components in another vector of same size. Connected components are regarded as subsequent, identical elements in a vector.

Sum the values in val according to the connected components in cc.

cc = [1 1 2 1 1 1 3 3 3 4 2 2];
val = [2.3 1.2 5 3 2 5 3.2 4.5 2 ...
2.2 1.2 2.2];

[c,valnew] =...

The program can get the 2-D impulse response of a 2-D recursive discrete system in 2-D digital domain. For a 2-D recursive discrete system, the inverse 2-D z transform can be implemented by a 2-D IIR filter [1-3].
Copyright (C) Yang XIAO,...

Matlab implementation of a monodomain reaction-diffusion model in 2-D. The model equations are a variant of the Fitzhugh-Nagumo equations modified to simulate the cardiac action potential. The progression of the two normalized state variables,...

Takes an excel file, dumps out a series of CSV files (one for each sheet, named for the file and sheet) and a YAML file (an array of sheets, each sheet a dict containing the table_name and the table_data, a 2-d array of cell values).

gdopContour shows a psuedocolor image of the PDOP (GDOP in 2-D is referred to as PDOP). xmin/xmax/ymin/ymax are the limits on the plot. SVs is an [x,y] matrix showing the position of the "Space Vehicles" (GPS terminology). You can have...

2-D dos Game(like space commanders ) is a 2-d sprites based game.

It involves important concepts of game design issues such as timing a game, collision-detection etc. It is a DOS based game which uses MODE 13H which has a resolution of...

The program can get spatial-time response of 2-D Continuous-Discrete systems by taking inverse 2-D Laplace-z transform [1]. The detailed algorithm is provided in Ref. [1].
Copyright (C) Yang XIAO, BJTU, July 28, 2007, E-Mail:...

You can follow the examples given in the codes, to construct your 2-D
fuction in 2-D Laplace transform domain, insert it into the place of our examples, then you can get the inverse 2-D Laplace transform of your function.

LABEL is a generalization of BWLABEL: BWLABEL works with 2-D binary images only, whereas LABEL works with 2-D arrays of any class.

L = LABEL(I,N) returns a matrix L, of the same size as I, containing labels for the connected components...

The program can test the stability of 2-D face of an interval matrix.
Copyright (C) Yang XIAO, Beijing Jiaotong University, Aug.2, 2007, E-Mail:
By relying on a two-dimensional (2-D) face test, Ref [1,2] obtained a...

User Review for Label connected components in 2-D array
- required fields

Please enter text on the image