WO2017043811A1 - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
WO2017043811A1
WO2017043811A1 PCT/KR2016/009833 KR2016009833W WO2017043811A1 WO 2017043811 A1 WO2017043811 A1 WO 2017043811A1 KR 2016009833 W KR2016009833 W KR 2016009833W WO 2017043811 A1 WO2017043811 A1 WO 2017043811A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
shading
determination range
achromatic
color
Prior art date
Application number
PCT/KR2016/009833
Other languages
French (fr)
Korean (ko)
Inventor
모리야츠요시
Original Assignee
삼성전자 주식회사
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
Priority claimed from JP2015177325A external-priority patent/JP6563751B2/en
Application filed by 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Priority to US15/758,208 priority Critical patent/US10491875B2/en
Publication of WO2017043811A1 publication Critical patent/WO2017043811A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • H04N5/16Circuitry for reinsertion of dc and slowly varying components of signal; Circuitry for preservation of black or white level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/73Colour balance circuits, e.g. white balance circuits or colour temperature control

Definitions

  • the present invention relates to an image processing apparatus and an image processing method.
  • Patent Document 1 Japanese Publication No. 2013-115571
  • Patent Document 2 Japanese Patent Application Laid-Open No. 2015-095811
  • Image processing apparatuses such as digital still cameras adjust the white balance to accurately reproduce the subject color regardless of the light source.
  • Patent Document 1 describes that an image processing apparatus estimates a light source illuminating a subject of a captured image, calculates reliability of the light source estimation, and corrects white balance of the captured image while suppressing color failure.
  • Patent document 2 also describes that the image processing apparatus corrects the white balance of the captured image.
  • the white balance can be appropriately corrected by the image processing apparatus according to the background art.
  • the image processing apparatus according to Patent Document 1 since the reliability of the light source estimation is accumulated and processed by a plurality of frames, color deterioration may not be suppressed immediately after starting the apparatus.
  • the present invention has been made to solve this problem, and an image processing apparatus and image processing method capable of correcting a white balance by appropriately estimating a light source illuminating a subject of the image using an image of a target to be corrected and suppressing color decay.
  • the purpose is to provide.
  • An image acquisition device includes an image acquisition unit for acquiring an image, and a control unit for storing in advance achromatic determination range for each shading intensity and determining achromatic determination range corresponding to the shading intensity of the acquired image as a color space. It is.
  • An image acquisition device includes a control unit for calculating a white balance gain based on a pixel value of a pixel having a color coordinate included in the determined achromatic color determination range, and correcting the white balance of the image using the calculated white balance gain. It is.
  • An image acquisition device includes a control unit for calculating a white balance gain based on a pixel value of a pixel having a color coordinate included in the determined achromatic color determination range, and correcting the white balance of the image using the calculated white balance gain. It is.
  • the image acquisition device includes a control unit that calculates the reliability of the shading estimation based on the flatness of the image and sets the predetermined achromatic determination range when the reliability is less than or equal to the predetermined value to the color space.
  • the image acquisition device selects a plurality of achromatic determination ranges, generates a second achromatic determination range based on the plurality of achromatic determination ranges, and when the object luminance of the image is within a predetermined range, the second achromatic determination range Is set to a color space as the achromatic color determination range.
  • the image acquisition device applies a plurality of shading estimation coefficients to an image, selects a shading estimation coefficient to correct the image, stores achromatic determination range for each shading estimation coefficient, and achromatic determination range corresponding to the selected shading estimation coefficient. It has a control unit for setting the.
  • An image acquisition device comprises a control unit for dividing an image into a plurality of blocks and calculating block statistical values of pixel values for each block, wherein the shading estimation coefficients have coefficient values corresponding to the blocks, respectively, and the block statistical values Selects a shading estimation coefficient for correcting the image by multiplying the coefficient and the coefficient value, calculates a color coordinate of the block, and calculates a white balance gain based on the block statistical value of the block having the color coordinate included in the set achromatic determination range. It is to be provided.
  • the image processing apparatus stores in advance a shading estimating unit for estimating the shading intensity of an image, an achromatic determination range for each shading intensity, and sets an achromatic determination range corresponding to the estimated shading intensity in a color space.
  • An image using a correction coefficient calculator that calculates a color coordinate of a pixel in the image, calculates a white balance gain based on a pixel value of a pixel having a color coordinate included in a set achromatic determination range, and the calculated white balance gain And a correction unit for correcting the white balance.
  • An image processing apparatus includes a shading estimating unit for calculating the reliability of the shading estimation based on the flatness of the image, and a light source color estimating unit for setting a predetermined achromatic determination range when the reliability is less than or equal to the predetermined value to the color space.
  • the image processing apparatus selects a plurality of achromatic determination ranges, generates a second achromatic determination range based on the plurality of achromatic determination ranges, and a second achromatic determination when the object luminance of the image is within a predetermined range. It is provided with the light source color estimation part which sets a range to a color space as an achromatic color judgment range.
  • An image processing apparatus includes a shading estimating unit for selecting a shading estimation coefficient for applying a plurality of shading estimation coefficients to an image and correcting the image, and storing an achromatic determination range for each shading estimation coefficient and corresponding to the selected shading estimation coefficient. And a light source color estimating unit that sets an achromatic color determination range.
  • the image processing apparatus further includes a statistical value calculating unit for dividing an image into a plurality of blocks and calculating block statistical values of pixel values for each block, wherein the shading estimation coefficients have coefficient values corresponding to the blocks, respectively. Selects a shading estimation coefficient that multiplies the block statistics with the coefficients to correct the image, and the correction coefficient calculator calculates the color coordinates of the block and based on the block statistical values of the block having the color coordinates included in the set achromatic determination range. And a shading estimator for calculating the white balance gain.
  • the image acquisition method stores the image acquisition step, the shading estimation step, the achromatic determination range for each shading intensity in advance, and achromatic color determination range corresponding to the shading intensity of the acquired image. It is to have a step to determine.
  • An image acquisition method comprises the steps of calculating a white balance gain based on a pixel value of a pixel having a color coordinate included in the determined achromatic color determination range, and correcting the white balance of the image using the calculated white balance gain.
  • the image acquisition method includes calculating a white balance gain based on a pixel value of a pixel having a color coordinate included in the determined achromatic determination range and correcting the white balance of the image using the calculated white balance gain.
  • Estimating the shading intensity of the image acquisition method includes calculating the reliability of the shading estimation based on the flatness of the image, and setting the achromatic determination range to the color space has a reliability less than or equal to a predetermined value. Setting the predetermined achromatic determination range as the color space.
  • the step of setting the achromatic determination range of the image acquisition method according to the present invention as the color space includes selecting a plurality of achromatic determination ranges when the object luminance of the image is within a predetermined range, and based on the plurality of achromatic determination ranges, the second achromatic color determination range. Generating a determination range; And setting the second achromatic determination range as the achromatic determination range as the color space.
  • Estimating the shading intensity of the image acquisition method includes applying a plurality of shading estimation coefficients to the image to select the shading estimation coefficient to correct the image, and setting the achromatic determination range to the color space. And storing the achromatic determination range for each shading estimation coefficient, and setting the achromatic determination range corresponding to the selected shading estimation coefficient.
  • the image acquisition method further comprises the step of dividing the image into a plurality of blocks and calculating block statistical values of pixel values for each block, wherein the shading estimation coefficients have coefficient values corresponding to the blocks, respectively, and the shading intensity Estimating includes selecting a shading estimation coefficient for multiplying the block statistical value and the coefficient value to correct the image, and calculating the white balance gain includes calculating a color coordinate of the block and setting the achromatic color determination. Calculating a white balance gain based on block statistical values of blocks having color coordinates included in the range.
  • the image processing method includes the steps of storing the achromatic determination range for each shading intensity, estimating the shading intensity of the image, setting the achromatic determination range corresponding to the estimated shading intensity as the color space, Calculating the color coordinate of the pixel in the image, calculating the white balance gain based on the pixel value of the pixel having the color coordinate included in the set achromatic determination range, and correcting the white balance of the image using the calculated white balance gain.
  • Estimating the shading intensity of the image processing method includes calculating the reliability of the shading estimation based on the flatness of the image, and setting the achromatic determination range to the color space has a reliability equal to or less than a predetermined value. Setting the predetermined achromatic determination range as the color space.
  • the step of setting the achromatic determination range of the image processing method according to the present invention as the color space includes selecting a plurality of achromatic determination ranges when the object luminance of the image is within a predetermined range, and based on the plurality of achromatic determination ranges, the second achromatic color determination range. Generating a determination range and setting the second achromatic determination range as the achromatic determination range to the color space.
  • Estimating the shading intensity of the image processing method includes applying a plurality of shading estimation coefficients to the image to select a shading estimation coefficient for correcting the image, and setting the achromatic determination range to the color space. And storing the achromatic determination range for each shading estimation coefficient, and setting the achromatic determination range corresponding to the selected shading estimation coefficient.
  • the image processing method has a step of dividing an image into a plurality of blocks, calculating block statistical values of pixel values for each block, and the shading estimation coefficients have coefficient values corresponding to the blocks, respectively, to estimate the shading intensity.
  • the step of multiplying the block statistics and the coefficient value to select the shading estimation coefficient for correcting the image, the step of calculating the white balance gain, the step of calculating the color coordinate of the block and the set achromatic color determination range Calculating a white balance gain based on the block statistic value of the block having the color coordinates included.
  • FIG. 1 is a block diagram showing the configuration of an image acquisition device 100 according to an embodiment.
  • FIG. 2 is a flowchart showing a processing procedure of an image acquisition method according to the embodiment.
  • FIG. 3 is a block diagram showing the configuration of a digital still camera 300 according to the embodiment.
  • FIG. 4 is a diagram for explaining color temperature and shading intensity of a representative light source.
  • FIG. 5 is a diagram showing a result of shading estimation of an image captured by a natural image photograph as a subject under each light source.
  • FIG. 6 is a flowchart showing a processing procedure of a normalization gain calculation method according to the embodiment.
  • FIG. 7 is a flowchart showing a processing procedure of a block weight Bw calculation method according to the embodiment.
  • FIG. 8 is a diagram for explaining a G level weight according to the embodiment.
  • FIG. 10 is a diagram for explaining a block weight Bw according to the embodiment.
  • FIG. 11 is a flowchart showing a processing procedure of an image processing method according to the embodiment.
  • FIG. 12 is a diagram for explaining a light source estimation method according to the embodiment.
  • the image acquisition device, the image processing device, the image acquisition method, and the image processing method according to the present embodiment estimate a light source that illuminates the subject from the shading intensity of the picked-up image by using a different shading intensity of the picked-up image according to the light source at the time of picking-up.
  • the color reduction judgment range when calculating the white balance gain is changed to suppress the color decay.
  • FIG. 1 is a block diagram illustrating a configuration of an image acquisition apparatus 100 according to an exemplary embodiment.
  • the image acquisition apparatus 100 may include an image acquisition unit 110 and a control unit 120.
  • the image acquisition device 100 may include, for example, a digital still camera that is an electronic imaging device.
  • the image acquisition unit 110 may include an image pickup device, and may form an image of a subject on an image pickup surface such as an image pickup device, and convert the image signal into digital signals by A / D conversion.
  • the controller 120 determines an achromatic determination range corresponding to the shading intensity of the image acquired through the image acquisition unit 110, and adjusts the white balance gain based on the pixel value of the pixel having the color coordinate included in the determined achromatic determination range.
  • the white balance of the image can be corrected using the calculated white balance gain.
  • FIG. 2 is a flowchart for describing a method of operating the image capturing apparatus 100 illustrated in FIG. 1, according to an exemplary embodiment.
  • the image obtaining unit 110 of the image obtaining apparatus 100 obtains an image. (Step S101)
  • control unit 120 of the image acquisition apparatus 100 determines the achromatic determination range corresponding to the shading intensity of the acquired image. (Step S102)
  • the controller 120 may calculate the reliability of the shading estimation based on the obtained flatness of the image, and set a predetermined achromatic determination range as the color space when the reliability is less than a predetermined value.
  • the controller 120 selects a plurality of the achromatic determination ranges, and generates a second achromatic determination range based on the plurality of achromatic determination ranges.
  • a second achromatic determination range can be set to the color space as the achromatic determination range.
  • the controller 120 selects a shading estimation coefficient for correcting the image by applying a plurality of shading estimation coefficients to an image, stores a colorless determination range for each shading estimation coefficient, and corresponds to the selected shading estimation coefficient.
  • An achromatic judgment range can be set.
  • the controller 120 of the image acquisition apparatus 100 may calculate the white balance gain based on the pixel value of the pixel having the color coordinate included in the determined achromatic color determination range. (Step S103)
  • the controller 120 may divide an image into a plurality of blocks, and calculate block statistical values of pixel values for each block. Shading estimation coefficients may have coefficient values corresponding to the blocks, respectively.
  • the control unit 120 multiplies the block statistic value with the coefficient value, selects a shading estimation coefficient for correcting the image, calculates a color coordinate of the block, and the block of the block having the color coordinate included in the set achromatic determination range.
  • the white balance gain may be calculated based on a statistical value.
  • the controller 120 may correct the white balance of the image by using the calculated white balance gain. (Step S104)
  • FIG. 3 is a block diagram showing the configuration of the digital still camera 300 according to the present embodiment.
  • the digital still camera 300 which is an electronic imaging device, includes a lens optical system 302, an imaging device 304, an AFE circuit 306, an image signal processing circuit 308, an image display unit 310, an image recording unit 312, and a driver. 314, a timing generator (TG) 316, an image block statistics circuit 318, a shading control unit 320, a shading correction coefficient storage unit 322, a white balance control unit 330, and the like.
  • TG timing generator
  • the lens optical system 302 has a lens, an iris, a shutter, and the like, and an image of a subject can be formed on the imaging surface of the imaging device 304.
  • the imaging element 304 is an image sensor such as a CCD or a CMOS, and an infrared cut filter (not shown) may be mounted on the lens optical system 302 side of the imaging element 304.
  • the image pickup device 304 can photoelectrically convert the subject image to acquire an image signal (RGB color signal).
  • the AFE circuit 306 can A / D convert an image signal acquired by the imaging element 304 and subjected to signal processing by a CDS circuit (not shown) to be a digital signal.
  • the image signal processing circuit 308 can perform demosaicing processing, edge emphasis processing, shading correction processing, white balance (WB) correction processing, gamma correction processing, and the like on the image signal output from the AFE circuit 306.
  • the image display unit 310 is a liquid crystal display (LCD) or the like, and can display an image signal subjected to various processes in the image signal processing circuit 308.
  • the image recording unit 312 can record an image signal subjected to various processes in the image signal processing circuit 308 as a memory.
  • the driver 314 may drive a lens, an iris, and a shutter of the lens optical system 302.
  • the timing generator 316 may generate timing for driving the imaging device 304.
  • the image block statistics circuit 318 divides the picked-up image region or the partial region of the picked-up image region of the image signal that has become a digital signal in the AFE circuit 306 into a grid to form a plurality of blocks, and calculates a block statistical value for each block. can do.
  • the image block statistics circuit 318 may calculate pixel integrated values for RGB or pixel average values for RGB in each block as block statistics.
  • the image block statistics circuit 318 can calculate the object luminance, that is, the average luminance of the captured image region.
  • the method of patent document 1 can be employ
  • the shading controller 320 may include a shading estimator 324, a shading correction coefficient calculator 326, and the like.
  • the shading estimating unit 324 estimates the shading intensity based on the block statistical value calculated by the image block statistics circuit 318 and the shading estimation coefficient stored in the shading correction coefficient storage unit 322, and estimates the shading suitable for the image. The coefficient can be selected.
  • shading estimation coefficients may be prepared for each light source and for each R value, G value, and B value.
  • the shading estimation coefficient may have a coefficient value for each block.
  • the shading estimation coefficient can be calculated using the image of the white chart image
  • a uniformly diffuse reflecting surface having a spectral reflectance of a standard white reflector or the like being constant over the target wavelength region and 90% or more.
  • the shading estimation coefficient for strongly correcting the R signal in the image periphery can be calculated.
  • a shading estimation coefficient for weakly correcting the R signal at the periphery of the image may be calculated.
  • the shading estimator 324 may calculate the reliability of the shading estimation.
  • the selected shading estimation coefficient and the calculated reliability of the shading estimation may be output to the white balance controller 330.
  • the shading correction coefficient calculation unit 326 selects the shading correction coefficient corresponding to the shading estimation coefficient selected by the shading estimation unit 324 from the shading correction coefficient storage unit 322, and the image signal processing circuit 308 selects the shading correction coefficient. Shading can be corrected.
  • shading correction coefficients may be prepared for each light source and for each R value, G value, and B value.
  • the shading correction coefficient may have a coefficient value for each pixel or for each of the plurality of pixels.
  • the shading correction coefficient storage unit 322 may store a set of shading estimation coefficients and shading correction coefficients for each light source such as sunlight, a light bulb, a fluorescent lamp, and the like. In most cases, the shading correction coefficient and the shading estimation coefficient are in a one-to-one set, but are not limited thereto.
  • the shading estimation coefficient and the shading correction coefficient may be calculated by an external device such as a PC.
  • the shading correction coefficients may be the same as the shading estimation coefficients and different from the shading estimation coefficients.
  • the white balance controller 330 may include a light source color estimator 332, a white balance correction coefficient calculator 334, and the like.
  • the light source color estimator 332 may estimate a light source or a light source color that illuminates a subject of the captured image based on the shading estimation result, and select and set an achromatic determination range that defines a color coordinate range on the color space.
  • the light source color estimating unit 332 stores the shading estimation coefficient, the light source (light source color), and the achromatic determination range in association with each other, and may select an achromatic determination range corresponding to the shading estimation coefficient selected by the shading estimation unit 324.
  • the light source color estimation part 332 may have the achromatic determination range memory
  • the white balance correction coefficient calculation unit 334 may convert the block statistical value calculated by the image block statistics circuit 318 into the color coordinates in the above-described color space.
  • the white balance gain is obtained by using the block statistical value of the block included in the achromatic determination range, that is, the block determined as achromatic. Can be calculated.
  • each component realized by the shading control part 320 and the white balance control part 330 is controlled by the computing device (not shown) which the shading control part 320 and the white balance control part 330 which are computers are equipped, for example. This can be achieved by executing a program.
  • the shading control unit 320 and the white balance control unit 330 can load the program stored in the storage unit (not shown) into the main storage device (not shown), and execute the program under the control of the computing device to realize it.
  • each component is not limited to software implemented by a program, and may be implemented by any combination of hardware, firmware, and software.
  • the program described above may be stored and supplied to a computer using various types of non-transitory computer readable medium.
  • the non-transitory computer readable medium may include a tangible storage medium having various types of entities.
  • non-transitory computer readable media examples include magnetic recording media (eg, flexible disks, magnetic tapes, hard disk drives), magneto-optical recording media (eg, magneto-optical disks), CD-ROMs (Read Only Memory), CD- R, CD-R / W, semiconductor memory (for example, mask ROM, programmable ROM (PROM), erasable PROM (EPROM), flash ROM, random access memory (RAM)).
  • magnetic recording media eg, flexible disks, magnetic tapes, hard disk drives
  • magneto-optical recording media eg, magneto-optical disks
  • CD-ROMs Read Only Memory
  • CD- R Compact Only Memory
  • CD-R / W semiconductor memory
  • semiconductor memory for example, mask ROM, programmable ROM (PROM), erasable PROM (EPROM), flash ROM, random access memory (RAM)
  • the program may be supplied to the shading control unit 320 and the white balance control unit 330 by various types of temporary computer readable medium.
  • Examples of transitory computer readable media may include electrical signals, optical signals, and electromagnetic waves.
  • the temporary computer readable medium can supply a program to a computer through a wired communication path such as wires and optical fibers or a wireless communication path.
  • FIG. 4 is a diagram for describing color temperature and shading intensity of a representative light source.
  • the horizontal axis represents color temperature and the vertical axis represents shading intensity.
  • the bulb has a low color temperature and daylight has a high color temperature.
  • fluorescent lamps and LEDs have a wide range of color temperatures: bulb color (L), white (W), and main white (N, D). For this reason, even if it has the same color temperature, it may be another light source, and it is difficult to estimate a light source from a color temperature.
  • shading intensity shading is strongly generated in a captured image in a light source such as a light bulb or a daylight containing a large amount of near infrared rays.
  • shading is weakly generated in the captured image in a light source such as a fluorescent lamp or an LED containing almost no near infrared light. For this reason, if the shading intensity of the picked-up image is within the interval ⁇ shown in Fig.
  • the light source is a light bulb, if it is within the interval ⁇ , it is a light bulb or a chief light, if it is within the interval ⁇ , it is a primary light, and if it is within the interval ⁇ , the shading of the captured image
  • the light source can be estimated from the intensity.
  • the light source can be estimated from the shading intensity of the captured image in this manner.
  • this correspondence between the shading intensity and the light source is not well established.
  • the corresponding relationship is not well established in the captured image when a plurality of light sources such as a light bulb and a fluorescent lamp are present or the subject is a blue sky or a red object under daylight.
  • FIG. 5 is a diagram showing a result of shading estimation of an image captured by a natural image photograph as a subject under each light source. Shading estimation results are obtained for images taken using 75 natural image photographs having various color schemes under four kinds of light sources (daylight, white fluorescent light, natural fluorescent light, and electric bulb) as subjects.
  • the horizontal axis represents the kind of shading estimation coefficient (number of shading estimation coefficient), and the vertical axis represents the number of images in which the shading estimation coefficient of the number is selected as a result of estimating the shading.
  • the shading estimation coefficient of the number 6 for the near 40 images can be selected as appropriate to correct the shading of the image.
  • hatching is attached
  • the shading estimation coefficient of No. 1 corrects the shading most appropriately for an image photographed with a white plate under a white fluorescent lamp
  • the hatching of the shading estimation coefficient of No. 1 is hatched. have.
  • the shading estimation coefficient of No. 2 properly corrects the shading of the image, and therefore hatching is given to the bar of the estimation coefficient of No. 2.
  • FIG. 5 since the shading estimation coefficient of No. 7 corrects the shading most appropriately for the image of the white plate photographed under the bulb, the hatching of the shading estimation coefficient of No. 7 is given.
  • the shading estimation result matches the shading estimation result of the image picked up the white plate as the reliability of the shading estimation result, the light source can be estimated more appropriately.
  • the shading estimation unit 324 may calculate the reliability of the shading estimation result.
  • the shading estimating unit 324 uses the result of multiplying the block statistical values of the image of the target to be corrected by the white balance by the coefficient values of the shading estimation coefficients (hereinafter, referred to as "shading estimation initial coefficients") for the lowest shading correction. Normalization gain is calculated, the block color evaluation value Hb is calculated using the normalization gain, and the block weight Bw is calculated using the block color evaluation value Hb and the G level weight. have.
  • FIG. 6 is a flowchart showing the processing procedure of the normalization gain calculation method according to the present embodiment.
  • the shading estimator 324 may reduce the shading of the target image and calculate the normalization gain by multiplying the block statistic before shading correction by the coefficient value of the initial coefficient of shading to normalize the R, G, and B values of the block to be evaluated. have.
  • the block detection data can be multiplied by the shading estimation initial coefficient (step S201).
  • the block statistics values are Ri, Gi, and Bi
  • the coefficient values of the shading estimation initial coefficients are Nr, Ng, and Nb
  • the block statistics values Rn (N, M) and Gn (N after multiplying the shading estimation initial coefficients , M), and Bn (N, M)) are represented by the formula (1).
  • the block statistical values (Rn (N, M), Gn (N, M), Bn (N, M)) after multiplying the shading estimation initial coefficients are integrated as a whole block (steps S202, S203), and the block statistics Normalization gain can be calculated from the ratio of values.
  • the normalization gain of the G pixel is set to 1.0, and the normalization gain of the R pixel and the B pixel can be obtained.
  • the normalization gain can be obtained by using Equation (2).
  • step S204, S207 it is determined whether the integrated value of Rn (N, M) or Bn (N, M) is 0 (steps S204, S207), and when 0, normalization gain R / Average Gain B of R pixels or B pixels. ) Can be set to 1.0 (steps S206, S209).
  • the value can be set (steps S205 and S208).
  • the normalized gain of the R pixel or the B pixel can be clipped with the upper limit to the value of the normalization gain upper limit (R, B) (it can be set as the upper limit).
  • FIG. 7 is a flowchart showing the processing procedure of the block weight Bw calculation method according to the present embodiment.
  • the shading estimating unit 324 may calculate the G level weight for the purpose of excluding a block near the dark portion or the saturation from the evaluation target (step S210).
  • FIG. 8 is a diagram for explaining a G level weight according to the present embodiment.
  • the G level weight refers to a block between the upper and lower threshold values set in advance by referring to the level of the G value of the block statistical value after multiplying the block data by the shading estimation coefficient to 1.0, and to a block outside the threshold range to 0.0. can do.
  • a block out of a range in which any one of an R pixel value, a G pixel value, and a B pixel value is preset may be excluded from the evaluation target block.
  • the block color evaluation value Hb of all the blocks can be calculated (step S211).
  • the normalized gain is multiplied by the block statistical values (Gn (N, M), Bn (N, M)) after multiplying the initial shading estimation coefficients obtained in Equations (1) and (2).
  • the block color evaluation value Hb (N, M) can be calculated.
  • a histogram of the block color evaluation value Hb is generated (step S212), and the histogram weight can be calculated for the purpose of excluding blocks separated from the mode (steps S213 to S215 and S217).
  • the mode of the histogram is searched (step S213), and for each block, it is determined whether the block color evaluation value Hb is within the valid range from the histogram mode (step S214), and is within the valid range as shown in FIG.
  • the block weight Bw may be generated by multiplying the G level weight and the histogram weight (step S216).
  • the block weight Bw of the image peripheral block may be one.
  • steps S214 to S2128 can be repeated to calculate the block weight Bw for the entire block.
  • the captured image may be an image in which a subject having the same color distribution exists in a large area. For example, the determination may be made using the degree of dispersion of all block statistics.
  • the picked-up image may be determined to be an image having a large area of the same color distribution. Can be.
  • the probability of the shading estimation result can be obtained in this way and the probability of the light source estimation can be obtained.
  • FIG. 11 is a flowchart showing the processing procedure of the image processing method according to the present embodiment.
  • the image block statistics circuit 318 can calculate the subject luminance, the block statistics value, and the like of the picked-up image as described above.
  • the shading estimating unit 324 can estimate the shading of the captured image using the block statistics value, the shading estimation coefficient, and the like (step S10).
  • the processing method described in patent document 2, Unexamined-Japanese-Patent No. 2013-198041, etc. can be employ
  • the shading estimator 324 may output a shading estimation coefficient suitable for the captured image, a reliability of the shading estimation result, and the like as a result of the shading estimation.
  • the light source color estimating unit 332 may estimate the light source based on the object brightness, the result of the shading estimation, and the like, and select and set the achromatic color determination range (step S20).
  • the light source color estimating unit 332 previously stores a table indicating the relationship between the object luminance, the shading estimation coefficient number, and the estimated light source as shown in FIG.
  • a mark indicates an option when the shading estimation reliability is low. The larger the shading estimation coefficient number is, the more strongly the shading of the image can be corrected in response to the image with the higher shading intensity.
  • Fig. 13 is a diagram illustrating the achromatic color determination range for each of the estimated light sources according to the present embodiment. The color coordinate range of the achromatic determination range for each estimated light source set in the G / R-G / B color space is shown.
  • the light source color estimating unit 332 may estimate the light source with reference to the table shown in FIG. 12, and select the achromatic color determination range shown in FIG. 13.
  • the light source color estimator 332 estimates that the light source is sunlight + light bulb HL when the subject luminance is low, the shading estimation coefficient selected as a result of the shading estimation is number 5, and the reliability of the shading estimation is high. As a colorless determination range, the one corresponding to sunlight + light bulb (HL) can be selected.
  • the light source color estimating unit 332 estimates that the light source is the entire light source A regardless of the shading estimation result when the subject luminance is low, the shading estimation coefficient of the shading estimation result is number 5, and the reliability of the shading estimation is low. (A) corresponding to all the light sources can be selected as the achromatic color determination range.
  • the light source color estimating unit 332 has a brightness of the subject, the shading estimation coefficient of the shading estimation result is number 5, and when the reliability of the shading estimation is high, the light source is sunlight + light bulb HL or sunlight H. It is estimated that the achromatic color determination range corresponds to sunlight + light bulb (HL) and sunlight (H), that is, two ranges.
  • the light source color estimating unit 332 estimates that the light source is sunlight (H) irrespective of the result of shading estimation and the reliability of the shading estimation when the object luminance is high, and corresponds to sunlight as an achromatic determination range (H). Can be selected.
  • the brightness of the subject can be determined, for example, low brightness, medium brightness, and high brightness with respect to 4.0 and 8.0 of the Bv value (Brightness value).
  • the light source color estimating unit 332 generates a new range (hereinafter referred to as a "second achromatic determination range") using these ranges when the object luminance is the medium luminance and two achromatic determination ranges are selected in step S20. (Step S30).
  • step S20 a method of generating a second achromatic determination range S when selecting a fluorescent lamp, an M corresponding to an LED, and an H corresponding to sunlight (H) is selected as the achromatic determination range.
  • a plurality of corresponding points a1 to a6 and corresponding points b1 to b6 are defined in advance on the boundary between the two achromatic determination ranges M and H, and the interpolation points between the corresponding points according to the subject luminance (Bv value) ( c1 to c6), and the second achromatic determination range can be generated by connecting the interpolation points c1 to c6 with lines.
  • the interpolation point c1 is generated on the side near the corresponding point a1 of the achromatic determination range M on the low luminance side, and the subject If the luminance is close to the high luminance side, that is, the Bv value is close to 8, the interpolation point c1 can be generated on the side near the corresponding point b1 of the achromatic color determination range H on the high luminance side.
  • the interpolation point c1 may be generated at a position where the correspondence point a1 and the correspondence point b1 are internally 1: 3.
  • the process of generating the second achromatic determination range by connecting the interpolation points with a line can be simplified.
  • the white balance correction coefficient calculation unit 334 calculates the color coordinates for each block, determines whether the color coordinates fall within the achromatic determination range selected in step S20 or the second achromatic determination range generated in step S30, so that the color coordinates are achromatic.
  • the block included in the determination range or the second achromatic determination range may be determined to be achromatic, and the white balance gain may be calculated using the achromatic block (step S40).
  • the calculation method itself of the white balance gain can be used using the calculation method of the prior art. For example, you may calculate a white balance gain based on the pixel average value of the block (achromatic block) considered to be a light source color.
  • the white balance gain calculated by the white balance correction coefficient calculation unit 334 is input to the image signal processing circuit 308, and white balance correction can be performed by the image signal processing circuit 308.
  • the image processing apparatus or the image processing method according to the present embodiment estimates the light source that illuminates the subject from the shading intensity of the captured image by using a different shading intensity of the captured image according to the light source at the time of imaging, and then obtains the white balance gain.
  • the color reduction judgment range at the time of calculation is changed to suppress the color decay.
  • the light source is estimated according to the type of the shading estimation coefficient and the achromatic determination range set for each light source is selected, but the achromatic determination range is set for each type of the shading estimation coefficient.
  • the achromatic determination range may be selected according to the type of the shading estimation coefficient. In other words, the procedure for estimating the light source may be omitted.
  • the shading intensity is estimated according to the type of the shading estimation coefficient, but the ratio of the pixel value at the center of the captured image to the pixel value at the periphery of the image, or the image
  • the shading intensity may be estimated from the ratio of the block statistics at the center and the block statistics at the periphery of the image.
  • an estimated light source or an achromatic determination range is set in advance for each range of the ratio of the pixel values or for each ratio of the ratio of the block statistical values, and the achromatic determination range is selected according to the ratio of the measured pixel values or the ratio of the block statistical values. It can be done.
  • the light source is estimated and the achromatic determination range is selected using the subject luminance, the result of the shading estimation, and the reliability of the shading estimation.
  • the result of the shading estimation without using the reliability of the subject luminance and the shading estimation Only the light source may be used to estimate the achromatic determination range. That is, the type of the shading estimation coefficient, the estimated light source and the achromatic determination range may be stored in association with each other, and the light source may be estimated and the achromatic determination range may be selected based on the type of the selected shading estimation coefficient.
  • the achromatic determination range is set using the G / RG / B color space, but a different color space may be used, and the achromatic determination range according to the color space may be used. May be set.
  • the color coordinates are calculated for each block and determined to be included in the achromatic color determination range, thereby calculating the white balance gain.
  • the color coordinates are calculated for each pixel, and the color coordinates of the pixel are achromatic color determination range.
  • the white balance gain may be calculated using the pixel value by determining whether it is included in the. In other words, instead of processing each step of the image processing in units of blocks, the processing may be performed in units of pixels.
  • the two achromatic determination ranges are generated and set by selecting two achromatic determination ranges when the subject luminance is the medium luminance, but by selecting two or more achromatic determination ranges,
  • the second achromatic determination range may be generated, or one achromatic determination range may be selected and set.
  • the digital still camera 300 stores in advance the shading estimating unit 324 for estimating the shading intensity of the image and the achromatic determination range for each shading intensity, and corresponds to the estimated shading intensity.
  • the correction coefficient calculation unit 334 and the image signal processing circuit 308 for correcting the white balance of the image using the calculated white balance gain are provided.
  • the digital still camera 300 calculates the reliability of the shading estimation based on the flatness of the image by the shading estimating unit 324, and the light source color estimation unit 332 has the reliability lower than or equal to the predetermined value. It is preferable to set a predetermined achromatic determination range as the color space.
  • the light source color estimating unit 332 selects a plurality of achromatic determination ranges when the object brightness of the image is within a predetermined range, and based on the plurality of achromatic determination ranges, It is preferable to generate an achromatic determination range and set the second achromatic determination range as the colorless determination range to the color space.
  • the white achromatic determination range can be set more appropriately as the second achromatic determination range, and the white balance gain can be calculated with higher accuracy.
  • the shading estimating unit 324 applies a plurality of shading estimation coefficients to the image to select the shading estimation coefficient to properly correct the image, and the light source color estimation unit 332 It is preferable to store the achromatic determination range for each shading estimation coefficient and to set the achromatic determination range corresponding to the selected shading estimation coefficient.
  • the digital still camera 300 further includes an image block statistics circuit 318 for dividing an image into a plurality of blocks and calculating block statistical values for which the pixel values are statistically calculated for each block, and the shading estimation
  • the coefficients each have a coefficient value corresponding to the block
  • the shading estimator 324 multiplies the block statistics with the coefficient value and selects the shading estimation coefficients to properly correct the image
  • the correction coefficient calculator 334 selects the It is preferable to calculate a color coordinate and calculate a white balance gain based on the block statistical value of the block which has a color coordinate contained in the set achromatic determination range.
  • the image processing method sets a color space for storing the achromatic determination range for each shading intensity, step S10 for estimating the shading intensity of the image, and achromatic determination range corresponding to the estimated shading intensity. And calculating the white balance gain based on the pixel coordinates of the pixels having the color coordinates included in the set achromatic determination range, and calculating the color coordinates of the pixels in the image. To correct the white balance of the image.

