Shadow detection method based on color constancy characteristic and visual attention mechanism
A technology of visual attention mechanism and color constancy, applied in image data processing, instrumentation, computing, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0078] The present invention will be specifically introduced below in conjunction with the accompanying drawings and specific embodiments.
[0079] The original image used in the present invention is an RGB true color image, denoted as Img. Among them, the three channels of red, green, and blue are recorded as R, G, and B respectively; the position of the pixel is represented by row and column numbers, for example, the pixel in row y and column x of the image Img is recorded as Img[y,x].
[0080] (1) The luminance feature (luminance) is extracted from the original Img, which is denoted as Lum.
[0081] Specifically: first extract the grayscale image of the original image, such as figure 1 As shown, then the logarithmic reciprocal of the grayscale image is used as the lum feature, such as figure 2 As shown, the calculation formula is as follows:
[0082] Gray=(R+G+B) / 3
[0083] Lum=1.0 / [5+log(Gray+1)]
[0084] Among them, Gray represents the average value of R, G, and B c...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 