Color cast detection and correction method and device based on HSV (Hue, Saturation, Value) color space

A technology of color space and correction method, applied in the field of color cast detection and correction algorithm, which can solve the problems of poor performance of perfect reflection algorithm, lack of versatility of white point, and failure of white balance algorithm.

Active Publication Date: 2013-04-24
JINLING INST OF TECH
View PDF4 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the detection of white points often lacks versatility, and it does not perform well when there is no specular surface in the image or the image brightness is low.
However, the current classical algorithms all have certain deficiencies. For example, for images with monotonous colors or images containing large areas of color patches, the gray world algorithm often has the problem of correction failure, and sometimes over-correction occurs; when the image does not exist When the mirror surface or image brightness is low, the perfect reflection algorithm often performs poorly; when the image has a large range of colored textures, the edge-based white balance algorithm often fails; and for the fuzzy neural network algorithm, a lot of prior learning is required. Knowledge, and there are problems such as high consumption of logic units and high power consumption

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Color cast detection and correction method and device based on HSV (Hue, Saturation, Value) color space
  • Color cast detection and correction method and device based on HSV (Hue, Saturation, Value) color space
  • Color cast detection and correction method and device based on HSV (Hue, Saturation, Value) color space

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] Embodiment 1 of the present invention provides a color cast detection and correction method based on HSV color space, such as figure 1 As shown, the method includes:

[0032] 101. Input the image to be detected in the RGB color space

[0033] Color Space (Color Space), also known as the color coordinate system, is a method of abstractly representing and describing colors. The RGB color space is one of the most commonly used color models, and images output by digital imaging devices are often in RGB format.

[0034] 102. Calculate the S channel in the HSV color space

[0035] The current color cast detection algorithm often converts the RGB color space to the HSV color space first, and then extracts the S channel for color cast detection, while the H channel and V channel do not participate in the subsequent processing. The present invention adopts the method of directly calculating the S channel, which greatly reduces the amount of calculation and the time and space ...

Embodiment 2

[0068] Embodiment 2 of the present invention provides a color cast detection and correction device based on HSV color space, such as image 3 As shown, the method includes: a calculation unit 11 , a preprocessing unit 12 , a judgment unit 13 , a determination unit 14 , and a correction unit 15 .

[0069] in,

[0070] Calculation unit 11, for calculating the value of the S channel in the HSV color space, and counting the histogram vector h of the S channel;

[0071] Preprocessing unit 12, used for quantizing and filtering the histogram vector;

[0072] Judging unit 13, used to judge whether the image is color cast;

[0073] A determination unit 14, configured to determine a color cast channel;

[0074] The correction unit 15 is used to correct the color cast channel of the image, and returns to the statistics unit.

[0075] Further, as Figure 4 As shown, the calculation unit 11 includes: a calculation module 111, a statistics module 112; Figure 4 As shown, the preproces...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a color cast detection and correction method and device, relating to the technical field of digital image processing. The method comprises the following steps of: inputting an image to be detected of an RGB (Red, Green, Blue) color space; calculating an S channel in the HSV (Hue, Saturation, Value) color space; counting the histogram vector h of the S channel; quantizing and filtering the histogram vector h; judging whether color cast exists in the image according to a histogram vector h' obtained after the quantizing and the filtering; if the image is judged to has color cast, respectively counting the contribution rates of an RGB channel to the maximum matrix and the minimum matrix, and judging a color cast channel according to the contribution rates; adjusting the value of the color cast channel in the RGB color space, recalculating the value of the S channel and judging whether color cast exists in the S channel, and repeating to execute until no color cast exists; and if the image is judged to have no color cast, ending the program. By using the color cast detection and correction method and device, various types of color cast images can be effectively detected and corrected, and the defects in the traditional method are overcome; and the color cast detection and correction method and device are favorable in adaptability to different scenes and high in algorithm efficiency.

Description

technical field [0001] The invention belongs to the technical field of image processing, and in particular relates to the use of algorithms such as color space conversion, histogram statistics, and median filtering in color cast detection and correction. Background technique [0002] Color is one of the important characteristics of images, and it is also an important basis for image processing and analysis. In a physical sense, the color of an object observed by the human eye is not only determined by its reflective properties, but also by the color of the light that hits the object. The human visual system has color constancy, which can eliminate the influence of lighting conditions and other factors on color to a certain extent, and correctly perceive the color of objects. However, imaging equipment does not have this "adjustment" function, and there is often a certain degree of error between the image it collects and the real color of the object surface, that is, color c...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06T7/40
Inventor 胡勇
Owner JINLING INST OF TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products