CN105516694A - Method and system for avoiding dark corner of lens - Google Patents

Method and system for avoiding dark corner of lens Download PDF

Info

Publication number
CN105516694A
CN105516694A CN201510900051.4A CN201510900051A CN105516694A CN 105516694 A CN105516694 A CN 105516694A CN 201510900051 A CN201510900051 A CN 201510900051A CN 105516694 A CN105516694 A CN 105516694A
Authority
CN
China
Prior art keywords
image
dust position
circle
attenuation coefficient
annulus
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.)
Granted
Application number
CN201510900051.4A
Other languages
Chinese (zh)
Other versions
CN105516694B (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.)
Shanghai IC R&D Center Co Ltd
Chengdu Image Design Technology Co Ltd
Original Assignee
Shanghai Integrated Circuit Research and Development Center Co Ltd
Chengdu Image Design Technology 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 Shanghai Integrated Circuit Research and Development Center Co Ltd, Chengdu Image Design Technology Co Ltd filed Critical Shanghai Integrated Circuit Research and Development Center Co Ltd
Priority to CN201510900051.4A priority Critical patent/CN105516694B/en
Publication of CN105516694A publication Critical patent/CN105516694A/en
Application granted granted Critical
Publication of CN105516694B publication Critical patent/CN105516694B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/60Noise processing, e.g. detecting, correcting, reducing or removing noise
    • H04N25/68Noise processing, e.g. detecting, correcting, reducing or removing noise applied to defects

Abstract

The invention provides a method and a system for avoiding a dark corner of a lens. The center of an image is taken as a circle center to make a circle and a ring, and marking of dust positions in different areas and calculation of attenuation coefficients, namely marking of the dust positions in the circle and the different rings and calculation of the attenuation coefficient, are carried out, so that the dust positions in the whole image are marked and each dust position is provided with the corresponding attenuation coefficient, and then when other images are shot, an enhanced image is obtained through multiplying by the corresponding attenuation coefficient on the dust position. According to the method and the system, the image on the dust position on the lens can be enhanced, and the dark corner of the lens is avoided.

Description

