Image processing device and image processing method using logic gate network, and method of generating the same

A logic gate network for image processing reduces computational resources by using logic gates, enhancing efficiency and hardware implementation in deep learning applications.

US20260377721A1Pending Publication Date: 2026-11-26SAMSUNG ELECTRONICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/393952
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Priority Date
2025-05-15
Filing Date
2025-11-19
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Artificial neural networks for image processing require significant computational resources due to numerous multiplication operations, necessitating a more resource-efficient alternative.

Method used

Implementing image processing using a logic gate network with a combination of logic gates, which generates binary data through feature extraction layers and decodes output images without multiplication operations.

Benefits of technology

This approach minimizes resource usage and enhances the efficiency of hardware implementation for deep learning-based image processing networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260377721A1-D00000_ABST
    Figure US20260377721A1-D00000_ABST
Patent Text Reader

Abstract

An image processing device may include an encoder configured to generate first binary data from an input image, a logic gate network configured to include a plurality of feature extraction layers, each including logic gates, and output second binary data from the first binary data, and a decoder configured to generate an output image corresponding to the input image based on the second binary data.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This present application claims priority to and the benefit under 35 U.S.C. § 119 (a)-(d) of Korean Patent Application No. 10-2025-0063081, filed on May 15, 2025, in the Korean Intellectual Property Office, the entire disclosure of which is incorporated herein by reference.FIELD

[0002] The technical ideas of the present disclosure relate to an image processing device, and more specifically, relates to an image processing device and an image processing method using a logic gate network, and a method of generating a logic gate network.BACKGROUND

[0003] An artificial neural network may include a structure for calculating multiple weighted sums and accordingly, may require significant resources. For example, an artificial neural network for image processing may include numerous multiplication operations on image data during training and inference processes. Therefore, there is a need for an artificial neural network that may be implemented with reduced resources.SUMMARY

[0004] The technical ideas of the present disclosure provide a device and a method of efficiently processing an image by using a logic gate network that is implemented with reduced resources, and a method of generating a logic gate network.

[0005] An image processing device according to aspects of the technical ideas of the present disclosure may include an encoder configured to generate first binary data from an input image, a logic gate network including a plurality of feature extraction layers, each including a logic gate, and configured to output second binary data from the first binary data, and a decoder configured to generate an output image corresponding to the input image based on the second binary data. Each of the first binary data and the second binary data may include a plurality of bit planes.

[0006] A method according to aspects of the technical ideas of the present disclosure may include generating first binary data from an input image, generating second binary data from the first binary data based on a plurality of feature extraction layers, each including logic gates, and generating an output image corresponding to the input image based on the second binary data. Each of the first binary data and the second binary data may include a plurality of bit planes.

[0007] A method of generating a logic gate network according to aspects of the technical ideas of the present disclosure may include generating first binary data that includes a plurality of first binary planes from a sample input image, acquiring second binary data that is an output of the logic gate network corresponding to the first binary data, generating an output image based on the second binary planes included in the second binary data and the sample input image, and replacing at least one of the plurality of logic gates based on a sample output image corresponding to the sample input image, the output image, and the sample input image.

[0008] According to a device and a method according to example embodiments of the present disclosure, by performing image processing only with a combination of logic gates, it is possible to minimize the number of operations with respect to image processing based on a neural network.

[0009] According to a device and a method according to example embodiments of the present disclosure, it is possible to enhance efficiency of hardware implementation of a deep learning-based image processing network.

[0010] The effects obtainable from example embodiments of the present disclosure are not limited to those mentioned above, and other effects not explicitly described may be clearly derived and understood by those skilled in the art from the following description. That is, even unintended effects resulting from the implementation of example embodiments of the present disclosure may also be derived by those skilled in the art from example embodiments of the present disclosure.BRIEF DESCRIPTION OF THE DRAWINGS

[0011] These and / or other aspects, features, and advantages of the invention will become apparent and more readily appreciated from the following description of example embodiments, taken in conjunction with the accompanying drawings of which:

[0012] FIG. 1 is a diagram showing an image processing device according to example embodiments of the present disclosure;

[0013] FIG. 2 is a block diagram showing an image processing device according to example embodiments of the present disclosure;

[0014] FIG. 3 is a flowchart showing an image processing method according to example embodiments of the present disclosure;

[0015] FIG. 4 is a diagram showing a logic convolution operation according to example embodiments of the present disclosure;

[0016] FIG. 5 is a diagram showing a logic convolution operation according to example embodiments of the present disclosure;

[0017] FIG. 6 is a flowchart showing a method of generating an output bit string in a feature extraction layer from an input bit string according to example embodiments of the present disclosure;

[0018] FIG. 7A is a flowchart showing a method of processing an image in first and second extraction layers included in a logic gate network according to example embodiments of the present disclosure;

[0019] FIG. 7b is a diagram showing a spatial-to-channel conversion according to example embodiments of the present disclosure;

[0020] FIG. 8A is a diagram showing a method of processing an image in first and second feature extraction layers included in a logic gate network according to example embodiments of the present disclosure;

[0021] FIG. 8b is a diagram showing a channel-to-spatial conversion according to example embodiments of the present disclosure;

[0022] FIG. 9 is a block diagram showing an image processing device 90 according to example embodiments of the present disclosure;

[0023] FIG. 10 is a flowchart showing a binary decoding method according to example embodiments of the present disclosure;

[0024] FIG. 11 is a flowchart showing a method of generating a logic gate network according to example embodiments of the present disclosure; and

[0025] FIG. 12 is a block diagram showing a computing system that generates a logic gate network according to example embodiments of the present disclosure.DETAILED DESCRIPTION

[0026] FIG. 1 is a block diagram showing an image processing device 10 according to example embodiments of the present disclosure. As illustrated in FIG. 1, the image processing device 10 may include a logic gate network 12.

