CN102243760B - Image black spot search system and method - Google Patents

Image black spot search system and method Download PDF

Info

Publication number
CN102243760B
CN102243760B CN201010169390.7A CN201010169390A CN102243760B CN 102243760 B CN102243760 B CN 102243760B CN 201010169390 A CN201010169390 A CN 201010169390A CN 102243760 B CN102243760 B CN 102243760B
Authority
CN
China
Prior art keywords
pixel
brightness
value
image
brightness value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201010169390.7A
Other languages
Chinese (zh)
Other versions
CN102243760A (en
Inventor
甯韦铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN201010169390.7A priority Critical patent/CN102243760B/en
Publication of CN102243760A publication Critical patent/CN102243760A/en
Application granted granted Critical
Publication of CN102243760B publication Critical patent/CN102243760B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)

Abstract

The invention relates to an image black spot searching system which comprises an image acquisition module, a brightness adjustment module and a black spot search module, wherein the image acquisition module acquires images; the brightness adjustment module stores an equation that K1=(K0-S) (ar2+br+1)+S; K1 is the first brightness value of each pixel point; K0 is the initial brightness value of each pixel point; a is 5* 10<-14>; the b is 7*10<-6>; r is the square of the number of pixel points between each pixel point and a central pixel point; S is the black light value of an image sensor which acquires the images; the brightness adjustment module computes K0 and r, and further calculates K1 and adjusts the brightness of each pixel point on the basis of K1 according to user requirements; the black spot search module stores a reset reference value and a reset number value and is used for computing the brightness specific value of each pixel point in the adjusted images; the pixel points with the brightness value larger than or equal to the reset reference value is marked with 1; the other pixel points are marked with 0; the number of the other continuous pixel points marked with 1 around the pixel point marked with 1 is computed; and if the number is larger than or equal to the reset number value, black spots exist around the pixel point. The invention also relates to an image black spot search method.

Description

