×

Method and device for detecting connected pixels in image

  • US 10,019,807 B1
  • Filed: 12/05/2017
  • Issued: 07/10/2018
  • Est. Priority Date: 03/31/2017
  • Status: Active Grant
First Claim
Patent Images

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 all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×