[0027] Unlike a neural network that includes a multiplication-based weighted operation, the logic gate network 12 may include a logic gate operation for binary input. The logic gate network 12 may include a plurality of logic gates. The logic gate network 12 may be implemented with resources reduced compared to the neural network that includes a weighted operation. FIG. 1 shows example embodiments applied in an image processing process in which the logic gate network 12 generates an output image OUT from an input image IN.

[0028] Referring to FIG. 1, the logic gate network 12 includes a first feature extraction layer L1 to a fifth feature extraction layer L5. Each of the first feature extraction layer L1 to the fifth feature extraction layer L5 may include a plurality of nodes that output a bit of 0 or 1. Each of the plurality of nodes may correspond to one logic gate and output a resultant bit by receiving an input bit from at least one node of a former layer and performing a logic gate operation (or logic operation). For example, a node included in a second feature extraction layer L2 may receive output bits of two nodes included in the first feature extraction layer L1 and may generate an output bit by performing a logic gate operation for the received bits and provide the output bit to at least one node included in a third feature extraction layer L3. FIG. 1 illustrates the logic gate network 12 including feature extraction layers. However, it is noted that the number of feature extraction layers included in the logic gate network according to the present disclosure is not limited to that illustrated in FIG. 1.

[0029] In some example embodiments, a node included in the first feature extraction layer L1 to the fifth feature extraction layer L5 may correspond to a 2-input logic gate having an input bit of 2 bits and an output bit of 1 bit. For example, the 2-input logic gate may be one of sixteen logic gates corresponding to each of sixteen logic operators presented in [Table 1] below.TABLE 1ID OperatorIDOperatorreal-valued00011011 0False00000 1A ∧ BA · B0001 2¬(A ⇒ B)A − AB0010 3AA0011 4¬(A ⇐ B)B − AB0100 5BB0101 6A ⊕ BA + B − 2AB0110 7A ∨ BA + B − AB0111 8¬(A ∨ B)1 − (A + B − AB)1000 9¬(A ⊕ B)1 − (A + B − 2AB)100110¬B1 − B101011A ⇐ B1 − B + AB101112¬A1 − A110013A ⇒ B1 − A + AB110114¬(A ∧ B)1 − AB111015True11111

[0030] Similarly to a convolution neural network, the logic gate network 12 may be trained for a relationship between the input image IN and the output image OUT by a processor or a learning processor. More specifically, the processor or the learning processor may calculate a probability that a node included in the logic gate network 12 corresponds to a specific logic gate and may perform training of the logic gate network 12 in a manner that determines a logic gate having a highest correspondence probability as a logic gate of the node. For example, in a training process of the logic gate network 12, for each of the plurality of nodes included in the logic gate network 12, a table of probability values for the sixteen logic operators of [Table 1] may be generated and updated. In the training process, a processor or a learning processor that trains the logic gate network 12 may train a relationship between a sample input image and a sample output image by updating a table corresponding to a node so that an output image becomes closer to the sample output image based on the output image and a sample image generated in the logic gate network 12. The logic gate network 12 trained according to such a training process may include a logic gate having a highest probability value determined in the table corresponding to each node as a final logic gate of the node. According to a connection relationship between logic gates and nodes included in the logic gate network 12, hardware may be implemented, and a device including the logic gate network 12 may be designed and manufactured.

[0031] FIG. 2 is a block diagram showing an image processing device 20 according to example embodiments of the present disclosure. Referring to FIG. 2, the image processing device 20 may include an encoder 21, a logic gate network 22, and a decoder 23. The image processing device 20 illustrated in FIG. 2 may be an example of the image processing device 10 of FIG. 1. Descriptions of FIG. 2 that are redundant with those of FIG. 1 will be omitted.

[0032] The encoder 21 may generate binary data from an input image IN. The logic gate network 22 may receive the binary data provided from the encoder 21. The decoder 23 may generate an output image OUT from the binary data output from the logic gate network 22. In the present disclosure, the binary data input into the logic gate network 22 may be referred to as first binary data, and the binary data output from the logic gate network 22 may be referred to as second binary data.

[0033] Each of the first binary data and the second binary data includes a plurality of bit planes. The bit planes may refer to bit arrays arranged in a way equivalent to pixels of the input image IN (or output image OUT). In some example embodiments, the pixels of the input image IN may have multi-bit values. The encoder 21 may generate bit planes corresponding to bits of the pixels. For example, when the pixel of the input image IN has an 8-bit value, the encoder 21 may generate a total of eight bit planes, including a bit plane corresponding to most significant bits (MSBs) of the pixels and a bit plane corresponding to least significant bits (LSBs) of the pixels. The decoder 23 may merge a plurality of bit planes and output the output image OUT.

[0034] As illustrated in FIG. 2, the logic gate network 22 may include a first logic convolutional layer LC1 to a fourth logic convolutional layer LC4. Similarly to extracting a feature map by applying a kernel to a receptive field of data input in a convolutional layer of a convolutional neural network (CNN) and performing a convolution operation in a sliding manner, the logic convolutional layer may output a logic gate operation result in a manner in which a kernel slides in a receptive field of an input bit string and extract a feature map. In some example embodiments, each of the first logic convolutional layer LC1 to the fourth logic convolutional layer LC4 may correspond to feature extraction layers described above with reference to FIG. 1. For example, each of the first feature extraction layer L1 to the fifth feature extraction layer L5 of FIG. 1 may include a logic convolutional layer for a logic convolution operation. Examples of an operation of the logic convolutional layer will be described in detail with reference to FIG. 4 and FIG. 5.

[0035] FIG. 3 is a flowchart showing an image processing method according to example embodiments of the present disclosure. As illustrated in FIG. 3, the image processing method may include a plurality of operations S31 to S34. In some example embodiments, the image processing method of FIG. 3 may be performed by the image processing device 20 of FIG. 2. Hereinafter, the image processing method of FIG. 3 will be described with reference to FIG. 2.

