Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
ODBC Driver for NetSuite 1.2
Rapid CSS 2018 15.0
ByteScout PDF Extractor SDK 9.0.0.3079
TeeGrid for .NET 2018
HotelDruid 2.2.3
Metamill 8.2.2022
EXE Stealth Protector 4.23
EXE Bundle - The file joiner 3.14
WeBuilder 2018 15.0
SuiteCRM Customer Portal 1.0
Magento Admin Mobile App 1.0
AnyStock Stock and Financial JS Charts 8.2.0
Kijiji Script 1.0.3
SSIS Data Flow Components 1.7
ODBC Driver for Amazon Redshift 1.0
Top Code
ODBC Driver for NetSuite 1.2
College Management System Script 1.0.4
Calculate PSD of a signal using Welch algorithm 1.0
Issue Manager App 1.0
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Magenta Systems File Transfer Components 1.5
Interfun Chat Server 1.0.26
School Management Script 1.0.4
Rapid CSS 2018 15.0
Readymade MLM Software 2.02
T-Shirt Designer Script 1.65
SuDoKu Solver Applet 0.1.0
Circular convolution using DCT and DST 1.0
Metamill 8.2.2022
PHP Image Resize Script 1.0
Top Rated
Output Messenger 1.8.0
Aliexpress Clone- Ec21 Script 1
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
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.

Note:
------
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)).

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

------
http://www.biomecardio.com/matlab
-----

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.

Example:
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: yxiao@bjtu.edu.cn.
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