Abstract

The present invention pertains to an image processing apparatus for correcting white balance by properly estimating a light source and suppressing a color failure, and an image processing method, the image processing apparatus comprising: a shading estimation unit for estimating the shading intensity of an image; a light source color estimation unit for configuring, by a color space, an achromatic color determination range corresponding to the estimated shading intensity; a correcting coefficient calculation unit for calculating a white balance gain; and an image signal processing circuit for correcting the white balance.

Description

화상 처리 장치 및 화상 처리 방법Image processing apparatus and image processing method
본 발명은 화상 처리 장치 및 화상 처리 방법에 관한 것이다.The present invention relates to an image processing apparatus and an image processing method.
(선행기술문헌)(Prior art document)
공개특허 2013-115571호 공보 (특허문헌 1)Publication No. 2013-115571 (Patent Document 1)
일본본공개특허 2015-095811호 공보 (특허문헌 2)Japanese Patent Application Laid-Open No. 2015-095811 (Patent Document 2)
디지털 스틸 카메라 등의 화상 처리 장치는 광원에 관계없이 피사체 색을 정확히 재현할 수 있도록 화이트 밸런스를 조정한다. 예를 들어 특허문헌 1에는 화상 처리 장치가 촬상 화상의 피사체를 비추는 광원을 추정하고, 광원 추정의 신뢰도를 산출하여 색 감퇴 (color failure)를 억제하면서 촬상 화상의 화이트 밸런스를 보정하는 것이 기재되어 있다. 또한, 특허문헌 2에도 화상 처리 장치가 촬상 화상의 화이트 밸런스를 보정하는 것이 기재되어 있다.Image processing apparatuses such as digital still cameras adjust the white balance to accurately reproduce the subject color regardless of the light source. For example, Patent Document 1 describes that an image processing apparatus estimates a light source illuminating a subject of a captured image, calculates reliability of the light source estimation, and corrects white balance of the captured image while suppressing color failure. . Patent document 2 also describes that the image processing apparatus corrects the white balance of the captured image.
배경기술에 관한 화상 처리 장치에 의해 화이트 밸런스를 적절히 보정할 수 있다. 그러나, 특허문헌 1에 관한 화상 처리 장치에서는 광원 추정의 신뢰도를 복수 프레임만큼 축적하여 처리하기 때문에 장치의 기동 직후 등에는 색 감퇴를 억제할 수 없는 경우가 있었다.The white balance can be appropriately corrected by the image processing apparatus according to the background art. However, in the image processing apparatus according to Patent Document 1, since the reliability of the light source estimation is accumulated and processed by a plurality of frames, color deterioration may not be suppressed immediately after starting the apparatus.
본 발명은 이러한 문제를 해결하기 위해 이루어진 것으로, 보정할 대상의 화상을 이용하여 그 화상의 피사체를 비추는 광원을 적절히 추정하고 색 감퇴를 억제하여 화이트 밸런스를 보정할 수 있는 화상 처리 장치 및 화상 처리 방법을 제공하는 것을 목적으로 한다.SUMMARY OF THE INVENTION The present invention has been made to solve this problem, and an image processing apparatus and image processing method capable of correcting a white balance by appropriately estimating a light source illuminating a subject of the image using an image of a target to be corrected and suppressing color decay. The purpose is to provide.
본 발명에 관한 화상 획득 장치는 화상을 획득하는 화상 획득부와, 셰이딩 강도마다의 무채색 판정 범위를 미리 기억하고, 획득한 화상의 셰이딩 강도에 대응하는 무채색 판정 범위를 색공간으로 결정하는 제어부를 구비하는 것이다.An image acquisition device according to the present invention includes an image acquisition unit for acquiring an image, and a control unit for storing in advance achromatic determination range for each shading intensity and determining achromatic determination range corresponding to the shading intensity of the acquired image as a color space. It is.
본 발명에 관한 화상 획득 장치는 결정한 무채색 판정 범위에 포함되는 색좌표를 갖는 화소의 화소값에 기초하여 화이트 밸런스 게인을 산출하고, 산출한 화이트 밸런스 게인을 이용하여 화상의 화이트 밸런스를 보정하는 제어부를 구비하는 것이다.An image acquisition device according to the present invention includes a control unit for calculating a white balance gain based on a pixel value of a pixel having a color coordinate included in the determined achromatic color determination range, and correcting the white balance of the image using the calculated white balance gain. It is.
본 발명에 관한 화상 획득 장치는 결정한 무채색 판정 범위에 포함되는 색좌표를 갖는 화소의 화소값에 기초하여 화이트 밸런스 게인을 산출하고, 산출한 화이트 밸런스 게인을 이용하여 화상의 화이트 밸런스를 보정하는 제어부를 구비하는 것이다.An image acquisition device according to the present invention includes a control unit for calculating a white balance gain based on a pixel value of a pixel having a color coordinate included in the determined achromatic color determination range, and correcting the white balance of the image using the calculated white balance gain. It is.
본 발명에 관한 화상 획득 장치는 화상의 평탄도에 기초하여 셰이딩 추정의 신뢰도를 산출하고, 신뢰도가 소정값 이하였을 때의 소정의 무채색 판정 범위를 색공간으로 설정하는 제어부를 구비하는 것이다.The image acquisition device according to the present invention includes a control unit that calculates the reliability of the shading estimation based on the flatness of the image and sets the predetermined achromatic determination range when the reliability is less than or equal to the predetermined value to the color space.
본 발명에 관한 화상 획득 장치는 화상의 피사체 휘도가 소정의 범위 내일 때, 복수의 무채색 판정 범위를 선택하고, 복수의 무채색 판정 범위에 기초하여 제2 무채색 판정 범위를 생성하며, 제2 무채색 판정 범위를 무채색 판정 범위로서 색공간으로 설정하는 제어부를 구비하는 것이다.The image acquisition device according to the present invention selects a plurality of achromatic determination ranges, generates a second achromatic determination range based on the plurality of achromatic determination ranges, and when the object luminance of the image is within a predetermined range, the second achromatic determination range Is set to a color space as the achromatic color determination range.
본 발명에 관한 화상 획득 장치는 화상에 복수의 셰이딩 추정 계수를 적용하여 화상을 보정하는 셰이딩 추정 계수를 선택하고, 셰이딩 추정 계수마다 무채색 판정 범위를 기억하고, 선택한 셰이딩 추정 계수에 대응하는 무채색 판정 범위를 설정하는 제어부를 구비하는 것이다.The image acquisition device according to the present invention applies a plurality of shading estimation coefficients to an image, selects a shading estimation coefficient to correct the image, stores achromatic determination range for each shading estimation coefficient, and achromatic determination range corresponding to the selected shading estimation coefficient. It has a control unit for setting the.
본 발명에 관한 화상 획득 장치는 화상을 복수의 블록으로 분할하고, 블록마다 화소값의 블록 통계값을 산출하는 제어부를 구비하고, 셰이딩 추정 계수는 블록에 각각 대응하는 계수값을 가지며, 블록 통계값과 계수값을 곱셈하여 화상을 보정하는 셰이딩 추정 계수를 선택하고, 블록의 색좌표를 산출하고, 설정한 무채색 판정 범위에 포함되는 색좌표를 갖는 블록의 블록 통계값에 기초하여 화이트 밸런스 게인을 산출하는 제어부를 구비하는 것이다.An image acquisition device according to the present invention comprises a control unit for dividing an image into a plurality of blocks and calculating block statistical values of pixel values for each block, wherein the shading estimation coefficients have coefficient values corresponding to the blocks, respectively, and the block statistical values Selects a shading estimation coefficient for correcting the image by multiplying the coefficient and the coefficient value, calculates a color coordinate of the block, and calculates a white balance gain based on the block statistical value of the block having the color coordinate included in the set achromatic determination range. It is to be provided.
본 발명에 관한 화상 처리 장치는 화상의 셰이딩 강도를 추정하는 셰이딩 추정부와, 셰이딩 강도마다의 무채색 판정 범위를 미리 기억하고, 추정된 셰이딩 강도에 대응하는 무채색 판정 범위를 색공간에 설정하는 광원색 추정부와, 화상 중의 화소의 색좌표를 산출하고, 설정된 무채색 판정 범위에 포함되는 색좌표를 갖는 화소의 화소값에 기초하여 화이트 밸런스 게인을 산출하는 보정 계수 산출부와, 산출된 화이트 밸런스 게인을 이용하여 화상의 화이트 밸런스를 보정하는 보정부를 구비하는 것이다.The image processing apparatus according to the present invention stores in advance a shading estimating unit for estimating the shading intensity of an image, an achromatic determination range for each shading intensity, and sets an achromatic determination range corresponding to the estimated shading intensity in a color space. An image using a correction coefficient calculator that calculates a color coordinate of a pixel in the image, calculates a white balance gain based on a pixel value of a pixel having a color coordinate included in a set achromatic determination range, and the calculated white balance gain And a correction unit for correcting the white balance.
본 발명에 관한 화상 처리 장치는 화상의 평탄도에 기초하여 셰이딩 추정의 신뢰도를 산출하는 셰이딩 추정부, 신뢰도가 소정값 이하였을 때의 소정의 무채색 판정 범위를 색공간으로 설정하는 광원색 추정부를 구비하는 것이다.An image processing apparatus according to the present invention includes a shading estimating unit for calculating the reliability of the shading estimation based on the flatness of the image, and a light source color estimating unit for setting a predetermined achromatic determination range when the reliability is less than or equal to the predetermined value to the color space. will be.
본 발명에 관한 화상 처리 장치는 화상의 피사체 휘도가 소정의 범위 내일 때, 복수의 무채색 판정 범위를 선택하고, 복수의 무채색 판정 범위에 기초하여 제2 무채색 판정 범위를 생성하고, 및 제2 무채색 판정 범위를 무채색 판정 범위로서 색공간으로 설정하는 광원색 추정부를 구비하는 것이다.The image processing apparatus according to the present invention selects a plurality of achromatic determination ranges, generates a second achromatic determination range based on the plurality of achromatic determination ranges, and a second achromatic determination when the object luminance of the image is within a predetermined range. It is provided with the light source color estimation part which sets a range to a color space as an achromatic color judgment range.
본 발명에 관한 화상 처리 장치는 화상에 복수의 셰이딩 추정 계수를 적용하여 화상을 보정하는 셰이딩 추정 계수를 선택하는 셰이딩 추정부, 및 셰이딩 추정 계수마다 무채색 판정 범위를 기억하고, 선택한 셰이딩 추정 계수에 대응하는 무채색 판정 범위를 설정하는 광원색 추정부를 구비하는 것이다.An image processing apparatus according to the present invention includes a shading estimating unit for selecting a shading estimation coefficient for applying a plurality of shading estimation coefficients to an image and correcting the image, and storing an achromatic determination range for each shading estimation coefficient and corresponding to the selected shading estimation coefficient. And a light source color estimating unit that sets an achromatic color determination range.
본 발명에 관한 화상 처리 장치는 화상을 복수의 블록으로 분할하고, 블록마다 화소값의 블록 통계값을 산출하는 통계값 산출부를 더 구비하고, 셰이딩 추정 계수는 블록에 각각 대응하는 계수값을 가지며, 블록 통계값과 계수값을 곱셈하여 화상을 보정하는 셰이딩 추정 계수를 선택하고, 보정 계수 산출부는 블록의 색좌표를 산출하고, 설정한 무채색 판정 범위에 포함되는 색좌표를 갖는 블록의 블록 통계값에 기초하여 화이트 밸런스 게인을 산출하는 셰이딩 추정부를 구비하는 것이다.The image processing apparatus according to the present invention further includes a statistical value calculating unit for dividing an image into a plurality of blocks and calculating block statistical values of pixel values for each block, wherein the shading estimation coefficients have coefficient values corresponding to the blocks, respectively. Selects a shading estimation coefficient that multiplies the block statistics with the coefficients to correct the image, and the correction coefficient calculator calculates the color coordinates of the block and based on the block statistical values of the block having the color coordinates included in the set achromatic determination range. And a shading estimator for calculating the white balance gain.
또한, 본 발명에 관한 화상 획득 방법은 화상을 획득하는 단계와, 셰이딩 추정하는 단계와, 셰이딩 강도마다의 무채색 판정 범위를 미리 기억하고, 획득한 화상의 셰이딩 강도에 대응하는 무채색 판정 범위를 색공간으로 결정하는 단계를 갖는 것이다.In addition, the image acquisition method according to the present invention stores the image acquisition step, the shading estimation step, the achromatic determination range for each shading intensity in advance, and achromatic color determination range corresponding to the shading intensity of the acquired image. It is to have a step to determine.
본 발명에 관한 화상 획득 방법은 결정한 무채색 판정범위에 포함되는 색좌표를 갖는 화소의 화소값에 기초하여 화이트 밸런스 게인을 산출하는 단계와, 산출한 화이트 밸런스 게인을 이용하여 화상의 화이트 밸런스를 보정하는 단계를 갖는 것이다.An image acquisition method according to the present invention comprises the steps of calculating a white balance gain based on a pixel value of a pixel having a color coordinate included in the determined achromatic color determination range, and correcting the white balance of the image using the calculated white balance gain. To have.
본 발명에 관한 화상 획득 방법은 결정한 무채색 판정 범위에 포함되는 색좌표를 갖는 화소의 화소값에 기초하여 화이트 밸런스 게인을 산출하는 단계와 산출한 화이트 밸런스 게인을 이용하여 화상의 화이트 밸런스를 보정하는 단계를 갖는 것이다.The image acquisition method according to the present invention includes calculating a white balance gain based on a pixel value of a pixel having a color coordinate included in the determined achromatic determination range and correcting the white balance of the image using the calculated white balance gain. To have.
본 발명에 관한 화상 획득 방법의 셰이딩 강도를 추정하는 단계는 화상의 평탄도에 기초하여 셰이딩 추정의 신뢰도를 산출하는 단계를 포함하고, 무채색 판정 범위를 색공간으로 설정하는 단계는 신뢰도가 소정값 이하였을 때의 소정의 무채색 판정 범위를 색공간으로 설정하는 단계를 포함하는 것이다.Estimating the shading intensity of the image acquisition method according to the present invention includes calculating the reliability of the shading estimation based on the flatness of the image, and setting the achromatic determination range to the color space has a reliability less than or equal to a predetermined value. Setting the predetermined achromatic determination range as the color space.
본 발명에 관한 화상 획득 방법의 무채색 판정 범위를 색공간으로 설정하는 단계는 화상의 피사체 휘도가 소정의 범위 내일 때, 복수의 무채색 판정 범위를 선택하고, 복수의 무채색 판정 범위에 기초하여 제2 무채색 판정 범위를 생성하는 단계; 및 제2 무채색 판정 범위를 무채색 판정 범위로서 색공간으로 설정하는 단계를 포함하는 것이다.The step of setting the achromatic determination range of the image acquisition method according to the present invention as the color space includes selecting a plurality of achromatic determination ranges when the object luminance of the image is within a predetermined range, and based on the plurality of achromatic determination ranges, the second achromatic color determination range. Generating a determination range; And setting the second achromatic determination range as the achromatic determination range as the color space.
본 발명에 관한 화상 획득 방법의 셰이딩 강도를 추정하는 단계는 화상에 복수의 셰이딩 추정 계수를 적용하여 화상을 보정하는 셰이딩 추정 계수를 선택하는 단계를 포함하고, 무채색 판정 범위를 색공간으로 설정하는 단계는 셰이딩 추정 계수마다 무채색 판정 범위를 기억하고, 선택한 셰이딩 추정 계수에 대응하는 무채색 판정 범위를 설정하는 단계를 포함하는 것이다.Estimating the shading intensity of the image acquisition method according to the present invention includes applying a plurality of shading estimation coefficients to the image to select the shading estimation coefficient to correct the image, and setting the achromatic determination range to the color space. And storing the achromatic determination range for each shading estimation coefficient, and setting the achromatic determination range corresponding to the selected shading estimation coefficient.
본 발명에 관한 화상 획득 방법은 화상을 복수의 블록으로 분할하고, 블록마다 화소값의 블록 통계값을 산출하는 단계를 더 포함하고, 셰이딩 추정 계수는 블록에 각각 대응하는 계수값을 가지며, 셰이딩 강도를 추정하는 단계는 블록 통계값과 계수값을 곱셈하여 화상을 보정하는 셰이딩 추정 계수를 선택하는 단계를 포함하고, 화이트 밸런스 게인을 산출하는 단계는, 블록의 색좌표를 산출하는 단계 및 설정한 무채색 판정 범위에 포함되는 색좌표를 갖는 블록의 블록 통계값에 기초하여 화이트 밸런스 게인을 산출하는 단계를 포함하는 것이다.The image acquisition method according to the present invention further comprises the step of dividing the image into a plurality of blocks and calculating block statistical values of pixel values for each block, wherein the shading estimation coefficients have coefficient values corresponding to the blocks, respectively, and the shading intensity Estimating includes selecting a shading estimation coefficient for multiplying the block statistical value and the coefficient value to correct the image, and calculating the white balance gain includes calculating a color coordinate of the block and setting the achromatic color determination. Calculating a white balance gain based on block statistical values of blocks having color coordinates included in the range.
본 발명에 관한 화상 처리 방법은 셰이딩 강도마다의 무채색 판정 범위를 기억하는 단계와, 화상의 셰이딩 강도를 추정하는 단계와, 추정한 셰이딩 강도에 대응하는 무채색 판정 범위를 색공간으로 설정하는 단계와, 화상 중의 화소의 색좌표를 산출하고, 설정한 무채색 판정 범위에 포함되는 색좌표를 갖는 화소의 화소값에 기초하여 화이트 밸런스 게인을 산출하는 단계와, 산출한 화이트 밸런스 게인을 이용하여 화상의 화이트 밸런스를 보정하는 단계를 갖는 것이다.The image processing method according to the present invention includes the steps of storing the achromatic determination range for each shading intensity, estimating the shading intensity of the image, setting the achromatic determination range corresponding to the estimated shading intensity as the color space, Calculating the color coordinate of the pixel in the image, calculating the white balance gain based on the pixel value of the pixel having the color coordinate included in the set achromatic determination range, and correcting the white balance of the image using the calculated white balance gain. To have a step.
본 발명에 관한 화상 처리 방법의 셰이딩 강도를 추정하는 단계는 화상의 평탄도에 기초하여 셰이딩 추정의 신뢰도를 산출하는 단계를 포함하고, 무채색 판정 범위를 색공간으로 설정하는 단계는 신뢰도가 소정값 이하였을 때의 소정의 무채색 판정 범위를 색공간으로 설정하는 단계를 포함하는 것이다.Estimating the shading intensity of the image processing method according to the present invention includes calculating the reliability of the shading estimation based on the flatness of the image, and setting the achromatic determination range to the color space has a reliability equal to or less than a predetermined value. Setting the predetermined achromatic determination range as the color space.
본 발명에 관한 화상 처리 방법의 무채색 판정 범위를 색공간으로 설정하는 단계는 화상의 피사체 휘도가 소정의 범위 내일 때, 복수의 무채색 판정 범위를 선택하고, 복수의 무채색 판정 범위에 기초하여 제2 무채색 판정 범위를 생성하는 단계 및 제2 무채색 판정 범위를 무채색 판정 범위로서 색공간으로 설정하는 단계를 포함하는 것이다.The step of setting the achromatic determination range of the image processing method according to the present invention as the color space includes selecting a plurality of achromatic determination ranges when the object luminance of the image is within a predetermined range, and based on the plurality of achromatic determination ranges, the second achromatic color determination range. Generating a determination range and setting the second achromatic determination range as the achromatic determination range to the color space.
본 발명에 관한 화상 처리 방법의 셰이딩 강도를 추정하는 단계는 화상에 복수의 셰이딩 추정 계수를 적용하여 화상을 보정하는 셰이딩 추정 계수를 선택하는 단계를 포함하고, 무채색 판정 범위를 색공간으로 설정하는 단계는 셰이딩 추정 계수마다 무채색 판정 범위를 기억하고, 선택한 셰이딩 추정 계수에 대응하는 무채색 판정 범위를 설정하는 단계를 포함하는 것이다.Estimating the shading intensity of the image processing method according to the present invention includes applying a plurality of shading estimation coefficients to the image to select a shading estimation coefficient for correcting the image, and setting the achromatic determination range to the color space. And storing the achromatic determination range for each shading estimation coefficient, and setting the achromatic determination range corresponding to the selected shading estimation coefficient.
본 발명에 관한 화상 처리 방법은 화상을 복수의 블록으로 분할하고, 블록마다 화소값의 블록 통계값을 산출하는 단계를 갖고, 셰이딩 추정 계수는 블록에 각각 대응하는 계수값을 가지며, 셰이딩 강도를 추정하는 단계는 블록 통계값과 계수값을 곱셈하여 화상을 보정하는 셰이딩 추정 계수를 선택하는 단계를 포함하고, 화이트 밸런스 게인을 산출하는 단계는, 블록의 색좌표를 산출하는 단계 및 설정한 무채색 판정 범위에 포함되는 색좌표를 갖는 블록의 블록 통계값에 기초하여 화이트 밸런스 게인을 산출하는 단계를 포함하는 것이다.The image processing method according to the present invention has a step of dividing an image into a plurality of blocks, calculating block statistical values of pixel values for each block, and the shading estimation coefficients have coefficient values corresponding to the blocks, respectively, to estimate the shading intensity. The step of multiplying the block statistics and the coefficient value to select the shading estimation coefficient for correcting the image, the step of calculating the white balance gain, the step of calculating the color coordinate of the block and the set achromatic color determination range Calculating a white balance gain based on the block statistic value of the block having the color coordinates included.
본 발명에 의해, 광원을 적절히 추정하고 색 감퇴를 억제하여 화이트 밸런스를 보정하는 화상 처리 장치 및 화상 처리 방법을 제공할 수 있다.According to the present invention, it is possible to provide an image processing apparatus and an image processing method for properly estimating a light source, suppressing color decay, and correcting white balance.
도 1 은 실시형태에 관한 화상 획득 장치(100)의 구성을 나타내는 블록도이다.1 is a block diagram showing the configuration of an image acquisition device 100 according to an embodiment.
도 2 는 실시형태에 관한 화상 획득 방법의 처리 순서를 나타내는 흐름도 이다.2 is a flowchart showing a processing procedure of an image acquisition method according to the embodiment.
도 3 은 실시형태에 관한 디지털 스틸 카메라(300)의 구성을 나타내는 블록도이다.3 is a block diagram showing the configuration of a digital still camera 300 according to the embodiment.
도 4 는 대표적인 광원의 색 온도 및 셰이딩 강도를 설명하기 위한 도면이다.4 is a diagram for explaining color temperature and shading intensity of a representative light source.
도 5 는 각 광원 하에서 자연화상 사진을 피사체로 하여 촬상한 화상의 셰이딩 추정 결과를 나타내는 도면이다.FIG. 5 is a diagram showing a result of shading estimation of an image captured by a natural image photograph as a subject under each light source.
도 6 은 실시형태에 관한 정규화 게인 산출 방법의 처리 순서를 나타내는 흐름도이다.6 is a flowchart showing a processing procedure of a normalization gain calculation method according to the embodiment.
도 7 은 실시형태에 관한 블록 중량(Bw) 산출 방법의 처리 순서를 나타내는 흐름도이다.7 is a flowchart showing a processing procedure of a block weight Bw calculation method according to the embodiment.
도 8 은 실시형태에 관한 G레벨 중량을 설명하기 위한 도면이다.8 is a diagram for explaining a G level weight according to the embodiment.
도 9 은 실시형태에 관한 블록색 평가값(Hb)의 히스토그램 및 히스토그램 중량을 설명하기 위한 도면이다.It is a figure for demonstrating the histogram and histogram weight of the block color evaluation value Hb which concerns on embodiment.
도 10 은 실시형태에 관한 블록 중량(Bw)을 설명하기 위한 도면이다.10 is a diagram for explaining a block weight Bw according to the embodiment.
도 11 은 실시형태에 관한 화상 처리 방법의 처리 순서를 나타내는 흐름도이다.11 is a flowchart showing a processing procedure of an image processing method according to the embodiment.
도 12 는 실시형태에 관한 광원 추정 방법을 설명하기 위한 도면이다.12 is a diagram for explaining a light source estimation method according to the embodiment.
도 13 은 실시형태에 관한 추정 광원마다의 무채색 판정 범위를 나타내는 도면이다.It is a figure which shows the achromatic determination range for every estimated light source which concerns on embodiment.
도 14 는 실시형태에 관한 제2 무채색 판정 범위의 생성 방법을 설명하기 위한 도면이다.It is a figure for demonstrating the generation method of the 2nd achromatic determination range which concerns on embodiment.
이하, 도면을 참조하여 본 실시형태에 관한 화상 획득 장치, 화상 처리 장치, 화상 획득 방법 및 화상 처리 방법에 대해 설명한다.EMBODIMENT OF THE INVENTION Hereinafter, with reference to drawings, the image acquisition apparatus, image processing apparatus, image acquisition method, and image processing method which concern on this embodiment are demonstrated.
본 실시형태에 관한 화상 획득 장치, 화상 처리 장치, 화상 획득 방법 및 화상 처리 방법은 촬상시의 광원에 따라 촬상 화상의 셰이딩 강도가 다른 것을 이용하여 촬상 화상의 셰이딩 강도로부터 피사체를 비추는 광원을 추정하고, 화이트 밸런스 게인을 산출할 때의 무채색 판정 범위를 변경하여 색 감퇴를 억제하는 것이다.The image acquisition device, the image processing device, the image acquisition method, and the image processing method according to the present embodiment estimate a light source that illuminates the subject from the shading intensity of the picked-up image by using a different shading intensity of the picked-up image according to the light source at the time of picking-up. In this case, the color reduction judgment range when calculating the white balance gain is changed to suppress the color decay.
도 1 은 일 실시예에 따른 화상 획득장치(100)의 구성을 나타내는 블록도이다.1 is a block diagram illustrating a configuration of an image acquisition apparatus 100 according to an exemplary embodiment.
도 1을 참조하면, 화상 획득 장치(100)는 화상 획득부(110) 및 제어부(120) 를 구비할 수 있다. 화상 획득 장치(100)는 예를 들어 전자적 촬상 장치인 디지털 스틸 카메라를 포함할 수 있다. Referring to FIG. 1, the image acquisition apparatus 100 may include an image acquisition unit 110 and a control unit 120. The image acquisition device 100 may include, for example, a digital still camera that is an electronic imaging device.
화상 획득부(110)는 촬상 소자를 구비하여, 피사체상을 촬상소자 등의 촬상면에 결상하고, 화상신호를 A/D 변환하여 디지털 신호로 변환할 수 있다.The image acquisition unit 110 may include an image pickup device, and may form an image of a subject on an image pickup surface such as an image pickup device, and convert the image signal into digital signals by A / D conversion.
제어부(120)는 화상 획득부(110)를 통해 획득한 화상의 셰이딩 강도에 대응하는 무채색 판정 범위를 결정하고, 결정한 무채색 판정 범위에 포함되는 색좌표를 갖는 화소의 화소값에 기초하여 화이트 밸런스 게인을 산출하며, 산출한 화이트 밸런스 게인을 이용하여 화상의 화이트 밸런스를 보정할 수 있다.The controller 120 determines an achromatic determination range corresponding to the shading intensity of the image acquired through the image acquisition unit 110, and adjusts the white balance gain based on the pixel value of the pixel having the color coordinate included in the determined achromatic determination range. The white balance of the image can be corrected using the calculated white balance gain.
도 2는 일 실시예에 따라 도 1에 도시된 화상 획득 장치(100)에서의 동작 방법을 설명하는 흐름도이다. FIG. 2 is a flowchart for describing a method of operating the image capturing apparatus 100 illustrated in FIG. 1, according to an exemplary embodiment.
동작 101에서, 화상 획득 장치(100)의 화상 획득부(110)는 화상을 획득한다. (단계 S101)In operation 101, the image obtaining unit 110 of the image obtaining apparatus 100 obtains an image. (Step S101)
동작 102에서, 화상 획득 장치(100)의 제어부(120)는 회득한 화상의 셰이딩 강도에 대응하는 무채색 판정 범위를 결정한다. (단계 S102)In operation 102, the control unit 120 of the image acquisition apparatus 100 determines the achromatic determination range corresponding to the shading intensity of the acquired image. (Step S102)
일 실시예에 따라 제어부(120)는 획득한 화상의 평탄도에 기초하여 셰이딩 추정의 신뢰도를 산출하고, 상기 신뢰도가 소정값 이하였을 때의 소정의 무채색 판정 범위를 상기 색공간으로 설정할 수 있다. According to an exemplary embodiment, the controller 120 may calculate the reliability of the shading estimation based on the obtained flatness of the image, and set a predetermined achromatic determination range as the color space when the reliability is less than a predetermined value.
일 실시예에 따라 제어부(120)는 화상의 피사체 휘도가 소정의 범위 내일 때, 복수의 상기 무채색 판정 범위를 선택하고, 상기 복수의 무채색 판정 범위에 기초하여 제2 무채색 판정 범위를 생성하며, 상기 제2 무채색 판정 범위를 상기 무채색 판정 범위로서 상기 색공간으로 설정할 수 있다. According to an embodiment, when the object luminance of the image is within a predetermined range, the controller 120 selects a plurality of the achromatic determination ranges, and generates a second achromatic determination range based on the plurality of achromatic determination ranges. A second achromatic determination range can be set to the color space as the achromatic determination range.
일 실시예에 따라 제어부(120)는 화상에 복수의 셰이딩 추정 계수를 적용하여 상기 화상을 보정하는 셰이딩 추정 계수를 선택하고, 셰이딩 추정 계수마다 무채색 판정 범위를 기억하고, 상기 선택한 셰이딩 추정 계수에 대응하는 무채색 판정 범위를 설정할 수 있다. According to an exemplary embodiment, the controller 120 selects a shading estimation coefficient for correcting the image by applying a plurality of shading estimation coefficients to an image, stores a colorless determination range for each shading estimation coefficient, and corresponds to the selected shading estimation coefficient. An achromatic judgment range can be set.
동작 103에서, 화상 획득 장치(100)의 제어부(120)는 결정한 무채색 판정 범위에 포함되는 색좌표를 갖는 화소의 화소값에 기초하여 화이트 밸런스 게인을 산출할 수 있다. (단계 S103)In operation 103, the controller 120 of the image acquisition apparatus 100 may calculate the white balance gain based on the pixel value of the pixel having the color coordinate included in the determined achromatic color determination range. (Step S103)
일 실시예에 따라 제어부(120)는 상을 복수의 블록으로 분할하고, 상기 블록마다 화소값의 블록 통계값을 산출할 수 있다. 셰이딩 추정 계수는 상기 블록에 각각 대응하는 계수값을 가질 수 있다. 제어부(120)는 블록 통계값과 상기 계수값을 곱셈하여 상기 화상을 보정하는 셰이딩 추정 계수를 선택하고, 블록의 색좌표를 산출하고, 상기 설정한 무채색 판정 범위에 포함되는 색좌표를 갖는 블록의 상기 블록 통계값에 기초하여 상기 화이트 밸런스 게인을 산출할 수 있다. According to an exemplary embodiment, the controller 120 may divide an image into a plurality of blocks, and calculate block statistical values of pixel values for each block. Shading estimation coefficients may have coefficient values corresponding to the blocks, respectively. The control unit 120 multiplies the block statistic value with the coefficient value, selects a shading estimation coefficient for correcting the image, calculates a color coordinate of the block, and the block of the block having the color coordinate included in the set achromatic determination range. The white balance gain may be calculated based on a statistical value.
동작 104에서, 제어부(120)는 산출한 화이트 밸런스 게인을 이용하여 화상의 화이트 밸런스를 보정할 수 있다. (단계 S104)In operation 104, the controller 120 may correct the white balance of the image by using the calculated white balance gain. (Step S104)
다음으로, 본 실시형태에 관한 화상 처리 장치의 구성에 대해 화상 처리 장치의 일례인 디지털 스틸 카메라(300)의 구성을 이용하여 설명한다.Next, the structure of the image processing apparatus which concerns on this embodiment is demonstrated using the structure of the digital still camera 300 which is an example of an image processing apparatus.
도 3은 본 실시형태에 관한 디지털 스틸 카메라(300)의 구성을 나타내는 블록도이다.3 is a block diagram showing the configuration of the digital still camera 300 according to the present embodiment.
전자적 촬상 장치인 디지털 스틸 카메라(300)는 렌즈 광학계(302), 촬상 소자(304), AFE 회로(306), 화상 신호 처리 회로(308), 화상 표시부(310), 화상 기록부(312), 드라이버(314), 타이밍 발생기(TG)(316), 화상 블록 통계 회로(318), 셰이딩 제어부(320), 셰이딩 보정 계수 기억부(322), 화이트 밸런스 제어부(330) 등을 구비할 수 있다.The digital still camera 300, which is an electronic imaging device, includes a lens optical system 302, an imaging device 304, an AFE circuit 306, an image signal processing circuit 308, an image display unit 310, an image recording unit 312, and a driver. 314, a timing generator (TG) 316, an image block statistics circuit 318, a shading control unit 320, a shading correction coefficient storage unit 322, a white balance control unit 330, and the like.
렌즈 광학계(302)는 렌즈, 조리개, 셔터 등을 가지며, 피사체상을 촬상 소자(304)의 촬상면에 결상할 수 있다. 촬상 소자(304)는 CCD나 CMOS 등의 이미지 센서로서, 촬상 소자(304)의 렌즈 광학계(302) 측에는 적외 커트 필터(도시생략)가 장착될 수 있다. 촬상 소자(304)는 피사체상을 광전 변환하여 화상 신호(RGB 색신호)를 취득할 수 있다. AFE 회로(306)는 촬상 소자(304)가 취득하고 CDS 회로(도시생략)가 신호 처리를 실시한 화상 신호를 A/D 변환하여 디지털 신호로 할 수 있다.The lens optical system 302 has a lens, an iris, a shutter, and the like, and an image of a subject can be formed on the imaging surface of the imaging device 304. The imaging element 304 is an image sensor such as a CCD or a CMOS, and an infrared cut filter (not shown) may be mounted on the lens optical system 302 side of the imaging element 304. The image pickup device 304 can photoelectrically convert the subject image to acquire an image signal (RGB color signal). The AFE circuit 306 can A / D convert an image signal acquired by the imaging element 304 and subjected to signal processing by a CDS circuit (not shown) to be a digital signal.
화상 신호 처리 회로(308)는 AFE 회로(306)가 출력한 화상 신호에 디모자이킹 처리, 엣지 강조 처리, 셰이딩 보정 처리, 화이트 밸런스(WB) 보정 처리, 감마 보정 처리 등을 실시할 수 있다. 화상 표시부(310)는 액정 표시 디스플레이(LCD) 등으로, 화상 신호 처리 회로(308)에서 각종 처리가 실시된 화상 신호를 표시할 수 있다. 화상 기록부(312)는 메모리로서, 화상 신호 처리 회로(308)에서 각종 처리가 실시된 화상 신호를 기록할 수 있다.The image signal processing circuit 308 can perform demosaicing processing, edge emphasis processing, shading correction processing, white balance (WB) correction processing, gamma correction processing, and the like on the image signal output from the AFE circuit 306. The image display unit 310 is a liquid crystal display (LCD) or the like, and can display an image signal subjected to various processes in the image signal processing circuit 308. The image recording unit 312 can record an image signal subjected to various processes in the image signal processing circuit 308 as a memory.
드라이버(314)는 렌즈 광학계(302)의 렌즈, 조리개, 셔터를 구동할 수 있다. 타이밍 발생기(316)는 촬상 소자(304)를 구동하기 위한 타이밍을 생성할 수 있다.The driver 314 may drive a lens, an iris, and a shutter of the lens optical system 302. The timing generator 316 may generate timing for driving the imaging device 304.
화상 블록 통계 회로(318)는 AFE 회로(306)에서 디지털 신호가 된 화상 신호의 촬상 화상 영역 또는 촬상 화상 영역의 일부 영역을 격자형상으로 분할하여 복수의 블록으로 하고, 블록마다 블록 통계값을 산출할 수 있다. 화상 블록 통계 회로(318)는 블록 통계값으로서 각 블록 내의 RGB별 화소 적산값 또는 RGB별 화소 평균값을 산출할 수 있다.The image block statistics circuit 318 divides the picked-up image region or the partial region of the picked-up image region of the image signal that has become a digital signal in the AFE circuit 306 into a grid to form a plurality of blocks, and calculates a block statistical value for each block. can do. The image block statistics circuit 318 may calculate pixel integrated values for RGB or pixel average values for RGB in each block as block statistics.
또한, 화상 블록 통계 회로(318)는 피사체 휘도, 즉 촬상 화상 영역의 평균 휘도를 산출할 수 있다. 평균 휘도 산출 방법으로는 예를 들어 특허문헌 1에 기재된 방법을 채용할 수 있다.In addition, the image block statistics circuit 318 can calculate the object luminance, that is, the average luminance of the captured image region. As an average brightness calculation method, the method of patent document 1 can be employ | adopted, for example.
셰이딩 제어부(320)는 셰이딩 추정부(324), 셰이딩 보정 계수 산출부(326) 등을 가질 수 있다. 셰이딩 추정부(324)는 화상 블록 통계 회로(318)가 산출한 블록 통계값과, 셰이딩 보정 계수 기억부(322)가 기억하는 셰이딩 추정 계수에 기초하여 셰이딩 강도를 추정하고, 화상에 적합한 셰이딩 추정 계수를 선택할 수 있다. 셰이딩 보정 계수 기억부(322)에는 셰이딩 추정 계수가 광원마다 또한 R값, G값, B값마다 준비될 수 있다. 셰이딩 추정 계수는 블록마다의 계수값을 가질 수 있다.The shading controller 320 may include a shading estimator 324, a shading correction coefficient calculator 326, and the like. The shading estimating unit 324 estimates the shading intensity based on the block statistical value calculated by the image block statistics circuit 318 and the shading estimation coefficient stored in the shading correction coefficient storage unit 322, and estimates the shading suitable for the image. The coefficient can be selected. In the shading correction coefficient storage unit 322, shading estimation coefficients may be prepared for each light source and for each R value, G value, and B value. The shading estimation coefficient may have a coefficient value for each block.
셰이딩 추정 계수는 각 광원 하에서 촬상한 백색 차트의 화상을 이용하여 산출할 수 있다. 백색 차트에는 표준 백색 반사판 등의 분광 반사율이 대상 파장 영역 전반에 걸쳐 일정하고 90% 이상인 균등 확산 반사면을 이용하는 것이 바람직하다. 적외광이 많이 포함되는 전구 등의 광원에 대해서는 화상 주변부의 R신호를 강하게 보정하는 셰이딩 추정 계수가 산출될 수 있다. 적외광이 그다지 포함되지 않은 형광등 등의 광원에 대해서는 화상 주변부의 R신호를 약하게 보정하는 셰이딩 추정 계수가 산출될 수 있다.The shading estimation coefficient can be calculated using the image of the white chart image | photographed under each light source. In the white chart, it is preferable to use a uniformly diffuse reflecting surface having a spectral reflectance of a standard white reflector or the like being constant over the target wavelength region and 90% or more. For a light source such as a light bulb containing a lot of infrared light, the shading estimation coefficient for strongly correcting the R signal in the image periphery can be calculated. For a light source such as a fluorescent lamp that does not contain much infrared light, a shading estimation coefficient for weakly correcting the R signal at the periphery of the image may be calculated.
또한, 셰이딩 추정부(324)는 셰이딩 추정의 신뢰도를 산출할 수 있다. 그리고, 선택한 셰이딩 추정 계수와 산출한 셰이딩 추정의 신뢰도를 화이트 밸런스 제어부(330)에 출력할 수 있다.In addition, the shading estimator 324 may calculate the reliability of the shading estimation. The selected shading estimation coefficient and the calculated reliability of the shading estimation may be output to the white balance controller 330.
셰이딩 보정 계수 산출부(326)는 셰이딩 추정부(324)가 선택한 셰이딩 추정 계수에 대응하는 셰이딩 보정 계수를 셰이딩 보정 계수 기억부(322)로부터 선택하고, 화상 신호 처리 회로(308)에서 촬상 화상의 셰이딩을 보정할 수 있다. 셰이딩 보정 계수 기억부(322)에는 셰이딩 보정 계수가 광원마다 또한 R값, G값, B값마다 준비될 수 있다. 셰이딩 보정 계수는 화소마다 또는 복수의 화소마다의 계수값을 가질 수 있다.The shading correction coefficient calculation unit 326 selects the shading correction coefficient corresponding to the shading estimation coefficient selected by the shading estimation unit 324 from the shading correction coefficient storage unit 322, and the image signal processing circuit 308 selects the shading correction coefficient. Shading can be corrected. In the shading correction coefficient storage unit 322, shading correction coefficients may be prepared for each light source and for each R value, G value, and B value. The shading correction coefficient may have a coefficient value for each pixel or for each of the plurality of pixels.
셰이딩 보정 계수 기억부(322)는 셰이딩 추정 계수와 셰이딩 보정 계수의 세트를 태양광, 전구, 형광등 등의 광원별로 기억할 수 있다. 대부분의 경우에 셰이딩 보정 계수와 셰이딩 추정 계수는 1대1의 세트가 되어 있지만, 이에 한정되는 것은 아니다. 셰이딩 추정 계수 및 셰이딩 보정 계수는 PC 등의 외부 장치에서 산출할 수 있다. 셰이딩 보정 계수에는 셰이딩 추정 계수와 동일한 것과 셰이딩 추정 계수와 다른 것이 있을 수 있다.The shading correction coefficient storage unit 322 may store a set of shading estimation coefficients and shading correction coefficients for each light source such as sunlight, a light bulb, a fluorescent lamp, and the like. In most cases, the shading correction coefficient and the shading estimation coefficient are in a one-to-one set, but are not limited thereto. The shading estimation coefficient and the shading correction coefficient may be calculated by an external device such as a PC. The shading correction coefficients may be the same as the shading estimation coefficients and different from the shading estimation coefficients.
화이트 밸런스 제어부(330)는 광원색 추정부(332), 화이트 밸런스 보정 계수 산출부(334) 등을 가질 수 있다.The white balance controller 330 may include a light source color estimator 332, a white balance correction coefficient calculator 334, and the like.
광원색 추정부(332)는 셰이딩 추정 결과에 기초하여 촬상 화상의 피사체를 비추는 광원 또는 광원색을 추정하고, 색공간 상에서 색좌표 범위를 정의하는 무채색 판정 범위를 선택하여 설정할 수 있다. 구체적으로 광원색 추정부(332)는 셰이딩 추정 계수와 광원(광원색)과 무채색 판정 범위를 대응지어 기억하고 있고, 셰이딩 추정부(324)에서 선택된 셰이딩 추정 계수에 대응하는 무채색 판정 범위를 선택할 수 있다.The light source color estimator 332 may estimate a light source or a light source color that illuminates a subject of the captured image based on the shading estimation result, and select and set an achromatic determination range that defines a color coordinate range on the color space. In detail, the light source color estimating unit 332 stores the shading estimation coefficient, the light source (light source color), and the achromatic determination range in association with each other, and may select an achromatic determination range corresponding to the shading estimation coefficient selected by the shading estimation unit 324.
이 때문에, 광원색 추정부(332)는 무채색 판정 범위를 기억하는 무채색 판정 범위 기억부(도시생략)를 갖고 있어도 된다.For this reason, the light source color estimation part 332 may have the achromatic determination range memory | storage part (not shown) which stores the achromatic determination range.
화이트 밸런스 보정 계수 산출부(334)는 화상 블록 통계 회로(318)가 산출한 블록 통계값을 전술한 색공간 상의 색좌표로 변환할 수 있다.The white balance correction coefficient calculation unit 334 may convert the block statistical value calculated by the image block statistics circuit 318 into the color coordinates in the above-described color space.
그리고, 각 블록의 색좌표가 광원색 추정부(332)가 선택한 무채색 판정 범위에 포함되는지를 판정하고, 무채색 판정 범위에 포함되는 블록, 즉 무채색으로 판정된 블록의 블록 통계값을 이용하여 화이트 밸런스 게인을 산출할 수 있다.Then, it is determined whether the color coordinate of each block is included in the achromatic determination range selected by the light source color estimation unit 332, and the white balance gain is obtained by using the block statistical value of the block included in the achromatic determination range, that is, the block determined as achromatic. Can be calculated.
또, 셰이딩 제어부(320) 및 화이트 밸런스 제어부(330)가 실현하는 각 구성요소는 예를 들어 컴퓨터인 셰이딩 제어부(320) 및 화이트 밸런스 제어부(330)가 구비하는 연산 장치(도시생략)의 제어에 의해 프로그램을 실행시킴으로써 실현할 수 있다.In addition, each component realized by the shading control part 320 and the white balance control part 330 is controlled by the computing device (not shown) which the shading control part 320 and the white balance control part 330 which are computers are equipped, for example. This can be achieved by executing a program.
보다 구체적으로, 셰이딩 제어부(320) 및 화이트 밸런스 제어부(330)는 기억부(도시생략)에 저장된 프로그램을 주요 기억장치(도시생략)에 로드하고, 연산 장치의 제어에 의해 프로그램을 실행하여 실현할 수 있다. 또한, 각 구성요소는 프로그램에 의한 소프트웨어로 실현하는 것에 한정하지 않고, 하드웨어, 펌웨어 및 소프트웨어 중 어느 하나의 조합 등에 의해 실현해도 된다.More specifically, the shading control unit 320 and the white balance control unit 330 can load the program stored in the storage unit (not shown) into the main storage device (not shown), and execute the program under the control of the computing device to realize it. have. In addition, each component is not limited to software implemented by a program, and may be implemented by any combination of hardware, firmware, and software.
상술한 프로그램은 다양한 타입의 비일시적인 컴퓨터 가독 매체(non-transitory computer readable medium)를 이용하여 저장되고 컴퓨터에 공급할 수 있다. 비일시적인 컴퓨터 가독 매체는 다양한 타입의 실체가 있는 기록매체(tangible storage medium)를 포함할 수 있다.The program described above may be stored and supplied to a computer using various types of non-transitory computer readable medium. The non-transitory computer readable medium may include a tangible storage medium having various types of entities.
비일시적인 컴퓨터 가독 매체의 예는 자기 기록매체(예를 들어 플렉서블 디스크, 자기 테이프, 하드 디스크 드라이브), 광자기 기록매체(예를 들어 광자기 디스크), CD-ROM(Read Only Memory), CD-R, CD-R/W, 반도체 메모리(예를 들어 마스크 ROM, PROM(Programmable ROM), EPROM(Erasable PROM), 플래시 ROM, RAM(random access memory))를 포함할 수 있다.Examples of non-transitory computer readable media include magnetic recording media (eg, flexible disks, magnetic tapes, hard disk drives), magneto-optical recording media (eg, magneto-optical disks), CD-ROMs (Read Only Memory), CD- R, CD-R / W, semiconductor memory (for example, mask ROM, programmable ROM (PROM), erasable PROM (EPROM), flash ROM, random access memory (RAM)).
또한, 프로그램은 다양한 타입의 일시적인 컴퓨터 가독 매체(transitory computer readable medium)에 의해 셰이딩 제어부(320) 및 화이트 밸런스 제어부(330)에 공급되어도 될 수 있다. 일시적인 컴퓨터 가독 매체의 예는 전기 신호, 광 신호 및 전자파를 포함할 수 있다. 일시적인 컴퓨터 가독 매체는 전선 및 광섬유 등의 유선 통신로 또는 무선 통신로를 통해 프로그램을 컴퓨터에 공급할 수 있다.In addition, the program may be supplied to the shading control unit 320 and the white balance control unit 330 by various types of temporary computer readable medium. Examples of transitory computer readable media may include electrical signals, optical signals, and electromagnetic waves. The temporary computer readable medium can supply a program to a computer through a wired communication path such as wires and optical fibers or a wireless communication path.
다음에, 본 실시형태에 관한 디지털 스틸 카메라(300)의 동작, 즉 화상 처리 방법에 대해 설명한다.Next, an operation of the digital still camera 300 according to the present embodiment, that is, an image processing method will be described.
우선, 본 실시형태에 관한 디지털 스틸 카메라(300)의 광원 추정 처리의 개요에 대해 설명할 수 있다.First, the outline | summary of the light source estimation process of the digital still camera 300 which concerns on this embodiment can be demonstrated.
도 4는 대표적인 광원의 색 온도 및 셰이딩 강도를 설명하기 위한 도면이다. 가로축은 색 온도를, 세로축은 셰이딩 강도를 나타내고 있다.4 is a diagram for describing color temperature and shading intensity of a representative light source. The horizontal axis represents color temperature and the vertical axis represents shading intensity.
색 온도에 관해서는 전구는 저색온도를 가지며 주광은 고색온도를 가진다. 그러나, 형광등, LED는 전구색(L), 백색(W), 주백색(N, D)으로 광범위의 색 온도를 가진다. 이 때문에, 동일한 색 온도를 갖고 있어도 다른 광원일 가능성이 있고, 색 온도로부터 광원을 추정하는 것은 어렵다.As for the color temperature, the bulb has a low color temperature and daylight has a high color temperature. However, fluorescent lamps and LEDs have a wide range of color temperatures: bulb color (L), white (W), and main white (N, D). For this reason, even if it has the same color temperature, it may be another light source, and it is difficult to estimate a light source from a color temperature.
이에 반해, 셰이딩 강도에 관해서는 근적외광선을 많이 포함하는 전구 또는 주광 등의 광원에서는 촬상 화상에 셰이딩이 강하게 발생한다. 또한, 발광 효율을 높이기 위해 근적외광을 거의 포함하지 않은 형광등, LED 등의 광원에서는 촬상 화상에 셰이딩이 약하게 발생한다. 이 때문에, 촬상 화상의 셰이딩 강도가 도 4에 나타내는 구간α 내에 있으면 광원은 전구이고, 구간β 내에 있으면 전구 또는 주광이며, 구간γ 내에 있으면 주광이고, 구간δ 내에 있으면 형광등 또는 LED라고 촬상 화상의 셰이딩 강도로부터 광원을 추정할 수 있다.On the other hand, in terms of shading intensity, shading is strongly generated in a captured image in a light source such as a light bulb or a daylight containing a large amount of near infrared rays. In addition, in order to increase the luminous efficiency, shading is weakly generated in the captured image in a light source such as a fluorescent lamp or an LED containing almost no near infrared light. For this reason, if the shading intensity of the picked-up image is within the interval α shown in Fig. 4, the light source is a light bulb, if it is within the interval β, it is a light bulb or a chief light, if it is within the interval γ, it is a primary light, and if it is within the interval δ, the shading of the captured image The light source can be estimated from the intensity.
본 실시형태에 관한 광원 추정 처리에서는 이와 같이 하여 촬상 화상의 셰이딩 강도로부터 광원을 추정할 수 있다.In the light source estimation process according to the present embodiment, the light source can be estimated from the shading intensity of the captured image in this manner.
또한, 촬상 화상 중에는 셰이딩 강도와 광원의 이러한 대응 관계가 잘 성립되지 않는 것도 있다. 예를 들어 전구, 형광등 등의 복수의 광원이 존재하거나 피사체가 푸른 하늘이거나 주광 하의 붉은 물체이거나 하였을 때의 촬상 화상에서는 상기 대응 관계가 잘 성립되지 않는다.In some captured images, this correspondence between the shading intensity and the light source is not well established. For example, the corresponding relationship is not well established in the captured image when a plurality of light sources such as a light bulb and a fluorescent lamp are present or the subject is a blue sky or a red object under daylight.
도 5는 각 광원 하에서 자연화상 사진을 피사체로 하여 촬상한 화상의 셰이딩 추정 결과를 나타내는 도면이다. 4종류(주광, 백색 형광등, 내추럴색 형광등, 전구)의 광원 하에서 다양한 배색으로 이루어지는 자연화상 사진 75장을 피사체로 하여 촬상한 화상에 대해 셰이딩을 추정한 결과이다. 가로축은 셰이딩 추정 계수의 종류(셰이딩 추정 계수의 번호)를 나타내고, 세로축은 셰이딩을 추정한 결과 해당 번호의 셰이딩 추정 계수가 선택된 화상의 매수를 나타내고 있다.FIG. 5 is a diagram showing a result of shading estimation of an image captured by a natural image photograph as a subject under each light source. Shading estimation results are obtained for images taken using 75 natural image photographs having various color schemes under four kinds of light sources (daylight, white fluorescent light, natural fluorescent light, and electric bulb) as subjects. The horizontal axis represents the kind of shading estimation coefficient (number of shading estimation coefficient), and the vertical axis represents the number of images in which the shading estimation coefficient of the number is selected as a result of estimating the shading.
예를 들어, 도 5의 510을 참조하면, 광원이 주광일 때는 40장 가까운 화상에 대해 번호 6의 셰이딩 추정 계수가 그 화상의 셰이딩을 적절히 보정할 수 있다고 하여 선택될 수 있다. 여기서는 셰이딩 추정 계수는 그 번호가 큰 것일수록 셰이딩의 발생이 현저한 화상(셰이딩 강도가 큰 화상)에 대응하여 셰이딩을 강하게 보정할 수 있다.For example, referring to 510 of FIG. 5, when the light source is daylight, the shading estimation coefficient of the number 6 for the near 40 images can be selected as appropriate to correct the shading of the image. In this case, the larger the number of the shading estimation coefficient is, the stronger the shading correction can be in response to the image in which the occurrence of shading is more pronounced (the image with larger shading intensity).
또한, 각 광원 하에서 백색판을 피사체로 하여 촬상한 화상에 대해 셰이딩을 추정하였을 때의 추정 결과(셰이딩 추정 계수의 번호)에 대응하는 막대에 해칭을 부여하고 있다. 예를 들어, 도 5의 520을 참조하면, 백색 형광등 하에서 백색판을 촬상한 화상에 대해서는 번호 1의 셰이딩 추정 계수가 가장 적절히 셰이딩을 보정하므로, 번호 1의 셰이딩 추정 계수의 막대에 해칭을 부여하고 있다.In addition, hatching is attached | subjected to the bar corresponding to the estimation result (number of shading estimation coefficient) when the shading is estimated about the image image | photographed using the white plate as a subject under each light source. For example, referring to 520 of FIG. 5, since the shading estimation coefficient of No. 1 corrects the shading most appropriately for an image photographed with a white plate under a white fluorescent lamp, the hatching of the shading estimation coefficient of No. 1 is hatched. have.
마찬가지로, 도 5의 530을 참조하면, 광원이 내추럴색 형광등 일때는 번호 2의 셰이딩 추정 계수가 그 화상의 셰이딩을 적절히 보정하므로, 번호 2의 추정 계수의 막대에 해칭이 부여된다. 마지막으로, 도 5의 540을 참조하면, 전구 하에서 백색판을 촬상한 화상에 대하여 번호 7의 셰이딩 추정 계수가 가장 적절히 셰이딩을 보정하므로, 번호 7의 셰이딩 추정 계수의 막대에 해칭을 부여한다.Similarly, referring to 530 of FIG. 5, when the light source is a natural fluorescent lamp, the shading estimation coefficient of No. 2 properly corrects the shading of the image, and therefore hatching is given to the bar of the estimation coefficient of No. 2. FIG. Finally, referring to 540 of FIG. 5, since the shading estimation coefficient of No. 7 corrects the shading most appropriately for the image of the white plate photographed under the bulb, the hatching of the shading estimation coefficient of No. 7 is given.
셰이딩은 광원에 따라서도 피사체 색에 따라서도 특성이 변화하기 때문에, 어떤 광원의 경우에도 자연화상 사진을 촬영한 화상의 셰이딩 추정 결과의 약 절반이 백색판을 촬상한 화상의 셰이딩 추정 결과와 일치한다.Since shading varies in characteristics depending on the light source and the subject color, about half of the shading estimation results of the natural image photographed image match the shading estimation result of the image photographing the white plate in any light source. .
그래서, 셰이딩 추정 결과가 백색판을 촬상한 화상의 셰이딩 추정 결과와 일치하는 것을 셰이딩 추정 결과의 신뢰도로서 이용하면 광원을 더욱 적절히 추정할 수 있다.Therefore, if the shading estimation result matches the shading estimation result of the image picked up the white plate as the reliability of the shading estimation result, the light source can be estimated more appropriately.
일반적으로 색 분포가 똑같은 피사체가 대면적으로 존재하는 화상의 셰이딩 추정 결과와, 백색판을 촬상한 화상의 셰이딩 추정 결과는 일치한다.In general, the result of the shading estimation of an image having a large area of the same color distribution and the result of the shading estimation of an image photographing a white plate coincide.
그래서, 본 실시형태에 관한 화상 처리 방법에서는 촬상 화상이 색 분포가 똑같은 피사체가 대면적으로 존재하는 화상인지를 이하와 같이 블록 중량(Bw)을 산출하여 판정하고 셰이딩 추정 결과의 신뢰도로 하고 있다. 전술한 바와 같이, 셰이딩 추정 결과의 신뢰도 산출은 셰이딩 추정부(324)가 행할 수 있다.Therefore, in the image processing method according to the present embodiment, it is determined by calculating the block weight Bw as follows to determine whether the captured image is an image in which a subject having the same color distribution exists in a large area as the reliability of the shading estimation result. As described above, the shading estimation unit 324 may calculate the reliability of the shading estimation result.
셰이딩 추정부(324)는 화이트 밸런스를 보정하는 대상의 화상의 블록 통계값에 셰이딩을 가장 약하게 보정하는 셰이딩 추정 계수(이하, 「셰이딩 추정 초기 계수」라고 함)의 계수값을 곱셈한 결과를 이용하여 정규화 게인(Average Gain)을 산출하고, 정규화 게인을 이용하여 블록색 평가값(Hb)을 산출하고, 블록색 평가값(Hb)과 G레벨 중량을 이용하여 블록 중량(Bw)을 산출할 수 있다.The shading estimating unit 324 uses the result of multiplying the block statistical values of the image of the target to be corrected by the white balance by the coefficient values of the shading estimation coefficients (hereinafter, referred to as "shading estimation initial coefficients") for the lowest shading correction. Normalization gain is calculated, the block color evaluation value Hb is calculated using the normalization gain, and the block weight Bw is calculated using the block color evaluation value Hb and the G level weight. have.
도 6은 본 실시형태에 관한 정규화 게인 산출 방법의 처리 순서를 나타내는 흐름도이다.6 is a flowchart showing the processing procedure of the normalization gain calculation method according to the present embodiment.
셰이딩 추정부(324)는 평가할 블록의 R, G, B값을 정규화하기 위해 셰이딩 보정 전의 블록 통계값에 셰이딩 추정 초기 계수의 계수값을 곱셈하여 대상 화상의 셰이딩을 경감하고 정규화 게인을 산출할 수 있다.The shading estimator 324 may reduce the shading of the target image and calculate the normalization gain by multiplying the block statistic before shading correction by the coefficient value of the initial coefficient of shading to normalize the R, G, and B values of the block to be evaluated. have.
즉, 블록 검파 데이터에 셰이딩 추정 초기 계수를 곱셈할 수 있다(단계 S201). 블록 통계값을 Ri, Gi, Bi로 하고, 셰이딩 추정 초기 계수의 계수값을 Nr, Ng, Nb로 하였을 때에, 셰이딩 추정 초기 계수를 곱셈 후의 블록 통계값(Rn(N, M), Gn(N, M), Bn(N, M))은 (1)식으로 나타난다.That is, the block detection data can be multiplied by the shading estimation initial coefficient (step S201). When the block statistic values are Ri, Gi, and Bi, and the coefficient values of the shading estimation initial coefficients are Nr, Ng, and Nb, the block statistics values Rn (N, M) and Gn (N after multiplying the shading estimation initial coefficients , M), and Bn (N, M)) are represented by the formula (1).
Figure PCTKR2016009833-appb-M000001
Figure PCTKR2016009833-appb-M000001
다음으로 셰이딩 추정 초기 계수를 곱셈 후의 블록 통계값(Rn(N, M), Gn(N, M), Bn(N, M))을 전체 블록만큼 적산하고(단계 S202, S203), 그 블록 통계값의 비로부터 정규화 게인(Average Gain)을 산출할 수 있다. 여기서는 G화소의 정규화 게인은 1.0으로 하고, R화소와 B화소의 정규화 게인을 구할 수 있다.Next, the block statistical values (Rn (N, M), Gn (N, M), Bn (N, M)) after multiplying the shading estimation initial coefficients are integrated as a whole block (steps S202, S203), and the block statistics Normalization gain can be calculated from the ratio of values. Here, the normalization gain of the G pixel is set to 1.0, and the normalization gain of the R pixel and the B pixel can be obtained.
구체적으로 (2)식을 이용하여 정규화 게인을 구할 수 있다.Specifically, the normalization gain can be obtained by using Equation (2).
Figure PCTKR2016009833-appb-M000002
Figure PCTKR2016009833-appb-M000002
즉, Rn(N, M) 또는 Bn(N, M)의 적산값이 0인지를 판정하여(단계 S204, S207), 0인 경우 R화소 또는 B화소의 정규화 게인(Average Gain R/Average Gain B)을 1.0으로 할 수 있다(단계 S206, S209). 한편, Rn(N, M) 또는 Bn(N, M)의 적산값이 0이 아닌 경우, R화소의 정규화 게인=G적산값/R적산값 또는 B화소의 정규화 게인=G적산값/B적산값으로 할 수 있다(단계 S205, S208). 또한, 오버플로우 방지를 위해 R화소 또는 B화소의 정규화 게인은 정규화 게인 상한값(Average Gain Limit)(R, B)의 값으로 상한 클립할 수 있다(상한값으로 할 수 있다).That is, it is determined whether the integrated value of Rn (N, M) or Bn (N, M) is 0 (steps S204, S207), and when 0, normalization gain R / Average Gain B of R pixels or B pixels. ) Can be set to 1.0 (steps S206, S209). On the other hand, when the integrated value of Rn (N, M) or Bn (N, M) is not 0, the normalized gain of the R pixel = G integrated value / the R integrated value or the normalized gain of the B pixel = G integrated value / B integrated The value can be set (steps S205 and S208). In order to prevent the overflow, the normalized gain of the R pixel or the B pixel can be clipped with the upper limit to the value of the normalization gain upper limit (R, B) (it can be set as the upper limit).
도 7은 본 실시형태에 관한 블록 중량(Bw) 산출 방법의 처리 순서를 나타내는 흐름도이다.7 is a flowchart showing the processing procedure of the block weight Bw calculation method according to the present embodiment.
도 6에 도시된 동작에 이어서, 셰이딩 추정부(324)는 암부나 포화 부근의 블록을 평가 대상에서 제외할 목적으로 G레벨 중량을 산출할 수 있다(단계 S210).Subsequently to the operation shown in FIG. 6, the shading estimating unit 324 may calculate the G level weight for the purpose of excluding a block near the dark portion or the saturation from the evaluation target (step S210).
도 8은 본 실시형태에 관한 G레벨 중량을 설명하기 위한 도면이다.8 is a diagram for explaining a G level weight according to the present embodiment.
G레벨 중량은 블록 데이터에 셰이딩 추정 계수를 곱한 후의 블록 통계값의 G값의 레벨을 참조하여 미리 설정한 상한 문턱값과 하한 문턱값 사이의 블록을 1.0으로 하고, 문턱값 범위 밖의 블록을 0.0으로 할 수 있다. 또한, R화소값, G화소값, B화소값 중 어느 하나의 값이 미리 설정한 범위 밖의 블록을 평가 대상 블록에서 제외해도 될 수 있다.The G level weight refers to a block between the upper and lower threshold values set in advance by referring to the level of the G value of the block statistical value after multiplying the block data by the shading estimation coefficient to 1.0, and to a block outside the threshold range to 0.0. can do. In addition, a block out of a range in which any one of an R pixel value, a G pixel value, and a B pixel value is preset may be excluded from the evaluation target block.
다음으로, 전체 블록의 블록색 평가값(Hb)을 산출할 수 있다(단계 S211). (3)식과 같이, (1)식 및 (2)식에서 구한 셰이딩 추정 초기 계수를 곱셈 후의 블록 통계값(Gn(N, M), Bn(N, M))에 정규화 게인(Average Gain)을 곱셈하여 블록색 평가값(Hb(N, M))을 산출할 수 있다.Next, the block color evaluation value Hb of all the blocks can be calculated (step S211). As in Eq. (3), the normalized gain is multiplied by the block statistical values (Gn (N, M), Bn (N, M)) after multiplying the initial shading estimation coefficients obtained in Equations (1) and (2). The block color evaluation value Hb (N, M) can be calculated.
Figure PCTKR2016009833-appb-M000003
Figure PCTKR2016009833-appb-M000003
다음으로 블록색 평가값(Hb)의 히스토그램을 생성하고(단계 S212), 최빈값으로부터 떨어져 있는 블록을 제외할 목적으로 히스토그램 중량을 산출할 수 있다(단계 S213~S215, S217).Next, a histogram of the block color evaluation value Hb is generated (step S212), and the histogram weight can be calculated for the purpose of excluding blocks separated from the mode (steps S213 to S215 and S217).
도 9는 본 실시형태에 관한 블록색 평가값(Hb)의 히스토그램 및 히스토그램 중량을 설명하기 위한 도면이다. 히스토그램은 블록색 평가값 Hb=0.65~1.35의 범위에서 0.05단위로 구분하여 설정하였을 때의 예이다.9 is a diagram for explaining the histogram and the histogram weight of the block color evaluation value Hb according to the present embodiment. The histogram is an example when the block color evaluation value Hb = 0.65 ~ 1.35 is set in 0.05 unit division.
구체적으로 히스토그램의 최빈값을 탐색하고(단계 S213), 각 블록에 대해 블록색 평가값(Hb)이 히스토그램 최빈값으로부터 유효 범위 내인지 판정하여(단계 S214), 도 9에 도시된 바와 같이 유효 범위 내인 경우에 히스토그램 중량=1(단계 S215)로 하고, 유효 범위 밖인 경우에 히스토그램 중량=0으로 할 수 있다(단계 S217). 그리고, 히스토그램 중량=1의 블록이 평가 대상 블록으로서 선택될 수 있다.Specifically, the mode of the histogram is searched (step S213), and for each block, it is determined whether the block color evaluation value Hb is within the valid range from the histogram mode (step S214), and is within the valid range as shown in FIG. The histogram weight can be set to 1 (step S215), and the histogram weight can be set to 0 when outside the effective range (step S217). And a block of histogram weight = 1 can be selected as the evaluation target block.
다음으로 G레벨 중량과 히스토그램 중량을 곱셈하여 블록 중량(Bw)을 생성할 수 있다(단계 S216).Next, the block weight Bw may be generated by multiplying the G level weight and the histogram weight (step S216).
도 10은 본 실시형태에 관한 블록 중량(Bw)을 설명하기 위한 도면이다. 화상 주변부 블록의 블록 중량(Bw)이 1이 될 수 있다.10 is a diagram for explaining a block weight Bw according to the present embodiment. The block weight Bw of the image peripheral block may be one.
이들 처리(단계 S214~S218)를 반복하여 전체 블록에 대해 블록 중량(Bw)을 산출할 수 있다.These processes (steps S214 to S218) can be repeated to calculate the block weight Bw for the entire block.
그리고, 촬상 화상의 전체 블록수에 대한 블록 중량 Bw=1이 된 블록수의 비율을 산출할 수 있다. 이 비율이 클수록 촬상 화상이 색 분포가 똑같은 피사체가 대면적으로 존재하는 화상이라고 판정할 수 있고, 이 비율을 셰이딩 추정 결과의 신뢰도로 하여 신뢰도와 문턱값을 비교하여 셰이딩 추정 결과의 신뢰성 높이를 판단할 수 있다.And the ratio of the number of blocks which became block weight Bw = 1 with respect to the total number of blocks of a picked-up image can be calculated. As the ratio becomes larger, it is possible to determine that the captured image is an image in which a subject having the same color distribution exists in a large area, and this ratio is used as the reliability of the shading estimation result, and the reliability and threshold are compared to determine the reliability height of the shading estimation result. can do.
또, 촬상 화상이 색 분포가 똑같은 피사체가 대면적으로 존재하는 화상인지는 다른 방법을 이용하여 판정해도 될 수 있다. 예를 들어, 모든 블록 통계값의 분산도를 이용하여 판정해도 될 수 있다.In addition, it may be determined using another method whether the captured image is an image in which a subject having the same color distribution exists in a large area. For example, the determination may be made using the degree of dispersion of all block statistics.
즉, 블록 중량 Bw=1이 된 블록의 비율, 모든 블록 통계값의 분산도 등의 촬상 화상의 평탄도에 기초하여 촬상 화상이 색 분포가 똑같은 피사체가 대면적으로 존재하는 화상인지를 판정해도 될 수 있다.That is, based on the flatness of the picked-up image, such as the ratio of blocks having a block weight Bw = 1, the degree of dispersion of all block statistics, and the like, the picked-up image may be determined to be an image having a large area of the same color distribution. Can be.
본 실시형태에 관한 광원 추정 처리에서는 이와 같이 하여 셰이딩 추정 결과의 확률을 구하고 광원 추정의 확률을 구할 수 있다.In the light source estimation process according to the present embodiment, the probability of the shading estimation result can be obtained in this way and the probability of the light source estimation can be obtained.
이어서, 본 실시형태에 관한 디지털 스틸 카메라(300)의 화이트 밸런스 게인 산출 처리에 대해 설명한다.Next, the white balance gain calculation processing of the digital still camera 300 according to the present embodiment will be described.
도 11은 본 실시형태에 관한 화상 처리 방법의 처리 순서를 나타내는 흐름도이다.11 is a flowchart showing the processing procedure of the image processing method according to the present embodiment.
디지털 스틸 카메라(300)가 피사체를 촬상하면, 상술한 바와 같이 화상 블록 통계 회로(318)가 촬상 화상의 피사체 휘도, 블록 통계값 등을 산출할 수 있다.When the digital still camera 300 picks up the subject, the image block statistics circuit 318 can calculate the subject luminance, the block statistics value, and the like of the picked-up image as described above.
그리고, 셰이딩 추정부(324)가 블록 통계값, 셰이딩 추정 계수 등을 이용하여 촬상 화상의 셰이딩을 추정할 수 있다(단계 S10). 이 셰이딩 추정 처리에 대해서는 특허문헌 2, 일본공개특허 2013-198041호 공보 등에 기재된 처리 방법을 채용할 수 있고, 여기서는 상세한 설명을 생략할 수 있다. 셰이딩 추정부(324)는 셰이딩 추정의 결과로서 촬상 화상에 적합한 셰이딩 추정 계수, 셰이딩 추정 결과의 신뢰도 등을 출력할 수 있다.Then, the shading estimating unit 324 can estimate the shading of the captured image using the block statistics value, the shading estimation coefficient, and the like (step S10). About this shading estimation process, the processing method described in patent document 2, Unexamined-Japanese-Patent No. 2013-198041, etc. can be employ | adopted, and detailed description can be abbreviate | omitted here. The shading estimator 324 may output a shading estimation coefficient suitable for the captured image, a reliability of the shading estimation result, and the like as a result of the shading estimation.
다음으로 광원색 추정부(332)가 피사체 휘도, 셰이딩 추정의 결과 등에 기초하여 광원을 추정하고, 무채색 판정 범위를 선택하여 설정할 수 있다(단계 S20).Next, the light source color estimating unit 332 may estimate the light source based on the object brightness, the result of the shading estimation, and the like, and select and set the achromatic color determination range (step S20).
도 12는 본 실시형태에 관한 광원 추정 방법을 설명하기 위한 도면이다. 광원색 추정부(332)는 도 12에 도시된 바와 같은 피사체 휘도와 셰이딩 추정 계수 번호와 추정 광원의 관계를 나타내는 테이블을 미리 기억하고 있다. 테이블 중의 ※표시는 셰이딩 추정의 신뢰도가 낮은 경우의 선택지를 나타내고 있다. 셰이딩 추정 계수 번호가 큰 것일수록 셰이딩 강도가 큰 화상에 대응하여 화상의 셰이딩을 강하게 보정할 수 있다. 12 is a diagram for explaining a light source estimation method according to the present embodiment. The light source color estimating unit 332 previously stores a table indicating the relationship between the object luminance, the shading estimation coefficient number, and the estimated light source as shown in FIG. In the table, a mark indicates an option when the shading estimation reliability is low. The larger the shading estimation coefficient number is, the more strongly the shading of the image can be corrected in response to the image with the higher shading intensity.
도 13은 본 실시형태에 관한 추정 광원마다의 무채색 판정 범위를 나타내는 도면이다. G/R-G/B 색공간으로 설정한 추정 광원마다의 무채색 판정 범위의 색좌표 범위를 나타내고 있다. Fig. 13 is a diagram illustrating the achromatic color determination range for each of the estimated light sources according to the present embodiment. The color coordinate range of the achromatic determination range for each estimated light source set in the G / R-G / B color space is shown.
광원색 추정부(332)는 도 12에 나타낸 테이블을 참조하여 광원을 추정하고, 도 13에 나타낸 무채색 판정 범위를 선택할 수 있다.The light source color estimating unit 332 may estimate the light source with reference to the table shown in FIG. 12, and select the achromatic color determination range shown in FIG. 13.
예를 들어, 광원색 추정부(332)는 피사체 휘도가 저휘도이고, 셰이딩 추정의 결과로서 선택된 셰이딩 추정 계수가 번호 5이고, 셰이딩 추정의 신뢰도가 높을 때에는 광원은 태양광+전구(HL)라고 추정하여 무채색 판정 범위로서 태양광+전구에 대응하는 것(HL)을 선택할 수 있다.For example, the light source color estimator 332 estimates that the light source is sunlight + light bulb HL when the subject luminance is low, the shading estimation coefficient selected as a result of the shading estimation is number 5, and the reliability of the shading estimation is high. As a colorless determination range, the one corresponding to sunlight + light bulb (HL) can be selected.
또한, 광원색 추정부(332)는 피사체 휘도가 저휘도이고, 셰이딩 추정 결과의 셰이딩 추정 계수가 번호 5이고, 셰이딩 추정의 신뢰도가 낮을 때에는 셰이딩 추정 결과에 관계없이 광원은 전체 광원(A)이라고 추정하여 무채색 판정 범위로서 전체 광원에 대응하는 것(A)을 선택할 수 있다.Further, the light source color estimating unit 332 estimates that the light source is the entire light source A regardless of the shading estimation result when the subject luminance is low, the shading estimation coefficient of the shading estimation result is number 5, and the reliability of the shading estimation is low. (A) corresponding to all the light sources can be selected as the achromatic color determination range.
또한, 광원색 추정부(332)는 피사체 휘도가 중휘도이고, 셰이딩 추정 결과의 셰이딩 추정 계수가 번호 5이고, 셰이딩 추정의 신뢰도가 높을 때에는 광원은 태양광+전구(HL) 또는 태양광(H)이라고 추정하여 무채색 판정 범위로서 태양광+전구에 대응하는 것(HL)과 태양광에 대응하는 것(H), 즉 2개의 범위를 선택할 수 있다.In addition, the light source color estimating unit 332 has a brightness of the subject, the shading estimation coefficient of the shading estimation result is number 5, and when the reliability of the shading estimation is high, the light source is sunlight + light bulb HL or sunlight H. It is estimated that the achromatic color determination range corresponds to sunlight + light bulb (HL) and sunlight (H), that is, two ranges.
또한, 광원색 추정부(332)는 피사체 휘도가 고휘도일 때에는 셰이딩 추정의 결과 및 셰이딩 추정의 신뢰도에 관계없이 광원은 태양광(H)이라고 추정하여 무채색 판정 범위로서 태양광에 대응하는 것(H)을 선택할 수 있다.Further, the light source color estimating unit 332 estimates that the light source is sunlight (H) irrespective of the result of shading estimation and the reliability of the shading estimation when the object luminance is high, and corresponds to sunlight as an achromatic determination range (H). Can be selected.
또, 피사체 휘도는 예를 들어 Bv값(Brightness value)의 4.0, 8.0을 경계로 저휘도, 중휘도, 고휘도를 판단할 수 있다.In addition, the brightness of the subject can be determined, for example, low brightness, medium brightness, and high brightness with respect to 4.0 and 8.0 of the Bv value (Brightness value).
다음으로 광원색 추정부(332)는 단계 S20에서 피사체 휘도가 중휘도이고 무채색 판정 범위를 2개 선택하였을 때에 이들 범위를 이용하여 새로운 범위(이하, 「제2 무채색 판정 범위」라고 함)를 생성할 수 있다(단계 S30).Next, the light source color estimating unit 332 generates a new range (hereinafter referred to as a "second achromatic determination range") using these ranges when the object luminance is the medium luminance and two achromatic determination ranges are selected in step S20. (Step S30).
도 14는 본 실시형태에 관한 제2 무채색 판정 범위의 생성 방법을 설명하기 위한 도면이다. 단계 S20에서, 무채색 판정 범위로서 형광등, LED에 대응하는 것(M)과 태양광에 대응하는 것(H)을 선택하였을 때의 제2 무채색 판정 범위(S)를 생성하는 방법을 나타내고 있다.14 is a diagram for explaining a method for generating the second achromatic determination range according to the present embodiment. In step S20, a method of generating a second achromatic determination range S when selecting a fluorescent lamp, an M corresponding to an LED, and an H corresponding to sunlight (H) is selected as the achromatic determination range.
즉, 2개의 무채색 판정 범위(M, H)의 경계 상에 미리 복수의 대응점(a1~a6)과 대응점(b1~b6)을 정의해 두고, 피사체 휘도(Bv값)에 따라 대응점 간에 보간점(c1~c6)을 생성하고, 보간점(c1~c6)을 선으로 연결하여 제2 무채색 판정 범위를 생성할 수 있다. 이 때, 피사체 휘도가 저휘도 측에 가까운, 즉 Bv값이 4에 가까운 것이면, 저휘도 측의 무채색 판정 범위(M)의 대응점(a1)에 가까운 측에 보간점(c1)을 생성하고, 피사체 휘도가 고휘도 측에 가까운, 즉 Bv값이 8에 가까운 것이면, 고휘도 측의 무채색 판정 범위(H)의 대응점(b1)에 가까운 측에 보간점(c1)을 생성할 수 있다. 예를 들어 Bv값이 5이면, 대응점(a1)과 대응점(b1)을 1:3으로 내분하는 위치에 보간점(c1)을 생성할 수 있다.That is, a plurality of corresponding points a1 to a6 and corresponding points b1 to b6 are defined in advance on the boundary between the two achromatic determination ranges M and H, and the interpolation points between the corresponding points according to the subject luminance (Bv value) ( c1 to c6), and the second achromatic determination range can be generated by connecting the interpolation points c1 to c6 with lines. At this time, if the subject luminance is close to the low luminance side, that is, the Bv value is close to 4, the interpolation point c1 is generated on the side near the corresponding point a1 of the achromatic determination range M on the low luminance side, and the subject If the luminance is close to the high luminance side, that is, the Bv value is close to 8, the interpolation point c1 can be generated on the side near the corresponding point b1 of the achromatic color determination range H on the high luminance side. For example, when the Bv value is 5, the interpolation point c1 may be generated at a position where the correspondence point a1 and the correspondence point b1 are internally 1: 3.
또, 무채색 판정 범위를 n각형으로 정의해 두면, 보간점을 선으로 연결하여 제2 무채색 판정 범위를 생성하는 처리를 간이화할 수 있다.If the achromatic determination range is defined as an n-square, the process of generating the second achromatic determination range by connecting the interpolation points with a line can be simplified.
다음으로 화이트 밸런스 보정 계수 산출부(334)가 블록마다의 색좌표를 산출하고, 이 색좌표가 단계 S20에서 선택한 무채색 판정 범위 또는 단계 S30에서 생성한 제2 무채색 판정 범위에 포함되는지 판정하여, 색좌표가 무채색 판정 범위 또는 제2 무채색 판정 범위에 포함되는 블록은 무채색이라고 판단하여 무채색 블록을 이용하여 화이트 밸런스 게인을 산출할 수 있다(단계 S40).Next, the white balance correction coefficient calculation unit 334 calculates the color coordinates for each block, determines whether the color coordinates fall within the achromatic determination range selected in step S20 or the second achromatic determination range generated in step S30, so that the color coordinates are achromatic. The block included in the determination range or the second achromatic determination range may be determined to be achromatic, and the white balance gain may be calculated using the achromatic block (step S40).
본 실시형태에 관한 화상 처리 방법에서는 화이트 밸런스 게인의 산출 방법 그 자체는 종래 기술의 산출 방법을 이용하면 될 수 있다. 예를 들어, 광원색이라고 생각되는 블록(무채색 블록)의 화소 평균값에 기초하여 화이트 밸런스 게인을 산출해도 될 수 있다.In the image processing method according to the present embodiment, the calculation method itself of the white balance gain can be used using the calculation method of the prior art. For example, you may calculate a white balance gain based on the pixel average value of the block (achromatic block) considered to be a light source color.
그리고, 화이트 밸런스 보정 계수 산출부(334)가 산출한 화이트 밸런스 게인을 화상 신호 처리 회로(308)에 입력하고, 화상 신호 처리 회로(308)에서 화이트 밸런스 보정을 행할 수 있다.Then, the white balance gain calculated by the white balance correction coefficient calculation unit 334 is input to the image signal processing circuit 308, and white balance correction can be performed by the image signal processing circuit 308.
이와 같이, 본 실시형태에 관한 화상 처리 장치 또는 화상 처리 방법은 촬상시의 광원에 따라 촬상 화상의 셰이딩 강도가 다른 것을 이용하여 촬상 화상의 셰이딩 강도로부터 피사체를 비추는 광원을 추정하고, 화이트 밸런스 게인을 산출할 때의 무채색 판정 범위를 변경하여 색 감퇴를 억제하도록 하고 있다.As described above, the image processing apparatus or the image processing method according to the present embodiment estimates the light source that illuminates the subject from the shading intensity of the captured image by using a different shading intensity of the captured image according to the light source at the time of imaging, and then obtains the white balance gain. The color reduction judgment range at the time of calculation is changed to suppress the color decay.
또, 본 실시형태에 관한 화상 처리 장치 또는 화상 처리 방법에서는 셰이딩 추정 계수의 종별에 따라 광원을 추정하고, 광원마다 설정한 무채색 판정 범위를 선택하였지만, 셰이딩 추정 계수의 종별마다 무채색 판정 범위를 설정하고, 셰이딩 추정 계수의 종별에 따라 무채색 판정 범위를 선택해도 될 수 있다. 즉, 광원을 추정하는 순서를 생략해도 될 수 있다.In the image processing apparatus or the image processing method according to the present embodiment, the light source is estimated according to the type of the shading estimation coefficient and the achromatic determination range set for each light source is selected, but the achromatic determination range is set for each type of the shading estimation coefficient. For example, the achromatic determination range may be selected according to the type of the shading estimation coefficient. In other words, the procedure for estimating the light source may be omitted.
또한, 본 실시형태에 관한 화상 처리 장치 또는 화상 처리 방법에서는 셰이딩 추정 계수의 종별에 따라 셰이딩 강도를 추정하였지만, 촬상 화상의 중심부에서의 화소값과 화상의 주변부에서의 화소값의 비, 또는 화상의 중심부에서의 블록 통계값과 화상의 주변부에서의 블록 통계값의 비에 의해 셰이딩 강도를 추정해도 될 수 있다. 그리고, 상기 화소값의 비의 범위마다 또는 상기 블록 통계값의 비의 범위마다 미리 추정 광원 또는 무채색 판정 범위를 설정해 두고, 측정한 화소값의 비 또는 블록 통계값의 비에 따라 무채색 판정 범위를 선택하도록 해도 될 수 있다.In the image processing apparatus or the image processing method according to the present embodiment, the shading intensity is estimated according to the type of the shading estimation coefficient, but the ratio of the pixel value at the center of the captured image to the pixel value at the periphery of the image, or the image The shading intensity may be estimated from the ratio of the block statistics at the center and the block statistics at the periphery of the image. Then, an estimated light source or an achromatic determination range is set in advance for each range of the ratio of the pixel values or for each ratio of the ratio of the block statistical values, and the achromatic determination range is selected according to the ratio of the measured pixel values or the ratio of the block statistical values. It can be done.
또한, 본 실시형태에 관한 화상 처리 장치 또는 화상 처리 방법에서는 피사체 휘도, 셰이딩 추정의 결과 및 셰이딩 추정의 신뢰도를 이용하여 광원을 추정하고 무채색 판정 범위를 선택하도록 하였지만, 상황에 따라 예를 들어 처리 속도를 우선하기 위해 셰이딩 추정의 신뢰도를 이용하지 않고 피사체 휘도 및 셰이딩 추정의 결과를 이용하여 광원을 추정하고 무채색 판정 범위를 선택하도록 해도 되며, 피사체 휘도 및 셰이딩 추정의 신뢰도를 이용하지 않고 셰이딩 추정의 결과만을 이용하여 광원을 추정하고 무채색 판정 범위를 선택하도록 해도 될 수 있다. 즉, 셰이딩 추정 계수의 종별과 추정 광원과 무채색 판정 범위를 대응지어 기억해 두고, 선택된 셰이딩 추정 계수의 종별에 기초하여 광원을 추정하고 무채색 판정 범위를 선택하도록 해도 될 수 있다.In the image processing apparatus or the image processing method according to the present embodiment, the light source is estimated and the achromatic determination range is selected using the subject luminance, the result of the shading estimation, and the reliability of the shading estimation. In order to prioritize the estimation of the light source using the subject luminance and the shading estimation result without using the reliability of the shading estimation, and to select the achromatic determination range, the result of the shading estimation without using the reliability of the subject luminance and the shading estimation Only the light source may be used to estimate the achromatic determination range. That is, the type of the shading estimation coefficient, the estimated light source and the achromatic determination range may be stored in association with each other, and the light source may be estimated and the achromatic determination range may be selected based on the type of the selected shading estimation coefficient.
또한, 본 실시형태에 관한 화상 처리 장치 또는 화상 처리 방법에서는 G/R-G/B 색공간을 이용하여 무채색 판정 범위를 설정하였지만, 색공간은 다른 것을 이용해도 되고, 그 색공간에 맞춘 무채색 판정 범위를 설정해도 될 수 있다.In addition, in the image processing apparatus or the image processing method according to the present embodiment, the achromatic determination range is set using the G / RG / B color space, but a different color space may be used, and the achromatic determination range according to the color space may be used. May be set.
또한, 본 실시형태에 관한 화상 처리 장치 또는 화상 처리 방법에서는 블록마다 색좌표를 산출하고 무채색 판정 범위에 포함되는지 판정하여 화이트 밸런스 게인을 산출하였지만, 화소마다 색좌표를 산출하고 그 화소의 색좌표가 무채색 판정 범위에 포함되는지 판정하여 화소값을 이용하여 화이트 밸런스 게인을 산출해도 될 수 있다. 즉, 화상 처리의 각 단계를 블록 단위로 처리하는 것 대신에 화소 단위로 처리하도록 해도 될 수 있다.In addition, in the image processing apparatus or the image processing method according to the present embodiment, the color coordinates are calculated for each block and determined to be included in the achromatic color determination range, thereby calculating the white balance gain. However, the color coordinates are calculated for each pixel, and the color coordinates of the pixel are achromatic color determination range. The white balance gain may be calculated using the pixel value by determining whether it is included in the. In other words, instead of processing each step of the image processing in units of blocks, the processing may be performed in units of pixels.
또한, 본 실시형태에 관한 화상 처리 장치 또는 화상 처리 방법에서는 피사체 휘도가 중휘도일 때에 2개의 무채색 판정 범위를 선택하여 제2 무채색 판정 범위를 생성하고 설정하였지만, 2개 이상의 무채색 판정 범위를 선택하여 제2 무채색 판정 범위를 생성하도록 해도 되고, 하나의 무채색 판정 범위를 선택하여 설정하도록 해도 될 수 있다.Further, in the image processing apparatus or the image processing method according to the present embodiment, the two achromatic determination ranges are generated and set by selecting two achromatic determination ranges when the subject luminance is the medium luminance, but by selecting two or more achromatic determination ranges, The second achromatic determination range may be generated, or one achromatic determination range may be selected and set.
이상 설명한 바와 같이, 본 실시형태에 관한 디지털 스틸 카메라(300)는 화상의 셰이딩 강도를 추정하는 셰이딩 추정부(324)와, 셰이딩 강도마다의 무채색 판정 범위를 미리 기억하고, 추정한 셰이딩 강도에 대응하는 무채색 판정 범위를 색공간으로 설정하는 광원색 추정부(332)와, 화상 중의 화소의 색좌표를 산출하고, 설정한 무채색 판정 범위에 포함되는 색좌표를 갖는 화소의 화소값에 기초하여 화이트 밸런스 게인을 산출하는 보정 계수 산출부(334)와, 산출한 화이트 밸런스 게인을 이용하여 화상의 화이트 밸런스를 보정하는 화상 신호 처리 회로(308)를 구비하는 것이다.As described above, the digital still camera 300 according to the present embodiment stores in advance the shading estimating unit 324 for estimating the shading intensity of the image and the achromatic determination range for each shading intensity, and corresponds to the estimated shading intensity. A color coordinate of the light source color estimating unit 332 for setting the achromatic color determination range to be the color space, and a pixel value of the pixel having the color coordinates included in the set achromatic color determination range, and calculating the white balance gain. The correction coefficient calculation unit 334 and the image signal processing circuit 308 for correcting the white balance of the image using the calculated white balance gain are provided.
이러한 구성에 의해, 광원을 적절히 추정하고 색 감퇴를 억제하여 화이트 밸런스를 보정할 수 있다.With such a configuration, it is possible to properly estimate the light source, suppress the color decay, and correct the white balance.
또한, 본 실시형태에 관한 디지털 스틸 카메라(300)는 셰이딩 추정부(324)가 화상의 평탄도에 기초하여 셰이딩 추정의 신뢰도를 산출하고, 광원색 추정부(332)가 신뢰도가 소정값 이하였을 때에 소정의 무채색 판정 범위를 색공간으로 설정하는 것이 바람직하다.Further, the digital still camera 300 according to the present embodiment calculates the reliability of the shading estimation based on the flatness of the image by the shading estimating unit 324, and the light source color estimation unit 332 has the reliability lower than or equal to the predetermined value. It is preferable to set a predetermined achromatic determination range as the color space.
이러한 구성에 의해, 셰이딩 추정의 신뢰도에 기초하여 광원을 더욱 적절히 추정하여 색 감퇴를 더욱 억제할 수 있다.With such a configuration, it is possible to more appropriately estimate the light source based on the reliability of the shading estimation to further suppress the color decay.
또한, 본 실시형태에 관한 디지털 스틸 카메라(300)는 광원색 추정부(332)가 화상의 피사체 휘도가 소정의 범위 내일 때에 복수의 무채색 판정 범위를 선택하고, 복수의 무채색 판정 범위에 기초하여 제2 무채색 판정 범위를 생성하고, 제2 무채색 판정 범위를 무채색 판정 범위로서 색공간으로 설정하는 것이 바람직하다.Further, in the digital still camera 300 according to the present embodiment, the light source color estimating unit 332 selects a plurality of achromatic determination ranges when the object brightness of the image is within a predetermined range, and based on the plurality of achromatic determination ranges, It is preferable to generate an achromatic determination range and set the second achromatic determination range as the colorless determination range to the color space.
이러한 구성에 의해, 제2 무채색 판정 범위로서 무채색 판정 범위를 보다 적절히 설정하여 화이트 밸런스 게인을 보다 정밀도 높게 산출할 수 있다.By such a configuration, the white achromatic determination range can be set more appropriately as the second achromatic determination range, and the white balance gain can be calculated with higher accuracy.
또한, 본 실시형태에 관한 디지털 스틸 카메라(300)는 셰이딩 추정부(324)가 화상에 복수의 셰이딩 추정 계수를 적용하여 화상을 적절히 보정하는 셰이딩 추정 계수를 선택하고, 광원색 추정부(332)가 셰이딩 추정 계수마다 무채색 판정 범위를 기억하고, 선택한 셰이딩 추정 계수에 대응하는 무채색 판정 범위를 설정하는 것이 바람직하다.In addition, in the digital still camera 300 according to the present embodiment, the shading estimating unit 324 applies a plurality of shading estimation coefficients to the image to select the shading estimation coefficient to properly correct the image, and the light source color estimation unit 332 It is preferable to store the achromatic determination range for each shading estimation coefficient and to set the achromatic determination range corresponding to the selected shading estimation coefficient.
이러한 구성에 의해, 선택한 셰이딩 추정 계수에 기초하여 광원을 간이하게 적절히 추정하여 색 감퇴를 억제할 수 있다.With such a configuration, it is possible to easily and easily estimate the light source based on the selected shading estimation coefficient to suppress the color decay.
또한, 본 실시형태에 관한 디지털 스틸 카메라(300)는 화상을 복수의 블록으로 분할하고, 블록마다 화소값을 통계한 블록 통계값을 산출하는 화상 블록 통계 회로(318)를 더 구비하고, 셰이딩 추정 계수는 블록에 각각 대응하는 계수값을 가지며, 셰이딩 추정부(324)는 블록 통계값과 계수값을 곱셈하여 화상을 적절히 보정하는 셰이딩 추정 계수를 선택하고, 보정 계수 산출부(334)는 블록의 색좌표를 산출하고, 설정한 무채색 판정 범위에 포함되는 색좌표를 갖는 블록의 블록 통계값에 기초하여 화이트 밸런스 게인을 산출하는 것이 바람직하다.In addition, the digital still camera 300 according to the present embodiment further includes an image block statistics circuit 318 for dividing an image into a plurality of blocks and calculating block statistical values for which the pixel values are statistically calculated for each block, and the shading estimation The coefficients each have a coefficient value corresponding to the block, the shading estimator 324 multiplies the block statistics with the coefficient value and selects the shading estimation coefficients to properly correct the image, and the correction coefficient calculator 334 selects the It is preferable to calculate a color coordinate and calculate a white balance gain based on the block statistical value of the block which has a color coordinate contained in the set achromatic determination range.
이러한 구성에 의해, 셰이딩 추정부터 화이트 밸런스 게인 산출까지의 전체 연산량을 삭감하면서 광원을 적절히 추정하고 화이트 밸런스를 적절히 보정할 수 있다.With such a configuration, it is possible to appropriately estimate the light source and appropriately correct the white balance while reducing the total calculation amount from the shading estimation to the white balance gain calculation.
또한, 본 실시형태에 관한 화상 처리 방법은 셰이딩 강도마다의 무채색 판정 범위를 기억하는 단계와, 화상의 셰이딩 강도를 추정하는 단계 S10와, 추정한 셰이딩 강도에 대응하는 무채색 판정 범위를 색공간으로 설정하는 단계 S20, S30와, 화상 중의 화소의 색좌표를 산출하고, 설정한 무채색 판정 범위에 포함되는 색좌표를 갖는 화소의 화소값에 기초하여 화이트 밸런스 게인을 산출하는 단계 S40와, 산출한 화이트 밸런스 게인을 이용하여 화상의 화이트 밸런스를 보정하는 단계를 갖는 것이다.Further, the image processing method according to the present embodiment sets a color space for storing the achromatic determination range for each shading intensity, step S10 for estimating the shading intensity of the image, and achromatic determination range corresponding to the estimated shading intensity. And calculating the white balance gain based on the pixel coordinates of the pixels having the color coordinates included in the set achromatic determination range, and calculating the color coordinates of the pixels in the image. To correct the white balance of the image.
이러한 구성에 의해, 광원을 적절히 추정하고 색 감퇴를 억제하여 화이트 밸런스를 보정할 수 있다.With such a configuration, it is possible to properly estimate the light source, suppress the color decay, and correct the white balance.

Claims (13)

  1. 화상 획득 장치에 있어서,In the image acquisition device,
    화상을 획득하는 화상 획득부; An image acquisition unit which acquires an image;
    셰이딩 강도마다의 무채색 판정 범위를 미리 기억하고, 상기 획득한 화상의 셰이딩 강도에 대응하는 무채색 판정 범위를 색공간으로 결정하는 제어부를 포함하는, 화상 획득 장치.And a control unit which stores in advance the achromatic determination range for each shading intensity, and determines the achromatic determination range corresponding to the shading intensity of the obtained image as the color space.
  2. 제 1 항에 있어서, The method of claim 1,
    상기 제어부는 상기 결정한 무채색 판정 범위에 포함되는 색좌표를 갖는 화소의 화소값에 기초하여 화이트 밸런스 게인을 산출하고, 상기 산출한 화이트 밸런스 게인을 이용하여 상기 화상의 화이트 밸런스를 보정하는, 화상 획득 장치.And the controller calculates a white balance gain based on pixel values of pixels having color coordinates included in the determined achromatic color determination range, and corrects the white balance of the image using the calculated white balance gain.
  3. 제2항에 있어서,The method of claim 2,
    상기 제어부는 상기 화상의 평탄도에 기초하여 셰이딩 추정의 신뢰도를 산출하고, 상기 신뢰도가 소정값 이하였을 때의 소정의 무채색 판정 범위를 상기 색공간으로 설정하는, 화상 획득 장치.And the control unit calculates the reliability of the shading estimation based on the flatness of the image, and sets a predetermined achromatic determination range when the reliability is less than or equal to the predetermined value to the color space.
  4. 제2항에 있어서,The method of claim 2,
    상기 제어부는 상기 화상의 피사체 휘도가 소정의 범위 내일 때, 복수의 상기 무채색 판정 범위를 선택하고, 상기 복수의 무채색 판정 범위에 기초하여 제2 무채색 판정 범위를 생성하며, 상기 제2 무채색 판정 범위를 상기 무채색 판정 범위로서 상기 색공간으로 설정하는, 화상 획득 장치.The control unit selects a plurality of the achromatic determination ranges when the object luminance of the image is within a predetermined range, generates a second achromatic determination range based on the plurality of achromatic determination ranges, and generates the second achromatic determination range. An image acquisition device, which sets the color space as the achromatic color determination range.
  5. 제2항에 있어서,The method of claim 2,
    상기 제어부는 상기 화상에 복수의 셰이딩 추정 계수를 적용하여 상기 화상을 보정하는 셰이딩 추정 계수를 선택하고, 상기 셰이딩 추정 계수마다 무채색 판정 범위를 기억하고, 상기 선택한 셰이딩 추정 계수에 대응하는 무채색 판정 범위를 설정하는, 화상 획득 장치.The control unit selects a shading estimation coefficient for correcting the image by applying a plurality of shading estimation coefficients to the image, stores the achromatic determination range for each shading estimation coefficient, and determines the achromatic determination range corresponding to the selected shading estimation coefficient. An image acquisition device to set.
  6. 제5항에 있어서,The method of claim 5,
    상기 제어부는 상기 화상을 복수의 블록으로 분할하고, 상기 블록마다 화소값의 블록 통계값을 산출하고,The control unit divides the image into a plurality of blocks, calculates a block statistical value of pixel values for each block,
    상기 셰이딩 추정 계수는 상기 블록에 각각 대응하는 계수값을 가지며,The shading estimation coefficients each have a coefficient value corresponding to the block,
    상기 제어부는 상기 블록 통계값과 상기 계수값을 곱셈하여 상기 화상을 보정하는 셰이딩 추정 계수를 선택하고, 상기 블록의 색좌표를 산출하고, 상기 설정한 무채색 판정 범위에 포함되는 색좌표를 갖는 블록의 상기 블록 통계값에 기초하여 상기 화이트 밸런스 게인을 산출하는, 화상 획득 장치.The control unit selects a shading estimation coefficient for correcting the image by multiplying the block statistical value and the coefficient value, calculating a color coordinate of the block, and the block of the block having color coordinates included in the set achromatic determination range. And calculating the white balance gain based on a statistical value.
  7. 화상 획득 방법에 있어서,In the image acquisition method,
    화상을 획득하는 단계;Obtaining an image;
    셰이딩 강도를 추정하는 단계; 및Estimating the shading intensity; And
    셰이딩 강도마다의 무채색 판정 범위를 미리 기억하고, 상기 획득한 화상의 셰이딩 강도에 대응하는 무채색 판정 범위를 색공간으로 결정하는 단계를 포함하는, 화상 획득 방법.And storing the achromatic determination range for each shading intensity in advance and determining the achromatic determination range corresponding to the shading intensity of the obtained image as the color space.
  8. 제7항에 있어서,The method of claim 7, wherein
    상기 결정한 무채색 판정 범위에 포함되는 색좌표를 갖는 화소의 화소값에 기초하여 화이트 밸런스 게인을 산출하는 단계; 및Calculating a white balance gain based on pixel values of pixels having color coordinates included in the determined achromatic color determination range; And
    상기 산출한 화이트 밸런스 게인을 이용하여 상기 화상의 화이트 밸런스를 보정하는 단계를 포함하는, 화상 획득 방법.Correcting the white balance of the image using the calculated white balance gain.
  9. 제8항에 있어서,The method of claim 8,
    상기 셰이딩 강도를 추정하는 단계는 상기 화상의 평탄도에 기초하여 셰이딩 추정의 신뢰도를 산출하는 단계를 포함하고,Estimating the shading intensity includes calculating a reliability of the shading estimate based on the flatness of the image,
    상기 무채색 판정 범위를 색공간으로 설정하는 단계는 상기 신뢰도가 소정값 이하였을 때의 소정의 무채색 판정 범위를 상기 색공간으로 설정하는 단계를 포함하는, 화상 획득 방법.And setting the achromatic color determination range to a color space includes setting a predetermined achromatic color determination range to the color space when the reliability is less than or equal to a predetermined value.
  10. 제8항에 있어서,The method of claim 8,
    상기 무채색 판정 범위를 색공간으로 설정하는 단계는,The setting of the achromatic color determination range to a color space may include:
    상기 화상의 피사체 휘도가 소정의 범위 내일 때, 복수의 상기 무채색 판정 범위를 선택하고, 상기 복수의 무채색 판정 범위에 기초하여 제2 무채색 판정 범위를 생성하는 단계; 및 Selecting a plurality of said achromatic determination ranges, and generating a second achromatic determination range based on said plurality of achromatic determination ranges, when a subject luminance of said image is within a predetermined range; And
    상기 제2 무채색 판정 범위를 상기 무채색 판정 범위로서 상기 색공간으로 설정하는 단계를 포함하는, 화상 획득 방법.And setting the second achromatic determination range as the achromatic determination range as the color space.
  11. 제8항에 있어서,The method of claim 8,
    상기 셰이딩 강도를 추정하는 단계는 상기 화상에 복수의 셰이딩 추정 계수를 적용하여 상기 화상을 보정하는 셰이딩 추정 계수를 선택하는 단계를 포함하고,Estimating the shading intensity includes applying a plurality of shading estimation coefficients to the image to select a shading estimation coefficient to correct the image,
    상기 무채색 판정 범위를 색공간으로 설정하는 단계는 상기 셰이딩 추정 계수마다 무채색 판정 범위를 기억하고, 상기 선택한 셰이딩 추정 계수에 대응하는 무채색 판정 범위를 설정하는 단계를 포함하는, 화상 획득 방법.The setting of the achromatic determination range as a color space includes storing the achromatic determination range for each shading estimation coefficient and setting an achromatic determination range corresponding to the selected shading estimation coefficient.
  12. 제11항에 있어서,The method of claim 11,
    상기 화상을 복수의 블록으로 분할하고, 상기 블록마다 화소값의 블록 통계값을 산출하는 단계를 더 포함하고,Dividing the image into a plurality of blocks, and calculating block statistical values of pixel values for each block;
    상기 셰이딩 추정 계수는 상기 블록에 각각 대응하는 계수값을 가지며,The shading estimation coefficients each have a coefficient value corresponding to the block,
    상기 셰이딩 강도를 추정하는 단계는 상기 블록 통계값과 상기 계수값을 곱셈하여 상기 화상을 보정하는 셰이딩 추정 계수를 선택하는 단계를 포함하고,Estimating the shading intensity comprises multiplying the block statistics with the coefficients to select a shading estimation coefficient to correct the image,
    상기 화이트 밸런스 게인을 산출하는 단계는,Calculating the white balance gain,
    상기 블록의 색좌표를 산출하는 단계; 및 Calculating color coordinates of the block; And
    상기 설정한 무채색 판정 범위에 포함되는 색좌표를 갖는 블록의 상기 블록 통계값에 기초하여 상기 화이트 밸런스 게인을 산출하는 단계를 포함하는, 화상 획득 방법.And calculating the white balance gain based on the block statistical value of the block having color coordinates included in the set achromatic color determination range.
  13. 제7항 내지 제12항의 방법을 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체.A computer-readable recording medium having recorded thereon a program for executing the method of claim 7 to a computer.