[0036] In operation S31, first binary data may be generated from an input image IN. For example, an encoder 21 may generate the first binary data from the input image IN. The input image IN may include a plurality of pixels, each having a multi-bit value. The encoder 21 may generate the first binary data by encoding the input image IN to be processed only by a logic operation in a logic gate network 22. For example, when each pixel of the input image IN is 8-bit and has a value ranging from 0 to 255, the encoder 21 may generate first binary data including eight bit planes by dividing bits in each pixel. In some example embodiments, when the input image IN includes three channels corresponding to RGB colors, the encoder 21 may generate eight bit planes for each channel. Hereinafter, for convenience of description, it is assumed that pixels of the input image IN and an output image OUT are 8-bit. However, it is noted that example embodiments of the present disclosure are not limited thereto.

[0037] In operation S32, the first binary data may be provided to the logic gate network 22. In operation S33, second binary data may be acquired from the logic gate network 22. For example, the encoder 21 may provide the first binary data generated in operation S31 to the logic gate network 22. As described above with reference to the drawings, the logic gate network 22 may include a plurality of feature extraction layers, for example, a first logic gate network LC1 to a fifth logic convolutional layer LC5. Each of the logic convolutional layer LC1 to the fifth logic convolutional layer LC5 may output a feature map for the first binary data. The logic gate network 22 including a plurality of logic gates may generate the second binary data from the first binary data by performing a logic gate network operation.

[0038] In operation S34, an output image may be generated based on the second binary data. For example, a decoder 23 may generate an output image OUT based on the second binary data acquired from operation S33. For example, the decoder 23 may calculate residual data corresponding to each pixel value by counting and normalizing mutually corresponding bits in the plurality of bit planes included in the second binary data and output the output image OUT based on the residual data. An example of operation S34 will be described in detail below with reference to FIG. 10.

[0039] FIG. 4 is a diagram showing a logic convolution operation according to example embodiments of the present disclosure. As described above with reference to the drawings, the logic convolution operation may be performed in a logic convolutional layer LC of a logic gate network according to the present disclosure. The logic convolutional layer LC may be an example of each of a first logic convolutional layer LC1 to a fourth logic convolutional layer LC4 as illustrated in FIG. 2.

[0040] Referring to FIG. 4, the logic convolutional layer LC may generate an output bit string 42 from an input bit string 41. Each of the input bit string 41 and the output bit string 42 may be three-dimensional binary data including a plurality of bit planes as channels. In addition, each of the input bit string 41 and the output bit string 42 may be a feature map as an operation result of at least one feature extraction layer for the first binary data. As illustrated in FIG. 4, the logic convolutional layer LC may include a first kernel K1 to a sixth kernel K6.

[0041] The logic convolutional layer LC generates the output bit string 42, including a first channel CH1 to a sixth channel CH6, from the input bit string 41. For example, each of the first channel CH1 to the sixth channel CH6 may be scan data for the input bit string 41. For convenience of illustration, FIG. 4 illustrates that the logic convolutional layer LC includes six kernels, and the output bit string 42 includes six channels. However, the number of kernels of the logic convolutional layer and the number of channels of the output bit string are not limited to that illustrated in FIG. 4.

[0042] The kernels may correspond to a logic gate set. For example, the first kernel K1 to the sixth kernel K6 may correspond to a first logic gate set to a sixth logic gate set, respectively. The logic gate set may include a plurality of mutually connected logic gates. In some example embodiments, each of the plurality of logic gates included in the logic gate set may be one of sixteen logic gates represented in [Table 1].

[0043] In some example embodiments, the logic gate set may include 2-input logic gates and have a multilevel structure in which outputs of two logic gates are connected to inputs of one logic gate. In some example embodiments, the multilevel structure of the logic gate set may be referred to as a logic tree. The logic tree may have a depth d that denotes the number of levels included therein. For example, referring to FIG. 4, the first kernel K1 to the sixth kernel K6 may have two levels and include a logic tree having a depth of 2 (d=2). The logic gate set of the logic tree may have 2d inputs. The first kernel K1 to the sixth kernel K6 indicate a case of having four inputs (22=4). It is noted that the depth of the logic tree included in the logic gate set is not limited to that illustrated in FIG. 4.

[0044] Each of the first kernel K1 to the sixth kernel K6 may output, from the input bit string 41, each output bit of the logic gate set corresponding to a plurality of bit values corresponding to a first location set to a sixth location set that are set in a receptive field (RF). For example, the first kernel K1 may output, from the input bit string 41, an output bit of the first logic gate set as a first bit of the first channel CH1 from the plurality of bit values corresponding to the first location set for the RF. The first location set to the sixth location set may be set to correspond to the first kernel K1 to the sixth kernel K6, respectively, and may be initialized and maintained with a combination of arbitrary location coordinates according to the number of input bits selected in the RF.

[0045] While the RF slides in the input bit string 41, for each location, the first kernel K1 may output an output bit of the first logic gate set for the plurality of bit values corresponding to the first location set in the RF. The RF may be set to correspond to a kernel size in the input bit string 41. For example, as illustrated in FIG. 4, a logic convolution layer LC having a kernel size of 3×3 may correspond to an RF of size 3×3 in the input bit string 41. When the sliding of the RF is finished, scan data for the input bit string 41 of the first kernel K1 may be generated and may be output to the first channel CH1 of the output bit string 42. In an equal way, scan data for the input bit string 41 of a second kernel K2 to the sixth kernel K6 may be output to a second channel CH2 to the sixth channel CH6, respectively.

[0046] FIG. 5 is a diagram showing a logic convolution operation according to example embodiments of the present disclosure. For example, FIG. 5 shows the logic convolution operation performed in a logic convolutional layer that includes a first kernel K1 to an eighth kernel K8. In some example embodiments, the logic convolution operation of FIG. 5 may be performed in the logic convolutional layer LC of FIG. 4.