Image black spot search system and method
Technical field
The present invention relates to image processing techniques, relate in particular to a kind of image black spot search system and method.
Background technology
In the assembling process of camera module, dust, chip may fall on the eyeglass of camera module or on optical filter, cause existing in photo that the camera module after assembling takes or video recording the black seal of non-scene image.Therefore, conventionally need carry out black seal to image captured after camera module group assembling and search, to guarantee the quality of camera module.Current method is manually to judge, but because people's the eyes work time grow, can produce fatigue, thereby has strengthened the probability of judging by accident, and the black seal that therefore how can carry out quickly and accurately image is searched and become problem demanding prompt solution.
Summary of the invention
In view of this, be necessary to provide one image black spot search system and method accurately and rapidly.
A kind of image black spot search system, it comprises that an image collection module, a brightness adjustment module and a black seal search module.Described image collection module is obtained image.Described brightness adjustment module memory contains second-degree parabola equation K 1=(K 0-S) (ar 2+ br+1)+S, wherein K 1for the first brightness value of each pixel, K 0for the original intensity value of each pixel, a is 5 × 10 -14, b is 7 × 10 -6, r be each pixel in described image to the pixel number between central pixel point square, S is the black value of the light of the image sensor for obtaining image.Described brightness adjustment module also for calculate each pixel in original intensity value and the described image of the each pixel of described image to the pixel number between central pixel point square, then bring in described second-degree parabola equation and calculate, obtain the first brightness value of each pixel, select whether to adjust with the first brightness value the brightness of each pixel according to user's request, if so, adjust the brightness of each pixel according to the first brightness value.Described black seal is searched module memory and is contained predetermined reference value and predetermined number value, for the image after brightness adjustment, centered by a pixel, define a foursquare second area and foursquare the 3rd region, the area in the 3rd region is little described in the Area Ratio of described second area.Described black seal is searched module also for respectively the brightness value after all pixel adjustment in second area and the 3rd region being averaged, using the mean value obtaining respectively as the 5th brightness value and the 6th brightness value of this central pixel point, with the 5th brightness value divided by the 6th brightness value, obtain a brightness ratio, calculate the brightness ratio of each pixel in the image after brightness adjustment, the pixel that brightness ratio is more than or equal to predetermined reference value is designated as 1, the pixel that brightness ratio is less than to predetermined reference value is designated as 0, thereby convert described image to one by 0 and 1 chart forming, in described chart, search is labeled as 1 pixel, calculate the number that this is labeled as 1 pixel continuous other around and is labeled as 1 pixel, if this number is more than or equal to predetermined number value, represent that this pixel exists black seal around, record the position of this black seal.
A kind of image black spot search method, it comprises the steps: to take an image; Calculate the original intensity value of the each pixel in described image; Calculate each pixel in described image square value to the number of pixels between central pixel point, and bring respectively the each pixel in described image into a second-degree parabola equation K to the square value of the number of pixels between central pixel point and the original intensity value of each pixel 1=(K 0-S) (ar 2+ br+1) calculate in+S, obtain the first brightness value K of each pixel 1, wherein K 1for the first brightness value of each pixel, the original intensity value that K0 is each pixel, a is 5 × 10 -14, b is 7 × 10 -6, r is the square value of each pixel to the pixel number between central pixel point, S is the black value of light of obtaining the image sensor of image; Select whether to adjust according to described the first brightness value the brightness of each pixel, if so, adjust the brightness of each pixel according to described the first brightness value; In image after brightness adjustment, centered by a pixel, define a foursquare second area and foursquare the 3rd region, the area in the 3rd region is little described in the Area Ratio of described second area; Brightness value by all pixels in described second area after brightness adjustment averages, the 5th brightness value using the mean value obtaining as this central pixel point; Brightness value by all pixels in described the 3rd region after brightness adjustment averages, the 6th brightness value using the mean value obtaining as this central pixel point; The 5th brightness value of each pixel, divided by the 6th brightness value, is obtained to a brightness ratio; The brightness ratio of each pixel and a predetermined reference value are compared, the pixel that brightness ratio is more than or equal to predetermined reference value is labeled as 1, the pixel that brightness ratio is less than to predetermined reference value is labeled as 0, thereby converts described image to one by 1 and 0 chart forming; Start to search the pixel that is labeled as 1 from a summit of described chart; In the time finding one to be labeled as 1 pixel, take this pixel as starting point, along upper and lower, left and right, upper left, lower-left, upper right, these eight direction searches of bottom right continuous be labeled as 1 pixel; Calculate the number that this is labeled as 1 pixel continuous other around and is labeled as 1 pixel; This number and a predetermined number value are compared, judge whether this number is more than or equal to described predetermined number value; If so, represent that this is labeled as 1 pixel and region around exists black seal, and record the position in this region.
Image black spot search system and method for the present invention, first adjusts the brightness of each pixel in described image, makes described brightness of image even, then the image after brightness adjustment is carried out to black seal and searches, and can make search procedure more accurately fast.
Accompanying drawing explanation
Fig. 1 is the functional block diagram of the image black spot search system of preferred embodiments of the present invention;
Fig. 2 is the image black spot search system of Fig. 1 is carried out the image of each Color Channel of brightness adjustment front and back schematic diagram at described image;
Fig. 3 is that the image black spot search system of Fig. 1 is at the schematic diagram of the matrix of coefficients of the 3rd brightness value of the described image of calculating;
Fig. 4 is that the image black spot search system of Fig. 1 is carried out the schematic diagram that black seal is searched;
Fig. 5 A and Fig. 5 B are the process flow diagrams of the image black spot search method of preferred embodiments of the present invention.
Main element symbol description
Image black spot search system 100
Image collection module 10
Brightness adjustment module 30
Separation of images unit 31
The first storage unit 32
The first computing unit 33
The first computation subunit 331
The second computation subunit 332
The 3rd computation subunit 333
Selected cell 34
Brightness adjustment unit 35
Image synthesis unit 36
Black seal is searched module 50
The second storage unit 51
The second computing unit 52
Comparing unit 53
Search unit 54
Record cell 55
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
Referring to Fig. 1, is a kind of image black spot search system 100 that embodiment of the present invention provides, and it comprises that 10, one brightness adjustment modules 30 of an image collection module and a black seal search module 50.
Described image collection module 10 is for obtaining an image.Described image is that camera module (not shown) to be tested is captured.In the present embodiment, described camera module to be tested comprises an image sensor.The number of the pixel of described image sensor is 648*488, and described image sensor output signal is ten bit binary data (10-bit).
Described brightness adjustment module 30 comprises a separation of images unit 31, one the first storage unit 32, one the first computing unit 33, selected cell 34, brightness adjustment unit 35 and an image synthesis unit 356.
Described separation of images unit 31 is for being separated into multiple images by described image according to Color Channel.In the present embodiment, as shown in Figure 2, described separation of images unit 31 is separated into four images by described image according to four Color Channels (Gr, Gb, R, B).Wherein Gr represents green red channel, and Gb represents turquoise passage, and R represents red channel, and B represents blue channel.Described four kinds of color component value are used Gr equally, Gb, and R and B represent, can obtain S=a 1gr+a 2gb+a 3r+a 4b, wherein a 1, a 2, a 3, a 4be coefficient.
In described the first storage unit 32, store a second-degree parabola equation K 1=(K 0-S) (ar 2+ br+1)+S, wherein K 1for the first luma component values of the each pixel in every image, K 0for the original intensity component value of the each pixel in every image, a is 5 × 10 -14, b is 7 × 10 -6r is each pixel in every image square value to the pixel number between central pixel point, S is the black value of the light of described image sensor, it is illustrated in described image sensor and does not accept in the situation of illumination, the color component value of this pixel output, such as the data of output signal are the image sensor of eight-digit binary number data (8-bit), its actual light reaction scope is 0~2 8-1 (255), but this image sensor is not in the situation that accepting illumination, still can export non-vanishing light reaction value, therefore needs first by the original intensity component value K of each pixel 0deduct the black value of corresponding light, the luminance brightness component value of each pixel value is changed between normal scope 0~255.Every kind of image sensor all has the black value of corresponding light, such as, the data of output signal are that the black value of light of the image sensor of eight-digit binary number data (8-bit) is 16; Output signal is that the black value of light of the image sensor of ten bit binary data (10-bit) is 64.
Described the first computing unit 33 comprises the first computation subunit 331, the second computation subunit 332 and the 3rd computation subunit 333.
Described the first computation subunit 331 is for calculating respectively the original intensity component value K of each pixel of every image 0and each pixel in every image is to the square value r of the number of pixels between central pixel point, then brings in described second-degree parabola equation and calculates, and obtains the first luma component values K of each pixel 1.
Described the second computation subunit 332 is for centered by a pixel, define first area, by average the first luma component values of all pixels in this first area, the second luma component values using the mean value obtaining as this pixel, and the each pixel in every image is carried out to above-mentioned processing.In the present embodiment, described first area is square area, and its length of side is 45 pixels.Be appreciated that, for the pixel of four top corner regions that approaches every image, if a part of region of the length of side being defined centered by it in the first area of 45 pixels do not have pixel, so only in described first area the value of the first luma component values of existing pixel after averaging as the second luma component values of corresponding pixel.Be appreciated that because the brightness of the pixel that is positioned at central area is more or less the same, and because image sensor is rectangle, therefore for central pixel point, also can only define one long be 4 pixels, calculate the first area of the wide rectangle that is 8 pixels, to reduce calculated amount.
Described the 3rd computation subunit 333 is for for every image, respectively the second luma component values of the second luma component values of each pixel and corresponding central pixel point is divided by, and obtains the matrix of coefficients of the second luma component values of every image; Then respectively by each pixel along described pixel the multiple pixels of the outside continuous drawing of direction with the line of corresponding central pixel point, calculate respectively the difference of the coefficient of the second luma component values of adjacent two pixels, and obtain the mean value of the plurality of difference, the coefficient of the second luma component values of each pixel is deducted to the mean value of corresponding difference, as the coefficient of the 3rd luma component values of this pixel, thereby obtain the matrix of coefficients of the 3rd luma component values of every image.In the present embodiment, the number of the pixel of continuous drawing is 8.Such as, as shown in Figure 3, if the coefficient of the second luma component values of one of them pixel A is 0.99, and this pixel A (is labeled as pixel B along 8 pixels of the outside continuous drawing of direction of the line of itself and central pixel point O, C, D, E, F, G, H, I), the coefficient of the second luma component values of these 8 pixels is respectively 0.96, 0.88, 0.76, 0.64, 0.53, 0.48, 0.31, 0.29, obtain the difference 0.03 of the coefficient of the second luma component values of adjacent two pixels, 0.08, 0.12, 0.12, 0.11, 0.05, 0.15, 0.02, the mean value of the difference of these 8 the second luma component values is 0.085, the coefficient of the 3rd luma component values of this pixel A is 0.99-0.085=0.905, finally respectively the original intensity component value of each pixel in the matrix of coefficients of the 3rd luma component values of every image and corresponding original image is multiplied each other, obtain the 3rd luma component values of the each pixel in every image.
Described selected cell 34 is for selecting with which luma component values to adjust the brightness of each pixel according to user's demand.
Described brightness adjustment unit 35 is for adjusting the brightness value of each pixel with the first luma component values, the second luma component values or the 3rd luma component values according to the selection result of described selected cell.
Described image synthesis unit 36, for the luma component values after brightness adjustment of described multiple images is synthesized to an image according to corresponding ratio, is designated as the 4th brightness value by the brightness value of each pixel of the image after synthetic.Be appreciated that according to S=a 1gr+a 2gb+a 3r+a 4b synthesizes described luminance component, wherein a 1, a 2, a 3, a 4be coefficient, therefore, the brightness value of the each pixel in the image after synthetic be defined as to the 4th brightness value.
Described black seal search module 50 comprise second storage unit 51, one the second computing unit 52, comparing unit 53, one search unit 54 and a record cell 55.
In described the second storage unit 51, store a predetermined reference value and a predetermined number value.
As shown in Figure 4, described the second computing unit 52, for centered by a pixel, defines a second area M and a 3rd region N, and the area of the 3rd region N is little described in the Area Ratio of described second area M.In the present embodiment, described second area M is that the length of side is the square of 9 pixels.Described the 3rd region N is that the length of side is the square of 31 pixels.The 4th brightness value of all pixels in described second area M is averaged to the 5th brightness value using the mean value obtaining as this pixel P.The 4th brightness value of all pixels in described the 3rd region N is averaged to the 6th brightness value using the mean value obtaining as this pixel P.The 5th brightness value of this pixel P, divided by the 6th brightness value, is obtained to the brightness ratio of this pixel P.Described comparing unit 53 compares the brightness ratio of each pixel and described predetermined reference value.The pixel that brightness ratio is more than or equal to predetermined reference value by described record cell 55 is labeled as 1, and the pixel that brightness ratio is less than to predetermined reference value is labeled as 0, described image is converted to the chart forming by 1 and 0.Described search unit 54 is searched for starting from a summit of described chart, if find one to be labeled as 1 pixel Q, take this pixel Q as starting point, along upper and lower, left and right, continuous other in upper left, lower-left, upper right, these eight direction searches of bottom right are labeled as 1 pixel, do not repeat search for the pixel of having been searched.Described the second computing unit 52 is also for calculating the number that is labeled as 1 pixel Q continuous other around and is labeled as 1 pixel, described comparing unit 53 is also for comparing this number and described predetermined number value, if number is more than or equal to described predetermined number value, represent that this is labeled as 1 pixel Q and has black seal around.Described record cell 55 is for recording the position of described comparing unit 53 determined black seals.In the present embodiment, described predetermined reference value is 0.1, and described predetermined number value is 82.
Be appreciated that, owing to all existing in black every the image being imprinted on after separation, therefore described black seal is searched module 50 and also can be only an image (such as the image of red channel) be wherein carried out to black seal and search, and now can omit described image synthesis unit 36.Also can described image not separated, but carry out after separation of images, the image that can prevent different color channels is in the interference of carrying out in brightness regulation process each other.
As Fig. 5 A and Fig. 5 B, be a kind of image black spot search method that embodiment of the present invention provides, it comprises the steps:
S1: take an image.
S2: described image is separated according to Color Channel.In the present embodiment, described image is according to four Color Channels (Gr, Gb, R, B) separate, be isolated into four images (as shown in Figure 2), wherein Gr represents green red channel, Gb represents turquoise passage, and R represents red channel, and B represents blue channel.Be appreciated that also and can image do not separated, after step S2, directly proceed to step S4.But after described image is separated according to four Color Channels (Gr, Gb, R, B), then carry out brightness adjustment, the image that can reduce different color channels in the process of brightness adjustment to interference each other.
S3: the original intensity component value K0 that calculates respectively the each pixel in every image.
S4: calculate each pixel in every image square value to the pixel number between central pixel point, and bring second-degree parabola equation K into 1=(K 0-S) (ar 2+ br+1) calculate wherein K in+S 1for the first luma component values of the each pixel in every image, K 0for the original intensity component value of the each pixel in every image, a is 5 × 10 -14, b is 7 × 10 -6, r is each pixel in every image square value to pixel number between central pixel point, S is the black value of light of obtaining the image sensor of image.
S5: whether selection is according to the brightness of each pixel in every image of the first component brightness value adjustment.
S6: if so, adjust the brightness of each pixel in every image according to the first component brightness value, proceed to step S14.
S7: if not, centered by a pixel, define first area, the first luma component values of all pixels in this first area is averaged, the second luma component values using the mean value obtaining as this central pixel point, and the each pixel in every image is carried out to above-mentioned processing, the brightness of every image is carried out to further homogenising processing.
S8: whether selection is according to the brightness of each pixel in every image of the second luma component values adjustment.
S9: if so, adjust the brightness of every image according to the second luma component values, proceed to step S14.
S10: if not, for every image, respectively the second luma component values of the second luma component values of each pixel and described central pixel point is divided by, obtains the matrix of coefficients of the second luma component values of every image.
S11: for every image, the multiple pixels of the outside continuous drawing of direction along the line of described pixel and central pixel point by each pixel respectively, calculate respectively the difference of the coefficient of adjacent two pixels, and obtain the mean value of the plurality of difference, the coefficient of the second luma component values of each pixel is deducted to the mean value of corresponding difference, as the coefficient of the 3rd luma component values of each pixel, thereby obtain the matrix of coefficients of the 3rd luma component values of every image.
S12: respectively the original intensity component value of each pixel in the matrix of coefficients of the 3rd luma component values of every image and corresponding original image is multiplied each other, obtain the 3rd luma component values of each pixel in every image.
S13: adjust the brightness of each pixel in every image according to the 3rd luma component values.
S14: the brightness value by the each pixel in described image after brightness adjustment, according to the synthetic image of corresponding ratio, is defined as the 4th brightness value by the brightness value of the each pixel in the image after synthetic.
S15: centered by a pixel, define a second area and the 3rd region, described in the Area Ratio of described second area, the area in the 3rd region is little, the 4th brightness value of all pixels in described second area is averaged to the 5th brightness value using the mean value obtaining as this central pixel point.The 4th brightness value of all pixels in described the 3rd region is averaged, as the 6th brightness value of this central pixel point; The 5th brightness value of each pixel, divided by the 6th brightness value, is obtained to the brightness ratio of this central pixel point.
S16: the brightness ratio of each pixel and described predetermined reference value are compared, the pixel that brightness ratio is more than or equal to a predetermined reference value is labeled as 1, the pixel that brightness ratio is less than to described predetermined reference value is labeled as 0, thereby converts described image to one by 1 and 0 chart forming.
S17: start to search the pixel that is labeled as 1 from a summit of described chart.
S18: in the time finding one to be labeled as 1 pixel, take this pixel as starting point, along upper and lower, left and right, upper left, lower-left, upper right, these eight direction searches of bottom right continuous be labeled as 1 pixel.
S19: the number of calculating this and be labeled as 1 the pixel continuous pixel that is labeled as 1 around.
S20: this number and described predetermined number value are compared, judge whether this number is more than or equal to described predetermined number value.In the present embodiment, described predetermined number value is 82.
S21: if so, represent that this is labeled as 1 pixel and region around exists black seal, and record the position in this region.The position that is appreciated that each pixel uses the form of (X, Y) to represent, X represents the line number of this pixel, and Y represents the columns of this pixel.
S22: if not, represent that this is labeled as 1 region and does not have black seal around, continue to search and carry out the next one and be labeled as 1 pixel, proceed to step S18.
Be appreciated that owing to all existing in black every the image being imprinted on after separation, the black seal that therefore also can carry out step S15~S22 to an image (such as the image of red channel) is wherein searched.
Image black spot search method of the present invention, first adjusts the brightness of each pixel in described image, makes the brightness of described image even, then the image after brightness adjustment is carried out to black seal and searches, and can make search procedure more accurately fast.
Be understandable that, for the person of ordinary skill of the art, can make other various corresponding changes and distortion by technical conceive according to the present invention, and all these change the protection domain that all should belong to the claims in the present invention with distortion.