Avoid the method and system producing the dark angle of camera lens
Technical field
The present invention relates to technical field of semiconductors, be specifically related to a kind of method and system avoiding producing the dark angle of camera lens.
Background technology
In the process that real lens is found a view, owing to being stained with dust, last imaging can be made to have bulk portion fuzzy, make camera lens produce dark angle, so generally can image enhancement technique be adopted.
Conventional image enhancement technique is the position being marked dust by the method for setting threshold, then statistic histogram, determine the distribution proportion of the pixel value on the position that image needs to strengthen at the pixel value of whole image, need according to image the pixel value on the position of enhancing at the distribution proportion of whole image pixel value, need image the pixel value on the position of enhancing to process.
But the subject matter of above-mentioned processing mode is the mark for dust position, adopt the method limitation of artificial setting threshold larger, for the experience of operator and the requirement of background picture higher.
Summary of the invention
In order to overcome above problem, the invention provides a kind of method and system avoiding camera lens to produce dark angle, can automatically detect and mark the position of dust and enhancing process is carried out to the position of dust.
To achieve these goals, the invention provides a kind of avoiding and produce the method at the dark angle of camera lens, process the image taken by camera lens, it comprises the mark of dust position and the computational process of attenuation coefficient and image enhancement processes, wherein,
The mark of described dust position and the computational process of attenuation coefficient comprise:
Step 101: adopt described lens shooting to obtain having first image of single color, YCbCr conversion is carried out to described first image, obtains Y tomographic image, Cb tomographic image and Cr tomographic image;
Step 102: make a circle using the center of described Y tomographic image as the center of circle;
Step 103: the average calculating all pixels of the inside of a described circle;
These location of pixels are labeled as the dust position that a described circle is inner by step 104: judge that the inside of a described circle is less than the location of pixels of described average;
Step 105: closed operation is done to the set of all dust position of the inside of a described circle;
Step 106: the ratio calculating the average of the pixel of the non-dust position of the inside of a described circle and the pixel of described dust position, this ratio is the attenuation coefficient of the described dust position of the inside of a described circle;
Step 107 a: annulus is made in the outside expansion using the center of described Y tomographic image as the center of circle to a described circle;
Step 108: the average calculating all pixels of the inside of described annulus;
These location of pixels are labeled as the dust position of described annulus inside by step 109: judge that the inside of described annulus is less than the location of pixels of average described in described step 108;
Step 110: closed operation is done to the set of all dust position of the inside of described annulus;
Step 111: the ratio calculating the average of the pixel of the non-dust position of the inside of described annulus and the pixel of described dust position, this ratio is the attenuation coefficient of the described dust position of the inside of described annulus;
Step 112: make multiple annulus using the center of described Y tomographic image as the center of circle to described annulus outside expansion successively; Each time after external expansion annulus, repeating said steps 108, to described step 111, completes the mark of dust position and the calculating of attenuation coefficient of each annulus inside; Wherein, all dust position in described first image are the dust position of described camera lens, and each described dust position has corresponding attenuation coefficient;
Described image enhancement processes comprises:
Step 113: adopt described lens shooting to obtain other image, for each image, carries out YCbCr conversion, obtains the Y tomographic image of each image, Cb tomographic image and Cr tomographic image;
Step 114: be multiplied by the described attenuation coefficient of described dust position by the Y tomographic image of each image with the pixel of described dust position opposite position, thus obtain new Y tomographic image.
Preferably, after described step 114, also step 115 is comprised: described new Y tomographic image is converted to RGB image.
Preferably, described first image is rectangular; In described step 112, the radius of the outermost layer circle of described multiple annulus is greater than cornerwise half of described first image, and the radius of the circle adjacent with described outermost layer circle is less than cornerwise half of described first image.
Preferably, described closed operation comprises: corrosion treatment again of first expanding, and subsidiary details defect.
In order to achieve the above object, present invention also offers a kind of avoiding and produce the method at the dark angle of camera lens, the method processes the image taken by camera lens, and it comprises the mark of dust position and the computational process of attenuation coefficient and image enhancement processes, wherein,
The mark of described dust position and the computational process of attenuation coefficient comprise:
Step 201: adopt described lens shooting to obtain having first image of single color, YCbCr conversion is carried out to described first image, obtains Y tomographic image, Cb tomographic image and Cr tomographic image;
Step 202: make multiple concentric circles as the center of circle using the center of described Y tomographic image;
Step 203: the average calculating the inner all pixels of the circle of described multiple concentrically ringed inner side;
Step 204: described in judging, the round inside of inner side is less than the location of pixels of described average, the dust position of the circle inside of inner side described in these location of pixels are labeled as;
Step 205: the average calculating all pixels of each annulus inside in described multiple concentric circles;
Step 206: judge that each annulus inside is less than the location of pixels of corresponding average, and these location of pixels are labeled as the dust position of each annulus inside described; Wherein, all dust position in described first image are the dust position of described camera lens;
Step 207: closed operation is done to the set of all dust position;
Step 208: described in calculating respectively the circle of inner side inner with the attenuation coefficient of the described dust position of annulus inside described in each; Wherein, the calculating of attenuation coefficient comprises: the ratio of the pixel of the described dust position that the average of the pixel of the non-dust position that the circle of inner side is inner is inner with the circle of described inner side described in calculating, the attenuation coefficient of the most described dust position of the circle inside of inner side described in this ratio is; And calculating the average of pixel of non-dust position of a described annulus inside and the ratio of the pixel of the described dust position of annulus inside described in this, this ratio is the attenuation coefficient of the described dust position of described annulus inside;
Described image enhancement processes comprises:
Step 209: adopt described lens shooting to obtain other image, for each image, carries out YCbCr conversion, obtains the Y tomographic image of each image, Cb tomographic image and Cr tomographic image;
Step 210: be multiplied by the described attenuation coefficient of described dust position by the Y tomographic image of each image with the pixel of described dust position opposite position, thus obtain new Y tomographic image.
Preferably, after described step 210, also step 211 is comprised: described new Y tomographic image is converted to RGB image.
Preferably, described first image is rectangular; In described step 202, the radius of described multiple concentrically ringed outermost layer circle is greater than cornerwise half of described first image, and the radius of the circle adjacent with described outermost layer circle is less than cornerwise half of described first image.
Preferably, described closed operation comprises: corrosion treatment again of first expanding, and subsidiary details defect.
In order to achieve the above object, present invention also offers a kind of according to the above-mentioned system avoiding the method producing the dark angle of camera lens, process the image taken by camera lens, it comprises:
Computing module, for the average of calculating pixel, to carry out closed operation and calculates the attenuation coefficient corresponding with dust position to dust position;
Judge module, for judging the location of pixels of the average by being less than the pixel that described computing module calculates, these location of pixels are dust position;
Dust memory module, for storing the dust position that described judge module is judged;
Attenuation coefficient module, for storing the attenuation coefficient corresponding with dust position that described computing module calculates.
Preferably, described closed operation comprises: corrosion treatment again of first expanding, and subsidiary details defect.
The method and system avoiding camera lens to produce dark pixel of the present invention, take picture centre as work circle and the annulus in the center of circle, and, the dust position mark and the attenuation coefficient that carry out zones of different inside calculate, that is to say that circle dust position that is inner and different annular inside marks and attenuation coefficient calculates, thus the dust position in whole image is all labeled and each dust position has corresponding attenuation coefficient, then, take other image time, dust position be multiplied by corresponding attenuation coefficient be namely enhanced after image.Therefore, the present invention can strengthen the image of dust position on camera lens, avoids camera lens to produce dark angle.
Accompanying drawing explanation
Fig. 1 is that the camera lens of avoiding of a preferred embodiment of the present invention produces the schematic flow sheet of the method for dark pixel
Fig. 2 is the image procossing schematic diagram in the labeling process of the dust position of a preferred embodiment of the present invention
Fig. 3 is that the camera lens of avoiding of another preferred embodiment of the present invention produces the schematic flow sheet of the method for dark pixel
Fig. 4 is the image procossing schematic diagram in the labeling process of the dust position of a preferred embodiment of the present invention
Embodiment
For making content of the present invention clearly understandable, below in conjunction with Figure of description, content of the present invention is described further.Certain the present invention is not limited to this specific embodiment, and the general replacement known by those skilled in the art is also encompassed in protection scope of the present invention.
Usual camera lens inside can produce dust, and these dust position can make that captured image has block ambiguity, can produce the dark angle of camera lens, for this reason, the invention provides the system avoiding producing the dark angle of camera lens, comprising:
Computing module, for the average of calculating pixel, to carry out closed operation and calculates the attenuation coefficient corresponding with dust position to dust position;
Judge module, for judging the location of pixels of the average by being less than the pixel that computing module calculates, these location of pixels are dust position;
Dust memory module, for storing the dust position that judge module is judged;
Attenuation coefficient module, for storing the attenuation coefficient corresponding with dust position that computing module calculates.
Embodiment one
Below in conjunction with accompanying drawing 1-2 and specific embodiment, the present invention is described in further detail.It should be noted that, accompanying drawing all adopt simplify very much form, use non-ratio accurately, and only in order to object that is convenient, that clearly reach aid illustration the present embodiment.
In the present embodiment, refer to Fig. 1, provide a kind of avoiding to produce the method at the dark angle of camera lens, adopt said system to process the image taken by camera lens, it comprises the mark of dust position and the computational process of attenuation coefficient and image enhancement processes;
The mark of dust position and the computational process of attenuation coefficient comprise:
Step 101: adopt lens shooting to obtain first image with single color, YCbCr conversion is carried out to this first image, obtains Y tomographic image, Cb tomographic image and Cr tomographic image;
Concrete, YCbCr conversion is a kind of color space, and what Y tomographic image showed is lumen, and the concentration of light, Y layer has most of image information.What Cb tomographic image showed is blue intensity side-play amount composition, and what Cr tomographic image showed is red-color concentration side-play amount composition.Here, this first image has single color, and rectangular, refers to Fig. 2, if the length of rectangle is W, wide is H, and the center of rectangle is P (i0, j0).
Step 102: make a circle using the center of Y tomographic image as the center of circle;
Concrete, continue to consult Fig. 2, with center P (i0, j0) of rectangle for the center of circle, make a circle with radius d.
Step 103: the average calculating all pixels of the inside of this circle;
Concrete, adopt computing module to calculate the average m of all pixels in this circle region 0, the average m of all pixels 0be calculated as: the summation P of pixel value of all pixels in this circle region 0_ all is divided by the number P of all pixels in this circle region 0_ count;
These location of pixels are labeled as the dust position that this circle is inner by step 104: judge that the inside of this circle is less than the location of pixels of average;
Concrete, adopt judge module to judge to be less than average m in this circle region 0location of pixels, these location of pixels be this circle region in dust position; Then, these dust position store by dust memory module;
Step 105: closed operation is done to the set of all dust position of the inside of this circle;
Concrete, adopt computing module to carry out closed operation, corrosion treatment again of first expanding, and subsidiary details defect to each dust position in this circle region; That the concrete principle process that those skilled in the art can know repeats no more about closed operation; Closed operation is mathematically the result of corroding again that first expands, and the result of closed operation can the profile of level and smooth dust position, narrow breach can be coupled together and form elongated curved mouth, and the hole that packing ratio structural element is little; Such as, pixel comprises 0 pixel and 1 pixel, and expansion comprises: the border of each for bianry image 1 pixel coordinator is expanded one deck, fills the hole of border or 0 pixel inside; Corrosion comprises: the boundary point of each for bianry image 1 pixel coordinator is removed, thus reduces one deck, can extract bone information, remove burr, remove 0 isolated pixel.
Step 106: calculate the average of pixel of the non-dust position of the inside of this circle and the ratio of the pixel of dust position, this ratio is the attenuation coefficient of the dust position of the inside of this circle;
Concrete, adopt computing module to calculate the average m of the pixel of the non-dust position in this circle region 0_ new, if the pixel of certain dust position is P (i, j), then, calculates attenuation coefficient Y (i, the j)=m of this dust position 0_ new/P (i, j), and this attenuation coefficient is logged in attenuation coefficient module; According to same principle, calculate the attenuation coefficient of all dust position in this circle region.
Step 107: make an annulus to the expansion of the outside of this circle using the center of Y tomographic image as the center of circle;
Concrete, continue to consult Fig. 2, that is to say that the center of image is for making concentric circles outside this circle region, the center of circle with the center of circle of this circle, concentrically ringed radius d1 is greater than this radius of a circle d, thus expanding an annulus in this circle outside, d1-d is the thickness of this annulus, preferably, the thickness of this annulus is identical with this radius of a circle d, that is to say d1=2d;
Step 108: the average calculating all pixels of the inside of annulus;
Concrete, adopt computing module to calculate the average m of all pixels in this circle ring area 1, the average m of all pixels 1be calculated as: the summation P of the pixel value of all pixels in this circle ring area 1_ all is divided by the number P of pixels all in this circle ring area 1_ count;
Step 109: judge that the inside of annulus is less than the location of pixels of average in step 108, these location of pixels are labeled as the dust position of annulus inside;
Concrete, adopt judge module to judge to be less than average m in this circle ring area 1location of pixels, these location of pixels are the dust position in this circle ring area; Then, by dust memory module, these dust position are stored;
Step 110: closed operation is done to the set of all dust position of the inside of annulus;
Concrete, adopt computing module to carry out closed operation to each dust position in this circle ring area, corrosion treatment again of first expanding, and subsidiary details defect;
Step 111: the average of pixel of non-dust position and the ratio of the pixel of dust position that calculate the inside of annulus, this ratio is the attenuation coefficient of the dust position of the inside of annulus;
Concrete, adopt computing module to calculate the average m of the pixel of the non-dust position in this circle ring area 1_ new, if the pixel of certain dust position is P 1(i, j), then, calculates the attenuation coefficient Y of this dust position 1(i, j)=m 1_ new/P 1(i, j), and this attenuation coefficient is logged in attenuation coefficient module; According to same principle, calculate the attenuation coefficient of all dust position in this circle ring area.
Step 112: make multiple annulus using the center of Y tomographic image as the center of circle to the expansion of annulus outside successively; Each time after external expansion annulus, repeat step 108 to step 111, complete the mark of dust position and the calculating of attenuation coefficient of each annulus inside;
Concrete, then with the center of rectangle for the center of circle, to the multiple annulus of annulus outside expansion, preferably, until the radius of the border circle of outermost annulus is greater than the cornerwise half of rectangle (1/2* (h 2+ w 2)) till; The radius of the outermost layer circle of multiple annulus of final formation is greater than cornerwise half of this image, and the radius of the circle adjacent with outermost layer circle is less than cornerwise half of first image; These annulus and above-mentioned circle form concentric circles, and the thickness of each annulus is all identical with this radius of a circle d; For the annulus expanding formation each time, can the dust position in each circle ring area be marked according to the process of step 108 and step 111 and calculate the corresponding attenuation coefficient of dust position, repeat no more here; Wherein, all dust position in this image are the dust position of camera lens, and each dust position has corresponding attenuation coefficient.
Image enhancement processes comprises:
Step 113: adopt lens shooting to obtain other image, for each image, carry out YCbCr conversion, obtain the Y tomographic image of each image, Cb tomographic image and Cr tomographic image;
Concrete, the image obtained here can for single color, also can be multicolour.
Step 114: the attenuation coefficient of dust position will be multiplied by the Y tomographic image of each image with the pixel of dust position opposite position, thus obtain new Y tomographic image.
Concrete, if the pixel of the position corresponding to dust position in the Y tomographic image obtained is P_new, corresponding attenuation coefficient Y (i, j), pixel value P_enhance (i, the j)=P_new*Y after the new enhancing of dust position 1(i, j).
If captured image is multicolour, then can also comprise:
Step 115: new Y tomographic image is converted to RGB image.
Concrete, RGB image is converted to for Y tomographic image and can adopts prior art, repeat no more here.
Embodiment two
Below in conjunction with accompanying drawing 3-4 and specific embodiment, the present invention is described in further detail.It should be noted that, accompanying drawing all adopt simplify very much form, use non-ratio accurately, and only in order to object that is convenient, that clearly reach aid illustration the present embodiment.
In the present embodiment, refer to Fig. 3, provide a kind of avoiding to produce the method at the dark angle of camera lens, adopt said system to process the image taken by camera lens, it comprises the mark of dust position and the computational process of attenuation coefficient and image enhancement processes;
The mark of dust position and the computational process of attenuation coefficient comprise:
Step 201: adopt lens shooting to obtain first image with single color, YCbCr conversion is carried out to this first image, obtains Y tomographic image, Cb tomographic image and Cr tomographic image;
Concrete, YCbCr conversion is a kind of color space, and what Y tomographic image showed is lumen, and the concentration of light, Y layer has most of image information.What Cb tomographic image showed is blue intensity side-play amount composition, and what Cr tomographic image showed is red-color concentration side-play amount composition.Here, the first image has single color, and rectangular, refers to Fig. 4, if the length of rectangle is W, wide is H, and the center of rectangle is P (i0, j0).
Step 202: make multiple concentric circles as the center of circle using the center of Y tomographic image;
Concrete, please continue to refer to Fig. 4, formed concentric circles, preferably, until the radius of the border circle of outermost annulus is greater than the cornerwise half of rectangle (1/2* (h with the center of rectangle for P (i0, j0) outwards makes multiple circle for the center of circle 2+ w 2)) till; The radius of the multiple concentrically ringed outermost layer circle of final formation is greater than cornerwise half of this image, and the radius of the circle adjacent with outermost layer circle is less than cornerwise half of this image; It is identical that the thickness of each annulus is d, and preferably, the radius of a circle of inner side is also d;
Step 203: the average calculating the inner all pixels of the circle of multiple concentrically ringed inner side;
Concrete, the average m of all pixels in the round region adopting computing module to calculate concentrically ringed inner side 0, the average m of all pixels 0be calculated as: the summation P of pixel value of all pixels in this circle region 0_ all is divided by the number P of all pixels in this circle region 0_ count;
These location of pixels are labeled as the dust position of the circle inside of inner side by step 204: judge that the round inside of inner side is less than the location of pixels of average;
Concrete, adopt judge module to judge to be less than average m in this circle region 0location of pixels, these location of pixels be this circle region in dust position; Then, these dust position store by dust memory module;
Step 205: the average calculating all pixels of each annulus inside in multiple concentric circles;
Concrete, the computational methods for the average of all pixels in each circle ring area all can be adopted with the following method: adopt computing module to calculate the average m of all pixels in some circle ring areas k, this average m 1be calculated as: the summation P of the pixel value of all pixels in this circle ring area k_ all is divided by the number P of pixels all in this circle ring area k_ count;
Step 206: judge that each annulus inside is less than the location of pixels of corresponding average, and these location of pixels are labeled as the dust position of each annulus inside;
Concrete, the mark for the dust position in each circle ring area all can be adopted with the following method: employing judge module judges the average m being less than all pixels in this circle ring area in a circle ring area klocation of pixels, these location of pixels are the dust position in this circle ring area; Then, by dust memory module, these dust position are stored; Wherein, all dust position in this image are the dust position of camera lens;
Step 207: closed operation is done to the set of all dust position;
Concrete, adopt computing module to carry out closed operation, corrosion treatment again of first expanding to each dust position in the concentric circles round region of inner side and each circle ring area, and subsidiary details defect;
Step 208: calculate respectively the circle of inner side inner with the attenuation coefficient of the dust position of each annulus inside;
Concrete, attenuation coefficient is calculated respectively for zones of different, the calculating of attenuation coefficient comprises: the ratio of the average calculating the pixel of the non-dust position in the round region of inner side and the pixel of certain dust position in the round region of inner side, and this ratio is the attenuation coefficient of this dust position in the round region; And calculating the ratio of pixel of certain dust position in the average of pixel of the non-dust position in a circle ring area and this circle ring area, this ratio is the attenuation coefficient of this dust position in this circle ring area;
Such as, computing module is adopted to calculate the average m of the pixel of the non-dust position in circle region, concentrically ringed inner side 0_ new, if the pixel of certain dust position is P (i, j), then, calculates attenuation coefficient Y (i, the j)=m of this dust position 0_ new/P (i, j), and this attenuation coefficient is logged in attenuation coefficient module; According to same principle, calculate the attenuation coefficient of all dust position in this circle region; Computing module is adopted to calculate the average m of the pixel of the non-dust position in circle ring area one by one 1_ new, if the pixel of certain dust position is P 1(i, j), then, calculates the attenuation coefficient Y of this dust position 1(i, j)=m 1_ new/P 1(i, j), and this attenuation coefficient is logged in attenuation coefficient module; According to same principle, calculate the attenuation coefficient of all dust position in this circle ring area.
Image enhancement processes comprises:
Step 209: adopt lens shooting to obtain other image, for each image, carry out YCbCr conversion, obtain the Y tomographic image of each image, Cb tomographic image and Cr tomographic image;
Concrete, the image obtained here can for single color, also can be multicolour.
Step 210: the attenuation coefficient of dust position will be multiplied by the Y tomographic image of each image with the pixel of dust position opposite position, thus obtain new Y tomographic image.
Concrete, if the pixel of the position corresponding to dust position in the Y tomographic image obtained is P_new, corresponding attenuation coefficient Y (i, j), pixel value P_enhance (i, the j)=P_new*Y after the new enhancing of dust position 1(i, j).
If captured image is multicolour, then can also comprise:
Step 211: new Y tomographic image is converted to RGB image.
Concrete, RGB image is converted to for Y tomographic image and can adopts prior art, repeat no more here.
Although the present invention discloses as above with preferred embodiment; right described embodiment is citing for convenience of explanation only; and be not used to limit the present invention; those skilled in the art can do some changes and retouching without departing from the spirit and scope of the present invention, and the protection range that the present invention advocates should be as the criterion with described in claims.