[0047] Referring to FIG. 5, an output bit string 52 may be generated through the logic convolution operation from an input bit string 51. The input bit string 51 may include a first input channel CH1a to an eighth input channel CH8a. The output bit string 52 may include a first output channel CH1b to an eighth output channel CH8b. The number of channels included in each of the input bit string 51 and the output bit string 52 is not limited to that illustrated in FIG. 5.

[0048] In the input bit string 51, the first input channel CH1a to the eighth input channel CH8a may be grouped into a first channel group CHG1 to a fourth channel group CHG4. As illustrated in FIG. 5, the first input channel CH1a and a second input channel CH2a may be grouped into the first channel group CHG1, a third input channel CH3a and a fourth input channel CH4a are grouped into a second channel group CHG2, a fifth input channel CH5a and a sixth input channel CH6a are grouped into a third channel group CHG3, and a seventh input channel CH7a and the eighth input channel CH8a are grouped into the fourth channel group CHG4.

[0049] A channel group may be assigned to each of the first kernel K1 to the eighth kernel K8. A location set may be set in the assigned channel group. For example, a first location set to an eighth location set, which are set for the first kernel K1 to the eighth kernel K8, may be set in the first channel group CHG1 to the eighth channel group CHG8, respectively. As each of the kernels is assigned to one of the first channel group CHG1 to the fourth channel group CHG8, a feature map extracted from the input bit string 51 may be evenly distributed across all channels, without being biased toward a specific channel among the first input channel CH1a to the eighth input channel CH8a.

[0050] In some example embodiments, the output bit string 52 may be arranged in a manner in which scan data output by a plurality of kernels corresponding to location sets set in an equal channel group is not adjacent on an output channel. Referring to FIG. 5, the first kernel K1 may output scan data based on the first location set, which is set for the first channel group CHG1. When a fifth kernel K5 outputs scan data based on a second location set, which is set for the first channel group CHG1, the first output channel CH1b and a fifth output channel CH5b may be arranged not to be adjacent to each other. To this end, the first output channel CH1b to the eighth output channel CH8b may be configured so that scan data output from different channel groups is alternately arranged. For example, scan data output from the first channel group CHG1 is arranged to the first output channel CH1b, scan data output from a second channel group CHG2 is arranged to a second output channel CH2b, and scan data output from a third channel group CHG3 is arranged to the third output channel CH3b. In such a way, kernel outputs from an equal group are not placed consecutively on an output channel but are arranged in a cycle across channel groups. Such an arrangement of output channels in the output bit string 52 may prevent a feature, which is extracted from an input channel, from being biased toward a specific output channel of the output bit string 52, thereby contributing to efficient training of a logic gate network.

[0051] FIG. 6 is a flowchart showing a method of generating an output bit string in a feature extraction layer from an input bit string according to example embodiments of the present disclosure. Referring to FIG. 6, the method of generating an output bit string may include a plurality of operations S61 to S63. In some example embodiments, the method of FIG. 6 may be performed by the image processing device 20 of FIG. 2. In some example embodiments, the method of FIG. 6 may be performed through the logic convolution operation of FIG. 5. Hereinafter, FIG. 6 may be described with reference to FIG. 5. In descriptions of FIG. 6, it is assumed that a feature extraction layer included in a logic gate network 22 generates an output bit string 52 from an input bit string 51, and the feature extraction layer outputs scan data of a first kernel K1 to an eighth kernel K8 for the input bit string 51 to a first output channel CHb1 to an eighth output channel CH8b.

[0052] In operation S61, scan data of the first kernel K1 for the input bit string 51 may be generated. For example, the image processing device 20 may generate scan data of the first kernel K1 for the input bit string 51. The first kernel K1 may output an output bit of a first logic gate set for a plurality of bit values corresponding to a first location set in an RF, and the scan data of the first kernel K1 for the input bit string 51 may be included in a first output channel CH1b of the output bit string 52.

[0053] In operation S62, scan data of a second kernel K2 to a fourth kernel K4 for the input bit string 51 may be generated. For example, the image processing device 20 may generate scan data of the second kernel K2 to the fourth kernel K4 for the input bit string 51. The second kernel K2 to the fourth kernel K4 may output bits of a second logic gate set to a fourth logic gate set for a plurality of bit values corresponding to a second location set to a fourth location set. The scan data of the second kernel K2 to the fourth kernel K4 for the input bit string 51 may be included in a second output channel CH2b to a fourth output channel CH4b of the output bit string 52. Here, a first channel group CHG1 to a fourth channel group CHG4 may be set in the input bit string, and the first location set to the fourth location set, which are different from each other, may be set in the first channel group CHG1 to the fourth channel group CHG4.

[0054] In operation S63, scan data of a fifth kernel K5 to an eighth kernel K8 for the input bit string 51 may be generated. For example, the image processing device 20 may generate scan data of the fifth kernel K5 to the eighth kernel K8 for the input bit string 51. The fifth kernel K5 to the eighth kernel K8 may output bits of a fifth logic gate set to an eighth logic gate set for a plurality of bit values corresponding to a fifth location set to an eighth location set. The scan data of the fifth kernel K5 to the eighth kernel K8 for the input bit string 51 may be included in a fifth output channel CH5b to an eighth output channel CH8b. The fifth location set to the eighth location set may be set in the first channel group CHG1 to the fourth channel group CHG4, respectively. Here, scan data output by a plurality of kernels corresponding to location sets set in an equal channel group may be arranged not to be adjacent on an output channel. For example, in the output bit string 52, the first output channel CH1b to the eighth output channel CH8b may be configured so that scan data output from different channel groups is alternately arranged.

[0055] FIG. 7A is a flowchart showing a method of processing an image in a first feature extraction layer and a second feature extraction layer included in a logic gate network according to example embodiments of the present disclosure. FIG. 7b is a diagram showing a spatial-to-channel conversion according to example embodiments of the present disclosure. In FIG. 7A, for example, the first feature extraction layer and the second feature extraction layer may correspond to two consecutive logic convolutional layers among a first logic convolutional layer LC1 to a fourth logic convolutional layer LC4 included in the logic gate network of FIG. 2.

