Systems, methods and apparatus for image processing - Patents.com

The image processing method addresses inefficiencies in existing techniques by converting images to a 1-bit format and using Moore neighborhood analysis to construct precise polygons, enhancing processing efficiency and accuracy for symbol and object identification.

JP7566270B2Active Publication Date: 2024-10-15UIARMORCOM LLC
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2024028287
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-01-29
Filing Date
2024-02-28
Publication Date
2024-10-15
Estimated Expiration
2041-01-28

AI Technical Summary

Technical Problem

Existing image processing techniques are inefficient and error-prone when dealing with ambiguous pixel states, leading to increased memory usage and processing time, especially in identifying distinct symbols and objects within images.

Method used

An image processing method that converts input images into a 1-bit format, using a Moore neighborhood analysis to generate unique keys for each pixel state, allowing for the construction of precise polygons that accurately define image clusters and symbols, reducing processing time and memory usage by employing a systematic approach to polygon formation.

Benefits of technology

The method achieves efficient and accurate identification of image characteristics with reduced computational resources, enabling rapid and deterministic processing of complex images, including 2D and 3D scenarios, with improved accuracy and reduced errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007566270000005
    Figure 0007566270000005
  • Figure 0007566270000006
    Figure 0007566270000006
  • Figure 0007566270000007
    Figure 0007566270000007
Patent Text Reader

Abstract

To provide a device and method for generating an accurate and complete polygon profile for an arbitrary one-bit / pixel input image.SOLUTION: The method is performed by the device comprising: at least one processor; and a memory including instructions which, when executed by the at least one processor, cause the at least one processor to: scan an input image including pixels having either a first state or a second state opposite the first state; initiate a first cluster and a first polygon belonging to the first cluster upon encountering a first pixel of the input image having the first state; execute a first set of operations to form the first polygon; generate an indication of one or more characteristics of the input image based on at least the first cluster; and output the indication.SELECTED DRAWING: Figure 13
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application claims priority to U.S. Provisional Application No. 62 / 967,097, filed January 29, 2020, the entire contents of which are incorporated herein by reference.

[0002] The present disclosure relates to systems, methods, and apparatus for image processing.

[0003] Image processing techniques include techniques that analyze input images to characterize the input images and / or generate output images from the input images.

[0004] At least one example embodiment is directed to an apparatus comprising at least one processor; and a memory including instructions that, when executed by the at least one processor, cause the at least one processor to scan an input image including pixels having either a first state or a second state opposite the first state, and upon encountering a first pixel of the input image having the first state, initiate a first cluster and a first polygon belonging to the first cluster, perform a first set of operations to form the first polygon, generate a representation of one or more characteristics of the input image based on at least the first cluster, and output the representation.

[0005] At least one example embodiment is directed to a method that includes scanning an input image including pixels having either a first state or a second state opposite the first state, initiating a first cluster and a first polygon belonging to the first cluster upon encountering a first pixel of the input image having the first state, performing a first set of operations to form the first polygon, generating a representation of one or more characteristics of the input image based on at least the first cluster, and outputting the representation.

[0006] At least one example embodiment is directed to a system that includes a display; at least one processor; and a memory including instructions that, when executed by the at least one processor, cause the at least one processor to scan an input image including pixels having either a first state or a second state opposite the first state, initiate a first cluster and a first polygon belonging to the first cluster upon encountering a first pixel of the input image having the first state, perform a first set of operations to form the first polygon, generate a representation of one or more characteristics of the input image based on at least the first cluster, and output the representation to the display.

[0007] Other features and advantages will be apparent from the specification and drawings, as described below. [Brief description of the drawings]

[0008] The present disclosure is described with reference to the accompanying figures, which are not necessarily drawn to scale. [Figure 1] FIG. 1 illustrates a system in accordance with at least one exemplary embodiment. [Figure 2A] FIG. 2A shows various sample images made up of polygons. [Figure 2B] FIG. 2B shows a table outlining the complete polygon profile of the image of FIG. 2A. [Diagram 3] FIG. 3 is a diagram showing the pixel edges of the two symbols of FIG. 2A. [Figure 4A] FIG. 4A is a diagram illustrating a number of keys in accordance with at least one exemplary embodiment. [Figure 4B] FIG. 4B is a diagram illustrating a number of keys in accordance with at least one exemplary embodiment. [Figure 4C] FIG. 4C is a diagram illustrating a number of keys in accordance with at least one exemplary embodiment. [Figure 4D] FIG. 4D is a diagram illustrating a number of keys in accordance with at least one exemplary embodiment. [Diagram 5] FIG. 5 is a diagram illustrating an image processing method in accordance with at least one example embodiment. [Figure 6A] FIG. 6A illustrates the image processing method of FIG. 5 in greater detail, in accordance with at least one exemplary embodiment. [Figure 6B] FIG. 6B illustrates the image processing method of FIG. 5 in greater detail, in accordance with at least one example embodiment. [Figure 7A] FIG. 7A illustrates an example method for constructing a series of polygons based on an input image in an image processing method according to one embodiment. [Figure 7B] FIG. 7B illustrates an example method for constructing a series of polygons based on an input image in an image processing method according to one embodiment. [Figure 8] FIG. 8 illustrates another method for constructing a series of polygons based on an input image in an image processing method according to one embodiment. [Figure 9] FIG. 9 is a graph showing the relationship between the time required for an image processing algorithm and the number of pixels to be processed according to one embodiment. [Figure 10] FIG. 10 illustrates another method for constructing a series of polygons based on an input image in an image processing method according to one embodiment. [Figure 11] FIG. 11 is a diagram illustrating a pixel grid and multiple keys for a three-dimensional image in accordance with at least one example embodiment. [Figure 12] FIG. 12 is a diagram illustrating the construction of a three-dimensional polygon for a three-dimensional input image in accordance with at least one example embodiment. [Figure 13] FIG. 13 illustrates a method in accordance with at least one exemplary embodiment. [Figure 14] FIG. 14 illustrates a method in accordance with at least one exemplary embodiment. [Figure 15] FIG. 15 illustrates a method in accordance with at least one exemplary embodiment. [Figure 16]FIG. 16 illustrates an example scene and example objects that may be processed by an image processing method in accordance with at least one embodiment. [Figure 17] FIG. 17 is a diagram illustrating an example input image and an example output image formed by processing the input image, in accordance with at least one example embodiment. Detailed Description

[0009] The following description presents embodiments only and is not intended to limit the scope, applicability, or configuration of the claims. Rather, the following description provides a person skilled in the art with a useful description for implementing the embodiments. It will be understood that various changes can be made in the function and arrangement of elements without departing from the spirit and scope of the appended claims.

[0010] It will be appreciated from the following description, and from the standpoint of computational efficiency, that the components of the system may be located in any suitable location within a distributed network of components without affecting the operation of the system.

[0011] It will further be understood that the various coupling elements connecting the elements may be wires, traces, or wireless links, or any suitable combination thereof, or other suitable known or later developed elements capable of providing and / or communicating data between the connected elements. The media used as coupling elements may be any suitable carrier for electrical signals, such as, for example, coaxial cable, copper wire and fiber optics, electrical traces on a PCB, etc.

[0012] As used in this specification, the phrases "at least one," "one or more," "or," and "and / or" are open-ended expressions that are both logical and or in operation. For example, "at least one of A, B, and C," "at least one of A, B, or C," "one or more of A, B, and C," "A, B, or C," "A, B, and / or C," and "A, B, or C" mean A only, B only, C only, A and B together, A and C together, B and C together, or A, B, and C together.

[0013] As used herein, the terms “determining,” “calculating,” and “computing,” as well as variations thereof, are used interchangeably and are intended to include any suitable type of methodology, process, operation, or technique.

[0014] Various aspects of the present disclosure are described herein with reference to drawings that are schematic illustrations of idealized configurations.

[0015] Unless otherwise defined, all terms (including technical and scientific terms) used in this specification shall have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. It will be further understood that terms as defined in commonly used dictionaries should be interpreted to have a meaning consistent with their meaning in the relevant art and in the context of this disclosure.

[0016] As used in this specification, the singular forms "a," "an," and "the" are intended to include the plural (including the plural without the recitation "plurality") unless the context clearly indicates otherwise. Furthermore, the terms "include," "including," "includes," "comprise," "comprises," "including," and / or "comprising," as used in this specification, disclose the presence of stated features, integers, stages, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integers, stages, operations, elements, components, and / or groups thereof. The term "and / or" includes any and all combinations of one or more of the associated listed items.

[0017] Where it is appropriate to refer to a general element or set of elements instead of a specific element, the description may refer to an element or set of elements by its root term. For example, the description may refer to an element generally as "X" where there is no need to refer to specific elements X1, X2, etc.

[0018] FIG. 1 illustrates a system 100 according to at least one exemplary embodiment. System 100 includes a source device (or device) 104, a communications network 108, and an image processing device (or device) 112. In at least one embodiment, source 104 and / or device 112 correspond to one or more personal computers (PCs), laptops, tablets, smartphones, servers, collections of servers, and the like. In some embodiments, devices 104 and 112 may be any suitable type of device that communicates with other devices that are also connected to a common type of communications network 108. As another specific, but non-limiting example, devices 104 and 112 may be user device client devices in system 100, or servers that provide information resources, services, and / or applications to other hosts. Such source devices include cameras (standalone or integrated as part of another device, such as a mobile phone, laptop, tablet, etc.), document scanners (such as copiers), memory that records source images near or remote from the device that generated the source images, and the like.

[0019] The communication network 108 may include a wired network and / or a wireless network that enables wired and / or wireless communication between the devices 104 and 112. Examples of the communication network 108 that may be used to connect the devices 104 and 112 include an Internet Protocol (IP) network, an Ethernet network, an InfiniBand (IB) network, a Fibre Channel network, the Internet, a cellular communication network, a wireless communication network, combinations thereof (e.g., Fibre Channel over Ethernet), variations thereof, and / or the like. The communication network 108 enables wireless communication between the devices 104 and 112 using one or more protocols, such as the 802.11 suite of protocols, a Near Field Communication (NFC) protocol, a Bluetooth protocol, an LTE protocol, a 5G protocol, and the like. The devices 104 and 112 may be configured to include one or more communication interfaces to facilitate wired and / or wireless communication over the communication network 108.

[0020] Although devices 104 and 112 are shown as separate devices communicating over communications network 108, devices 104 and 112 and communications network 108 may be integrated into a single device (e.g., a server, a personal computer, and / or the like) such that source images, input images derived from the source images, and output images based on the input images are generated and / or processed by the devices.