Claims (10)

1. avoid producing the method at the dark angle of camera lens, the method processes the image taken by camera lens, it is characterized in that, comprises the mark of dust position and the computational process of attenuation coefficient and image enhancement processes, wherein,
The mark of described dust position and the computational process of attenuation coefficient comprise:
Step 101: adopt described lens shooting to obtain having first image of single color, YCbCr conversion is carried out to described first image, obtains Y tomographic image, Cb tomographic image and Cr tomographic image;
Step 102: make a circle using the center of described Y tomographic image as the center of circle;
Step 103: the average calculating all pixels of the inside of a described circle;
These location of pixels are labeled as the dust position that a described circle is inner by step 104: judge that the inside of a described circle is less than the location of pixels of described average;
Step 105: closed operation is done to the set of all dust position of the inside of a described circle;
Step 106: the ratio calculating the average of the pixel of the non-dust position of the inside of a described circle and the pixel of described dust position, this ratio is the attenuation coefficient of the described dust position of the inside of a described circle;
Step 107 a: annulus is made in the outside expansion using the center of described Y tomographic image as the center of circle to a described circle;
Step 108: the average calculating all pixels of the inside of described annulus;
These location of pixels are labeled as the dust position of described annulus inside by step 109: judge that the inside of described annulus is less than the location of pixels of average described in described step 108;
Step 110: closed operation is done to the set of all dust position of the inside of described annulus;
Step 111: the ratio calculating the average of the pixel of the non-dust position of the inside of described annulus and the pixel of described dust position, this ratio is the attenuation coefficient of the described dust position of the inside of described annulus;
Step 112: make multiple annulus using the center of described Y tomographic image as the center of circle to described annulus outside expansion successively; Each time after external expansion annulus, repeating said steps 108, to described step 111, completes the mark of dust position and the calculating of attenuation coefficient of each annulus inside; Wherein, all dust position in described first image are the dust position of described camera lens, and each described dust position has corresponding attenuation coefficient;
Described image enhancement processes comprises:
Step 113: adopt described lens shooting to obtain other image, for each image, carries out YCbCr conversion, obtains the Y tomographic image of each image, Cb tomographic image and Cr tomographic image;
Step 114: be multiplied by the described attenuation coefficient of described dust position by the Y tomographic image of each image with the pixel of described dust position opposite position, thus obtain new Y tomographic image.
2. the method avoiding the generation dark angle of camera lens according to claim 1, is characterized in that, after described step 114, also comprise step 115: described new Y tomographic image is converted to RGB image.
3. the method avoiding the generation dark angle of camera lens according to claim 1, it is characterized in that, described first image is rectangular; In described step 112, the radius of the outermost layer circle of described multiple annulus is greater than cornerwise half of described first image, and the radius of the circle adjacent with described outermost layer circle is less than cornerwise half of described first image.
4. the method avoiding the generation dark angle of camera lens according to claim 1, it is characterized in that, described closed operation comprises: corrosion treatment again of first expanding, and subsidiary details defect.
5. avoid producing the method at the dark angle of camera lens, the method processes the image taken by camera lens, it is characterized in that, comprises the mark of dust position and the computational process of attenuation coefficient and image enhancement processes, wherein,
The mark of described dust position and the computational process of attenuation coefficient comprise:
Step 201: adopt described lens shooting to obtain having first image of single color, YCbCr conversion is carried out to described first image, obtains Y tomographic image, Cb tomographic image and Cr tomographic image;
Step 202: make multiple concentric circles as the center of circle using the center of described Y tomographic image;
Step 203: the average calculating the inner all pixels of the circle of described multiple concentrically ringed inner side;
Step 204: described in judging, the round inside of inner side is less than the location of pixels of described average, the dust position of the circle inside of inner side described in these location of pixels are labeled as;
Step 205: the average calculating all pixels of each annulus inside in described multiple concentric circles;
Step 206: judge that each annulus inside is less than the location of pixels of corresponding average, and these location of pixels are labeled as the dust position of each annulus inside described; Wherein, all dust position in described first image are the dust position of described camera lens;
Step 207: closed operation is done to the set of all dust position;
Step 208: described in calculating respectively the circle of inner side inner with the attenuation coefficient of the described dust position of annulus inside described in each; Wherein, the calculating of attenuation coefficient comprises: the ratio of the pixel of the described dust position that the average of the pixel of the non-dust position that the circle of inner side is inner is inner with the circle of described inner side described in calculating, the attenuation coefficient of the most described dust position of the circle inside of inner side described in this ratio is; And calculating the average of pixel of non-dust position of a described annulus inside and the ratio of the pixel of the described dust position of annulus inside described in this, this ratio is the attenuation coefficient of the described dust position of described annulus inside;
Described image enhancement processes comprises:
Step 209: adopt described lens shooting to obtain other image, for each image, carries out YCbCr conversion, obtains the Y tomographic image of each image, Cb tomographic image and Cr tomographic image;
Step 210: be multiplied by the described attenuation coefficient of described dust position by the Y tomographic image of each image with the pixel of described dust position opposite position, thus obtain new Y tomographic image.
6. the method avoiding the generation dark angle of camera lens according to claim 5, is characterized in that, after described step 210, also comprise step 211: described new Y tomographic image is converted to RGB image.
7. the method avoiding the generation dark angle of camera lens according to claim 5, it is characterized in that, described first image is rectangular; In described step 202, the radius of described multiple concentrically ringed outermost layer circle is greater than cornerwise half of described first image, and the radius of the circle adjacent with described outermost layer circle is less than cornerwise half of described first image.
8. the method avoiding the generation dark angle of camera lens according to claim 5, it is characterized in that, described closed operation comprises: corrosion treatment again of first expanding, and subsidiary details defect.
9. the system avoiding the method producing the dark angle of camera lens to adopt described in claim 1 or 5, this system processes the image taken by camera lens, it is characterized in that, comprising:
Computing module, for the average of calculating pixel, to carry out closed operation and calculates the attenuation coefficient corresponding with dust position to dust position;
Judge module, for judging the location of pixels of the average by being less than the pixel that described computing module calculates, these location of pixels are dust position;
Dust memory module, for storing the dust position that described judge module is judged;
Attenuation coefficient module, for storing the attenuation coefficient corresponding with dust position that described computing module calculates.
10. the method avoiding the generation dark angle of camera lens according to claim 9, it is characterized in that, described closed operation comprises: corrosion treatment again of first expanding, and subsidiary details defect.
CN201510900051.4A 2015-12-08 2015-12-08 Avoid producing the method and system at the dark angle of camera lens Active CN105516694B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510900051.4A CN105516694B (en) 2015-12-08 2015-12-08 Avoid producing the method and system at the dark angle of camera lens

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510900051.4A CN105516694B (en) 2015-12-08 2015-12-08 Avoid producing the method and system at the dark angle of camera lens

