Generating an object map from a plurality of binary images
First Claim
Patent Images
1. A method, comprising:
- dividing, by a processor element, an input image into a plurality of strips, where each strip of the plurality of strips is smaller than a whole of the input image;
generating, by the processor element, a plurality of binary images, where each binary image of the plurality of binary images corresponds to a strip of the plurality of strips, wherein the plurality of binary images comprises at least three binary images corresponding to each strip of the plurality of strips and wherein the at least three binary images each comprise a respective binary image in which edge magnitudes for all white pixels in the respective binary image are at least equal to at least one of;
a strong edge threshold and a weak edge threshold;
executing, by the processor element, for a first binary image of the plurality of binary images,a first pass in which foreground pixels of the first binary image are assigned labels that identify connected components in the first binary image; and
a second pass, subsequent to the first pass, in which;
any of the labels that correspond to connected components that exist entirely in the first binary image are freed in memory; and
any of the labels that correspond to connected components that are merged with other connected components are re-labeled to reduce a number of labels stored in a memory data structure; and
generating, by the processor element, an object map for the input image based on results of the connected component labeling for the plurality of binary images.
2 Assignments
0 Petitions
Accused Products
Abstract
In an example, a method is described that includes dividing an input image into a plurality of strips, where each strip is smaller than a whole of the input image. A plurality of binary images is then generated, where each of the binary images corresponds to one of the strips. Connected component labeling is performed on the binary images, one binary image at a time. An object map for the input image is then generated based on the results of the connected component labeling.
13 Citations
14 Claims
-
1. A method, comprising:
-
dividing, by a processor element, an input image into a plurality of strips, where each strip of the plurality of strips is smaller than a whole of the input image; generating, by the processor element, a plurality of binary images, where each binary image of the plurality of binary images corresponds to a strip of the plurality of strips, wherein the plurality of binary images comprises at least three binary images corresponding to each strip of the plurality of strips and wherein the at least three binary images each comprise a respective binary image in which edge magnitudes for all white pixels in the respective binary image are at least equal to at least one of;
a strong edge threshold and a weak edge threshold;executing, by the processor element, for a first binary image of the plurality of binary images, a first pass in which foreground pixels of the first binary image are assigned labels that identify connected components in the first binary image; and a second pass, subsequent to the first pass, in which; any of the labels that correspond to connected components that exist entirely in the first binary image are freed in memory; and any of the labels that correspond to connected components that are merged with other connected components are re-labeled to reduce a number of labels stored in a memory data structure; and generating, by the processor element, an object map for the input image based on results of the connected component labeling for the plurality of binary images. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A non-transitory machine-readable storage medium encoded with instructions that when executed by a processor cause the processor to:
-
divide an input image into a plurality of strips, where each strip of the plurality of strips is smaller than a whole of the input image; generate a plurality of binary images, where each binary image of the plurality of binary images corresponds to a strip of the plurality of strips, wherein the plurality of binary images comprises at least three binary images corresponding to each strip of the plurality of strips and wherein the at least three binary images each comprise a respective binary image in which edge magnitudes for all white pixels in the respective binary image are at least equal at least one of;
a strong edge threshold and a weak edge threshold;execute, for a first binary image of the plurality of binary images, a first pass in which foreground pixels of the first binary image are assigned labels that identify connected components in the first binary image; and a second pass, subsequent to the first pass, in which; any of the labels that correspond to connected components that exist entirely in the first binary image are freed in memory; and any of the labels that correspond to connected components that are merged with other connected components are re-labeled to reduce a number of labels stored in a memory data structure; and generate an object map for the input image based on results of the connected component labeling for the plurality of binary images. - View Dependent Claims (9, 10, 11, 12)
-
-
13. An apparatus, comprising:
-
a buffer for dividing an input image into a plurality of strips, where each strip of the plurality of strips is smaller than a whole of the input image; a processor; and a memory on which is stored machine readable instructions that when executed by the processor, cause the processor to; generate a plurality of binary images, where each binary image of the plurality of binary images corresponds to a strip of the plurality of strips, wherein the plurality of binary images comprises at least three binary images corresponding to each strip of the plurality of strips and wherein the at least three binary images each comprise a respective binary image in which edge magnitudes for all white pixels in the respective binary image are at least equal to at least one of;
a strong edge threshold and a weak edge threshold;execute, for a first binary image of the plurality of binary images, a first pass in which foreground pixels of the first binary image are assigned labels that identify connected components in the first binary image; and a second pass, subsequent to the first pass, in which; any of the labels that correspond to connected components that exist entirely in the first binary image are freed in memory; and any of the labels that correspond to connected components that are merged with other connected components are re-labeled to reduce a number of labels stored in a memory data structure; and generate an object map for the input image based on results of the connected component labeling for the plurality of binary images. - View Dependent Claims (14)
-
Specification