[0021] The processing circuitry 116 may comprise suitable software, hardware, or a combination thereof for processing images from the source device 104 or performing other computing tasks. The processing circuitry 116 may perform various image processing operations and algorithms described herein. The memory 120 may include executable instructions, and the processing circuitry 116 may execute the instructions on the memory 120. That is, the processing circuitry 116 may include a microprocessor, a microcontroller, and / or the like for executing the instructions on the memory 120. The memory 120 may be any suitable type of memory device or collection of memory devices configured to store instructions. Non-limiting examples of suitable memory devices that may be used include flash memory, random access memory (RAM), read-only memory (ROM), variations thereof, combinations thereof, and the like. In some embodiments, the memory 120 and the processing circuitry 116 may be integrated into a common device (e.g., a microprocessor may include an integrated memory). Additionally or alternatively, the processing circuitry 116 may include hardware, such as an application specific integrated circuit (ASIC). Other non-limiting examples of the processing circuitry 116 include an integrated circuit (IC) chip, a central processing unit (CPU), a general processing unit (GPU), a field programmable gate array (FPGA), a digital signal processor (DSP), a collection of logic gates or transistors, resistors, capacitors, inductors, diodes, and the like. Some or all of the processing circuitry 116 may be provided on a printed circuit board (PCB) or a collection of PCBs. It should be understood that any suitable type of electrical component or collection of electrical components may be suitable for inclusion in the processing circuitry 116. The processing circuitry 116 may send and / or receive signals to and from other elements of the system 100 to control various operations of the system 100.

[0022] Although not explicitly shown, devices 104 and 112 may include other processing devices, storage devices, and / or communication interfaces typically associated with computing operations, such as transmitting and receiving data via wired and / or wireless connections.

[0023] Input device(s) 124 include appropriate hardware and / or software to enable input (e.g., user input) to system 100. Input device(s) 124 may include a keyboard, a mouse, a touch-sensitive pad, a touch-sensitive button, a touch-sensitive portion of a display, mechanical buttons, switches, and / or other control elements for providing user input to the system to enable user control over various functions of system 100.

[0024] Output device 128 may include appropriate hardware and / or software to generate visual, audio, and / or tactile feedback for a user or other party based on one or more inputs from processing circuit 116. In at least one embodiment, output device 128 includes one or more displays for displaying an output image and / or one or more characteristics of an input image after processing of the input image by device 112. The input image may be based on a source image received from source device 104 over a communications network. The display may be any appropriate type of display, such as a liquid crystal display (LCD), a light emitting diode (LED) display, or the like. Output device 128 may be a standalone device or a device integrated as part of another device, such as a smartphone, laptop, tablet, or the like.

[0025] Although the input device 124 and the output device 128 are shown as part of the image processing device 112 , the input device 124 and / or the output device 128 may be embodied separately from the device 112 according to design preferences of the system 100 .

[0026] 2A illustrates various sample images composed of polygons, according to at least one exemplary embodiment. In an exemplary embodiment, for each polygon, the number of adjacent pixels, the points that make up a cluster (each cluster is defined as one or more interrelated polygons and / or a set of vertically, horizontally, and / or diagonally adjacent (e.g., immediate neighbors) pixels), the points that form the outer and inner polygons of each cluster (each polygon can be defined as a cyclic sequence of points with a previous point and a next point, where all polygons are simple polygons and do not intersect with other polygons), the exact sequence of points for all polygons with no pixel corner cuts (i.e., no pixel rounding), complete information about how each polygon is related to another polygon (e.g., shared borders, outer or inner polygons, percentage of parent polygons, etc.), the exact information about each polygon as a result of having the sequence of points (e.g., location, center, area, perimeter, etc.), and / or the total area of ​​pixels contained in the polygon. This set of processing goals can be referred to as determining a complete polygon profile of the image. In general, a cluster has one polygon that defines the perimeter of the cluster, and the cluster may or may not contain additional polygons. If the cluster contains additional polygons, these polygons correspond to holes (or interior polygons) in the cluster.

[0027] FIG. 2B shows a table outlining the complete polygon profile of the image in FIG. 2A. The complete polygon profile of an input image can be used to draw one or more conclusions about the input image. As shown, the table shows the total number of pixels used for each symbol 3, 9, 8, the cluster number, the number of polygons, whether each polygon is an exterior or interior polygon, the number of pixel edges or edge points for each polygon, the number of pixels for each symbol (16, 18, and 19), and the boundary of each polygon. The boundary of a polygon shows the pixel coordinates of the polygon and the pixel area of ​​the polygon. For example, polygon 1 in FIG. 2B shows boundary 1,2,5x8. This shows that polygon 1 starts at column 1, row 2 (i.e., 1,2) and spans 5 columns of pixels and 8 rows of pixels (i.e., 5x8), with column 0 being the leftmost column of pixels and row 0 being the topmost row of pixels.

[0028] Continuing with reference to Figures 2A and 2B, each polygon contained in symbols 3, 8, and 9 has a detailed distinguishable sequence of points p1, p2…pN (where pN connects to p1). Furthermore, all polygons are associated with clusters. For example, in cluster 3, polygons 4, 5, and 6 are related to each other while they are independent of each other as in the marching squares algorithm. All polygon traces (i.e., the outer and inner edges of each polygon) are on pixel boundaries; i.e., no pixels are cut or interpolated. Furthermore, no two polygons intersect, and all polygons are simple in that no polygon intersects with itself. Both of these properties aid in downstream mathematical logic for accurately processing polygons. For example, it is easier to calculate the area of ​​a non-self-intersecting polygon than a self-intersecting polygon.

[0029] To understand one advantage of the ingenious concept, imagine treating the clusters as a collection of independent pixels (such as in a flood-fill algorithm). Algorithms such as flood-fill have no information about how pixels connect. Under this constraint, the three symbols in Figure 2A are very similar. For example, adding two pixels to a "3" makes it look like a "9," and adding three pixels to a "3" makes it look like an "8." Thus, treating the image as isolated pixels means that the decision to distinguish between different symbols, as in this example, has only a small margin of three pixels. Moreover, matching symbols algorithmically under this constraint would require a brute-scan of all instances of all sizes of all symbols to be of any practical use. This approach is memory-intensive, time-consuming, error-prone, and inefficient.

[0030] In contrast, our concept is deterministic: for example, the symbol "3" is defined by only one polygon (the outer polygon), the symbol "9" is defined by two polygons, an outer and an inner polygon, and the symbol "8" is defined by three polygons (one outer polygon and two outer polygons). In our algorithm, the three symbols are completely different.

[0031] Moreover, these polygonal characteristics are generally applicable regardless of the size or font of the symbol. In other words, the three symbols are topologically distinct: the "3" has no holes, the "9" has one hole, and the "8" has two holes. By processing an image with symbols according to the concepts of the present invention, it is possible to match the general characteristics of each symbol (e.g., the number of polygons) with known characteristics of other symbols, thereby reducing memory usage, shortening processing time, and / or improving efficiency and enhancing the ability of downstream processing to correctly identify the symbols.

[0032] FIG. 2A illustrates the case of an ambiguous pixel where two polygons share a point. The processing method according to the exemplary embodiment can accurately disambiguate each case of shared points. In one embodiment, an ambiguous pixel is defined as a pixel on two opposite sides where it is unclear whether the two sides are part of a single polygon or multiple polygons. This concept is described in more detail below with reference to FIG. 3.

[0033] FIG. 3 illustrates the pixel edges of the two symbols of FIG. 2A. As shown for pixel P of the "3", edges E1 and E2 eventually meet to form the perimeter of the polygon of the symbol "3". However, for pixel P of the "9", edges E1 and E2 do not meet as each edge is part of a unique polygon. In order to determine how the pixel edges relate to the polygon, the image processing method according to the exemplary embodiment connects all the edges of each polygon to define the edges of each pixel and how the pixel is used in the symbol. As can be seen from this specification, the image processing method according to the exemplary embodiment performs optimal O(n) to O(n 2 ) execution time.

[0034] 4A-4D illustrate a number of keys according to at least one exemplary embodiment. In each image processing method according to each exemplary embodiment, the keys of FIG. 4A-4D are generated and referenced to process an input image. As described in more detail below with reference to the figures, an image processing method according to an exemplary embodiment converts a source image (e.g., a color image, a grayscale image, etc.) into an input image by converting the source image into a one-bit per pixel image. That is, the source image is converted into an input image such that each pixel of the input image has one of two states (or colors). For example, each pixel of the input image has either a first state (either black or white) or a second state (the other of black or white). Image processing begins by scanning the input image (e.g., in a raster format) looking for pixel "hits." In at least one exemplary embodiment, a pixel hit occurs when a pixel has a first state (e.g., black) and a pixel miss occurs when a pixel has a second state (e.g., white).

[0035] Referring again to FIGS. 4A-4D, each key is unique and represents a possible state around the reference pixel RP. The reference pixel RP corresponds to a pixel that was determined to be a pixel hit during the scanning process described above. Next, the image processing method according to the exemplary embodiment determines pixel states of the pixels in the Moore neighborhood of the reference pixel RP and ascertains which pixels have a state that matches the state of the reference pixel RP (here, the Moore neighborhood refers to the eight pixels that are directly adjacent to the reference pixel RP). For example, referring to the pixel grid of FIG. 4A, the pixels in the Moore neighborhood of the reference pixel RP are examined one by one in a counterclockwise (CCW) direction starting from pixel 0 to pixel 7. The pixel grid of FIG. 4A is applied to each key of FIGS. 4A-4D, and each pixel 0 through 7 in the Moore neighborhood of the reference pixel RP has one of two states (e.g., white or black). Since each of the eight pixels in the Moore neighborhood of the reference pixel RP has one of the two states, the possible combinations of pixel states of the eight pixels in the Moore neighborhood of the reference pixel RP are 256 (i.e., 256+100). 8 ). There are therefore 256 possible keys (i.e. key 000 to key 255). Key 000 indicates a scenario in which the pixels surrounding the reference pixel RP are not in the same state, key 255 indicates a scenario in which all pixels surrounding the reference pixel RP are in the same state, and keys 001 to 254 indicate all scenarios in between.

[0036] As described in more detail below, each key also includes one or more edges (indicated by arrows) that span one or more sides of one or more pixels of the respective key, and are used to construct polygons for the output image and / or polygon profile. The start, direction, and end of each edge depend on the pixel states between adjacent pixels in the Moore neighborhood of the reference pixel RP.

[0037] For example, starting at pixel 0 of the pixel grid for each of keys 001-254 and moving in the CCW direction, a pixel hit is followed by a pixel miss (pixel hits are shown with diagonal lines as in Figures 4A-4D, while pixel misses are unshaded), the tail of the edge begins and travels around the boundary of pixels whose state matches the state of reference pixel RP, until one edge of the pixel grid becomes the head of the edge. Using key 005 as an example, this key corresponds to a portion of the input image where reference pixel RP and pixels 0 and 2 have the same state (e.g., black) in the 1 bit / pixel input image. For key 005, in the Moore neighborhood of reference pixel RP, pixel 0 is a pixel hit and pixel 1 is a pixel miss, so the tail of the first edge begins at the upper left corner or point of pixel 0 and the upper right corner or point of pixel 1. The first edge follows the boundary of pixels 0, RP, and 2, and ends with the head of the edge at the upper right corner or point of pixel 2. Additionally, key 005 indicates a second edge that begins between pixels 2 and 3 of the pixel grid and runs along the bottom boundary of pixels 2, RP, and 0.