Claims (13)

1. an image black spot search system, it comprises that an image collection module, a brightness adjustment module and a black seal search module, described image collection module is obtained image, described brightness adjustment module memory contains second-degree parabola equation K 1=(K 0-S) (ar 2+ br+1)+S, wherein K 1for the first brightness value of each pixel, K 0for the original intensity value of each pixel, a is 5 × 10 -14, b is 7 × 10 -6, r be each pixel in described image to the pixel number between central pixel point square, S is the black value of the light of the image sensor for obtaining image, described brightness adjustment module also for calculate each pixel in original intensity value and the described image of the each pixel of described image to the pixel number between central pixel point square, then bring in described second-degree parabola equation and calculate, obtain the first brightness value of each pixel, select whether to adjust with the first brightness value the brightness of each pixel according to user's request, if so, adjust the brightness of each pixel according to the first brightness value, described black seal is searched module memory and is contained predetermined reference value and predetermined number value, for the image after brightness adjustment, centered by a pixel, define a foursquare second area and foursquare the 3rd region, the area in the 3rd region is little described in the Area Ratio of described second area, described black seal is searched module also for respectively the brightness value after all pixel adjustment in second area and the 3rd region being averaged, using the mean value obtaining respectively as the 5th brightness value and the 6th brightness value of this central pixel point, with the 5th brightness value divided by the 6th brightness value, obtain a brightness ratio, calculate the brightness ratio of each pixel in the image after brightness adjustment, the pixel that brightness ratio is more than or equal to predetermined reference value is designated as 1, the pixel that brightness ratio is less than to predetermined reference value is designated as 0, described image is converted to the chart forming by 0 and 1, in described chart, search is labeled as 1 pixel, calculate the number that this is labeled as 1 pixel continuous other around and is labeled as 1 pixel, if this number is more than or equal to predetermined number value, represent that this pixel exists black seal around, record the position of this black seal.
2. image black spot search system as claimed in claim 1, it is characterized in that, described second area is that the length of side is the square of 9 pixels, and described the 3rd region is that the length of side is the square of 31 pixels, described predetermined reference value is 0.1, and described predetermined number value is 82.
3. image black spot search system as claimed in claim 1, is characterized in that, described brightness adjustment module comprises the first storage unit, the first computing unit, selected cell and brightness adjustment unit, and described the first memory cell has described second-degree parabola equation K 1=(K 0-S) (ar 2+ br+1)+S; Described the first computing unit is for calculating the original intensity value of the each pixel of described image and described first brightness value of each pixel; Described selected cell is for selecting whether to adjust with the first brightness value the brightness of each pixel according to user's request; If so, the brightness of each pixel is adjusted in described brightness adjustment unit according to the first brightness value.
4. image black spot search system as claimed in claim 3, it is characterized in that, in the time that described selected cell is selected not adjust the brightness of each pixel according to the first brightness value according to user's demand, described the first computing unit is just centered by a pixel, define a first area, the first brightness value of all pixels in this first area is averaged to the second brightness value using the mean value obtaining as this central pixel point; Described selected cell is also for selecting whether to adjust according to described the second brightness value the brightness of each pixel according to user's demand, if so, the brightness of each pixel is adjusted in described brightness adjustment unit according to described the second brightness value.
5. image black spot search system as claimed in claim 4, it is characterized in that, in the time that described selected cell is selected not adjust the brightness of each pixel according to the second brightness value, described the first computing unit also, for respectively the second brightness value of the second brightness value of each pixel and corresponding central pixel point being divided by, obtains the matrix of coefficients of the second brightness value of every image; Respectively by each pixel along described pixel the multiple points of the outside continuous drawing of direction with the line of corresponding central pixel point, calculate respectively the difference of the coefficient of adjacent 2, and obtain the mean value of the plurality of difference, the coefficient of each pixel is deducted to the mean value of corresponding difference, as the coefficient of the 3rd brightness value of this pixel, thereby obtain the matrix of coefficients of the 3rd brightness value of each pixel of described image; Then respectively the original intensity value of the matrix of coefficients of the 3rd brightness value of described image and each pixel is multiplied each other, obtain the 3rd brightness value, described brightness adjustment module is adjusted the brightness of each pixel according to described the 3rd brightness value.
6. image black spot search system as claimed in claim 5, it is characterized in that, described brightness adjustment module also comprises a separation of images unit and image synthesis unit, described separation of images unit is for becoming to be separated into multiple images by described image according to Color Channel, described the first computing unit is used for the brightness of the each pixel that calculates described multiple images, described brightness adjustment unit is used for the brightness of each pixel of adjusting described multiple images, and described image synthesis unit is for synthesizing an image by multiple images after brightness adjustment.
7. image black spot search system as claimed in claim 1, it is characterized in that, described black seal is searched module and is comprised the second storage unit, the second computing unit and comparing unit, and described the second memory cell contains described predetermined reference value and described predetermined number value; Described the second computing unit is for calculating the brightness ratio of the each pixel of image after brightness adjustment; Described comparing unit is for comparing brightness ratio and the described predetermined reference value of each pixel.
8. image black spot search system as claimed in claim 7, it is characterized in that, described black seal is searched module and is also comprised search unit and record cell, the pixel that brightness ratio is more than or equal to described predetermined reference value by described record cell is designated as 1, the pixel that brightness ratio is less than to predetermined reference value is designated as 0, described image is converted to the chart forming by 0 and 1; Described search unit is for being labeled as 1 pixel as starting point take the search of described chart, search this and be labeled as 1 pixel continuous other around and be labeled as 1 pixel; Described the second computing unit is also for calculating the number that is labeled as 1 pixel continuous other around and is labeled as 1 pixel; Described comparing unit is also for comparing this number and described predetermined number value, if number is more than or equal to described predetermined number value, represents that this is labeled as 1 pixel and has black seal around; The position of described record cell for recording black seal.
9. an image black spot search method, it comprises the steps: to take an image; Calculate the original intensity value of the each pixel in described image; Calculate each pixel in described image square value to the number of pixels between central pixel point, and bring a second-degree parabola equation K into 1=(K 0-S) (ar 2+ br+1) calculate in+S, obtain the first brightness value K of each pixel 1, wherein K 1for the first brightness value of each pixel, K 0for the original intensity value of each pixel, a is 5 × 10 -14, b is 7 × 10 -6, r is the square value of each pixel to the pixel number between central pixel point, S is the black value of light of obtaining the image sensor of image; Select whether to adjust according to described the first brightness value the brightness of each pixel, if so, adjust the brightness of each pixel according to described the first brightness value; In image after brightness adjustment, centered by a pixel, define a foursquare second area and foursquare the 3rd region, the area in the 3rd region is little described in the Area Ratio of described second area; Brightness value by all pixels in described second area after brightness adjustment averages, the 5th brightness value using the mean value obtaining as this central pixel point; Brightness value by all pixels in described the 3rd region after brightness adjustment averages, the 6th brightness value using the mean value obtaining as this central pixel point; The 5th brightness value of each pixel, divided by the 6th brightness value, is obtained to the brightness ratio of this pixel; The brightness ratio of each pixel and a predetermined reference value are compared, the pixel that brightness ratio is more than or equal to predetermined reference value is labeled as 1, the pixel that brightness ratio is less than to predetermined reference value is labeled as 0, described image is converted to the chart forming by 1 and 0; Start to search the pixel that is labeled as 1 from a summit of described chart; In the time finding one to be labeled as 1 pixel, take this pixel as starting point, along upper and lower, left and right, upper left, lower-left, upper right, these eight direction searches of bottom right continuous be labeled as 1 pixel; Calculate the number that this is labeled as 1 pixel continuous other around and is labeled as 1 pixel; This number and a predetermined number value are compared, judge whether this number is more than or equal to described predetermined number value; If so, represent that this is labeled as 1 pixel and has black seal around, records the position of this black seal.
10. image black spot search method as claimed in claim 9, it is characterized in that, described second area is that the length of side is the square of 9 pixels, and described the 3rd region is that the length of side is the square of 31 pixels, described predetermined reference value is 0.1, and described predetermined number value is 82.
11. image black spot search methods as claimed in claim 9, it is characterized in that, if select not adjust according to described the first brightness value the brightness of each pixel, in described image, centered by a pixel, define first area, the first brightness value of all pixels in this first area is averaged, the second brightness value using the mean value obtaining as this central pixel point; Select whether to adjust according to described the second brightness value the brightness of each pixel, if so, adjust the brightness of each pixel according to described the second brightness value.
12. image black spot search methods as claimed in claim 11, it is characterized in that, if select not adjust according to described the second brightness value the brightness of each pixel, the second brightness value of the second brightness value of the each pixel in described image and described central pixel point is divided by, obtains the matrix of coefficients of the second brightness value; The multiple points of the outside continuous drawing of direction by the each pixel in the matrix of coefficients of described the second brightness value along the line of described pixel and central pixel point, calculate the difference of the coefficient between adjacent two pixels, and obtain the mean value of the plurality of difference, the coefficient of each pixel is deducted to the mean value of corresponding difference, as the coefficient of the 3rd brightness value of each pixel, thereby obtain the matrix of coefficients of the 3rd brightness value of described image; The original intensity value of the matrix of coefficients of the 3rd brightness value of described image and each pixel is multiplied each other, obtain the 3rd brightness value of each pixel in described image; Adjust the brightness of each pixel according to described the 3rd brightness value.
13. image black spot search methods as claimed in claim 12, it is characterized in that, after taking an image, also comprise the step that described image is separated into multiple images according to Color Channel, and described multiple images all carry out respectively step as claimed in claim 12 successively, and after adjusting the brightness of each pixel according to described the 3rd brightness value, also comprise the step of the synthetic image of described multiple images.
CN201010169390.7A 2010-05-13 2010-05-13 Image black spot search system and method Expired - Fee Related CN102243760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010169390.7A CN102243760B (en) 2010-05-13 2010-05-13 Image black spot search system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010169390.7A CN102243760B (en) 2010-05-13 2010-05-13 Image black spot search system and method

Publications (2)

Publication Number Publication Date
CN102243760A CN102243760A (en) 2011-11-16
CN102243760B true CN102243760B (en) 2014-07-09

Family

ID=44961799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010169390.7A Expired - Fee Related CN102243760B (en) 2010-05-13 2010-05-13 Image black spot search system and method

Country Status (1)

Country Link
CN (1) CN102243760B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110248141B (en) * 2019-06-10 2021-06-04 广州视源电子科技股份有限公司 Video image brightness adjusting method, device, equipment and readable storage medium
CN116363390B (en) * 2023-05-25 2023-09-19 之江实验室 Infrared dim target detection method and device, storage medium and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101509870A (en) * 2009-01-19 2009-08-19 高铁检测仪器(东莞)有限公司 Carbon black content grade analysis method in rubber goods

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1383104B1 (en) * 2001-04-25 2011-05-04 Panasonic Corporation Video display apparatus and video display method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101509870A (en) * 2009-01-19 2009-08-19 高铁检测仪器(东莞)有限公司 Carbon black content grade analysis method in rubber goods

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Detecting moving shadows: algorithms and evaluation;Prati,A et al.;《IEEE Transactions on Pattern Analysis and Machine Intelligence》;20030731;第25卷(第7期);第918-923页 *
Prati,A et al..Detecting moving shadows: algorithms and evaluation.《IEEE Transactions on Pattern Analysis and Machine Intelligence》.2003,第25卷(第7期),第918-923页.
一种合成孔径雷达图像阴影和目标检测的方法;付琨 等;《软件学报》;20021231;第13卷(第4期);第818-826页 *
付琨 等.一种合成孔径雷达图像阴影和目标检测的方法.《软件学报》.2002,第13卷(第4期),第818-826页.

Also Published As

Publication number Publication date
CN102243760A (en) 2011-11-16

Similar Documents

Publication Publication Date Title
KR100615277B1 (en) Method and apparatus for compensating Image sensor lens shading
TWI259326B (en) Method and apparatus for automatic white balance
EP2752008B1 (en) Pixel array, camera using the same and color processing method based on the pixel array
KR100808493B1 (en) Lens shading compensation apparatus and method, and image processor using it
US8823843B2 (en) Image processing device, image capturing device, image processing method, and program for compensating for a defective pixel in an imaging device
US8803994B2 (en) Adaptive spatial sampling using an imaging assembly having a tunable spectral response
US9055181B2 (en) Solid-state imaging device, image processing apparatus, and a camera module having an image synthesizer configured to synthesize color information
US8253828B2 (en) Image capture device including edge direction determination unit, and image processing method for the same
US7949185B2 (en) Method of performing robust auto white balance
CN101166285B (en) Automatic white balance method and device
US8059169B2 (en) Apparatus and method for compensating color, and image processor, digital processing apparatus, recording medium using it
CN102970459A (en) Image processing apparatus, image capture apparatus, and image processing method
CN101083773B (en) Apparatus and method of gamma correction in digital image processing device
US20140184860A1 (en) Image processing device, image processing method, and program for detecting and correcting defective pixel in image
CN101335900A (en) Image processing device, image processing method, program, and imaging device
US20200228770A1 (en) Lens rolloff assisted auto white balance
CN103379289A (en) Imaging apparatus
TWI491974B (en) Image spot detecting system and method same
CN102243760B (en) Image black spot search system and method
US9113121B2 (en) Method for white balance adjustment of images
CN110460783B (en) Array camera module, image processing system, image processing method and electronic equipment
CN102244713B (en) Image processing device and method
CN104780322A (en) Imaging device, imaging method, image processing device
Garud et al. A fast color constancy scheme for automobile video cameras
US20110025878A1 (en) Determining the Illuminant in a Captured Scene

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140709

Termination date: 20150513

EXPY Termination of patent right or utility model