Publications (2)

Publication Number Publication Date
CN105516694A true CN105516694A (en) 2016-04-20
CN105516694B CN105516694B (en) 2018-01-02

Family

ID=55724289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510900051.4A Active CN105516694B (en) 2015-12-08 2015-12-08 Avoid producing the method and system at the dark angle of camera lens

Country Status (1)

Country Link
CN (1) CN105516694B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106169178A (en) * 2016-06-30 2016-11-30 北京大学 A kind of method improving camera lens vignetting
WO2022082904A1 (en) * 2020-10-20 2022-04-28 诚瑞光学(深圳)有限公司 Lens smudge detection method, apparatus and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1897643A (en) * 2005-07-12 2007-01-17 凌阳科技股份有限公司 Method and system for correcting color-image bad point
US7292213B2 (en) * 2002-08-26 2007-11-06 Chi Mei Optoelectronics Corp. Method and device for repairing defective pixels of a liquid crystal display panel
CN101242542A (en) * 2008-02-26 2008-08-13 北京中星微电子有限公司 An image detection method and device
CN101352048A (en) * 2005-12-29 2009-01-21 安泰科技有限公司 Device of processing dead pixel
CN101588505A (en) * 2008-05-21 2009-11-25 英华达(南京)科技有限公司 The digital photographing apparatus of the bad point of the method for correcting dead pixel on digital camera device point and tool zero offset capability
CN101588447A (en) * 2008-05-23 2009-11-25 比亚迪股份有限公司 Method and system for correcting dead pixel points of images and image sensor
CN101668222A (en) * 2008-09-05 2010-03-10 北京巨数数字技术开发有限公司 Detection system and detection method for improving pixel uniformity of display screen
CN102640489A (en) * 2009-10-20 2012-08-15 苹果公司 System and method for detecting and correcting defective pixels in an image sensor
CN101739986B (en) * 2008-11-21 2013-08-14 Nlt科技股份有限公司 Liquid crystal display apparatus and method for restraining a bright point
CN103297717A (en) * 2012-02-22 2013-09-11 联咏科技股份有限公司 Self-adaption image processing method and relevant device thereof
CN103531140A (en) * 2013-10-18 2014-01-22 Tcl通讯(宁波)有限公司 Mobile terminal and method and system for repairing LCD (liquid crystal display) defective pixels

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7292213B2 (en) * 2002-08-26 2007-11-06 Chi Mei Optoelectronics Corp. Method and device for repairing defective pixels of a liquid crystal display panel
CN1897643A (en) * 2005-07-12 2007-01-17 凌阳科技股份有限公司 Method and system for correcting color-image bad point
CN101352048A (en) * 2005-12-29 2009-01-21 安泰科技有限公司 Device of processing dead pixel
CN101242542A (en) * 2008-02-26 2008-08-13 北京中星微电子有限公司 An image detection method and device
CN101588505A (en) * 2008-05-21 2009-11-25 英华达(南京)科技有限公司 The digital photographing apparatus of the bad point of the method for correcting dead pixel on digital camera device point and tool zero offset capability
CN101588447A (en) * 2008-05-23 2009-11-25 比亚迪股份有限公司 Method and system for correcting dead pixel points of images and image sensor
CN101668222A (en) * 2008-09-05 2010-03-10 北京巨数数字技术开发有限公司 Detection system and detection method for improving pixel uniformity of display screen
CN101739986B (en) * 2008-11-21 2013-08-14 Nlt科技股份有限公司 Liquid crystal display apparatus and method for restraining a bright point
CN102640489A (en) * 2009-10-20 2012-08-15 苹果公司 System and method for detecting and correcting defective pixels in an image sensor
CN103297717A (en) * 2012-02-22 2013-09-11 联咏科技股份有限公司 Self-adaption image processing method and relevant device thereof
CN103531140A (en) * 2013-10-18 2014-01-22 Tcl通讯(宁波)有限公司 Mobile terminal and method and system for repairing LCD (liquid crystal display) defective pixels

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106169178A (en) * 2016-06-30 2016-11-30 北京大学 A kind of method improving camera lens vignetting
CN106169178B (en) * 2016-06-30 2019-01-11 北京大学 A method of improving camera lens vignetting
WO2022082904A1 (en) * 2020-10-20 2022-04-28 诚瑞光学(深圳)有限公司 Lens smudge detection method, apparatus and device