[0056] Referring to FIG. 7A, the method of processing an image may include a plurality of operations S71 to S73. Hereinafter, it is assumed that the method of FIG. 7A is performed by the image processing device 20 of FIG. 2.

[0057] In operation S71, the image processing device 20 generates, in the first feature extraction layer, a first output bit string from a first input bit string. The first feature extraction layer may include the logic convolutional layers described above with reference to the drawings. The first output bit string may include, in individual channels, scan data for the first input bit string of a plurality of kernels included in the first feature extraction layer. The first input bit string and the first output bit string may include a plurality of bit planes that include a plurality of pixel values according to predetermined resolutions. In the input bit string and the output bit string, location information of an individual pixel according to a resolution in each bit plane included in the plurality of bit planes may be referred to as spatial dimensional information, and information on a dimension of the plurality of bit planes may be referred to as channel dimensional information.

[0058] In operation S72, the image processing device 20 may generate a second input bit string obtained through downsampling through a spatial-to-channel conversion on the first output bit string. The spatial-to-channel conversion may refer to an operation of reducing a spatial dimension of an input bit string and rearranging information on the reduced spatial dimension to a channel dimension. Through the spatial-to-channel conversion, a bit string having high channel dimensional information may be generated while reducing a resolution of the spatial dimensional information of the bit string. By performing the spatial-to-channel conversion on the first output bit string, the image processing device 20 may generate the second input bit string with a lower resolution and higher channel dimensional information compared to the first output bit string.

[0059] In operation S73, the image processing device 20 may generate, in the second feature extraction layer, a second output bit string from the second input bit string. The second feature extraction layer may include the logic convolutional layer described above with reference to the drawings. The second output bit string may include, in individual channels, the scan data for the first input bit string of the plurality of kernels included in the first feature extraction layer. Since the second input bit string has a lower resolution than that of the first output bit string, the second feature extraction layer may generate a feature map with a lower resolution compared to the first feature extraction layer.

[0060] Referring to FIG. 7b, illustrated is a case in which a low-resolution bit string 72 is generated by performing the spatial-to-channel conversion on a high-resolution bit string 71. In some example embodiments, the spatial-to-channel conversion of FIG. 7b may be performed by the image processing device 20 of FIG. 2 and may be performed for downsampling a feature map of a former layer in consecutive feature extraction layers as described with reference to FIG. 7A. The high-resolution bit string 71 may correspond to the first output bit string of FIG. 7A, and the low-resolution bit string 72 may correspond to the second input bit string of FIG. 7A.

[0061] The spatial-to-channel conversion may refer to an operation of generating the low-resolution bit string 72 by reducing a spatial dimension of the high-resolution bit string 71 and rearranging information on the reduced spatial dimension to the channel dimension. Referring to FIG. 7b, for the spatial-to-channel conversion, the high-resolution bit string 71 may be divided into a first bit string 71a to a fourth bit string 71d having an equal resolution. After that, as the first bit string 71a to the fourth bit string 71d are connected to the channel dimension, the low-resolution bit string 72 may be generated. For example, when a size of the high-resolution bit string 71 is H×W×C, the high-resolution bit string 71 may be divided into the first bit string 71a to the fourth bit string 71d having an equal size of (H / 2)×(W / 2)×C. By connecting the first bit string 71a to the fourth bit string 71d to the channel dimension, the low-resolution bit string 72 having a size of (H / 2)×(W / 2)×4C may be generated.

[0062] In some example embodiments, as the first bit string 71a to the fourth bit string 71d are concatenated in the channel dimension, the low-resolution bit string 72 may be generated. In some example embodiments, the low-resolution bit string 72 may be generated in a manner in which data of the first bit string 71a to the fourth bit string 71d is concatenated and then shuffled. A method, in which the first bit string 71a to the fourth bit string 71d are connected and the low-resolution bit string 72 is generated, is not limited thereto, but may be applied according to various example embodiments of the present disclosure.

[0063] FIG. 8A is a flowchart showing a method of processing an image in a first feature extraction layer and a second feature extraction layer included in a logic gate network according to example embodiments of the present disclosure. FIG. 8b is a diagram showing a channel-to-spatial conversion according to example embodiments of the present disclosure. In FIG. 8A, for example, the first feature extraction layer and the second feature extraction layer may correspond to consecutive logic convolutional layers among a first logic convolutional layer LC1 to a fourth logic convolutional layer LC4 included in the logic gate network 22 of FIG. 2.

[0064] Referring to FIG. 8A, the method of processing an image may include operations S81 to S83. Hereinafter, it is assumed that the method of FIG. 8A is performed by the image processing device 20 of FIG. 2.

[0065] In operation S81, the image processing device 20 generates, in the first feature extraction layer, a first output bit string from a first input bit string. The first feature extraction layer may include the logic convolutional layer described above with reference to the drawings. The first output bit string may include, in individual channels, scan data for the first input bit string of a plurality of kernels included in the first feature extraction layer. The first input bit string and the first output bit string may include a plurality of bit planes that include a plurality of pixel values according to predetermined resolutions.

[0066] In operation S82, the image processing device 20 may generate a second input bit string obtained through upsampling through a channel-to-spatial conversion on the first output bit string. The channel-to-spatial conversion may refer to an operation of reducing a channel dimension of an input bit string and rearranging information on the reduced channel dimension to a spatial dimension. Therefore, through the channel-to-spatial conversion, a bit string having high-resolution dimensional information may be generated while reducing the number of channels of the bit string. By performing the channel-to-spatial conversion on the first output bit string, the image processing device 20 may generate the second input bit string with a higher resolution and lower channel dimensional information compared to the first output bit string.

[0067] In operation S83, the image processing device 20 may generate, in the second feature extraction layer, a second output bit string from the second input bit string. The second feature extraction layer may include the logic convolutional layer described above with reference to the drawings. The second output bit string may include, in individual channels, the scan data for the first input bit string of the plurality of kernels included in the first feature extraction layer. Since the second input bit string has a higher resolution than that of the first output bit string, the second feature extraction layer may generate a feature map with a higher resolution compared to the first feature extraction layer.

[0068] Referring to FIG. 8b, illustrated is a case in which a high-resolution bit string 82 is generated by performing the channel-to-spatial conversion on a low-resolution bit string 81. In some example embodiments, the channel-to-spatial conversion of FIG. 8b may be performed by the image processing device 20 of FIG. 2 and may be performed for upsampling a feature map of a former layer in consecutive feature extraction layers as described with reference to FIG. 8A. The low-resolution bit string 81 may correspond to the first output bit string of FIG. 8A, and the high-resolution bit string 82 may correspond to the second input bit string of FIG. 8A.

[0069] The channel-to-spatial conversion may refer to an operation of generating the high-resolution bit string 82 by reducing a channel dimension of the low-resolution bit string 81 and rearranging information on the reduced channel dimension to the spatial dimension. Referring to FIG. 8b, for the channel-to-spatial conversion, the low-resolution bit string 81 may be divided into a first bit string 81a to a fourth bit string 81d having an equal resolution. After that, as the first bit string 81a to the fourth bit string81d are connected to the spatial dimension, the high-resolution bit string 82 may be generated. For example, when a size of the low-resolution bit string 81 is H×W×C, the low-resolution bit string 81 may be divided into the first bit string 81a to the fourth bit string 81d having an equal size of H×W×(C / 4). By connecting the first bit string 81a to the fourth bit string 81d to the spatial dimension, the high-resolution bit string 82 having a size of 2H×2W×(C / 4) may be generated.

[0070] In some example embodiments, as the first bit string 81a to the fourth bit string 81d are concatenated in the spatial dimension, the high-resolution bit string 82 is generated. In other example embodiments, the high-resolution bit string 82 may be generated in a manner in which data of the first bit string 81a to the fourth bit string 81d is concatenated and then shuffled.

[0071] FIG. 9 is a block diagram showing an image processing device 90 according to example embodiments of the present disclosure. Similarly to the image processing device 20 of FIG. 2, the image processing device 90 may include an encoder 91, a logic gate network 92, and a decoder 93. Hereinafter, descriptions of FIG. 9 that are redundant with those provided with reference to FIG. 2 will be omitted.

[0072] The logic gate network 92 may have a hierarchical structure. As illustrated in FIG. 9, the logic gate network 92 may have a U-Net-based structure that includes first downsampling DS1 to third downsampling DS3 and first upsampling US1 to third upsampling US3. In the present specification, a U-Net-based logic gate network may be referred to as “LogicUNet.” The logic gate network 92 may receive first binary data, generated by the encoder 91 from an input image IN, as a first bit string BS1. The logic gate network 92 may sequentially generate a second bit string BS2 to an eighth bit string BS8 through a plurality of feature extraction layers, and finally, generate the eighth bit string BS8 as second binary data. The decoder 93 may generate an output image OUT from the second binary data. The logic gate network 92 may include downsampling paths including the first downsampling DS1 to the third downsampling DS3 and upsampling paths including the first upsampling US1 to the third upsampling US3.

[0073] In the downsampling paths, the logic gate network 92 may perform the first downsampling DS1 from the second bit string BS2 and then generate a third bit string BS3 through a logic convolutional layer. The logic gate network 92 may perform the second downsampling DS2 from the third bit string BS3 and then generate a fourth bit string BS4 through the logic convolutional layer. The logic gate network 92 may perform the third downsampling DS3 from the fourth bit string BS4 and then generate a fifth bit string BS5 through the logic convolutional layer.

[0074] In the upsampling paths, the logic gate network 92 may perform the first upsampling US1 from the fifth bit string BS5, perform a first concatenation operation C1 with the fourth bit string BS4, and then generate a sixth bit string BS6 through the logic convolutional layer. The logic gate network 92 may perform the second upsampling US2 from the sixth bit string BS6, perform a second concatenation operation C2 with the third bit string BS3, and then generate a seventh bit string BS7 through the logic convolutional layer. The logic gate network 92 may perform the third upsampling US3 from the seventh bit string BS7, perform a third concatenation operation C3 with the second bit string BS2, and then generate the eighth bit string BS8 through the logic convolutional layer. The eighth bit string BS8 may, as an output of the logic gate network 22, correspond to the second binary data. The logic convolutional layer that outputs the eighth bit string BS8 may be referred to as an output layer. In the upsampling paths, the first concatenation operation C1 to the third concatenation operation C3 may include a bit operation instead of operations such as weighted multiplication, and accordingly, the logic gate network 92 may be implemented based on a logic operation.

[0075] FIG. 10 is a flowchart showing a binary decoding method according to example embodiments of the present disclosure. As illustrated in FIG. 10, a binary decoding method may include a plurality of operations S101 to S103. In some example embodiments, the method of FIG. 10 may be performed by the decoder 23 of FIG. 2. Hereinafter, FIG. 10 will be described with reference to FIG. 2.

[0076] In operation S101, the decoder 23 may count mutually corresponding bits in bit planes included in second binary data. The counting of mutually corresponding bits in the bit planes included in the second binary data may be performed based on [Equation 1] below.∑c=1C xc,h,w[Equation⁢ 1]

[0077] In [Equation 1], c denotes a channel index of the second binary data, and C denotes the number of channels of the second binary data.

[0078] In some example embodiments, a plurality of feature extraction layers included in the logic gate network may include an output layer configured to output the second binary data from a final bit string. The output layer may output the second binary data so that the number of channels of the second binary data is greater than the number of channels of the final bit string. For example, when the number of channels of the final bit string is C, the output layer may output the second binary data through a logic convolution operation through 4C kernels. Here, the decoder 23 may perform bit counting for a total of 4C channels, which may be represented as shown in [Equation 2] below.∑c=14⁢C xc,h,w[Equation⁢ 2]

