Method and device for detecting connected pixels in image
First Claim
1. A method for detecting connected pixels in a two-dimensional (2D) image having a plurality of pixels each having X-Y coordinates, the method comprising:
- comparing an upper-row pixel included in a Yth row with a lower-row pixel included in a Y+1th row depending on a comparison condition, wherein Y is a positive integer, and wherein when a difference in X coordinate between the upper-row pixel and the lower-row pixel is one or less, the upper-row pixel and the lower-row pixel are determined to be positioned adjacent each other, and when the difference in X coordinate is two or more, the upper-row pixel and the lower-row pixel are determined to be spaced apart from each other; and
updating an index map that defines a relationship between index numbers of adjacent pixels depending on the determination to set pixels with the same or associated index number in the same pixel group, wherein updating the index map includes;
identifying the indexed pixels having the same or associated number by referring to the index map; and
obtaining a maximum value and a minimum value of the X coordinates of the identified indexed pixels and a maximum value and a minimum value of the Y coordinates of the identified indexed pixels to generate a rectangular pixel group.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and device for detecting connected pixels in a two-dimensional (2D) image having a plurality of pixels each having X-Y coordinates may compare an upper-row pixel included in a Yth row with a lower-row pixel included in a Y+1th row depending on a comparison condition, wherein Y is a positive integer, and wherein when a difference in X coordinate between the upper-row pixel and the lower-row pixel is one or less, the upper-row pixel and the lower-row pixel are determined to be positioned adjacent each other, and when the difference in X coordinate is two or more, the upper-row pixel and the lower-row pixel are determined to be spaced apart from each other and update an index map that defines a relationship between index numbers of adjacent pixels depending on the determination to set pixels with the same or associated index number in the same pixel group.
6 Citations
11 Claims
-
1. A method for detecting connected pixels in a two-dimensional (2D) image having a plurality of pixels each having X-Y coordinates, the method comprising:
-
comparing an upper-row pixel included in a Yth row with a lower-row pixel included in a Y+1th row depending on a comparison condition, wherein Y is a positive integer, and wherein when a difference in X coordinate between the upper-row pixel and the lower-row pixel is one or less, the upper-row pixel and the lower-row pixel are determined to be positioned adjacent each other, and when the difference in X coordinate is two or more, the upper-row pixel and the lower-row pixel are determined to be spaced apart from each other; and updating an index map that defines a relationship between index numbers of adjacent pixels depending on the determination to set pixels with the same or associated index number in the same pixel group, wherein updating the index map includes; identifying the indexed pixels having the same or associated number by referring to the index map; and obtaining a maximum value and a minimum value of the X coordinates of the identified indexed pixels and a maximum value and a minimum value of the Y coordinates of the identified indexed pixels to generate a rectangular pixel group. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A device for detecting connected pixels in a 2D image including a plurality of pixels each of which has X and Y coordinates, the device comprising:
-
an indexing processor for assigning an index number to each of the plurality of pixels, generating one or more arrays, and storing information about the plurality of pixels; a pixel comparator for comparing an upper-row pixel included in a Yth row with a lower-row pixel included in a Y+1th row according to a comparison condition, determining that the upper-row pixel and the lower-row pixel are positioned adjacent each other when a difference in X coordinate between the upper-row pixel and the lower-row pixel is one or less and that the upper-row pixel and the lower-row pixel are spaced apart from each other when the difference in X coordinate is two or more, and updating an index map depending on the determination, the index map defining a relationship in index number between adjacent pixels; and a detector for setting a pixel group for pixels having the same or associated index number based on the updated index map, identifying a plurality of indexed pixels having the same or associated number by referring to the index map, and extracting the maximum and minimum X coordinates and the maximum and minimum Y coordinates of the identified indexed pixels to create or draw a rectangle forming a pixel group. - View Dependent Claims (8, 9, 10, 11)
-
Specification