Also Published As

Publication number Publication date
CN105516694B (en) 2018-01-02

Similar Documents

Publication Publication Date Title
US10154195B2 (en) Image joining apparatus, image pickup apparatus, image joining method, and image joining program
CN107590791B (en) Image enhancement method and image processing apparatus
US9538170B1 (en) Camera lens cleaning system and method of using same
TWI588757B (en) Edge detection system and methods
CN105303615A (en) Combination method of two-dimensional stitching and three-dimensional surface reconstruction of image
EP1499110A3 (en) Detecting and correcting red-eye in a digital-image
JP2013536601A5 (en)
CN107169973A (en) The background removal and synthetic method and device of a kind of image
CN106447602A (en) Image mosaic method and device
US9185270B2 (en) Ghost artifact detection and removal in HDR image creation using graph based selection of local reference
CN104182969A (en) Internal and external parameter calibration method of single-scanline camera
JP2015103001A5 (en)
US8737758B2 (en) Apparatus and method of reducing noise
CN105516694A (en) Method and system for avoiding dark corner of lens
CN104766276B (en) A kind of color cast correction based on color space
CN101197916A (en) Edge crispening color interpolation method based on gradient
CN109816738B (en) Stripe boundary extraction method based on coded structured light
CN104463812B (en) The method for repairing the video image by raindrop interference when shooting
US8953903B2 (en) Method of multi-frame image noise reduction
CN113780195A (en) Forest fire smoke root node detection method based on block extraction
JP2015037204A5 (en)
CN110619652B (en) Image registration ghost elimination method based on optical flow mapping repeated area detection
CN108062762A (en) A kind of method for tracking target based on Density Estimator
TWI411969B (en) Method and system for matching texture feature points in images
CN110060308B (en) Color constancy method based on light source color distribution limitation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant