Borrar filtros
Borrar filtros

RLSA matlab code needed

2 visualizaciones (últimos 30 días)
priya
priya el 20 de Mzo. de 2012
Comentada: Walter Roberson el 7 de Feb. de 2014
The basic RLSA is applied to a binary sequence in which white pixels are represented by 0’s and black pixels by 1’s. The algorithm transforms a binary sequence x into an output sequence y according to the following rules:
1. 0’s in x are changed to 1’s in y if the number of adjacent 0’s is less than or equal to a predefined limit C. 2. 1’s in x are unchanged in y .
For example, with C = 4 the sequence x is mapped into y as follows:
x : 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 y : 1 1 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 1 1 1 1 1
When applied to pattern arrays, the RLSA has the effect of linking together neighboring black areas that are separated by less than C pixels. With an appropriate choice of C, the linked areas will be regions of a common data type.
The RLSA is applied row-by-row as well as column-by-column to a document, yielding two distinct bit-maps. Because spacings of document components tend to differ horizontally and vertically, different values of C are used for row and column processing. Thet wo bit-maps are then combined in a logical AND operation. Additional horizontal smoothing using the RLSA produces the final segmentation result.
  1 comentario
Walter Roberson
Walter Roberson el 7 de Feb. de 2014
This looks very much like it was homework.

Iniciar sesión para comentar.

Respuestas (1)

Vortana
Vortana el 7 de Feb. de 2014

Categorías

Más información sobre Get Started with MATLAB 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