[0038] In Figures 4A-4D, each edge of each key must flow in the same direction as the Moore neighborhood test, in this case the CCW direction. Additionally, each edge of each key "walls off" or separates pixels that are in the same state as the reference pixel RP from pixels that are not. Also shown in Figures 4A-4D are dots in the center of the reference pixel RP and / or in one or more pixels surrounding the reference pixel RP. For keys 001-254, the number of dots contained in the pixels surrounding the reference pixel RP corresponds to the number of edges for that key. Each dot of the surrounding pixels is placed in the pixel where the head of the edge is located.

[0039] As described above, exemplary embodiments form an input image of any bit depth using known techniques and convert the n-bits per pixel image to a 1-bit per pixel input image. For example, the source image is converted to grayscale (if conversion is necessary) and a 1-bit per pixel space is created by thresholding each pixel value of the grayscale image against a reference pixel value (e.g., by generating black pixels with a luminance less than 50% and white pixels with a luminance greater than or equal to 50%). Note that in this determination process, hit pixels as black and miss pixels as white are design matters, and pixel hits can be white pixels and pixel misses can be black pixels, if desired. Furthermore, the reference pixel value is a design parameter that is empirically established and / or appropriately set. In at least one exemplary embodiment, the image processing algorithms described above and below (e.g., the methods of FIGS. 5 and 6A) use algorithms that use different reference pixel values ​​to generate different 1-bit per pixel input images. Each iteration of the algorithm may be run multiple times on a single source image. The result of the processing may be multiple outputs (e.g., complete polygon profiles) that can be compiled into a single composite output (e.g., a single composite polygon profile) or may remain separate as multiple outputs (e.g., multiple separate polygon profiles). In at least one exemplary embodiment, one or more algorithms may be applied to the multiple outputs to derive additional information. For example, the polygon profile of the input image may be input into a neural network to generate one or more outputs indicative of additional information in the input image. In at least one exemplary embodiment, such additional information may be related to object recognition and / or labeling of one or more objects in the input image.

[0040] With the above in mind, each reference pixel RP has a key that uniquely identifies the state of the pixels surrounding the reference pixel RP. In an exemplary embodiment, the keys shown in Figures 4A-4D are generated and stored for use in later processing to construct polygons for output images and / or polygon profiles. For example, each key is formed by starting from the top right corner of the pixel grid and filling each key from right to left in a CCW manner (where white is a pixel miss and black is a pixel hit). Given that white pixels are binary 0 and black pixels are binary 1, key 50 is binary 00110010, where pixel 0 of the pixel grid is the least significant bit (LSB) and pixel 7 is the most significant bit (MSB). Each remaining permutation has a unique key formed by setting 0 or 1 for black or white for each bit position 0-7, resulting in 256 possible keys.

[0041] Each key in Figures 4A-4D further includes edge information where an edge separates white and black pixels on one side of the 3x3 matrix. As shown in Figures 4A-4D, there are two such edges, which have two characteristics: an edge point and a link point. For either characteristic, the order of the points may be useful. For key 50 in Figure 4A, the first edge includes four edge points (0,-1), (0,0), (0,1), (-1,1) and two link points = in (0,1), out (0,-1). Key 50 includes a second edge with four edge points (1,2), (1,1), (1,0), (1,-1) and two link points = in (0,1), out (0,-1). As can be seen with reference to the pixel grid, the in link point of an edge corresponds to the point coordinates of the tail of the edge, and the out link point corresponds to the point coordinates of the head of the edge. 4A-4D, we order the edges by their link index (i.e., the position of the pixel in the Moore neighborhood of the reference pixel RP). In this case, the first edge is at position 1 in the pixel grid and the second edge is at position 5 in the pixel grid, so the first edge precedes the second edge.

[0042] As shown, edge information is calculated for every key. The keys are stored in a look-up table (LUT) or another suitable format. The set of keys represents all possible neighboring states surrounding the reference pixel RP. Similarly, no neighboring situation can be set outside of this set of keys. In particular, this image processing method does not round or truncate pixels of the input image, but preserves all pixel information. Furthermore, all edges (or vectors from incoming edges to outgoing edges) are oriented exactly counterclockwise with respect to the center, as indicated by the arrows. All points other than the point of the reference pixel RP represent the output link points for a particular edge or arrow. Key 255 represents a filled area of ​​pixels with no edges, and key 000 represents a single pixel with no surrounding pixels. As can be seen, all keys except keys 000 and 255 have at least one significant (non-trivial) edge. Each significant edge has two points. If we project the key array [1...254] onto a directed graph (where each key is a node and each edge is a graph edge), all nodes have equal ingress and egress angles. Therefore, according to Euler's theorem, traversing along any edge results in a closed polygon, which is why this image processing method produces closed polygons.

[0043] As can be further appreciated, keys 85 and 170 represent a maximum of 4 connectors (i.e., elements with the most edges or most arrows). That is, the number of edges per key ranges from 0 to 4. Each edge is ordered counterclockwise from the top left corner, and every edge except key 255 has at least three points, and every edge except keys 0 and 255 connects to every other edge. In the following description, we refer to solid points, which are points or pixels in a key that are not adjacent to an edge. For example, key 223 has five solid points (coordinate points or pixels 7, 0, 1, 2, 3) and key 216 has zero solid points.

[0044] In an exemplary embodiment, pixel link ambiguity is resolved by the order of edge points. For example, referring to the pixel grid coordinate points of key 005, both edges share points (1,0) and (0,0) (points are represented in (column,row) format). The two edges also share link points (1,-1), (1,-1). Despite the points being equivalent, the order of red and blue edges distinguishes the "sense" of the points, thereby making the shared reference clear. This is a unique feature of the image processing method according to the exemplary embodiment, providing improved determinism over algorithms that treat pixels as isolated entities.

[0045] Edges can be constructed counterclockwise (as per the convention shown in Figures 4A-4D) or clockwise by reversing the arrow direction of all edges. In either case, the complete orientation set is functionally equivalent and valid. The total number of edges in the complete set of keys 000-255 is 513. Each edge can be one of two orientations (CCW or CW). Of the 2513 possible ways to orient the arrows in Figures 4A-4D, only two combinations (all CW or all CCW) will create a polygon. This means that there is a 1:2 ratio of edge sets that guarantee a polygon (correct) to those that do not (incorrect). 512 (1:1.34 x 10 154 ), which is the unique signature (fingerprint) of the image processing method according to the exemplary embodiment.

[0046] Each key in Figures 4A-4D is formed from a natural key that assumes that the examination of the Moore neighborhood begins with the top right pixel. A natural key is a key that maps one-to-one to one byte of information (or 8 pixels worth of information) in the input image, one bit per pixel. That is, the pixel grid in Figure 4A is considered a natural key because the state of each pixel in the Moore neighborhood of the reference pixel RP corresponds to the binary value of the key number. For example, starting from pixel 0 of the pixel grid and moving CCW, the states of each pixel of key 050 are 0, 1, 0, 0, 1, 1, 0, 0. If pixel 0 is the LSB and pixel 7 is the MSB of the binary sequence formed from these states, then the binary value of 00110010 corresponds to the decimal number 50 (i.e., key 050). This shows that the pixel states of each key correspond to a binary number, and the binary number corresponds to the decimal number of the key.