PCT/KR2016/009833 2015-09-09 2016-09-02 Image processing apparatus and image processing method WO2017043811A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/758,208 US10491875B2 (en) 2015-09-09 2016-09-02 Image processing apparatus and image processing method

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2015177325A JP6563751B2 (en) 2015-09-09 2015-09-09 Image processing apparatus and image processing method
JP2015-177325 2015-09-09
KR1020160048258A KR102491544B1 (en) 2015-09-09 2016-04-20 Imaging processing device and Imaging processing method
KR10-2016-0048258 2016-04-20

Publications (1)

Publication Number Publication Date
WO2017043811A1 true WO2017043811A1 (en) 2017-03-16

Family

ID=58240130

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2016/009833 WO2017043811A1 (en) 2015-09-09 2016-09-02 Image processing apparatus and image processing method

Country Status (1)

Country Link
WO (1) WO2017043811A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020146118A1 (en) * 2019-01-11 2020-07-16 Qualcomm Incorporated Lens rolloff assisted auto white balance
CN112261397A (en) * 2020-10-19 2021-01-22 深圳Tcl数字技术有限公司 White balance verification method, terminal device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110016812A (en) * 2009-08-12 2011-02-18 삼성테크윈 주식회사 Photographing apparatus and photographing method
KR20120069539A (en) * 2010-12-20 2012-06-28 삼성테크윈 주식회사 Device for estimating light source and method thereof
KR20130069331A (en) * 2011-12-16 2013-06-26 가부시끼가이샤 도시바 Auto white balance adjustment system, auto white balance adjustment method, and camera module
JP2013198041A (en) * 2012-03-22 2013-09-30 Samsung R&D Institute Japan Co Ltd Image processing device
JP2015005927A (en) * 2013-06-21 2015-01-08 キヤノン株式会社 Image processing apparatus and control method of the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110016812A (en) * 2009-08-12 2011-02-18 삼성테크윈 주식회사 Photographing apparatus and photographing method
KR20120069539A (en) * 2010-12-20 2012-06-28 삼성테크윈 주식회사 Device for estimating light source and method thereof
KR20130069331A (en) * 2011-12-16 2013-06-26 가부시끼가이샤 도시바 Auto white balance adjustment system, auto white balance adjustment method, and camera module
JP2013198041A (en) * 2012-03-22 2013-09-30 Samsung R&D Institute Japan Co Ltd Image processing device
JP2015005927A (en) * 2013-06-21 2015-01-08 キヤノン株式会社 Image processing apparatus and control method of the same

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020146118A1 (en) * 2019-01-11 2020-07-16 Qualcomm Incorporated Lens rolloff assisted auto white balance
CN112261397A (en) * 2020-10-19 2021-01-22 深圳Tcl数字技术有限公司 White balance verification method, terminal device and readable storage medium
CN112261397B (en) * 2020-10-19 2023-05-23 深圳Tcl数字技术有限公司 White balance verification method, terminal device and readable storage medium

