Image processing circuit, image signal processor including the same, and image processing method
By introducing a content-aware circuit and a color shift circuit into the image processing circuit to perform classification and color shift processing on image pixels, the problem of poor image pixel color correction in the existing technology is solved and the image quality is improved.
Patent Information
- Application Number
- CN202410329549.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-07-04
- Filing Date
- 2024-03-21
- Publication Date
- 2024-09-24
AI Technical Summary
When the existing image signal processor corrects the pixel color of an image, it is difficult to effectively process the colors of other pixels related to a specific pixel, resulting in a decrease in image quality.
An image processing circuit is designed, including a content-aware circuit, a color shift circuit and a histogram generator. By classifying image pixels, a shift value for the color shift effect is generated, and the image is color shifted based on the shift value. Generate enhanced images.
By performing selective color shift processing on target pixels in the image, the quality and accuracy of the image are improved, and the color correction effect of the image is enhanced.
Smart Images

Figure CN118691479A_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is based on and claims the benefit of priority from Korean Patent Application No. 10-2023-0039017 filed on March 24, 2023, and Korean Patent Application No. 10-2023-0086722 filed on July 4, 2023, in the Korean Intellectual Property Office, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The inventive concept relates to image processing, and more particularly, to an image processing circuit, an image signal processor including the image processing circuit, and an image processing method. Background Art
[0004] An image signal processor provided in an imaging device such as a camera or a smartphone can process an image provided from an image sensor to generate a converted image such as an RGB image or a YUV image. The image signal processor can output the color of the input image as it is, and can correct the color of the pixels of the input image and output a correct image. For example, using the built-in camera of a smartphone, you can take an image and correct the captured image.
[0005] There may be various algorithms for correcting an image. As a representative example, a method may be used to determine a scene that may represent an image and correct the overall tone and / or color of the image to emphasize the scene.
[0006] However, when correcting the colors of pixels of an input image, there is a problem in the colors of other pixels to be corrected together with the specific pixel r. Summary of the invention
[0007] The inventive concept provides an image processing circuit that performs color shift or color correction based on pixels of an image, an image signal processor including the image processing circuit, and an image processing method.
[0008] According to one aspect of the inventive concept, there is provided an image processing circuit, comprising: a content sensing circuit configured to receive histograms of a current image and a previous image, classify the content of each pixel of the current image, and generate a shifting value representing a color shifting effect of each pixel of the current image, a color shifting circuit configured to generate an enhanced image based on the shifting value by applying a color shift depending on the shifting value to each pixel of the current image, and a histogram generator configured to generate a histogram of the current image based on the classified content of the current image, wherein the generated histogram of the current image is used to generate shifting values for subsequent images.
[0009] According to another aspect of the inventive concept, there is provided an image processing method, comprising: receiving a current image, receiving a histogram of a previous image, classifying content of each pixel of the current image, generating a shift value to be applied to each pixel based on the classified content of each pixel and the histogram of the previous image, generating an enhanced image by applying the shift value to the current image, and generating a histogram of the current image.
[0010] According to another aspect of the inventive concept, there is provided an image signal processor that corrects an image to generate an enhanced image, comprising: a first circuit configured to generate an enhanced image by receiving a histogram of a current image and a previous image, classifying the content of the current image by pixel, generating a shift value representing a color shift effect of each pixel of the current image, and applying a color shift to each pixel of the current image based on the shift value, and a second circuit configured to generate a histogram of the current image based on the classified content of the current image. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Embodiments of the inventive concept will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings, in which:
[0012] Figure 1 is a block diagram showing an image processing system according to an embodiment;
[0013] Figure 2 is a block diagram showing an image processing circuit according to an embodiment;
[0014] Figure 3 is a block diagram illustrating a content-aware circuit according to an embodiment;
[0015] Figure 4 is an example diagram showing content classification according to an embodiment;
[0016] Figure 5 is a block diagram showing a color shift circuit according to an embodiment;
[0017] Figure 6 is a diagram showing an example of content information according to an embodiment;
[0018] Figure 7 is a schematic diagram showing a histogram of an image according to an embodiment;
[0019] Figure 8 is a flowchart showing the sequence of an image processing method according to an embodiment;
[0020] Fig. 9 is a schematic diagram showing an example of an image processing result according to an embodiment;
[0021] Fig.10is a block diagram showing an image processing circuit according to an embodiment;
[0022] Fig.11 is a block diagram showing a global color shift circuit according to an embodiment;
[0023] Fig.12 is a schematic diagram for explaining an HSV domain according to an embodiment;
[0024] Fig.13 is a flowchart showing the sequence of an image processing method according to an embodiment;
[0025] Fig.14 is a block diagram showing an image processing circuit according to an embodiment;
[0026] Fig.15 is a block diagram illustrating a system according to an embodiment; and
[0027] Fig.16 is a block diagram illustrating an electronic device according to an embodiment. DETAILED DESCRIPTION
[0028] Hereinafter, embodiments of the inventive concept are described in detail with reference to the accompanying drawings.
[0029] Figure 1 is a block diagram showing an image processing system 100 according to an embodiment
[0030] In various embodiments, the image processing system 100 may be embedded in an electronic device or implemented as an electronic device. The electronic device may be implemented as, for example, a personal computer (PC), an Internet of Things (IoT) device, or a portable electronic device. The portable electronic device may be a laptop computer, a mobile phone, a smart phone, a tablet PC, a personal digital assistant (PDA), an enterprise digital assistant (EDA), a digital camera, a digital video camera, an audio device, a portable multimedia player (PMP), a personal navigation device (PND), an MP3 player, a handheld game console, an e-book, a wearable device, etc.
[0031] refer to Figure 1 , the image processing system 100 may include an image sensor 110 , an image signal processor 120 , a memory 130 , and a display device 140 .
[0032] In various embodiments, the image sensor 110 may convert an optical signal (e.g., spatially distributed light intensity) of an image of an object (OBJECT) incident through an optical lens into an electrical signal (e.g., image data). The image sensor 110 may include, for example, a pixel array including a plurality of pixels arranged in two dimensions and a sensing circuit, wherein the pixel array may convert a received optical signal into an electrical signal. The pixel array may be implemented with a photoelectric conversion element, such as a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) device, and may also be implemented with various types of photoelectric conversion elements. The sensing circuit may convert the electrical signal provided from the pixel array into an image, and output the converted image as a raw image file RDT, i.e., uncompressed and unprocessed image data. The raw image RDT is an image input to the ISP, and refers to an image before color correction or enhancement by color shifting. The image sensor 110 may be implemented as a semiconductor chip including a pixel array and a sensing circuit.
[0033] In various embodiments, the image signal processor 120 may process the raw image RDT provided from the image sensor 110 to generate a converted image CDT. The raw image RDT may correspond to a still image or one frame of a video including a plurality of frames. For example, the image signal processor 120 may perform image processing on the raw image RDT based on the set white balance, parameters, color space, etc. The converted image CDT may be a color space image such as RGB, YUV, etc. The size (e.g., resolution) of the converted image CDT may be the same as that of the raw image RDT. The converted image CDT may be stored in the memory 130. The memory 130 may be a volatile memory such as a dynamic random access memory (DRAM), a static RAM (SRAM) or a non-volatile memory such as a phase change RAM (PRAM), a resistive RAM (ReRAM), or a flash memory. The converted image CDT stored in the memory 130 may then be used in the image processing system 100 or stored in a storage device.
[0034] In addition, the image signal processor 120 may generate a scaled image SDT by reducing or increasing the size of the converted image CDT. For example, the image signal processor 120 may generate a scaled image SDT by scaling the size or resolution of the converted image CDT to match the resolution of the display device 140. The image signal processor 120 may provide the scaled image SDT to the display device 140 for presentation to the user.
[0035] In addition, the image signal processor 120 may include an image processing circuit 200. The image processing circuit 200 may include a plurality of circuits for outputting an enhanced image by correcting the image. The image processing circuit 200 may perform image processing such as color correction or color shift of the image. In various embodiments, the image processing circuit 200 may selectively perform image processing on target pixels identified for color correction or color shift instead of all pixels of the image. Figure 2 The image processing circuit 200 will be described.
[0036] Figure 2 is a block diagram showing an image processing circuit 200 according to the embodiment.
[0037] refer to Figure 2 , the image processing circuit 200 may include a content sensing circuit 210, a color shift circuit 220, and a histogram generator 230. Each of the content sensing circuit 210, the color shift circuit 220, and the histogram generator 230 may be implemented as hardware, software (or firmware), or a combination of hardware and software to perform the technical concept of the present inventive concept. The image processing circuit 200 may also include an encoder for encrypting the enhanced image.
[0038] In various embodiments, the content-aware circuit 210 may receive a histogram histogram_(n-1) of a current image image_n and a previous image, and classify the content of each pixel of the current image image_n. The content-aware circuit 210 may generate a shift value SV representing the color shift effect of each pixel of the current image. The content-aware circuit 210 may receive a current image image_n as a subject of color shifting, and classify the content of each pixel using a neural network model, where, for example, the content-aware circuit 210 may classify the content of the current image image_n into k items, where k is a positive integer. In addition, the content-aware circuit 210 may use the classified content to generate a shift value SV representing the color shift effect of each pixel. In the following, reference is made to Figure 3 Describes in detail the generated neural network model and the shifted values.
[0039] In addition, the content perception circuit 210 may perform a segmentation operation to divide the current image image_n into a plurality of contents. The content perception circuit 210 may infer content corresponding to each of a plurality of pixels included in the current image image_n, wherein the plurality of pixels may be associated based on content inference information. As an embodiment, the content perception circuit 210 may form a segment by inferring content corresponding to each pixel, and form a pixel region having the same content inference information. The content perception circuit 210 may calculate the confidence of the inferred content of each pixel of the current image image_n.
[0040] In various embodiments, the color shift circuit 220 may apply a color shift depending on the shift value SV to each pixel of the current image image_n based on the shift value SV. The color shift circuit 220 may perform a series of processes to improve image quality or correct an image, and thus generate an enhanced image. The color shift circuit 220 may receive the shift value SV from the content sensing circuit 210 and output color shift result values Hout, Sout, and Vout. The shift value SV may refer to a value that allows a color shift of a pixel of an image, and the color shift result values Hout, Sout, and Vout may refer to a final value calculated in response to a color shift applied to a pixel of an image.
[0041] In an embodiment, the color shift circuit 220 may generate an enhanced image by selectively color shifting only target pixels identified for color correction or color shifting instead of all pixels of the current image image_n.
[0042] In various embodiments, the histogram generator 230 may generate a histogram histogram_n of the current image based on the classified content of the current image image_n. The histogram histogram_n of the current image generated by the histogram generator 230 may be used to generate a shift value SV of a subsequent image after the current image image_n. As an embodiment, by using the histogram histogram_(n-1) of the previous image, the histogram generator 230 may generate a current image histogram histogram_n for adjusting the correction effect, correction intensity, or color shift intensity, so that only the target pixels identified for the color shift of the current image image_n may be selectively color shifted. The shift value of the pixel to be applied to the current image may be adjusted based on the weight and the shift value, and the shift result value may be output.
[0043] As an embodiment, the image processing circuit 200 may classify the current image image_n by content, and perform color shift and / or color correction in units of regions including pixels classified as the same content.
[0044] In various embodiments, the image processing circuit 200 according to the embodiment may determine and apply a shift value SV to be applied to a target pixel identified for correction among a plurality of pixels included in the current image image_n. By applying color shift to the identified target pixel to achieve fine correction, an image with improved quality may be obtained.
[0045] Figure 3 is a block diagram illustrating a content-aware circuit according to an embodiment.
[0046] See also Figure 3 , the content sensing circuit 210 may include a neural network model 211 and a shift value generator 212.
[0047] In various embodiments, a neural network (NN) model 211 may receive a current image image_n, identify content included in the current image image_n, and classify the content by pixel. The neural network model 211 may classify the content of each pixel of the current image image_n. Classifying the content of each pixel of the current image may include using the neural network model 211 to identify the content included in the current image. The classified content contents_n may be used to generate a shift value SV. In one or more embodiments, the neural network model 211 may learn the relationship between a pixel and a plurality of classified contents to have different shift effects. In this case, a plurality of contents may have different weights for the shift effect.
[0048] In various embodiments, the neural network model 211 may be learned offline. As an embodiment, the neural network model 211 may be generated by training in a learning device (e.g., a server that trains a neural network based on a large amount of training data). As an embodiment, the neural network model 210 may use random pixels and labeled content corresponding to the random pixels as learning data. For example, a training image and content labeled in each pixel of the training image may be used as training data.
[0049] Hereinafter, in this specification, the parameters of the neural network model 211 are described assuming that the parameters (eg, network topology, bias, weight, etc.) of the neural network model 211 have been determined by learning. However, the parameters are not limited thereto.
[0050] In various embodiments, the neural network model 211 may include at least one of various types of neural network models, such as a convolutional neural network (CNN), a region with convolution neural network (R-CNN) and a region proposal network (RPN), a recurrent neural network (RNN), a stacked deep neural network (S-DNN), a state-space dynamic neural network (S-SDNN), a deconvolution network, a deep belief network (DBN), a restricted Boltzmann machine (RBM), a fully convolutional network, a long short-term memory (LSTM) network, or a classification network.
[0051] In various embodiments, the shift value generator 212 can generate a shift value SV by receiving a histogram histogram_(n-1) of a previous image and classified contents contents_n. The shift value SV may refer to a value representing the color shift effect of each pixel of the current image image_n. In an embodiment, the shift value SV may include a histogram histogram_(n-1) of a previous image, content information contents_n represented by each pixel of the classified content, and information about the color shift effect applied based on the reliability represented by each pixel. For example, the shift value SV may represent the intensity of the color shift effect. A shift value may be generated based on the classified content of each pixel and the histogram of the previous image and applied to each pixel. The histogram of the current image may include content classified by pixel, a first shift value SV1, a second shift value SV2, a third shift value SV3, and the number of pixels.
[0052] For example, assuming that the shift value generator 212 generates the shift value SV in the hue, saturation, and brightness (HSV) domain, the shift value SV may include a shift value SV for hue, a shift value SV for saturation, and a shift value SV for brightness. Fig.10 and 12 Describe the HSV domain structure.
[0053] Figure 4 is a diagram showing an example of content classification according to an embodiment.
[0054] refer to Figure 4 , the position of each pixel in the current image image_n may correspond to the position of each pixel in the segment, where segmentation may refer to classifying the current image image_n by content. Through segmentation, the pixels of the current image image_n may represent the inferred content.
[0055] For example, in the current image image_n, the part of the image corresponding to human hair can be classified as the first content (content 1), the part corresponding to the sky can be classified as the second content (content 2), the part corresponding to human skin can be classified as the third content (content 3), the part corresponding to the building can be classified as the fourth content (content 4), the part corresponding to the human face can be classified as the fifth content (content 5), and the other parts corresponding to the background can be classified as the sixth content (content 6).
[0056] According to various embodiments, pixels may be segmented based on the color shift effect to be applied to each pixel of the current image image_n. Pixels to which different color shift effects should be applied may be segmented into different contents.
[0057] Additionally, according to an embodiment, by performing segmentation on a pixel basis, the accuracy of segmentation and / or content classification may be improved even in detailed and complex images such as hair, sky, and skin, where color shift may be applied differently for each pixel.
[0058] Figure 5 is a block diagram showing the color shift circuit 220 according to the embodiment.
[0059] refer to Figure 5 , the color shift circuit 220 may include a weight table 221 and a shift control circuit 222. The shift control circuit 222 may be implemented in hardware, software (or firmware), or a combination of hardware and software.
[0060] In various embodiments, the weight table 221 may include different weights w for each pixel based on the classified content contents_n. For example, each pixel may have a different weight w depending on the classified content contents_n, pixel segmentation, and reliability of the current image.
[0061] As an embodiment, when the content corresponding to the first pixel of the current image is the first content and indicates segmentation and reliability based on the first content, the first pixel may have a first weight, and when the content corresponding to the second pixel of the current image is the second content and indicates segmentation and reliability based on the second content, the second pixel may have a second weight.
[0062] In various embodiments, the weight table 221 may be predetermined based on the color shift circuit 220, but is not limited thereto. Information included in the weight table 221 may be changed. A weight may be set for each pixel based on the classified content, segmentation, and reliability of each pixel of the current image.
[0063] In various embodiments, the shift control circuit 222 may output shift result values Hout, Sout, and Vout based on the weight w and the shift value SV. How the shift control circuit 222 outputs the shift result values Hout, Sout, and Vout is illustrated in Equation 1 below.
[0064] [Equation 1]
[0065] H output =H input +H′ V ×weight
[0066] S output =S input ×(1+S′ V ×weight)
[0067] V output =V input ×(1+V′V ×weight)
[0068] In the equation, H′ V , S′ V Represents the shift value and V′ V Specifically, it can represent the hue shift value, saturation shift value and brightness shift value. weight can represent the weight. input , S input and V input Represents the value H of the current image in the HSV domain output , S output and V output Can be the shifted result value of applying a color shift.
[0069] Figure 6 is a schematic diagram showing an example of content information according to the embodiment.
[0070] refer to Figure 6 , the content information info_contents may be included in the content-aware circuit (eg, Figure 2 The content information info_contents may include a plurality of contents that can classify pixels of the image.
[0071] In various embodiments, content may be generated by classifying pixels of an image. For example, for content, pixels applying the same color shift may be classified as one content, and pixels applying different color shifts may be classified as different content. Without limitation, content may be generated based on characteristics of image pixels (e.g., color information). Classifying the content of each pixel of the current image may include using a neural network model to identify content included in the current image.
[0072] According to an embodiment, the content information info_contents may include the first to sixth contents. For example, the first to sixth contents (content 1 to content 6) may correspond to face content, skin content, sky content, hair content, window content, and background content, respectively. In addition, the type and quantity of the content are not limited thereto and may be changed.
[0073] Figure 7 is a schematic diagram showing a histogram of an image according to an embodiment.
[0074] refer to Figure 7 , shows the histogram of an image. The histogram of an image can be displayed in multiple content areas (e.g., hair), and can be displayed as the hue, saturation, and value areas of a content. For example, Figure 7It is a histogram expressing the content of hair in terms of hue, saturation, and brightness. The type of content is not limited thereto and can be changed.
[0075] On the horizontal axis of the histogram, 0 to 255 represents the overall grayscale that each pixel value can represent. For example, when the pixel value is represented as 8-bit data, the total number of grayscale levels can be 256 (0 to 255 grayscale levels). However, it is not limited to this, and the pixel value can be represented in various bit formats, such as 2 bits, 4 bits, and 16 bits. Figure 7 , the vertical axis represents the number of pixels corresponding to each gray level. As described above, the histogram may indicate how many pixels each content includes for each hue, saturation, and brightness. The histogram of the current image may include content classified by pixel, a first shift value, a second shift value, a third shift value, and the number of pixels.
[0076] Figure 8 is a flowchart showing the sequence of the image processing method according to the embodiment.
[0077] refer to Figure 2 , Figure 3 , Figure 5 and Figure 8 In operation S110, an operation of receiving a current image image_n may be performed. For example, the content sensing circuit 210 may obtain the current image image_n generated from an image sensor or externally.
[0078] In operation S120 , an operation of receiving a histogram histogram_(n−1) of a previous image may be performed. For example, the content aware circuit 210 may obtain the histogram histogram_(n−1) of the previous image generated by the histogram generator 230 .
[0079] In operation S130, the content of the current image image_n may be classified using the neural network model 211. As an embodiment, the neural network model 211 may be learned using a learning image and a correct answer content labeled with each pixel of the learning image as learning data. In this case, the correct answer content may correspond to a color shift to be applied to each pixel of the learning image. As an embodiment, the content to which each pixel of the current image image_n belongs may be inferred by the neural network model 211, and the reliability of the inferred content of each pixel may be calculated.
[0080] In operation S140, a shift value SV to be applied to each pixel may be generated based on the classified content contents_n and the histogram histogram_(n-1) of the previous image. For example, the shift value SV may represent the correction effect to be applied to each pixel and the intensity of the correction effect. In an embodiment, when the shift value SV is generated in the HSV domain, the shift value SV may include a hue shift value Hv, a saturation shift value Sv, and a brightness shift value Vv.
[0081] In operation S150, an enhanced image may be generated by applying the shift value SV to each pixel. As an embodiment, the color shift circuit 220 may perform color shift on each pixel of the current image image_n based on the shift value SV. In this case, the enhanced image may be an image in which the image quality of the current image image_n has been improved.
[0082] In operation S160, the shift results Hout, Sout, and Vout may be used to generate a histogram histogram_n of the current image. For example, the histogram generator 230 may generate a histogram histogram_n of the current image based on the classified contents contents_n of the current image. The generated histogram histogram_n of the current image may be used to generate a shift value of a subsequent image after the current image.
[0083] In response, the enhanced image is provided to an encoder, and further operations may be performed to compress the enhanced image into various formats.
[0084] Fig. 9 is a schematic diagram showing an example of an image processing result according to the embodiment.
[0085] refer to Figure 1 , Figure 2 and Fig. 9 , the left image may be an image input to the image processing circuit. For example, the left image may be the original image RDT and / or the current image image_n generated by the image sensor 110. The right image may be an enhanced image output from the image processing circuit. It can be seen that the pixels of the sky content in the right image are color shifted. Pixels other than the sky (such as trees, buildings, and roads) are not color shifted. In this way, the image processing circuit 200 can identify and classify the content of the image, and can selectively perform color shift or color correction on target pixels included in the content to be color shifted rather than on all pixels of the classified content.
[0086] According to an embodiment, pixels may be segmented considering the color shift effect to be applied to each pixel in the image. Pixels to which different color shift effects should be applied may be segmented into different contents.
[0087] In addition, according to an embodiment, by performing segmentation on each pixel, the accuracy of segmentation and / or content classification may be improved, and color shift may be applied differently to each pixel.
[0088] Fig.10 is a block diagram showing an image processing circuit 300 according to the embodiment. Fig.10 The image processing circuit 300 is Figure 2 The image processing circuit 200 is modified, and therefore, the description already given above is omitted.
[0089] and Figure 2 Compared with the image processing circuit 200, Fig.10 The image processing circuit 300 may further include a global color shift circuit 310. In addition, the image processing circuit 300 may include a content-aware circuit 330, a target color shift circuit 340, and a histogram generator 320. Fig.10 The target color shift circuit 340 may correspond to Figure 2 The color shift circuit 220 is provided.
[0090] In various embodiments, the global color shift circuit 310 may receive a current image image_n, specify a shift region for pixels of the current image, and perform a color shift on each pixel in the specified shift region. Fig.11 and Fig.12 Specifying a shift region of the global color shift circuit 310 and performing global color shifting are described.
[0091] Reference together Figure 2 and Fig.10 As an example, the circuit including the content sensing circuit 210 and the color shift circuit 220 may be referred to as a first circuit, and the histogram generator 230 may be referred to as a second circuit. Figure 2 Compared with the image processing circuit 200, Fig.10 The image processing circuit 300 may further include a global color shift circuit 310. The first circuit may include a content sensing circuit 330, a target color shift circuit 340, and the global color shift circuit 310.
[0092] As an embodiment, the first circuit can use a neural network model to identify the content included in the current image image_n and classify the content by pixel. The first circuit can generate a shift value SV using a histogram histogram_(n-1) of a previous image and the content contents_n classified by the pixels of the current image image_n. The first circuit can set the weight of each pixel based on the classified content contents_n, segmentation and reliability. The first circuit can adjust the shift value SV based on the weight and the shift value SV, and output the shift result value. The first circuit can generate an enhanced image by applying the shift value SV to each pixel of the current image image_n.
[0093] As an embodiment, the second circuit may generate a histogram histogram_n of the current image. The generated histogram histogram_n of the current image may be used to generate a shift value SV of a subsequent image. For example, the second circuit may generate a histogram histogram_n of the current image based on the classified content contents_n. The second circuit may receive the shift results Hout, Sout, and Vout from the first circuit and generate a histogram histogram_n of the current image.
[0094] Fig.11 is a block diagram illustrating a global color shift circuit 310 according to an embodiment.
[0095] refer to Fig.11 The global color shift circuit 310 may include a color box determination circuit 311 and a global shift control circuit 312 .
[0096] In various embodiments, the color box determination circuit 311 may specify a shift region for each pixel of the current image image_n. The specified shift region may be referred to as a color box CB. The color box determination circuit 311 may receive the current image image_n and specify a color box CB.
[0097] In various embodiments, the global shift control circuit 312 may perform global color shift based on a designated region. The global shift control circuit 312 may generate global shift result values Hgout, Sgout, and Vgout based on the color box CB and the global shift value GSV.
[0098] In the following, reference Fig.12 Describes a method for specifying a color box for global color shifting.
[0099] Fig.12 is a diagram for explaining an HSV domain according to an embodiment.
[0100] refer to Fig.12, showing a cone HSV domain, and can be expressed as hue H in the circumferential direction of the cone, saturation S in the radial direction, and value V in the height direction. The HSV domain is a method of expressing colors using hue, saturation, and brightness, and can be a method of arranging colors based on this method. The HSV domain can be a method of expressing pixel colors by expressing the values of H, S, and V as coordinates. For example, a color can be represented by (H, S, V) coordinates in the HSV domain.
[0101] H can be expressed as an angle, with red corresponding to 0° and cyan corresponding to 180°. In this domain, H can be expressed as 0 degrees to 360 degrees, which is an angle corresponding to the circumference of a circle. S is expressed as a percentage (%) and can be 0% when there is no saturation, or 100% when saturation is maximum. V can be expressed as a percentage (%) and can be 0% when there is no brightness and 100% when brightness is maximum. In the HSV domain, V can be expressed as 0 to 100, which is a number corresponding to the minimum value to the maximum value.
[0102] In various embodiments, the color box CB may be a designated area where image pixel shifting is applied. That is, the color box CB may refer to a shifted area designated by a user (or application). A global color shift may be applied in the color box CB.
[0103] [Equation 2]
[0104] H gout =H input +H V
[0105] S gout =S input ×(1+S V )
[0106] V gout =V input ×(1+V V )
[0107] In Equation 2, H V , S V and V V H represents a global shift value, and specifically can represent a hue global shift value, a saturation global shift value, and a brightness global shift value. input , S input and V input can refer to the value representing the current image in the HSV domain and H gout , S gout and V goutMay refer to the shifted result value of applying a global color shift. A shift region of current image pixels may be specified, and a color shift is applied to each pixel of the pixels in the specified shift region. The shift value may include a first shift value, a second shift value, and a third shift value expressed in the (hue, saturation, brightness) HSV domain.
[0108] Fig.13 is a flowchart showing the sequence of the image processing method according to the embodiment.
[0109] Reference together Fig.10 and 13 In operation S210, an operation of receiving a current image image_n may be performed. For example, the content sensing circuit 330 may acquire the current image image_n generated from an image sensor or externally.
[0110] In operation S310 , an operation of receiving a histogram histogram_(n−1) of a previous image may be performed. For example, the content aware circuit 330 may obtain the histogram histogram_(n−1) of the previous image generated by the histogram generator 320 .
[0111] In operation S320, the content of the current image image_n may be classified using a neural network model. As an embodiment, the content to which each pixel of the current image image_n belongs is classified by the neural network model, and the reliability of the classified content of each pixel may be calculated.
[0112] In operation S330, a shift value SV to be applied to each pixel may be generated based on the classified contents contents_n and the histogram histogram_(n-1) of the previous image. In an embodiment, when the shift value SV is generated in the HSV domain, the shift value SV may include a hue shift value Hv, a saturation shift value SV, and a brightness shift value Vv.
[0113] In operation S220, it may be determined whether a global color shift is to be applied. When a global color shift is not required (No in S220), the global color shift of S230 may be omitted and proceed to the next operation. Conversely, when a global color shift is required (Yes in S220), in operation S230, a global color shift may be performed.
[0114] In operation S340, a histogram histogram_n of the current image may be generated using the global color shift results Hout, Sout, and Vout. In this case, the global color shift result values Hout, Sout, and Vout may be the same values as those of the received image that is not changed or changed.
[0115] In operation S240, it may be determined whether a target color shift is required.
[0116] In operation S250, when the target color shift is required (Yes in S240), the target color shift may be performed. Conversely, in operation S250, when the target color shift is not required (No in S240), the target color shift may be omitted and the process may proceed to the next operation.
[0117] In operation S260, an enhanced image with a shift value SV applied to each pixel may be generated. As an embodiment, the target color shift circuit 340 may perform color shift on each pixel of the current image image_n based on the shift value SV. In this case, the enhanced image may be an improved image quality of the current image image_n.
[0118] Meanwhile, operations S210 to S260 may be performed in parallel or sequentially with operations S310 to S340 .
[0119] Fig.14 FIG. 4 is a block diagram showing an image processing circuit 400 according to an embodiment. Fig.14 The image processing circuit 400 is similar to Fig.10 The image processing circuit 300 is described above, so the description already given above is omitted.
[0120] and Fig.10 Compared with the image processing circuit 300, Fig.14 The image processing circuit 400 may further include a first converter 410 and a second converter 420 that change the pixel domain of the image.
[0121] In various embodiments, the first converter 410 may convert the pixel domain of the image from the (red, green, blue) RGB domain to the (hue, saturation, brightness) HSV domain. The second converter 420 may convert the pixel domain of the image from the HSV domain to the RGB domain.
[0122] Fig.15 is a block diagram illustrating a system 40 according to an embodiment.
[0123] refer to Fig.15 The system 40 may be implemented as a handheld device such as a mobile phone, a smart phone, a tablet computer, a PDA, an EDA, a digital still camera, a digital video camera, a PMP, a PND, a handheld game console, or an electronic book.
[0124] In various embodiments, the system 40 may include a SoC 500 and a memory device 600. The SoC 500 may include a central processing unit (CPU) 510, a graphics processing unit (GPU) 520, a neural processing unit (NPU) 530, an image signal processor (ISP) 540, a memory interface (MIF) 550, a clock management unit (CMU) 560, or a power management unit (PMU) 570. The CPU 510, the GPU 520, the NPU 530, and the ISP 540 may be referred to as a master IP device, and the MIF 550 may be referred to as a slave IP device.
[0125] At least one of the CPU 510, the GPU 520, the NPU 530, or the ISP 540 may include the above-referenced Figures 1 to 14 The image processing circuits 200, 300, and 400 are described. Each component of the image processing circuits 200, 300, and 400 may be implemented in the same IP device, and at least one component of the image processing circuits 200, 300, and 400 may be implemented in another IP device.
[0126] For example, ISP 540 can classify the image content by pixel and perform pixel-level color shifting using the classified content to generate an enhanced image. In addition, ISP 540 can generate a histogram of the image based on the classified content, and the generated histogram of the image can be used to generate a color shift value for a subsequent image.
[0127] In various embodiments, the CPU 510 may process or execute instructions and / or data stored in the memory device 600 in response to a clock signal generated by the CMU 560 .
[0128] In various embodiments, GPU 520 may obtain image data stored in memory device 600 in response to a clock signal generated by CMU 560. GPU 520 may generate data for an image output through a display device (not shown) from the image data provided by MIF 550, and may encode the image data.
[0129] In various embodiments, NPU 530 may refer to any device that executes a machine learning model. NPU 530 may be a hardware block designed to execute a machine learning model. The machine learning model may be a model based on an artificial neural network, a decision tree, a support vector machine, a regression analysis, a Bayesian network, a genetic algorithm, etc. As non-limiting examples, the artificial neural network may include a CNN, an R-CNN, an RPN, an RNN, an S-DNN, an S-SDNN, a deconvolution network, a DBN, an RBM, a fully convolutional network, an LSTM network, or a classification network.
[0130] In various embodiments, the ISP 540 may perform signal processing on raw data received from an image sensor (not shown) located outside the SoC 500 and generate digital data with enhanced image quality.
[0131] In various embodiments, the MIF 550 may provide an interface to a memory device 600 located outside the SoC 500. The memory device 600 may be a DRAM, a phase change random access memory (PRAM), a resistive random access memory (ReRAM), or a flash memory.
[0132] The CMU 560 may generate a clock signal and provide the clock signal to the components of the SoC 500. The CMU 560 may include a clock generation device such as a phase-locked loop (PLL), a delay-locked loop (DLL), and a crystal. The PMU 570 may convert external power into internal power and supply the internal power to the components of the SoC 500.
[0133] In various embodiments, the SoC 500 may further include a volatile memory. The volatile memory may be implemented with DRAM, SRAM, etc. The volatile memory may store various programs and data for the operation of the image processing circuit, and may store data generated by the image processing circuit.
[0134] As an embodiment, each of the content sensing circuit, the color shift circuit, and the histogram generator included in the image processing circuit 541 can access the volatile memory through direct memory access (DMA). In order to access the volatile memory, the SoC 500 may further include access means such as a DMA controller, a memory DMA (MDMA), a peripheral DMA (PDMA), a remote DMA (RDMA), and a smart DMA (SDMA).
[0135] Fig.16 is a block diagram showing an electronic device 1000 according to an embodiment.
[0136] refer to Fig.16 According to an embodiment, the electronic device 1000 may include an image sensor 1100, an image signal processor 1200, a display device 1300, an application processor 1400, a working memory 1500, a storage 1600, a user interface 1700 and a wireless transceiver 1800, and the image signal processor 1200 may be implemented as an integrated circuit separate from the application processor 1400.
[0137] As an example, the above reference Figures 1 to 15 The described image processing circuits 200 , 300 , and 400 may be implemented in the ISP 1200 and / or the AP 1400 .
[0138] In various embodiments, the image sensor 1100 may generate image data, such as raw image data, based on the received optical signal, and provide binary data to the image signal processor 1200. The application processor 1400 controls the overall operation of the electronic device 1000, and may be provided as a SoC that runs an application program, an operating system, etc. The application processor 1400 may control the operation of the image signal processor 1200, and may provide the converted image data generated by the image signal processor 1200 to the display device 1300, or store the converted image data in the storage 1600.
[0139] In various embodiments, the working memory 1500 may store programs and / or data processed or executed by the application processor 1400. The storage 1600 may be implemented as a non-volatile memory device, such as a NAND flash memory or a resistive memory. For example, the storage 1600 may be provided as a memory card, such as a multimedia card (MMC), an embedded MMC (eMMC), a secure digital (SD), a micro SD. The storage 1600 may store data and / or programs for executing an algorithm for controlling an image processing operation of the image signal processor 1200, and when performing an image processing operation, the data and / or programs may be loaded into the working memory 1500.
[0140] In various embodiments, the user interface 1700 can be implemented with various devices capable of receiving user input, such as a keyboard, a curtain key panel, a touch panel, a fingerprint sensor, and a microphone. The user interface 1700 can receive user input and provide a signal corresponding to the received user input to the application processor 1400. The wireless transceiver 1800 may include a modem 1810, a transceiver 1820, and an antenna 1830.
[0141] While the inventive concept has been particularly shown and described with reference to embodiments thereof, it will be understood that various changes in form and details may be made therein without departing from the spirit and scope of the appended claims.
Claims
1. An image processing circuit, include: a content-aware circuit configured to receive histograms of a current image and a previous image, classify the content of each pixel of the current image, and generate a shift value representing a color shift effect for each pixel of the current image; a color shift circuit configured to generate an enhanced image by applying a color shift depending on the shift value to each pixel of the current image based on the shift value; as well as The histogram generator is configured to generate a histogram of the current image based on the classified content of the current image, wherein the generated histogram of the current image is used to generate a shift value of a subsequent image.
2. The image processing circuit according to claim 1, in, The content-aware circuit includes: a neural network model configured to receive a current image, identify content included in the current image, and classify the content pixel by pixel; and A shift value generator is configured to generate a shift value representing a color shift effect of each pixel of the current image using the histogram of the previous image and the classified content of the current image.
3. The image processing circuit according to claim 1, in, The color shifting circuit includes: a weight table including a weight for each pixel based on the reliability of the content, segmentation, and current image classified for each pixel; and The shift control circuit is configured to adjust the shift value to be applied to the pixel of the current image based on the weight and the shift value, and output the shift result value.
4. The image processing circuit according to claim 1, The content of each pixel of the current image includes at least one of facial content, skin content, sky content, hair content, tree content, window content and background content.
5. The image processing circuit according to claim 1, wherein the image processing circuit is included in an image signal processor (ISP).
6. The image processing circuit of claim 1, further comprising a global color shift circuit configured to receive a current image, specify a shift region of pixels of the current image, and apply a color shift of each pixel to pixels in the specified shift region.
7. The image processing circuit according to claim 6, The global color shift circuit include: a color box determination circuit configured to specify a shift region for each pixel of the image; as well as The global shift control circuit is configured to perform color shift on each pixel based on a designated shift region.
8. The image processing circuit according to claim 1, further comprising: include: A first converter converts the pixel domain from the RGB domain to the HSV domain; as well as The second converter converts the pixel domain from the HSV domain to the RGB domain. 9 . The image processing circuit of claim 1 , wherein the shift value comprises a first shift value, a second shift value, and a third shift value expressed in an HSV domain.
10. The image processing circuit according to claim 1, wherein the histogram of the current image includes pixel-classified contents, a first shift value, a second shift value, a third shift value, and the number of pixels.
11. An image processing method, include: Receive the current image; receiving a histogram of a previous image; Classify the content of each pixel of the current image; generating a shift value to be applied to each pixel based on the classified content of each pixel and a histogram of a previous image; generating an enhanced image by applying the shift value to the current image; as well as Generates a histogram of the current image.
12. The image processing method according to claim 11, in, Classifying the content of each pixel of the current image includes using a neural network model to identify content included in the current image.
13. The image processing method according to claim 11, in, Generating an enhanced image includes: Setting a weight for each pixel based on its classification content, segmentation, and reliability of the current image; and A shift value to be applied to a pixel of the current image is adjusted based on the weight and the shift value, and a shift result value is output.
14. The image processing method according to claim 11, in, The shift values include a first shift value, a second shift value, and a third shift value expressed in the HSV domain.
15. The image processing method according to claim 11, in, The histogram of the current image includes content classified by pixel, a first shift value, a second shift value, a third shift value and the number of pixels.
16. An image processing system, include: an image processing circuit having content-aware circuitry configured to receive a histogram of a previous image, classify the content of each pixel of a current image, and generate a shift value representing a color shift effect of at least one pixel of the current image; a color shift circuit configured to generate an enhanced image by applying a color shift to the at least one pixel of the current image based on the shift value; as well as The histogram generator is configured to generate a histogram of the current image based on the classified content of the current image.
17. The image processing system according to claim 16, in, Classifying the content of each pixel of the current image includes using a neural network model to identify the content in the current image.
18. The image processing system according to claim 17, in, Classifying the content of each pixel of the current image includes using a neural network model to identify the content in the current image.
19. The image processing system of claim 16, further comprising an image sensor configured to generate a raw image file, and The image signal processor is configured to process the raw image file from the image sensor.
20. The image processing system according to claim 16, in, The image processing circuit is included in the image signal processor.