[0047] Other natural key designations can be formed by rearranging the pixel grid in FIG. 4A. In total, 18 combinations are essentially equivalent. Start numbering the Moore neighborhood of the reference pixel RP by placing a "0" in one of the boxes that is not the reference pixel RP (9 possibilities), then work your way through the remaining boxes in either a clockwise (CW) or CCW direction (2 possibilities), arriving at a total of 18 equivalent natural keys. Other ad-hoc mappings can also map each of the 256 possibilities to a unique number (although they may be less efficient than using one of the natural keys above, since ad-hoc connection of the code to the natural key may require another lookup stage (and a 256-key memory map).

[0048] As will be explained in more detail below, a 1-bit per pixel input image is processed by reference to the keys of Figures 4A-4D.

[0049] FIG. 5 illustrates an image processing method in accordance with at least one example embodiment.

[0050] Method 500 begins at operation 504 and ends at operation 556. Method 500 (and / or one or more stages thereof) may be performed, for example, by at least one processor or otherwise. The at least one processor may be the same as or similar to the processing circuitry 116 of device 112 described above. Processors other than any of the processors described herein may also be used to perform method 500. The at least one processor may perform method 500 by executing instructions stored in a memory, such as memory 120. The instructions may correspond to one or more stages of the method of method 500 described below. The instructions may cause the processor to perform one or more algorithms, such as image processing algorithms, as described in more detail below.

[0051] In general, an image processing method according to the inventive concept begins by scanning for the start of an edge, creating a cluster (e.g., a cluster of one or more polygons) when a pixel hit is encountered, and adding edges until a complete polygon is reached (i.e., until the polygon is closed). A cluster may be comprised of one or more polygons that are interrelated, for example, as an outer polygon and one or more inner polygons. As described in more detail below, each polygon may completely define a cluster or may be combined with one or more other polygons to completely define a cluster. During processing, the method may store information regarding the location of unused or unprocessed edges in an "edge stack" in memory (e.g., memory 120). In this method, if any edge in the edge stack is not used by a previous polygon, a new polygon is started and edges are added until the polygon is closed. This process may be repeated for all edges in the edge stack. Additionally, in this method, if a solid point is encountered during analysis, the solid point is saved (e.g., in memory 120) and the solid point is processed to see if there is a solid point adjacent to the new edge or an edge that has not yet been identified. If so, we create a new polygon using the solid points adjacent to the new edge, and add edges until the polygon is closed. If all edges in the edge stack have been used, we commit the polygon and scan for a new cluster. If a new cluster is encountered, the above steps are repeated to form another polygon that defines the new cluster. This process is repeated until the input image is completely processed. These operations are described in more detail below with reference to Figure 5.

[0052] Process 508 includes scanning the input image one bit per pixel. For example, process 508 performs a raster scan of the input image starting with a first row of pixels in the top left of the input image, proceeding across the first row of pixels of the input image to the top right of the input image, moving to the second row on the left side of the input image to scan the second row moving left and right, and so on until it ends at the bottom right of the input image. However, the exemplary embodiment is not so limited and other scan directions are possible. For example, process 508 can perform a raster style scan of the input image in any of eight scan directions: horizontally with any combination of left to right, right to left, top to bottom, or bottom to top (four scan directions) or vertically with any combination of left to right, right to left, top to bottom, or bottom to top (another four scan directions).

[0053] In operation 512, it is determined whether all points in the input image have been processed. The points may refer to corners of pixels in the input image (see, for example, the pixel grid of FIG. 4A with points having coordinates ranging from (−1,−1) to (2,2)). As the method 500 processes the input image, in operation 512, the processed points are marked so that it can be determined whether all points have been processed. Each process point may be marked according to a coordinate system that is mapped to all points of the input image. An unprocessed point is a point that the method 500 encounters during an iteration of the process described below and has not been marked. A processed point may be marked by flagging the point as processed and storing the flag in memory 120. If all image points have been processed, the method 500 ends in operation 556. Otherwise, the method 500 proceeds to operation 514.

[0054] The process 514 includes encountering a point in the input image with a pixel hit, for example, a 1 bit / pixel input image is scanned until a pixel point is encountered that has a state set to a state indicating a pixel hit.

[0055] In operation 516, method 500 determines whether the point having the pixel hit is a known cluster, e.g., an existing cluster in the input image that has already been constructed or is to be constructed by repeating the operations described below in Figures 5-6B. If so, method 500 returns to operation 508 to continue scanning the input image. If not, the method proceeds to operation 520. The point may be known to belong to a known polygon by determining whether it has been marked in the manner described above.

[0056] The process 520 includes starting a new cluster, a new polygon belonging to the new cluster, a new edge stack, and a new solid stack. As explained above and in more detail below, an edge stack is a collection of edges stored for the method 500, and a solid point stack (or solid stack) is a collection of solid points stored for the method 500.

[0057] Process 524 includes obtaining edge information for the points identified in processes 512 and 516. For example, process 524 includes examining the Moore neighborhood (e.g., pixel hit) of the reference pixel RP that contains the point for which the key is to be calculated and retrieved from Figures 4A-4D. The edge information (edges are indicated by arrows) is obtained from the key and saved as an edge information set to start the construction of a new polygon. If the key contains solid points, these solid points are saved in a solid stack for later examination. Solid points are points or pixels in the key that are not adjacent to an edge.

[0058] Process 528 involves adding a new edge in the direction indicated by the edge of the key (indicated by the arrow head) and determining the next point in the polygon (all keys except key 255 have an edge). Any unused or unconsumed edges of the key are saved in an edge stack. Process 528 is described in more detail below with reference to Figures 6A1 and 6B.

[0059] Operation 532 involves determining whether the polygon loop has been closed for the polygon started in operation 520. If not, the method 500 returns to operation 524. If so, the method proceeds to operation 536.

[0060] Operation 536 includes determining whether there are any unused edges in the edge stack. If so, the method 500 proceeds to operation 540. If not, the method 500 proceeds to operation 548.

[0061] Process 540 includes generating a current polygon, which may include storing the current polygon after all polygons in the input image have been constructed for inclusion in the output image and / or polygon profile.

[0062] If process 536 determines that there was an unused edge in the edge stack, the unused edge(s) may indicate the presence of another polygon near the current polygon. Thus, process 544 includes starting a new polygon using the unused edge from the edge stack. Starting a new polygon with an unused edge from the edge stack may include obtaining a key for a pixel at the tail of the unused edge. Method 500 then returns to process 524 and begins constructing a new polygon by repeating processes 524, 528, 532, and 536. If there was no edge in the edge stack, method 500 skips process 536.

[0063] Operation 548 includes determining whether a solid point in the solid point stack formed in operation 524 generates a new edge. If so, method 500 proceeds to operations 540 and 544 to focus on the current polygon and start a new polygon at the new edge by obtaining the key of the pixel at the tail of the new edge. If not, method 500 proceeds to operation 552 to focus on the polygon formed by repeating operations 525 through 548 to form a complete cluster defined by the polygon formed by repeating operations 524 through 548. Method 500 returns to operation 508 to continue scanning the input image. If there are no solid points, method 500 skips operation 548 and proceeds directly to operation 552.

[0064] Figures 6A and 6B show in greater detail operational details from Figure 5 according to at least one example embodiment. More particularly, Figure 6A shows a general flow chart as at least operations 524, 528, and 532 of Figure 5, and Figure 6B shows a detailed example for constructing polygons in an input image to generate an output image and / or polygonal profile by following methods 500 and 600.

[0065] Method 600 (and / or one or more stages thereof) may be performed, for example, by at least one processor or may be otherwise performed. The at least one processor may be the same as or similar to the processing circuitry 116 of device 112 described above. Processors other than any of the processors described herein may also be used to perform method 600. The at least one processor may perform method 600 by executing instructions stored in a memory, such as memory 120. The instructions may correspond to one or more stages of method 600 described below. The instructions may cause the processor to perform one or more algorithms, such as image processing algorithms as described in more detail below.

[0066] As mentioned above, the process 524 includes encountering a pixel hit from Figures 4A-4D and searching for a key. Here, the pixel with the pixel hit is used as a reference pixel RP. At this stage, the method 500 can proceed to perform various operations of the method 600, starting with an operation 608. In the example of Figure 6B showing a polygon of an input image with three pixels P1, P2, and P3, the operations of the method 600 can correspond to one or more stages, where pixel P1 is the pixel hit that starts a cluster and the polygon that belongs to that cluster.

[0067] Here, the process of FIG. 5 may be performed automatically (eg, with little or no user intervention) upon prompting to initiate a scan in process 508.

[0068] Operation 608 includes determining whether the retrieved key includes an edge that is a self-loop. If so, the method 600 proceeds to operation 612. If not, the method 600 proceeds to operation 616. Only key 000 in FIG. 4A corresponds to an edge that is a self-loop, in that the arrow head ends in the arrow tail. In all other cases, the method proceeds to operation 616.

[0069] Process 612 includes setting polygon points to edge information points of key 000, which closes the polygon loop (completes the polygon) in process 648. In other words, processes 608 and 612 determine that there are no pixel hits in the Moore neighborhood of reference pixel RP, resulting in a polygon formed by a single pixel (i.e., reference pixel RP). Stated differently, process 612 determines a closed polygon with a shape corresponding to key 000. On the other hand, if process 608 detects one or more pixel hits in the Moore neighborhood of reference pixel RP, method 600 proceeds to process 616.

[0070] Operation 616 includes selecting an edge (e.g., a portion of an edge) of the key found in operation 524 that overlaps with a portion of an edge of the partially constructed polygon. In this manner, operation 616 is reached immediately after the first pixel hit of the polygon is encountered, and if the key has multiple edges, method 600 may select the first edge of the key that is encountered when examining the Moore neighborhood of the reference pixel starting at pixel 0 of the pixel grid and moving in a CCW (counterclockwise) direction to pixel 7.

[0071] Operation 620 involves determining whether there are any remaining edges for the key that were not selected in operation 616. If so, the method 600 proceeds to operation 624, where the unused or unselected edges are added to the edge stack. If not, the method proceeds to operation 628.

[0072] In some cases, such as when there is only one edge for the key, operations 616 and 620 are skipped. There is no need to select an edge or determine if there are additional edges to save to the edge stack.

[0073] Process 628 includes adding the non-overlapping portion of the new edge to the partially constructed polygon by skipping three overlapping points and adding the remaining points to the polygon. Because each edge of the key has at least three points, the three overlapping points are at least partially skipped.

[0074] Operation 632 includes marking the skipped and added points as used or consumed.

[0075] Operation 636 involves determining whether the next point of the polygon currently being constructed is the point that started the polygon started in operation 520. If not, method 600 proceeds to operation 640. If so, then the answer to IS POLYGON LOOP CLOSED? in operation 532 of FIG. 5 is "yes," meaning the polygon is complete and ready for inclusion in the output image or polygon profile.

[0076] Process 640 includes setting the pixel that contains the last point of the edge of the current key as the reference pixel RP. Process 640 moves the initial reference pixel RP to the next pixel in the Moore neighborhood of the initial reference pixel that has a pixel hit. Method 600 then returns to process 524 of Figure 5 to search for the key for the next pixel.

[0077] It should be appreciated that the process of FIG. 6 may be performed automatically (eg, with little or no user intervention).

[0078] As mentioned above, Fig. 6B shows a polygon of an input image having three pixels P1, P2, and P3, where pixel P1 is a pixel hit that starts a new cluster and a new polygon. Fig. 6B is shown as a reference process of Fig. 6A for a particular polygon of an input image.

[0079] Here, stage 1 in FIG. 6B may correspond to operation 524, where a pixel hit of pixel P1 is encountered in the input image and set as reference pixel RP. The Moore neighborhood of pixel P1 (now reference pixel RP) is then scanned and it is determined that the only pixel hit in the Moore neighborhood is pixel P2, which corresponds to key 128. The Moore neighborhood of the reference pixel (i.e., P1) includes the single pixel hit as pixel P2. Since key 128 has only one edge (arrow), the method starts at that edge, as will be explained in more detail below. In other words, the decision at operation 608 is "NO", so operation 616 is not applicable, and the decision at operation 620 is "NO", so proceeding to operation 628. However, since key 128 has more than one edge (see key 136), a different edge is selected at operation 616, and the unselected edge is stored in the edge stack at operation 624.

[0080] As seen in stage 1 of FIG. 6B, pixels P1 and P2 correspond to key 128. As shown in stage 1, three points on the edge of key 128 are skipped (the points correspond to the corners of the pixels identified in "skip 3") to generate a portion of the polygon in stage 2 (operation 628). That is, the three points of key 128 that were not skipped in stage 1 are added as edges that form part of the final polygon (i.e., edges of the polygon in stage 2). At this stage, since key 128 does not contain any unexamined or unconsumed edges (since key 128 has only one edge), no edges are saved in the edge stack (decision "no" in operation 620). Here, since the numbering is useful for the key set from FIG. 4A to 4D, the first three points of the edge are those that can be skipped to process all polygons in the input image. As can be appreciated by one skilled in the art, different sets of keys may result in skipping a different number of points in operation 628.

[0081] The Moore neighborhood of pixel P1 is processed, and since the edge of the stage 2 polygon ends at pixel P2, we set pixel P2 as the reference pixel for stage 2 and look up the Moore neighborhood around pixel P2 to generate key 136, since pixels P1 and P3 are pixel hits in the Moore neighborhood of the current reference pixel P2. As shown, key 136 includes two edges (arrows) as the top and bottom edges.

[0082] Stage 2 includes selecting the bottom edge of key 136 when it overlaps with an edge of the stage 2 partial polygon and skipping three points on the bottom edge of key 136. The bottom edge of key 136 will be selected because this edge overlaps with an edge of the stage 2 partially constructed polygon (operation 616). Skipping three points on the bottom edge of key 136 leaves one point at pixel P3 which is added to the polygon in stage 3 to extend the polygon edge by one point (operation 628). All points on the bottom edge of key 136 are then marked as being used or consumed by the polygon in stage 3 (operation 632). Because key 136 still includes a top edge that was not used or consumed in the transition between stages 2 and 3, the top edge of key 136 is saved to the edge stack (the decision in operation 620 is "YES" and the edge is saved to the edge stack in operation 624). Additionally, in the transition between stages 2 and 3, pixel P3 is set as the reference pixel (operation 640). At this stage, it is determined that the next point of the polygon (the point at the bottom of pixel P3) is not the first point of the polygon in stage 2 (the point at the bottom left of pixel P1), so processing continues on the polygon (the decision at operation 636 is "no" and pixel P3 is set as the reference pixel in operation 640 before returning to operation 524 to search for the appropriate key for pixel P3 that has been set as the reference pixel).

[0083] Stage 3 involves examining the Moore neighborhood of reference pixel P3 for a pixel hit. As shown in the input image, the only pixel hit in the Moore neighborhood of pixel P3 is pixel P2, which corresponds to key 008. Since key 008 has only one edge and the decision of operation 620 is "NO", operation 616 is not applied (i.e., skipped). Operation 620 is "NO". As in stage 2, the first three points of the edge of key 008 are skipped from the tail of the edge and the top three points of key 008 are added to the polygon shown in stage 4 (operation 628). The three skipped points and the three points added to the polygon are marked as consumed (operation 632). In general, all skipped points in the key and all points added to the final polygon are marked as consumed.

[0084] Because the three points added to the polygon in stage 3 cause the edge of the polygon to terminate at pixel P2 in stage 4, pixel P2 is set as the reference pixel in stage 4 (operation 640) and we return to operation 524 to get the key for reference pixel P2. Examining the Moore neighborhood of pixel P2 results in a pixel hit at pixels P1 and P3, which corresponds to key 136. However, because the bottom edge of key 136 was marked as consumed in stage 2, only the top edge of key 136 is considered (operation 616 is skipped and the decision at operation 620 is "no"). As shown, the first three points at the top edge of key 136 are skipped, which leaves a single point to be added to the polygon in stage 5 (operation 628). This single point is marked as consumed (operation 632). The point at which the edge terminates in the polygon in stage 5 is not the first point from stage 2, so the decision at operation 636 is "no". Since the edge of the polygon ends at pixel P1, pixel P1 is again set as the reference pixel (process 640) and processing returns to operation 524 to obtain the appropriate key.

[0085] As shown in stage 5, when examining the Moore neighborhood of pixel P1 in operation 524, pixel P2 is the only pixel hit, so key 128 is returned. Since key 128 has only one edge, operation 616 is skipped and the decision in operation 620 is "NO". As shown in stage 5, the first three points of key 128 are skipped, leaving one point to be added to the polygon in stage 5 (operation 628). This single point is marked as consumed (operation 632). Moreover, this single point is the same point where the polygon started in stage 2. Therefore, the decision in operation 636 is "YES" and the polygon is set to be closed for inclusion in the output image and / or polygon profile before returning to operation 536.

[0086] Now, as shown in FIGS. 5-6B, once a polygon is determined to be complete in process 532, the next task in process 536 is to pop an edge from the edge stack (if any) to begin creating a new polygon. For example, the first edge saved in the edge stack in an iteration of the process of FIG. 6 is selected, which results in the edge being saved in the edge stack in process 624 (i.e., the saving of edges in the edge stack is processed in a first-in-first-out (FIFO) manner). However, the exemplary embodiment is not so limited, and the order in which saved edges are processed (removed) from the edge stack is empirically established and / or an appropriate design parameter set. The edges saved in the edge stack are considered to be new edges that do not belong to a previously created polygon. Execution of method 500 continues by proceeding to processes 540 and 544 for the new edge.

[0087] Additionally, as described above, process 548 determines whether there are any solid points stored in the solid stack. In this case, after all edges have been exhausted from the edge stack, the solid points in the solid stack are iterated through to search for edges that do not belong to an already constructed polygon (new edge). If such a solid point exists, processes 540 and 544 are continued to start a new polygon.

[0088] The above processing in FIGS. 5-6B can be summarized in pseudo code as follows:

[0089] [Table 1]

[0090] [Table 2]

[0091] 7A and 7B show how an image processing method according to an example embodiment constructs a set of polygons (e.g., for an output image) based on an input image. Figures 7A and 7B can be formed according to the method described above with reference to Figures 1 and 6B.

[0092] As shown in FIG. 7A, the input image is a face including five polygons: an outer face polygon, an inner face polygon 1, two inner eye polygons 2 and 3, and an inner mouth polygon 4. As can be seen, the image processing method according to the exemplary embodiment causes the outer polygon to be formed in a CCW direction and the inner polygons 1 to 4 to be formed in a CW direction. Each dot in FIG. 7A and 7B represents a pixel point on the input image. The eye of the face is a single pixel with no pixels in its Moore neighborhood, and the configuration of polygons 2 and 3 is not shown because they correspond to key 000. FIG. 7A and 7B show the key sequence of each polygon, the direction of the polygon (CCW for the outer polygon, CW for the inner polygon), the points added per loop iteration, and the cluster with four different groups of pixels defined by the stage order and the loop end.

[0093] FIG. 8 illustrates an example of how an image processing method according to an exemplary embodiment may construct a set of polygons (e.g., for an output image) based on a complex input image. Related art image processing techniques struggle to correctly identify all clusters and polygons in the input image of FIG. 8 due to the large number of branches and intersections that must be deterministically resolved, and the possible ambiguous pixel cases. However, by performing the image processing method according to FIGS. 1-6B, an accurate output image and one or more characteristics of the output image can be generated in 0.328 seconds using a standard personal computer. In the output image, the inner and outer shaded regions are the inner and outer polygons enclosed by the lines. The image processing algorithm described herein correctly identifies 3,454 polygons, 23 clusters, and a total pixel area of ​​60,910 in 0.328 seconds. Despite the complexity of FIG. 8, no polygons or edges are missed. Zooming in on any area of ​​the output image shows that each polygon is faithfully traced without rounding errors. Furthermore, every execution of the algorithm is deterministic for the same image (i.e., for the same image, the algorithm always or almost always produces the same result).

[0094] In the example of FIG. 8, the polygons may define the boundaries of counties in 48 contiguous states in a map of the United States. Although not explicitly shown, it should be understood that at least some of the utility associated with generating the output image of FIG. 8 is due to post-processing of the output image. For example, if each county is correctly identified in the output image, the output image may be used in a dashboard or other web-based application that associates data with each county (e.g., demographic data, weather data, and / or other useful data). A user of such a dashboard may be presented with the option to select or hover over a particular county to view related data associated with that county. Thus, the exemplary embodiment may be said to be directed to accurately processing an input image to generate an output image, and the output image may be subject to additional manipulations to improve the utility of the output image.

[0095] FIG. 9 shows a graph illustrating the time taken by an image processing algorithm versus the number of pixels processed according to an example embodiment.

[0096] The graph in Figure 9 shows a sample of the algorithm performed on various images. The pixel count is the number of pixels with pixel hits (e.g. the number of black pixels in an image with a white background). Line L1 shows the performance of the algorithm by pixel count. Line L2 is proportional to the square root of the pixel count. Logically, the algorithm: Edges*O(n)+(SolidPoints+EmptySpace)O(n 2 ) Therefore, for sparse images with thin lines, the algorithm approaches O(n). As the image has more empty space or solid pixels between edges (i.e., "fat lines"), the performance of the algorithm decreases to O(n 2 ) becomes.

[0097] 10 shows an example of how an image processing method according to an exemplary embodiment constructs a set of polygons for an output image based on a complex input image. In this example, the algorithm correctly identifies 437 polygons (consisting of state boundaries and text). All state boundaries are correctly traced. Also, the position of the text within each boundary is known, since the text characters are also polygons with known positions.

[0098] 1-10 illustrate image processing algorithms that process input images with a white background and black pixels. However, the exemplary embodiments work equally well for the opposite case (i.e., an input image with a black background and white pixels). If the 1-bit bitmap has contrast, that contrast is used to process the input image. Any suitable bitmap can be used as input and (adaptively) converted into a 1-bit bitmap of "hits" and "misses".

[0099] For grayscale or color images, the image processing algorithm can use any suitable continuum of hit / miss criteria (e.g., 40%, 50%, 60%, 70%, 80% or other distributions), and for all hit / miss criteria, the algorithms can be run in parallel since each run is independent. The resulting polygons for each bit depth can be overlaid to create the outline of a consensus polygon.

[0100] Moreover, the clockwise and counterclockwise conventions are equivalent. Moreover, any encoding permutation of the keys in Figures 4A-4D can yield equivalent implementations of the algorithm.

[0101] As noted above, it should be appreciated that the image processing algorithm according to the exemplary embodiment runs on any 2D image surface to identify all clusters and polygons. When scanning every pixel of a 2D image, the algorithm requires O(n 2), but if the user selects a cluster boundary, the algorithm may adapt to trace only the outline of that polygon. In this mode, the algorithm runs in O(n) time.

[0102] Image processing algorithms according to exemplary embodiments may further provide the ability to process images other than 2D images. For example, in a hypercube variation, the algorithm for the 2-cube case (Cartesian plane) is scaled to an n-cube. In the n-cube case, the adjacent n cubes are 3. n The answer is -1.

[0103] 1) In each dimension, the multiplication rule allows us to choose the unit shift (-1,0,1). => 3 n 2) (0,0,0) is the center that never moves from here. => -1 For 3 cubes, 3 3 There are -1=26 neighbors. For each neighbor, there is a possibility of a pixel hit or a pixel miss. Therefore, the total number of edgeInfo blocks is 67,108,864, as given below:

[0104]

number

[0105] The general formula for the number of edgeInfo blocks required for an n-cube is:

[0106]

number

[0107] The same rough algorithm applies to an n-cube with the following definition:

[0108] Edge = (n-1)flat Polygon = n-Flat Solid = n-Flat In this algorithm, we scan for the start of an edge, start a new cluster and a new polygon for the new cluster, and add edges until the polygon is closed. This may include adding unconsumed edges to the edge stack. If any edges on the edge stack were not consumed by the previous polygon, create a new polygon with the unconsumed edges and add edges until the polygon is closed. This can be repeated for all edges on the edge stack. If there were solid points, process all of them and see if they are adjacent to the new edge. If so, create a new polygon with the new edge and add edges until the new polygon is closed. If all edges have been consumed, commit all polygons as a cluster, scan the new cluster, and repeat.

[0109] for example: 2D: Edge = Line (1-flat), Polygon = Plane (2-flat), Solid = Plane (2-flat) 3D: Edge = Plane (2-flat), Polygon = 3D Solid (3-flat), Solid = 3D Solid (3-flat) 4D: Edge = 3D solid (3-flat), Polygon = 4-flat, Solid = 4-flat and so on.

[0110] In the 3D image, in the 26 cubes surrounding the centers of the 3 cubes, choose a cell address encoding (right-handed) that spirals CCW upwards, as shown in the pixel grid in Figure 11. This results in the key sequence as shown (truncated for brevity, but constructed in the same way as the keys in Figures 4A through 4D).

[0111] Figure 12 shows a growing volume by combining 3D pieces. In the 2D case described with reference to Figures 1-10, the edge connections form the polygon boundary. In the 3D case, the surface connections form the volume boundary. As mentioned before, any combination of keys [1...67,108,862] results in a complete definition. Figure 12, key 3981 to key 3981, shows how two arbitrary keys can be combined (similar to the 2D combining procedure).

[0112] Combining the top "notches" of both keys forms a new volume boundary that appears as a rectangular notch on top of the "linked result". All 3D keys (except the first and last keys) have equal in- and out-degrees, as defined by their edge surfaces. Using the same linking mechanism for processing 2D images (see Figures 5-6B), the volume boundary grows and grows until it eventually self-closes to form a perfectly defined boundary. By analogy, a 3D group of pixels is a volume of adjacent pixels, and a 3D polygon is a surface that perfectly separates all volumes in 3D space.

[0113] FIG. 13 illustrates a method 700 in accordance with at least one example embodiment.