Similar Documents

Publication Publication Date Title
WO2018048231A1 (en) Method and electronic device for producing composite image
WO2015141925A1 (en) Photographing apparatus, method of controlling the same, and computer-readable recording medium
WO2016047894A1 (en) Apparatus and method for correcting/controlling camera image by using color/illumination sensor
WO2014148829A1 (en) Method and apparatus for processing an image based on detected information
KR102491544B1 (en) Imaging processing device and Imaging processing method
KR20070024559A (en) Imaging device and signal processing method
WO2013073757A1 (en) Photographing apparatus and image processing apparatus using coded light, and method thereof
US20120281110A1 (en) Image processing apparatus and image processing method
WO2015102203A1 (en) Image processing apparatus, image processing method, and computer-readable recording medium
WO2019156308A1 (en) Apparatus and method for estimating optical image stabilization motion
WO2020076128A1 (en) Method and electronic device for switching between first lens and second lens
WO2013089370A1 (en) Image pickup apparatus, method of performing image compensation, and computer readable recording medium
WO2021133025A1 (en) Electronic device comprising image sensor and method of operation thereof
WO2021125645A1 (en) Method for providing white balance and electronic device supporting same
WO2016167499A1 (en) Photographing apparatus and method for controlling photographing apparatus
WO2015122604A1 (en) Solid-state image sensor, electronic device, and auto focusing method
US8482631B2 (en) Image processing apparatus, camera module and electronic device
WO2018110889A1 (en) Image white balance correction method and electronic device
KR100651813B1 (en) Strobo control apparatus, and strobo control method
WO2017043811A1 (en) Image processing apparatus and image processing method
WO2016129796A1 (en) Color table creating device, camera image correction/control device and method therefor
WO2017014404A1 (en) Digital photographing apparatus and digital photographing method
WO2019088407A1 (en) Camera module comprising complementary color filter array and electronic device comprising same
WO2019117549A1 (en) Imaging apparatus, imaging method, and computer program product
JP2013128259A (en) Imaging apparatus, image processing apparatus, image processing program, and image processing method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16844631

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15758208

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16844631

Country of ref document: EP

Kind code of ref document: A1