[0079] The number of channels of the second binary data may vary depending on the number of kernels of the output layer. As the number of channels of the second binary data increases in a final output layer, a feature that is not extracted and thus omitted from an output image that is finally output may be minimized.

[0080] In operation S102, the decoder 23 may perform normalization for values counted in operation S101. For example, the decoder 23 may perform normalization based on [Equation 3] below.yh,w=∑ c=14⁢C⁢xc,h,w-2⁢C2⁢C[Equation⁢ 3]

[0081] [Equation 3] may represent a case when the number of channels of the second binary data is 4C. In [Equation 3], h,w may be understood to have a value between −1 and 1.

[0082] In operation S103, the decoder 23 may add the values normalized in operation S102 to the input image. In some example embodiments, the decoder 23 may adjust a range of the normalized values by a range adjustment coefficient @ for adjusting the range of the normalized values. For example, range adjustment performed by the decoder 23 may be based on [Equation 3] below.yh,w=α·∑ c=14⁢C⁢xc,h,w-2⁢C2⁢C[Equation⁢ 3]

[0083] The output image is generated by adding h,w, as a normalized value of the second binary data, to the input image IN by the decoder 23. The image processing device 20 may optimize the range adjustment coefficient α based on the output image generated during a training process of the logic gate network 22. For example, h,w is a residual image (or residual data) for the input image. When h,w is added to the input image to perform image restoration, the range adjustment coefficient α may be optimized in a way that increases the range adjustment coefficient α for removing noise in the output image.

[0084] FIG. 11 is a flowchart showing a method of generating a logic gate network according to example embodiments of the present disclosure. As illustrated in FIG. 11, the method of generating a logic gate network may include a plurality of operations S111 to S113. In some example embodiments, the method of FIG. 11 may be performed by a computing system. In some example embodiments, the computing system may virtualize the image processing device 20 of FIG. 2. Hereinafter, it is assumed that the image processing device 20 of FIG. 2 is virtualized in the computing system. An example of the computing system may be described below with reference to FIG. 12.

[0085] In operation S111, an encoder 21 may generate first binary data including a plurality of first binary planes from a sample input image. The sample input image may refer to training data for training of the logic gate network and may be paired with a sample output image and included in the training data.

[0086] In operation S112, second binary data, which is an output of the logic gate network corresponding to the first binary data, may be acquired. For example, the logic gate network under training may be virtualized in the computing system, and, by providing the first binary data generated in operation S111 to the virtualized logic gate network, the second binary data may be acquired.

[0087] In operation S113, a decoder 23 may generate an output image based on the second binary planes included in the second binary data and the sample input image. For example, the decoder 23 may perform a plurality of operations S101 to S103 illustrated in FIG. 10.

[0088] In operation S114, at least one of a plurality of logic gates may be replaced based on the sample output image, the output image, and the sample input image. In some example embodiments, the replacement of the logic gate may be performed by updating table information corresponding to a node included in a logic gate network 22 so that the output image becomes closer to the sample output image. For example, the computing system may determine a logic gate determined to have a highest probability value in the table information corresponding to each of the plurality of logic gates as a final logic gate of a corresponding node and replace the logic gate.

[0089] FIG. 12 is a block diagram showing a computing system 120 that generates a logic gate network according to example embodiments of the present disclosure. For example, the computing system 120 of FIG. 12 may perform at least one of the operations illustrated in FIG. 11.

[0090] The computing system 120 may be a fixed computing system such as a desktop computer, a workstation, and a server, or a portable computing system such as a laptop computer. As illustrated in FIG. 12, the computing system 120 may include a processor 121, input and output devices 122, a network interface 123, a random access memory (RAM) 124, a read only memory (ROM) 125, and a storage 126. The processor 121, the input and output devices 122, the network interface 123, the RAM 124, the ROM 125, and the storage 126 may be connected to a bus 127 and communicate with one another through the bus 127.

[0091] The processor 121 may be referred to as a processing unit and may include at least one core capable of executing an arbitrary instruction set (for example, Intel Architecture-32 (IA-32), 64-bit extension of IA-32, x86-64, PowerPC, SPARC, MIPS, ARM, IA-64) like, for example, a micro-processor, an application processor (AP), a digital signal processor (DSP), and a graphic processing unit (GPU). For example, the processor 121 may access a memory, which is the RAM 124 or ROM 125, through the bus 127 and execute instructions stored in the RAM 124 or ROM 125.

[0092] The RAM 124 may store a program for a method of generating a logic gate network, or at least a portion thereof. The program may enable the processor 121 to perform the method of generating a logic gate network, for example, at least a portion of the operations included in the method of FIG. 11. In other words, the program may include a plurality of instructions executable by the processor 121. The plurality of instructions included in the program may enable the processor 121 to perform, for example, at least a portion of the operations included in the method of FIG. 11.

[0093] The storage 126 may not lose stored data even when electricity supplied to the computing system 120 is interrupted. For example, the storage 126 may include a non-volatile memory device or include a storage medium such as a magnetic tape, an optical disk, and a magnetic disk. In addition, the storage 126 may be detachable from the computing system 120. The storage 126 may store the program according to example embodiments of the present disclosure. Before the program is executed by the processor 121, the program or at least a portion thereof may be loaded into the RAM 124 from the storage 126. In a different way, the storage 126 may store a file written in a program language, and a program generated by a compiler from the file, or at least a portion thereof may be loaded into the RAM 124. The storage 126 may store data that will be processed by the processor or data that has been processed by the processor 121. In other words, according to the program, the processor 121 may generate data by processing data stored in the storage 126, or store generated data in the storage 126. For example, the storage 126 may include information required to generate a logic gate network, for example, information on [Table 1], a sample input image, and a sample output image.

[0094] The input and output devices 122 may include an input device, such as a keyboard, and a printing device, and include an output device, such as a display device, and a printer. For example, a user may trigger execution of the program by the processor 121 through the input and output devices 122.

[0095] The network interface 123 may provide access to an external network of the computing system 120. For example, a network may include a plurality of computing systems and communication links. The communication links may include wired links, optical links, wireless links, or other types of links.

[0096] As described above, example embodiments are disclosed in the figures and the specification. Although specific terms are used to describe example embodiments, such usage is merely for the purpose of describing the technical spirit of the present disclosure and is not intended to limit the meaning or restrict the scope of the disclosure as defined in the claims. Therefore, it will be understood by those skilled in the art that various modifications and equivalent other embodiments may be made based on the present disclosure.

Claims

1. An image processing device comprising:an encoder configured to generate first binary data from an input image;a logic gate network including a plurality of feature extraction layers, each including logic gates and configured to output second binary data from the first binary data; anda decoder configured to generate an output image corresponding to the input image based on the second binary data,wherein each of the first binary data and the second binary data includes a plurality of bit planes.

2. The image processing device of claim 1, wherein:the plurality of feature extraction layers include a first feature extraction layer configured to generate a first output bit string from a first input bit string,the first output bit string includes scan data of a first kernel for the first input bit string in a first channel, andthe first kernel outputs an output bit of a first logic gate set for a plurality of bit values corresponding to a first location set in a receptive field.

3. The image processing device of claim 2, wherein:the first output bit string further comprises scan data of a second kernel for the first input bit string in a second channel,the second kernel outputs an output bit of a second logic gate set for a plurality of bit values corresponding to a second location set in the receptive field, andthe first location set is set in a first channel group, and the second location set is set in a second channel group different from the first channel group.

4. The image processing device of claim 3, wherein:the first output bit string further comprises scan data of a third kernel for the first input bit string in a third channel,the third kernel outputs an output bit of a third logic gate set for a plurality of bit values corresponding to a third location set, which is set in the first channel group, in the receptive field, andin the first output bit string, the third channel is not adjacent to the first channel.

5. The image processing device of claim 1, wherein the plurality of feature extraction layers comprise:a first feature extraction layer configured to generate the first output bit string from the first input bit string; anda second feature extraction layer configured to generate a second output bit string from a second input bit string obtained through downsampling from the first output bit string.

6. The image processing device of claim 5, wherein the second input bit string is generated by performing a spatial-to-channel conversion on the first output bit string.

7. The image processing device of claim 1, wherein the plurality of feature extraction layers comprise:a first feature extraction layer configured to generate the first output bit string from the first input bit string; anda second feature extraction layer configured to generate the second output bit string from the second input bit string obtained through upsampling from the first output bit string.

8. The image processing device of claim 7, wherein the second input bit string is generated by performing a channel-to-spatial conversion on the first output bit string.

9. The image processing device of claim 1, wherein:the plurality of feature extraction layers comprise an output layer configured to output the second binary data from a final bit string, anda number of channels of the second binary data is greater than a number of channels of the final bit string.

10. The image processing device of claim 1, wherein the decoder is configured to count mutually corresponding bits in the plurality of bit planes included in the second binary data.

11. The image processing device of claim 10, wherein the decoder is configured to normalize count values and add the normalized values to the input image.

12. An image processing method comprising:generating first binary data from an input image;generating second binary data from the first binary data based on a plurality of feature extraction layers, each including logic gates; andgenerating an output image corresponding to the input image based on the second binary data,wherein each of the first binary data and the second binary data includes a plurality of bit planes.

13. The image processing method of claim 12, wherein:the generating of the second binary data comprises generating a first output bit string of a first feature extraction layer included in the plurality of feature extraction layers from a first input bit string,the first output bit string includes scan data of a first kernel for the first input bit string in a first channel, andthe first kernel outputs an output bit of a first logic gate set for a plurality of bit values corresponding to a first location set in a receptive field.

14. The image processing method of claim 13, wherein:the first output bit string includes scan data of a second kernel for the first input bit string in a second channel,the second kernel outputs an output bit of a second logic gate set for a plurality of bit values corresponding to a second location set in the receptive field, andthe first location set is set in a first channel group, and the second location set is set in a second channel group different from the first channel group.

15. The image processing method of claim 14, wherein:the first output bit string includes scan data of a third kernel for the first input bit string in a third channel,the third kernel outputs an output bit of a third logic gate set for a plurality of bit values corresponding to a third location set, which is set in the first channel group, in the receptive field, andin the first output bit string, the third channel is not adjacent to the first channel.

16. The image processing method of claim 12, wherein the generating of the second binary data comprises:generating, in the first feature extraction layer included in the plurality of feature extraction layers, the first output bit string from the first input bit string;generating a second input bit string obtained through downsampling through a spatial-to-channel conversion on the first output bit string; andgenerating, in a second feature extraction layer included in the plurality of feature extraction layers, a second output bit string from the second input bit string.

17. The image processing method of claim 12, wherein the generating of the second binary data comprises:generating, in the first feature extraction layer included in the plurality of feature extraction layers, the first output bit string from the first input bit string;generating the second input bit string obtained through upsampling through a channel-to-spatial conversion on the first output bit string; andgenerating, in the second feature extraction layer included in the plurality of feature extraction layers, the second output bit string from the second input bit string.

18. The image processing method of claim 12, wherein the generating of the output image corresponding to the input image comprises:counting mutually corresponding bits in the plurality of bit planes included in the second binary data;normalizing the counted values; andadding the normalized values to the input image.

19. A method of generating a logic gate network that includes a plurality of logic gates, the method comprising:generating first binary data that includes a plurality of first binary planes from a sample input image;acquiring second binary data that is an output of the logic gate network corresponding to the first binary data;generating an output image based on second binary planes included in the second binary data and the sample input image; andreplacing at least one of the plurality of logic gates based on a sample output image corresponding to the sample input image, the output image, and the sample input image.

20. The method of claim 19, wherein the generating of the output image comprises:counting mutually corresponding bits in the second binary planes;normalizing the counted values; andadding the normalized values to the sample input image.