[0114] Method 700 (and / or one or more stages thereof) may be performed, for example, by at least one processor or otherwise. The at least one processor may be the same as or similar to the processing circuitry 116 of device 112 described above. Processors other than any of the processors described herein may also be used to perform method 700. The at least one processor may perform method 700 by executing instructions stored in a memory, such as memory 120. The instructions may correspond to one or more stages of method 700 described below. The instructions may cause the processor to perform one or more algorithms, such as image processing algorithms as described in more detail below.

[0115] Operation 704 includes generating a number of keys as described above, where the number of keys is based on the number of pixels in the Moore neighborhood of the pixel in the input image being processed. For example, in operation 704, the multiple keys shown in Figures 4A-4D are generated, with each key corresponding to one possible permutation of the states of the pixels in the Moore neighborhood of the reference pixel RP.

[0116] Process 708 includes generating an input image from the source image by converting each pixel of the source image to a first state or a second state based on a pixel value of each pixel of the source image. As discussed above with reference to FIGS. 1-12, if the source image is a color image, the color image may be converted to grayscale according to known techniques. The grayscale image may be subject to thresholding to generate the input image as a one-bit-per-pixel image (e.g., each pixel is black or white). In at least one exemplary embodiment, the first state corresponds to a black pixel and the second state corresponds to a white pixel. However, in other embodiments, the first state may correspond to a white pixel and the second state may correspond to a black pixel.

[0117] It should be noted that operations 704 and 708 may be optional operations. In at least one exemplary embodiment, image processor 112 receives an input image that has already been processed by operations 704 and 708 (e.g., these operations are performed by source device 104 or other devices not shown in system 100).

[0118] Process 712 includes scanning an input image that includes pixels having either a first state or a second state opposite the first state. For example, process 712 scans the input image in any of the eight ways mentioned with respect to process 508.

[0119] Process 716 includes initiating a first cluster and a first polygon when a first pixel of the input image having a first state is encountered. As described in more detail below, the first polygon may partially or completely define the first cluster.

[0120] Process 720 includes performing a first set of operations to form a first polygon. For example, process 720 may include repeating the acts described with reference to Figures 5 and 6A to form a first polygon in the same or similar manner as shown for the example of Figure 6B. As can be understood in view of the description in Figures 5, 6A, 6B and 13-15, one or more processes in methods 800 and / or 900 may define additional details of the first set of operations performed in process 720.

[0121] Process 724 includes generating a representation of one or more characteristics of the input image. The one or more characteristics of the input image may include information about the input image, such as some or all of the information useful for defining a complete polygonal profile of the input image (see, e.g., FIG. 2B). For example, process 724 generates a representation of one or more characteristics of the input image in response to determining that the input image has been fully processed (i.e., the determination in process 512 is "yes"). If the one or more characteristics of the input image include a polygonal profile of the input image, the polygonal profile of the input image may include polygonal profile information of the first polygon and other polygons (if any) formed during execution of the method of FIGS. 5 and 6A. Generating the representation in process 724 may further include generating an output image that is a representation of the input image formed by repeating the operations of FIGS. 5 and 6A. Furthermore, the representation may include other information in addition to the information about the polygonal profile of the input image. For example, process 724 may include examining information in a polygon profile for the processed input image to generate additional information, which may include objects identified and labeled by an object recognition algorithm that uses the polygon profile as input, or other useful information that may be gleaned from the polygon profile. Additionally or alternatively, process 724 may include associating data with polygons in the output image for inclusion in an interactive dashboard or other interactive application.

[0122] Process 728 includes outputting the representation generated in process 724, which may include outputting the representation (e.g., the polygon profile of the input image and / or the output image) to a display or user interface of output device 128, to a memory (e.g., memory 120 or other local or remote memory) that records the representation in a format capable of being displayed, and / or storing the representation in another suitable destination. The representation may be audio and / or visual in nature.

[0123] 14 illustrates a method 800 in accordance with at least one exemplary embodiment. Method 800 may be performed in addition to all or selected operations of method 700. For example, in at least one exemplary embodiment, method 800 may be performed between operations 720 and 724.

[0124] Method 800 (and / or one or more stages thereof) may be performed or otherwise processed, for example, by at least one processor. The at least one processor may be the same as or similar to processing circuitry 116 of device 112 described above. Processors other than any of the processors described herein may also be used to perform method 800. The at least one processor may perform method 800 by executing instructions stored in a memory, such as memory 120. The instructions may correspond to one or more stages. The instructions of method 800 described below may cause the processor to perform one or more algorithms, such as image processing algorithms as described in more detail below.

[0125] Operation 804 includes determining whether at least one key used to form the first polygon includes an unused edge or an unused solid point (see, e.g., operations 536 and 548 of FIG. 5). If so, method 800 proceeds to operation 808. If not, method 800 proceeds to operation 828.

[0126] If the determination at operation 804 is "no," this may indicate that the first polygon completely defines the first cluster of the input image. For example, as discussed above with reference to Figures 5A-6B, when the edge of the first polygon closes on itself (i.e., when the head of the edge meets the tail of the edge at a point of a pixel), the first polygon is completely formed and completely defines the first cluster. In other words, the first polygon that completely defines the first cluster may continue to be obtained automatically as a result of operation 804 being a "no" determination.

[0127] Operation 808 includes continuing to scan the input image in response to a "no" determination in operation 804. For example, scanning may continue in the same manner as selected in operation 712.

[0128] Operation 812 includes initiating a second cluster and a second polygon belonging to the second cluster when a second pixel of the input image having the first state is encountered, i.e., the determination in operation 512 of Figure 5 is "no," so the method continues searching for a pixel hit, where the pixel hit is determined by the second pixel having the first state, which initiates the second cluster and the second polygon.

[0129] Process 816 includes repeatedly performing the first set of processes to form a second polygon that partially or completely defines a second cluster in the input image. For example, process 816 includes repeating the acts of Figures 5 and 6A until an edge of the second polygon (under construction) closes upon itself to partially define the second cluster (as in process 540) or completely defines the second cluster (as in process 552). Method 800 then returns to process 724 to generate instructions based on the output of method 800.

[0130] As described above, operations 808-816 involve the formation of two separate polygons, a first polygon that defines a complete cluster and a second polygon that partially or completely defines a second cluster. However, in some cases, the first polygon and the second polygon may be combined to completely define the first cluster (see, for example, the outer and inner polygons 1 of the face in Figures 7A and 7B). In this case, operation 804 evaluates to "yes" because the key used to form the first polygon includes an edge in the edge stack or a solid point in the solid point stack that was generated during one or more iterations of the operations of Figures 5 and 6A. This indicates that the first cluster may not yet be completely defined.

[0131] If the determination in process 804 is "yes," this may indicate that the first polygon partially defines the first cluster of the input image. In other words, the first polygon formed by method 700 defines the outer boundary of the cluster, but cannot define the inner boundary of the cluster (see, for example, the outer cluster in FIG. 7, which defines the outer boundary of the cluster, but not the inner boundary). A first polygon that completely defines the first cluster may be obtained by automatically continuing as a result of process 804 being a "yes" determination.

[0132] Operation 828 includes initiating a second polygon belonging to the first cluster based on an unused edge or an unused solid point. Operation 828 may correspond to operation 544 in FIG.

[0133] Process 832 includes repeatedly performing the first set of operations to form a second polygon. For example, process 816 includes repeating the processes of Figures 5 and 6A until the edge of the second polygon (under construction) closes upon itself to completely form the second polygon. The completely formed second polygon is inside the first polygon in the input image and can be combined with the first polygon to completely define the first cluster (see, for example, outer polygon and inner polygon 1 in Figures 7A and 7B). A display is then generated in process 724 to reflect the results of processes 828 and 832.

[0134] Figure 15 illustrates a method 900 according to at least one exemplary embodiment. Method 900 may correspond to one or more operations in the first set of operations referred to in the description of Figures 13 and 14. In at least one exemplary embodiment, the first set of operations includes all or selected ones of the operations of Figures 5A and 6B. Operations of method 900 may correspond to operations of Figures 5A and 6B, although described differently.

[0135] Method 900 (and / or one or more stages thereof) may be performed or otherwise processed, for example, by at least one processor. The at least one processor may be the same as or similar to processing circuitry 116 of device 112 described above. Processors other than any of the processors described herein may also be used to perform method 900. The at least one processor may perform method 900 by executing instructions stored in a memory, such as memory 120. The instructions may correspond to one or more stages of method 900 described below. The instructions may cause the processor to perform one or more algorithms, such as image processing algorithms, as described in more detail below.

[0136] Process 904 includes determining that the Moore neighborhood of the first pixel includes at least one other pixel having a first state. For example, process 904 scans the Moore neighborhood of the first pixel according to the operations described above with reference to Figures 5A and 6B and determines that at least one other pixel has the same first state as the first pixel (i.e., at least one other pixel is also a pixel hit).

[0137] The process 908 includes retrieving the key from a plurality of keys corresponding to a shape formed by the first pixel and at least one other pixel (see also process 524 of FIG. 5). For example, as discussed above, the operation 908 includes accessing a look-up table (LUT) including the keys of FIGS. 4A-4D and retrieving the key based on the shape formed by the first pixel and at least one other pixel. Note that the shaded region of the key includes the first pixel and other pixels within the at least one other pixel determined to be a pixel hit in the Moore neighborhood of the first pixel. The process 908 retrieves the key by matching the shape formed by the first pixel and at least one other pixel with the shape of the key.

[0138] Process 912 includes using a key of the plurality of keys and one or more other keys to form the first polygon. For example, process 912 may include repeating the processes of Figures 5 and 6A (e.g., processes 528 (which may include, e.g., the operations of Figure 6A), 532, 536, and 548) until a determination is reached that the first polygon is completely formed (e.g., operations 532, 540, and / or 552).

[0139] It is noted that, although not explicitly shown, example embodiments may iterate methods 800 and 900 for the entire input image to generate the instructions described with reference to processes 724 and 728. Additionally, all or some of the processes of methods 700, 800 and 900 may be performed automatically (i.e., with little or no user intervention).

[0140] FIG. 16 illustrates an exemplary scene and exemplary objects that may be processed by an image processing method according to an exemplary embodiment. As shown, the scene includes stop signs, road signs, lane dividers, crosswalks, lamp posts, traffic cones, curbs, and intersections. In the real world, the analysis of the scene becomes even more complicated when more objects such as pedestrians, other cars, and bicycles are added. It is noted that the scene may include road construction, and the scene is moving in real time with vehicles and other moving objects, which poses a large computational capacity problem. However, the algorithm according to the exemplary embodiment provides efficiencies that allow for real-time analysis of such scenes. Because the algorithm can identify all identifiable shapes in the scene, the algorithm simplifies the work that downstream processors need to perform. For example, the algorithm can identify road signs, stop signs, lamp posts, and cones, distinguish between lane dividers and crosswalks, distinguish between roads and curbs, and provide polygon information for recognizing the text "Main Street" and "Stop" by these shapes. The algorithms according to the exemplary embodiments accurately find all the polygon information and the relationships between those polygons quickly and with reduced processing power, allowing the self-driving car to operate with the same visual information that a human driver has. Furthermore, the more powerful the self-driving processor, the more efficient the processor can operate using the algorithms, which is preferable.

[0141] FIG. 17 illustrates an exemplary input image and an output image formed by processing the input image, according to at least one exemplary embodiment. As can be seen, FIG. 17 illustrates a 2D line topographical map representing a 3D structure. In this case, it is desirable for the program to "understand" that the contours of the image stack form a representation of a 3D space. One application of the algorithm is exactly this. As the algorithm processes the input image, the polygon profile information includes containment information that indicates how the polygons stack. In the output image, the Z-order stacking is illustrated by shading each layer or polygon as determined by the algorithm.

[0142] In view of the above, it should be appreciated that the inventive concept relates to image processing techniques that can provide fast and accurate output images and generate accurate complete polygon profiles (see FIG. 2B) for any 1-bit / pixel input image. The output images and / or polygon profiles may include, but are not limited to, computer vision, optical character recognition (OCR), autonomous vehicle environment sensing (e.g., correctly identifying surrounding objects), maps and cartography (e.g., general shape matching), automated testing, document creation, user test generation, video, geographic information systems (GIS), AI machine learning to identify objects in images, cryptography, robotics, mathematics, cellular automata, topology, discrete mathematics, digital signal processing, and the like.

[0143] Specific details have been described to provide a thorough understanding of the embodiments. However, it will be understood by those skilled in the art that the embodiments may be practiced without these specific details. In other instances, well-known circuits, processes, algorithms, structures, and techniques may be shown without unnecessary detail in order to avoid obscuring the embodiments.

[0144] Although exemplary embodiments of the present disclosure have been described in detail herein, the inventive concepts can be variously embodied and used in other ways, and the appended claims are intended to be construed to cover these modifications in the absence of any prior art.

[0145] For purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the present embodiments, however, it should be understood that the techniques herein may be practiced in a variety of ways beyond the specific details set forth herein.

[0146] Furthermore, while the exemplary embodiments shown herein may depict various components of the system as collocated, the various components of the system may be located at separate points of a distributed network, such as, for example, a communications network and / or the Internet, or a dedicated secure, insecure, and / or encrypted system. Thus, it should be understood that the components of the system may be combined in one or more devices, or may be collocated at a particular node / element of a distributed network, such as a communications network. As can be seen from the description, for reasons of computational efficiency, the components of the system may be located anywhere in the distributed network without impacting the operation of the system.

[0147] Additionally, the various links connecting the elements (which may not be shown), including the communication channel(s), may be wired or wireless links, or any combination thereof, or other known or later developed elements, that may / can provide and / or communicate data and / or signals to and from the connected elements. The term module as used herein may refer to any known or later developed hardware, software, firmware, or combination thereof that is capable of performing the functionality associated with that element. As used herein, the terms determine, calculate, compute, and variations thereof are used interchangeably and are intended to include any type of methodology, process, mathematical operation, or technique.

[0148] While the above flowcharts / process flows have been described in conjunction with a particular exemplary sequence of events, it should be understood that modifications to this sequence may occur without substantially affecting the operation of the embodiment. Additionally, the exact sequence of events need not occur as shown in the exemplary embodiments, rather, the steps may be performed by one or other devices in the system. Additionally, the exemplary techniques described herein are not limited to the specifically shown embodiments, but may also be utilized with other exemplary embodiments, and each feature described is individually and separately claimable.

[0149] As will be appreciated by one of ordinary skill in the art, aspects of the present disclosure may be embodied as a system, method, and / or computer program product. Accordingly, aspects of the present disclosure may be embodied entirely in hardware, entirely in software (including but not limited to firmware, program code, resident software, microcode), or a combination of hardware and software. All such embodiments may be referred to generally herein as circuits, modules, or systems. Additionally, aspects of the present invention may be in the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied therein.

[0150] The computer readable medium described herein may be a computer readable storage medium, examples of which include, but are not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination. As used herein, a computer readable storage medium may be a non-transitory, permanent medium that includes or records an instruction execution system, apparatus, device, computer, computing system, computer system, or programmable machine or device that inputs, processes, and outputs instructions, commands, or data. A non-exhaustive list of specific examples of computer-readable storage media may include an electrical connection having one or more wires, a portable computer diskette, a floppy disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), a USB flash drive, a non-volatile RAM (NVRAM or NOVRAM), an erasable programmable read-only memory (EPROM or flash memory), a flash memory card, an electrically erasable programmable read-only memory (EEPROM), an optical fiber, a portable compact disk read-only (CD-ROM), a DVD-ROM, an optical storage device, a magnetic storage device, or any suitable combination thereof. The computer-readable storage medium may be any computer-readable medium that is not a computer-readable signal medium, such as a propagated data signal having computer-readable program code embodied therein.

[0151] The program code may be embodied as computer readable instructions stored on or in a computer readable storage medium, for example as source code, object code, interpreted code, executable code, or a combination thereof. Any standard or proprietary programming or interpreted language may be used to generate the computer executable instructions. Examples of such languages ​​include C, C++, C#, Pascal, JAVA, JAVA Script, BASIC, Smalltalk, Visual Basic, and Visual C++.

[0152] Transmission of the program code embodied on the computer readable medium may occur using any suitable medium, including, but not limited to, wireless, wired, optical fiber cable, radio frequency (RF), or any suitable combination thereof.

[0153] The program code may run entirely on the user / operator / administrator's computer, partly on the user / operator / administrator's computer as a stand-alone software package and partly on a remote computer, or entirely on a remote computer or server, which may be connected to the user / operator / administrator's computer via any type of network, such as a local area network (LAN) or wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).

[0154] Additionally, the systems, methods and protocols described herein may be implemented with the improvement of one or more special purpose computers, programmed microprocessors or microcontrollers and peripheral integrated circuit elements, wired electronic or logic circuits such as ASICs or other integrated circuits, digital signal processors, discrete element circuits, programmable logic devices such as PLDs, PLAs, FPGAs, PALs, smart phones, any equivalent means, etc. In general, any apparatus capable of implementing a state machine capable of implementing the methodologies presented herein may benefit from the various communication methods, protocols, and techniques according to the disclosure provided in this specification.

[0155] Examples of processors described herein include Qualcomm™ Snapdragon™ 800 and 801 with 4G LTE integration and 64-bit computing, Qualcomm™ Snapdragon™ 610 and 615, Apple™ A7, A8, A8X, A9, A9X, or A10 processors with 64-bit architecture, Apple™ M7, M8, M9, or M10 motion coprocessors, Samsung™ Exynos™ series, Intel™ Core™ processor family, Intel™ Xeon™ family processors, Intel™ Atom™ processor family, Intel Itanium™ processor family, Intel™ Core™ i5-4670K and i7-4770K 22nm Haswell, Intel™ Core™ i5-3570K 22nm Ivy Bridge, AMD™ FX™ family processors, AMD™ FX-4300, FX-6300, and FX-8350 32nm Vishera, AMD™ Kaveri processors, TexasInstruments™ JacintoC6000™ automotive infotainment processors, TexasInstruments™ OMAP™ automotive-grade mobile processors, ARM™ Cortex™ -M processors, ARM™ Cortex-A and ARM926EJ-S™ processors, Broadcom™ AirForce BCM4704 / BCM4703 wireless networking processors, AR7100 Wireless Network Processing Unit, and other industry equivalent processors, which may perform computational functions using any now known or later developed standards, instruction sets, libraries, and / or architectures.

[0156] Additionally, the disclosed methods can be readily implemented in software using object or object-oriented software development environments that provide portable source code that can be used on a variety of computer, workstation, or mobile device platforms, such as smart phones or cell phones or vehicles. Alternatively, the disclosed systems can be partially implemented as hardware using standard logic circuits or VLIS designs. Whether software or hardware is used to implement the systems according to the present invention depends on the speed and / or efficiency requirements of the system, the specific functionality, and the specific software or hardware system or microprocessor or microcomputer system utilized. However, the methods presented herein can be readily implemented on a general basis in hardware and / or software using any known or later developed system or structure, device and / or software by one of ordinary skill in the applicable art from the functional descriptions presented herein and knowledge of computer and image processing technology.

[0157] Additionally, the disclosed methods may be readily implemented in software running on a programmed general purpose computer, special purpose computer, mobile device, smart phone, microprocessor, etc. In these examples, the systems and methods of the present invention may be implemented as programs embedded in a personal computer, such as JAVA™ or CGI scripts, as resources resident on a server or graphics workstation, as routines embedded in a dedicated image processing system, such as a plug-in, etc. The systems may also be implemented by physically incorporating the systems and methods into software and / or hardware systems, such as the hardware and software systems of an image processor.

[0158] While this technology has been described in conjunction with a number of embodiments, many alternatives, modifications, and variations will be apparent to those of ordinary skill in the applicable art. Accordingly, it is intended to embrace all such alternatives, modifications, equivalents, and variations that are within the spirit and scope of this disclosure.

[0159] The inventive concept includes any one or more other embodiments, any one or more features disclosed herein, any one or more features substantially disclosed herein, any one of the aspects / features / embodiments substantially disclosed herein in combination with any one or more other aspects / features / embodiments, any one or more uses of the embodiments or features as disclosed herein. It is understood that any feature described herein may be claimed in combination with any other feature described herein, regardless of whether the feature is from the same described embodiment.

[0160] An exemplary embodiment can be configured according to the following.

[0161] (1) An apparatus comprising: At least one processor; a memory containing instructions that, when executed by at least one processor, cause the at least one processor to: An apparatus comprising:

[0162] scanning an input image containing pixels having either a first state or a second state opposite the first state; When a first pixel of the input image having a first state is encountered, initiate a first cluster and a first polygon belonging to the first cluster; performing a first series of operations to form a first polygon; generating a representation of one or more characteristics of the input image based on at least the initial clusters; The display is output.

[0163] (2) In the device of (1), the at least one processor repeatedly executes the first series of operations to form the first polygon.

[0164] (3) One or more of the devices of (1) or (2), wherein the instructions cause the at least one processor to:

[0165] determining whether at least one key used to form the first polygon contains any unused edges or any unused solid points; continuing to scan the input image; When we encounter a second pixel in the input image that is in the first state, we start a second cluster and a second polygon that belongs to the second cluster.

[0166] (4) In one or more of the devices described in (1) to (3), the instructions cause the at least one processor to execute the following:

[0167] performing said first set of operations repeatedly to form a second polygon that fully or partially defines a second cluster in the input image; A display is generated based on the first cluster and the second cluster.

[0168] (5) In one or more of the devices described in (1) to (4), the instructions cause the at least one processor to execute the following:

[0169] determining whether at least one key used to form the first polygon contains any unused edges or any unused solid points; Initiate a second cluster and a second polygon belonging to the first cluster based on unused edges or unused solid points; The first sequence of operations is repeated to form a second polygon, combining the first polygon with the second polygon to completely define the first cluster.

[0170] (6) In one or more of the devices described in (1) to (5), the instructions cause the at least one processor to execute the following:

[0171] An input image is generated from the source image by transforming each pixel of the source image to a first state or a second state based on a pixel value of each pixel of the source image.

[0172] (7) In one or more of the devices according to (1) to (6), the first state corresponds to one of black coloring or white coloring, and the second state corresponds to the other of black coloring or white coloring.

[0173] (8) In one or more of the devices according to (1) to (7), the first series of processes includes the following:

[0174] determining that a Moore neighborhood of the pixel includes at least one other pixel having a first state; Searching for a key from the plurality of keys based on a shape formed by the first pixel and at least one other pixel; The key and one or more other keys of the multiple keys are used to form the first polygon.

[0175] (9) In one or more of the devices of (1) through (8), the instructions cause the at least one processor to generate a plurality of keys based on a number of pixels in a Moore neighborhood of a first pixel.

[0176] (10) In one or more of the devices according to (1) to (9), the number of the plurality of keys is at least 256.

[0177] (11) A method comprising: scanning an input image containing pixels having either a first state or a second state opposite the first state; Initiating a first cluster and a first polygon belonging to the first cluster when a first pixel of the input image having a first state is encountered; performing a first series of operations to form a first polygon; generating a representation of one or more characteristics of the input image based on at least the first cluster; Output the display.

[0178] (12) The method according to (11), wherein the execution of the first series of operations comprises repeatedly executing the first series of operations to form the first polygon.

[0179] (13) One or more of the methods according to (11) or (12), further comprising:

[0180] Verify that at least one key used to form the first polygon does not include any unused edges or any unused solid points; Continue scanning the input image, When a second pixel of the input image in the first state is encountered, a second cluster and a second polygon belonging to the second cluster are initiated.

[0181] repeating the first set of operations to form a second polygon that completely or partially defines a second cluster; A display is generated based on the first cluster and the second cluster.

[0182] (14) One or more of the methods (11) to (13), further comprising:

[0183] determining whether at least one key used to form the first polygon includes an unused edge or an unused solid point; Initiate a second polygon belonging to the first cluster based on an unused edge or an unused solid point; The first series of operations is repeated to form a second polygon.

[0184] (15) The method according to one or more of (11) to (14), wherein the first polygon and the second polygon combine to completely define the first cluster.

[0185] (16) One or more of the methods according to (11) to (15), further comprising:

[0186] An input image is generated from the source image by transforming each pixel of the source image to a first state or a second state based on a pixel value of each pixel of the source image.

[0187] (17) The method according to any one of (11) to (16), wherein the first state corresponds to one of black coloring or white coloring, and the second state corresponds to the other of black coloring or white coloring.

[0188] (18) In one or more of the methods (11) to (17), the first series of steps includes:

[0189] determining that a Moore neighborhood of the pixel includes at least one other pixel having a first state; Searching for a key from the plurality of keys based on a shape formed by the first pixel and at least one other pixel; The key and one or more other keys of the plurality of keys are used to form a first polygon that includes the first pixel and at least one other pixel.

[0190] (19) One or more of the methods (11) to (18), further comprising:

[0191] A number of keys are generated based on the number of pixels in the Moore neighborhood of the first pixel.

[0192] (20) A system having:

[0193] A display and At least one processor; a memory containing instructions that, when executed by at least one processor, cause the at least one processor to: scanning an input image containing pixels having either a first state or a second state opposite the first state; When a first pixel of the input image having a first state is encountered, initiate a first cluster and a first polygon belonging to the first cluster; performing a first set of operations to form a first polygon; generating a representation of one or more characteristics of the input image based on at least the first cluster; The display is output to the display.

Claims

1. 1. A computer program having instructions for causing at least one processor to perform a method for generating an outline of at least a portion of an image, the instructions comprising: Take an input image, scanning an input image containing pixels having either a first state or a second state opposite the first state; The first of the input images having the first state When a pixel is encountered, start a first cluster and a first polygon that belongs to the first cluster; Forming a first polygon; determining whether at least one key used to form the first polygon and representing a number of possible states of pixels surrounding the first pixel includes no unused edges or no unused solid points; continuing to scan the input image; Upon encountering a second pixel of the input image in the first state, initiate a different second cluster and a different second polygon belonging to the second cluster; generating a representation of one or more characteristics of the input image based on at least the first cluster; and outputting the display.

2. 2. The computer program product of claim 1, wherein the instructions further comprise repeatedly performing a first sequence of operations to form the first polygon.

3. 2. The computer program of claim 1, wherein the instructions further comprise: performing the first set of operations repeatedly to form a second polygon that completely or partially defines a second cluster in the input image; generating a display based on the first cluster and the second cluster.

4. 2. The computer program of claim 1, wherein the instructions further comprise: A computer program comprising: generating an input image from a source image by transforming each pixel of the source image to a first state or a second state based on a pixel value of each pixel of the source image.

5. The computer program of claim 4, 11. A computer program product comprising: a first state corresponding to one of a black coloring or a white coloring; and a second state corresponding to the other of a black coloring or a white coloring.

6. The computer program of claim 2, The first series of processes includes: determining that a Moore neighborhood of the pixel includes at least one other pixel having the first state; retrieving a key from the plurality of keys based on a shape formed by the first pixel and at least one other pixel; A computer program comprising forming an initial polygon using a key and one or more other keys of a plurality of keys.

7. The computer program of claim 6, The instructions further include causing the at least one processor to generate a plurality of keys based on a number of pixels in a Moore neighborhood of a first pixel.

8. 8. The computer program of claim 7, wherein the number of said plurality of keys is at least 256.

9. The computer program of claim 1, 1. A computer program comprising: 256 keys, one of which has no pixels surrounding a reference pixel in the same state as the reference pixel, and another of which has no pixels surrounding a reference pixel in the same state as the reference pixel.

10. The computer program of claim 1, 1. A computer program product comprising: 256 keys forming a complete set capable of defining polygon edges of an input image, the input image being a digitized, two-dimensional image.

11. The computer program of claim 1, 13. A computer program product comprising: a computer program product for displaying a first polygon having a first edge; a computer program product for displaying a first polygon having a first edge;

12. The computer program of claim 11, The instructions further include beginning a new polygon with an unused edge from the edge stack.

13. The computer program of claim 1, 11. A computer program product comprising: a computer program product; wherein unused edges of a key are stored in an edge stack.

14. 1. A computer program having instructions, when executed by at least one processor, to cause the at least one processor to perform a method, the instructions comprising: Take an input image, scanning an input image containing pixels having either a first state or a second state opposite the first state; upon encountering a first pixel of the input image having a first state, initiate a first cluster and a first polygon belonging to the first cluster; Forming a first polygon; determining whether at least one key used to form the first polygon and representing a number of possible states of pixels surrounding the first pixel includes an unused edge or an unused solid point; Upon encountering a second pixel of the input image in the first state, initiate a second cluster and a second polygon belonging to the first cluster; combining the first polygon with the second polygon to form a second polygon to completely define the first cluster; generating a representation of one or more characteristics of the input image based on at least the first cluster; and outputting the display.

15. 1. A computer program having instructions, when executed by at least one processor, to cause the at least one processor to perform a method, the instructions comprising: Take an input image, scanning an input image containing pixels having either a first state or a second state opposite the first state; upon encountering a first pixel of the input image having a first state, initiate a first cluster and a first polygon belonging to the first cluster; Forming a first polygon; determining whether at least one key used to form the first polygon and representing a number of possible states of pixels surrounding the first pixel includes no unused edges or no unused solid points; continuing to scan the input image; Upon encountering a second pixel of the input image in the first state, initiate a different second cluster and a different second polygon belonging to the second cluster; forming a second polygon that completely or partially defines the second cluster; generating a display based on the first cluster and the second cluster; generating a representation of one or more characteristics of the input image based on at least the first cluster; and outputting the display.

16. 16. The computer program product of claim 15, wherein the instructions further comprise repeatedly performing a first sequence of operations to form the first polygon.

17. 17. The computer program of claim 16, wherein the instructions further comprise: determining whether at least one key used to form the first polygon includes an unused edge or an unused solid point; Initiating a second polygon belonging to the first cluster based on the unused edge or the unused solid point; repeatedly performing the first series of operations to form the second polygon.

18. 17. The computer program of claim 16, the first polygon and the second polygon combine to completely define the first cluster.

19. 16. The computer program of claim 15, wherein the instructions further comprise: A computer program comprising: generating an input image from a source image by transforming each pixel of the source image to a first state or a second state based on a pixel value of each pixel of the source image.

20. 20. The computer program of claim 19, 11. A computer program product comprising: a first state corresponding to one of a black coloring or a white coloring; and a second state corresponding to the other of a black coloring or a white coloring.

21. 17. The computer program of claim 16, The first series of processes includes: determining that a Moore neighborhood of the pixel includes at least one other pixel having the first state; retrieving a key from the plurality of keys based on a shape formed by the first pixel and at least one other pixel; A computer program comprising forming an initial polygon using a key and one or more other keys of a plurality of keys.

22. 22. The computer program of claim 21, The instructions further include causing the at least one processor to generate a plurality of keys based on a number of pixels in a Moore neighborhood of a first pixel.

23. 16. The computer program of claim 15, 13. A computer program product comprising: a computer program product for displaying a first polygon having a first edge; a computer program product for displaying a first polygon having a first edge;

24. 16. The computer program of claim 15, 1. A computer program comprising: 256 keys, one of which has no pixels surrounding a reference pixel in the same state as the reference pixel, and another of which has no pixels surrounding a reference pixel in the same state as the reference pixel.

25. 25. The computer program of claim 24, 256 keys form a complete set capable of defining polygon edges of an input image, the input image being a digitized, two-dimensional image.

26. 1. A computer program having instructions, when executed by at least one processor, to cause the at least one processor to perform a method, the instructions comprising: Take an input image, scanning an input image containing pixels having either a first state or a second state opposite the first state; upon encountering a first pixel of the input image having a first state, initiate a first cluster and a first polygon belonging to the first cluster; Forming a first polygon; determining whether at least one key used to form the first polygon and representing a number of possible states of pixels surrounding the first pixel includes no unused edges or no unused solid points; continuing to scan the input image; Upon encountering a second pixel of the input image in the first state, initiate a different second cluster and a different second polygon belonging to the second cluster; generating a representation of one or more characteristics of the input image based on at least the first cluster; and outputting the display.

27. 27. The computer program of claim 26, 13. A computer program product comprising: a computer program product for displaying a first polygon having a first edge; a computer program product for displaying a first polygon having a first edge;

28. 27. The computer program of claim 26, 1. A computer program comprising: 256 keys, one of which has no pixels surrounding a reference pixel in the same state as the reference pixel, and another of which has no pixels surrounding a reference pixel in the same state as the reference pixel.

29. 29. The computer program of claim 28, 256 keys form a complete set capable of defining polygon edges of an input image, the input image being a digitized, two-dimensional image.

Citation Information

Patent Citations

  • Extracting method for hole

    JP1988024482A

  • Method for correcting character

    JP1988313284A

  • Binary picture contour line chain encoding device

    JP1992112276A

  • Method and device for processing image and program

    JP2004038720A

  • Image processing apparatus, its control method, and program

    JP2007109179A