WO2007032324A1 - Imaging device, image processing device, image processing method, and image processing program - Google Patents
Imaging device, image processing device, image processing method, and image processing program Download PDFInfo
- Publication number
- WO2007032324A1 WO2007032324A1 PCT/JP2006/318009 JP2006318009W WO2007032324A1 WO 2007032324 A1 WO2007032324 A1 WO 2007032324A1 JP 2006318009 W JP2006318009 W JP 2006318009W WO 2007032324 A1 WO2007032324 A1 WO 2007032324A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- index
- image data
- brightness
- correction amount
- setting
- Prior art date
Links
- 238000003384 imaging method Methods 0.000 title claims abstract description 33
- 238000003672 processing method Methods 0.000 title claims description 12
- 238000012937 correction Methods 0.000 claims abstract description 538
- 238000004364 calculation method Methods 0.000 claims abstract description 171
- 238000004458 analytical method Methods 0.000 claims abstract description 42
- 238000000034 method Methods 0.000 claims description 58
- 230000008569 process Effects 0.000 claims description 52
- 230000001629 suppression Effects 0.000 claims description 38
- 239000000203 mixture Substances 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 37
- 238000010586 diagram Methods 0.000 description 22
- 229920006395 saturated elastomer Polymers 0.000 description 12
- 238000010191 image analysis Methods 0.000 description 11
- 230000008859 change Effects 0.000 description 7
- 101100115215 Caenorhabditis elegans cul-2 gene Proteins 0.000 description 5
- 230000001186 cumulative effect Effects 0.000 description 4
- 230000010365 information processing Effects 0.000 description 4
- 239000003086 colorant Substances 0.000 description 3
- 238000007781 pre-processing Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 235000012736 patent blue V Nutrition 0.000 description 2
- 230000035945 sensitivity Effects 0.000 description 2
- 230000003595 spectral effect Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 238000000418 atomic force spectrum Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005553 drilling Methods 0.000 description 1
- 238000000491 multivariate analysis Methods 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 235000019640 taste Nutrition 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000009966 trimming Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/46—Colour picture communication systems
- H04N1/56—Processing of colour picture signals
- H04N1/60—Colour correction or control
- H04N1/6083—Colour correction or control controlled by factors external to the apparatus
- H04N1/6086—Colour correction or control controlled by factors external to the apparatus by scene illuminant, i.e. conditions at the time of picture capture, e.g. flash, optical filter used, evening, cloud, daylight, artificial lighting, white point measurement, colour temperature
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/76—Circuitry for compensating brightness variation in the scene by influencing the image signals
Definitions
- Imaging apparatus image processing apparatus, image processing method, and image processing program
- the present invention relates to an imaging device, an image processing device, an image processing method, and an image processing program that perform brightness correction processing of captured image data.
- the brightness of captured image data is automatically adjusted so that the brightness of a main subject (for example, a human face region) in captured image data is appropriately finished.
- a correction amount and a correction curve for correcting the brightness of the captured image data are set based on the brightness obtained by analyzing the main subject of the captured image data.
- a method is known (see, for example, Patent Document 2).
- Patent Document 1 Japanese Patent Laid-Open No. 2005-72930
- Patent Document 2 JP 2002-247393 A
- An object of the present invention is to appropriately correct the brightness of captured image data.
- the invention described in claim 1 is a process for photographing a subject to obtain photographed image data and optimizing the brightness of a main subject in the photographed image data.
- a plurality of first temporary corrections for the captured image data First temporary correction amount setting means for setting the amount;
- First mixing coefficient setting means for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculating means;
- At least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor.
- 2nd mixing coefficient setting means for setting the mixing coefficient
- Correction amount calculating means for calculating a brightness correction amount of the captured image data based on a positive amount and the second temporary correction amount
- a correction curve generating means for generating a correction curve for converting the captured image data based on the brightness correction amount calculated by the correction amount calculating means, the natural light index, and the brightness ratio index;
- Correction means for correcting the brightness of the captured image data in accordance with the correction curve generated by the correction curve generation means.
- the invention described in claim 2 is an imaging apparatus that captures captured image data by capturing a subject, and performs processing for optimizing the brightness of a main subject in the captured image data.
- a plurality of first temporary corrections for the captured image data First temporary correction amount setting means for setting the amount;
- First mixing coefficient setting means for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculating means;
- At least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor.
- 2nd mixing coefficient setting means for setting the mixing coefficient
- a quantity calculating means Based on the number of pixels of high saturation having a predetermined hue that is set based on the natural light index, and the saturation of the captured image data is higher than a predetermined threshold value, V / A suppression coefficient setting means for setting a suppression coefficient for suppressing the brightness correction amount of the data, and a new brightness correction amount by multiplying the brightness correction amount calculated by the correction amount calculation means by the suppression coefficient Multiplication means for calculating
- a correction curve generation means for generating a correction curve for converting the captured image data based on the new brightness correction amount obtained by the multiplication means, the natural light index, and the luminance ratio index;
- Correction means for correcting the brightness of the captured image data in accordance with the correction curve generated by the correction curve generation means.
- the invention described in claim 3 is the imaging device according to claim 1 or 2, wherein
- the index calculation means divides the photographed image data into regions composed of a combination of predetermined brightness and hue, and calculates a first occupancy ratio indicating the proportion of the entire photographed image data for each of the divided regions.
- the first calculation process and the photographed image data are divided into predetermined areas having a combination power of the distance from the outer edge of the screen of the photographed image data and the brightness, and each divided area occupies the entire photographed image data Execute at least one of the second calculation processes for calculating the second occupation ratio indicating the ratio,
- the natural light index, the luminance ratio index, The exposure index is calculated.
- the invention described in claim 4 is an image processing apparatus that performs processing for optimizing the brightness of a main subject in captured image data.
- the brightness analysis value of the captured image data, the brightness reproduction target value, and the index calculation First temporary correction amount setting means for setting a plurality of first temporary correction amounts for the captured image data based on the brightness ratio index and the exposure index calculated by the stage;
- First mixing coefficient setting means for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculating means;
- At least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor.
- 2nd mixing coefficient setting means for setting the mixing coefficient
- a quantity calculating means for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount.
- a correction curve generating means for generating a correction curve for converting the captured image data based on the brightness correction amount calculated by the correction amount calculating means, the natural light index, and the brightness ratio index;
- Correction means for correcting the brightness of the captured image data in accordance with the correction curve generated by the correction curve generation means.
- the invention described in claim 5 is an image processing apparatus for performing processing for optimizing the brightness of a main subject in captured image data
- a plurality of first temporary corrections for the captured image data First temporary correction amount setting means for setting the amount;
- First mixing coefficient setting means for setting a first mixing coefficient as a weighting coefficient for multiplying each positive amount
- At least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor.
- 2nd mixing coefficient setting means for setting the mixing coefficient
- a quantity calculating means for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount.
- V / A suppression coefficient setting means for setting a suppression coefficient for suppressing the brightness correction amount of the data, and a new brightness correction amount by multiplying the brightness correction amount calculated by the correction amount calculation means by the suppression coefficient Multiplication means for calculating
- a correction curve generation means for generating a correction curve for converting the captured image data based on the new brightness correction amount obtained by the multiplication means, the natural light index, and the luminance ratio index;
- Correction means for correcting the brightness of the captured image data in accordance with the correction curve generated by the correction curve generation means.
- the invention according to claim 6 is the image processing apparatus according to claim 4 or 5, wherein
- the index calculation means divides the photographed image data into regions composed of a combination of predetermined brightness and hue, and calculates a first occupancy ratio indicating the proportion of the entire photographed image data for each of the divided regions.
- the first calculation process and the photographed image data are divided into predetermined areas having a combination power of the distance from the outer edge of the screen of the photographed image data and the brightness, and each of the divided areas occupies the entire photographed image data Second occupancy showing percentage Execute at least one of the second calculation processes for calculating the rate,
- the natural light index, the luminance ratio index, The exposure index is calculated.
- the invention described in claim 7 is an image processing method for performing a process of optimizing the brightness of a main subject in captured image data.
- a first mixing coefficient setting step for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculation step;
- a second temporary correction amount for setting a second temporary correction amount for the captured image data A setting process Based on the first mixing coefficient set in the first mixing coefficient setting step and the plurality of first temporary correction amounts, a second temporary correction amount for setting a second temporary correction amount for the captured image data A setting process;
- At least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor.
- Correction for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount.
- a correction curve generating step for generating a correction curve for converting the captured image data based on the brightness correction amount calculated by the correction amount calculating step, the natural light index, and the brightness ratio index; And a correction step of correcting the brightness of the captured image data according to the correction curve generated by the correction curve generation step.
- the invention described in claim 8 is an image processing method for performing a process of optimizing the brightness of a main subject in captured image data.
- a first mixing coefficient setting step for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculation step;
- a second temporary correction amount for setting a second temporary correction amount for the captured image data A setting process Based on the first mixing coefficient set in the first mixing coefficient setting step and the plurality of first temporary correction amounts, a second temporary correction amount for setting a second temporary correction amount for the captured image data A setting process;
- At least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor.
- Correction for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount.
- V / A suppression coefficient setting step for setting a suppression coefficient for suppressing the brightness correction amount of the data, and a new brightness correction amount by multiplying the brightness correction amount calculated by the correction amount calculation step by the suppression coefficient
- New brightness correction amount obtained by the multiplication step, the natural light index, and the luminance A correction curve generating step for generating a correction curve for converting the captured image data based on the ratio index;
- the invention according to claim 9 is the image processing method according to claim 7 or 8,
- the photographed image data is divided into regions that are combinations of predetermined brightness and hue, and a first occupancy ratio that indicates a proportion of the entire photographed image data for each of the divided regions
- the first calculation process for calculating the image data and the captured image data are divided into predetermined areas having a combination power of distance and brightness from the outer edge of the screen of the captured image data, and the captured image data is divided into the divided areas.
- the natural light index, the luminance ratio index, The exposure index is calculated.
- An image processing program according to claim 10 is stored in a computer.
- a first mixing coefficient setting function for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculation function;
- Second temporary correction for setting a second temporary correction amount for the captured image data based on the first mixing coefficient set by the first mixing coefficient setting function and the plurality of first temporary correction amounts.
- At least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor. 2nd mixing coefficient setting function to set the mixing coefficient,
- Correction for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount.
- a correction curve generation function for generating a correction curve for converting the captured image data based on the brightness correction amount calculated by the correction amount calculation function, the natural light index, and the brightness ratio index;
- the image processing program according to claim 11 is stored in a computer.
- a first mixing coefficient setting function for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculation function;
- a second temporary correction amount for setting a second temporary correction amount for the photographed image data based on the first mixing coefficient set by the first mixing coefficient setting function and the plurality of first temporary correction amounts.
- At least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor.
- 2nd mixing coefficient setting function to set the mixing coefficient, Correction for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount.
- V / A suppression coefficient setting function for setting a suppression coefficient for suppressing the brightness correction amount of the data, and a new brightness correction amount by multiplying the brightness correction amount calculated by the correction amount calculation function by the suppression coefficient A multiplication function for calculating
- a correction curve generation function for generating a correction curve for converting the photographed image data based on the new brightness correction amount obtained by the multiplication function, the natural light index, and the luminance ratio index;
- the invention according to claim 12 is the image processing program according to claim 10 or 11, wherein the index calculation function is realized when the index calculation function is realized.
- First calculation processing that divides photographed image data into regions that are a combination of predetermined brightness and hue, and calculates a first occupancy ratio that indicates a proportion of the entire photographed image data for each of the divided regions
- the photographed image data is divided into predetermined areas having a combination power of distance and brightness from the outer edge of the screen of the photographed image data, and the ratio of the divided area to the whole photographed image data is shown for each divided area.
- the natural light index, the luminance ratio index, The exposure index is calculated.
- Optimizing the brightness of the main subject in the captured image data means, for example, that the brightness of the human face area, which is the main subject of the captured image data, outputs the captured image data It means that it is reproduced at the optimum brightness on the device (eg printer).
- Natural light refers to light that uses the sun as a light source, which is not an artificial light source such as steady light or flash light (referred to as “strobe”, “flash”, “speed light”, etc.). is there. Also known as daylight. Daylight is a term that refers to an artificial light source with a color temperature close to that of daylight (approximately 5500K), and is therefore different from “natural light”.
- Outdoor shooting degree (also referred to as “natural light index”) estimates whether or not the shot image data was taken using “natural light” and shows the result quantitatively. It is a numerical value. Many scenes that have been shot using “natural light” and that require brightness correction have many backlight scenes. Is expensive. On the other hand, for indoor or strobe shooting scenes taken without using “natural light”, a high-brightness area or low-saturation skin color area at the center of the screen, and a low-brightness area or low-brightness skin color around the screen. Highly saturated skin color tends to be distributed. Based on such experience, it is possible to quantitatively indicate whether or not the image is taken using “natural light” as “outdoor imaging degree”.
- multivariate analysis as a statistical processing method that derives one tendency from many variables, such as the brightness at the top of the screen and the number of pixels in the sky blue hue, the brightness at the bottom of the screen and the number of pixels in the skin tone hue.
- Luminance ratio index indicating the size of the dynamic range means that the brightness of the main subject area and the background area depends on the light source conditions at the time of shooting such as a backlight scene or strobe shooting scene. It is a value that indicates the degree of difference quantitatively. For example, in a backlight scene, the sky, which is the background area in which the human face area is dark, is a bright image due to the photographer turning the camera in the direction of the sun and shooting a person. That is, if the brightness difference value between the human face area and the background area is obtained, the difference value can be used as one of the indices. In general, it is known to obtain a difference value by drawing a histogram of image difference image data.
- the “brightness analysis value” of photographed image data is a numerical value indicating the average brightness of an image obtained by examining the distribution state of pixel values.
- the “brightness analysis value” is preferably the brightness of the most important subject (main subject) in the captured image data.
- the human face area is searched by collation in the color system using hue, saturation, and brightness. For higher accuracy
- face detection in which parts constituting the face, such as the eyes “nose” mouth and face contour, are collated.
- an exposure index representing the exposure shooting degree (under shooting or over shooting) resulting from the exposure setting at the time of shooting may be calculated, and this exposure index may be used as the brightness analysis value.
- the analysis method of the brightness analysis value is not limited to the analysis of the captured image data. For example, the brightness obtained by analyzing the automatic exposure information of the imaging device and the additional information recorded in the automatic exposure information is used. May be.
- the “reproduction target value” is, for example, a numerical value indicating the brightness necessary for the human face area, which is the main subject of the captured image data, to be optimally reproduced in the output device that outputs the captured image data. is there. That is, if the “brightness analysis value” of the photographed image data is a value that approximates the “reproduction target value”, it means that the probability that the output device is optimally reproduced is high.
- the “first provisional correction amount” is a numerical value that temporarily indicates the correction amount necessary for approximating the “brightness analysis value” to the “reproduction target value”.
- “Set the first provisional correction amount” means creating a one-dimensional LUT (Look Up Table) that defines the relationship between the “brightness analysis value” and the “first provisional correction amount” in advance. This means that the “first provisional correction amount” is determined based on the one-dimensional LUT and the “brightness analysis value”.
- “setting multiple first provisional correction values” means “calculating brightness analysis values” under different conditions, or setting different “reproduction target values” (defining multiple 1D LUTs). Or at least two “first provisional correction amounts” temporarily.
- two one-dimensional LUTs for setting “first provisional correction amount” are defined, assuming brightness correction of a human face area in a backlight scene and a flash photography scene.
- at least one 1D LUT for setting the “first provisional correction amount” that assumes brightness correction of the entire image in under and over shooting scenes is used. It is desirable to define.
- “Set the first temporary correction amount” is the dynamic range power of the shot image data. This means that the brightness correction amount set based on the brightness of the main subject is weakened and the brightness correction amount is set based on the brightness ratio index so that it falls within the dynamic range of the output device. .
- “Setting the first mixing coefficient” based on the natural light index is a one-dimensional definition that defines in advance the relationship between the “natural light index” and the “first mixing coefficient” by which each first temporary correction amount is multiplied. This means that LUTs, etc., are created for the number of first temporary correction amounts, and based on this one-dimensional LUT and the ⁇ natural light index '', the ⁇ first mixing coefficient '' to be multiplied by each first temporary correction amount is determined. To do. Note that the first mixing factor may be adjusted based on the luminance ratio index!
- a one-dimensional LUT for setting the “first provisional correction amount” assuming brightness correction of a human face area in a backlight scene (Define one-dimensional LUT so that the “first mixing coefficient” of input: flesh tone average luminance, output: first temporary correction amount) becomes high.
- a one-dimensional LUT for setting the “first provisional correction amount” assuming brightness correction of the human face area in the flash shooting scene Define a one-dimensional LUT so that the “first mixing coefficient” of (input: flesh color average brightness, output: first temporary correction amount) is high.
- the "first provisional correction amount” is set assuming brightness correction of the entire image in the under shooting scene and over shooting scene.
- the “first mixing coefficient” of the one-dimensional LUT input: overall average brightness or under-over shooting index, output: first temporary correction amount
- the brightness correction amount and the correction curve can be corrected based on the “brightness ratio index”, and the bright and dark parts of the photographed image data can be corrected. It is possible to suppress crushing, crushing due to saturation of a high-saturation color, or a change in hue.
- the first step is based on a luminance ratio index that represents the size of the dynamic range according to a predicted numerical value (natural light index) that quantitatively indicates whether there is a backlit scene force strobe shooting scene. 1
- the amount of provisional correction must be defined.
- the 1st LUT (input: luminance ratio index, output: 1st temporary correction amount) for the “first temporary correction amount” setting
- the 1st LUT input: luminance ratio index, output: 1st temporary correction amount
- the “second provisional correction amount” is calculated based on the first provisional correction amount and the first mixing coefficient.
- Equation (1) m first temporary correction amounts among a plurality of first temporary correction amounts set by the first temporary correction amount setting means are calculated, and the first temporary correction amount of the cell is calculated as
- the first mixing coefficient to be multiplied by key—auto [i] and the first temporary correction amount key—auto [i] is wgt [i].
- “Generate a correction curve for converting captured image data based on a brightness correction amount, a natural light index, and a luminance ratio index” is a scene captured using “natural light”.
- the brightness of the main subject (e.g., human face area) of the captured image data is properly finished according to the predicted numerical value (natural light index) that quantitatively indicates whether or not power and the luminance ratio index that indicates the size of the dynamic range.
- natural light index the predicted numerical value that quantitatively indicates whether or not power and the luminance ratio index that indicates the size of the dynamic range.
- the "predetermined hue” is a hue of a high-saturation pixel that has a high probability of being saturated and crushed or changing to a hue such as cyan or green. is there. “Predetermined hue set based on the natural light index” means that the hue of the high-saturation pixel that counts the number of pixels is changed based on the natural light index
- the brightness correction amount calculation means analyzes the additional information recorded in the tag area of the captured image data, and sets a new brightness correction amount by using the analyzed additional information as a supplement. Please do it.
- the present invention while correcting the brightness of the main subject in the photographed image data, it is possible to prevent the bright part and the dark part from being crushed, the collapsing due to high saturation color saturation, and the hue change.
- FIG. 1 is a block diagram showing a main part configuration of an imaging apparatus according to an embodiment of the present invention.
- FIG. 2 is a block diagram showing an internal configuration of an image processing unit.
- FIG. 3 is a block diagram showing an internal configuration of a brightness correction amount calculation unit in Embodiment 1 of the present invention.
- FIG.6 LUT showing the relationship between skin tone average brightness and provisional correction amount key—auto [2].
- FIG. 11 LUT showing the relationship between natural light index and mixing coefficient wgt [l].
- FIG. 14 is a diagram showing a discrimination map for discriminating a scene type from a natural light index, a luminance ratio index, and an exposure index.
- FIG. 15 A diagram showing a coefficient calculation table representing the values of the mixing coefficient wgt [4] to [6] for each scene type.
- FIG. 16 is a flowchart showing brightness correction processing executed in the image processing unit of the first embodiment.
- FIG. 17 A brightness correction curve (a) when the scene type is direct light and a brightness correction curve when the scene type is backlight (b).
- FIG. 20 is a diagram showing an example of a program for converting to RGB power HSV color system.
- FIG. 22 is a diagram showing the lightness (V) —hue (H) plane and regions r3 and r4 on the V—H plane.
- V lightness
- H hue
- FIG. 22 A diagram showing a curve representing a first coefficient for multiplying the first occupancy ratio for calculating the index 1.
- [24] A diagram showing a curve representing a second coefficient for multiplying the first occupancy ratio for calculating index 2.
- FIG. 26 is a diagram showing areas nl to n4 determined according to the distance from the outer edge of the screen of captured image data.
- ⁇ 29 A block diagram showing the internal configuration of the brightness correction amount calculation unit in Embodiment 2 of the present invention.
- FIG. 30 is a flowchart showing brightness correction processing executed in the image processing unit of the second embodiment.
- FIG. 31 is a diagram showing a relationship between a natural light index and a hue condition of a high saturation pixel.
- ⁇ 32 A block diagram showing the main configuration of an image processing apparatus to which the present invention is applied.
- FIG. 1 shows a main part configuration of an imaging apparatus 100 according to Embodiments 1 and 2 of the present invention.
- the image apparatus 100 includes a lens 1, an aperture 2, a CCD (Charge Coupled Device) 3, an analog processing circuit 4, an AZD converter 5, a temporary storage memory 6, an image processing unit 7, and a header.
- the optical system of the imaging apparatus 100 includes a lens 1 that can adjust focus, a diaphragm 2 that adjusts the amount of light, and a CCD 3 that is a solid-state imaging device that converts subject information into an electrical signal.
- the subject information is imaged on the light receiving surface of the CCD 3 through the lens 1 and the diaphragm 2.
- CCD3 photoelectrically converts subject information into an electrical signal of an amount corresponding to the amount of incident light for each sensor in CCD3.
- a timing pulse is output from the CCD drive circuit 10 based on a control signal input from the control unit 11, and an electrical signal (imaging signal) accumulated in the CCD 3 is sequentially output by this timing pulse to generate an analog processing circuit 4 Forwarded to
- the analog processing circuit 4 performs amplification processing of an analog imaging signal and noise reduction processing.
- a ZD converter 5 converts the analog imaging signal input from the analog processing circuit 4 into a digital imaging signal (R, G, B signal).
- the digital R, G, B signals output from the AZD transformation 5 are stored in the temporary storage memory 6.
- the digital image signal is referred to as “captured image data”.
- the image processing unit 7 displays on the display unit 13 and corrects the brightness of the captured image data used for storage in the recording medium of the storage device 9, crosstalk correction of spectral sensitivity, noise suppression, sharpening, white
- image quality improvement processing such as balance adjustment and saturation adjustment
- processing such as image size change, trimming, and aspect conversion is performed.
- ONZOFF or the setting of the adaptive amount or the like can be switched according to the operation information of the operation unit 12 force. For example, when operation information specifying brightness correction is input from the operation unit 12, the image processing unit 7 performs brightness correction processing (see FIGS. 16 and 30) for correcting the brightness of the captured image data. Start.
- the internal configuration relating to the brightness correction by the image processing unit 7 will be described later with reference to FIG.
- the header information processing unit 8 is a header of shooting information data generated by the image processing unit 7. Write information.
- the R, G, and B signals for which the header information has been written are stored as image data on the recording medium by the storage device 9.
- the storage device 9 stores captured image image data and a control program for the imaging apparatus 100.
- the control unit 11 includes a CPU (Central Processing Unit) and the like, and includes an automatic focus driving circuit 17 that controls a motor 20 that adjusts the focal length and focus (focus) of the lens 1, a focal length adjustment circuit 16, Controls the strobe drive circuit 14 that drives the CCD drive circuit 10, analog processing circuit 4, temporary storage memory 6, image processing unit 7, display unit 13 and strobe 15.
- a CPU Central Processing Unit
- the control unit 11 includes a CPU (Central Processing Unit) and the like, and includes an automatic focus driving circuit 17 that controls a motor 20 that adjusts the focal length and focus (focus) of the lens 1, a focal length adjustment circuit 16, Controls the strobe drive circuit 14 that drives the CCD drive circuit 10, analog processing circuit 4, temporary storage memory 6, image processing unit 7, display unit 13 and strobe 15.
- CPU Central Processing Unit
- the operation unit 12 includes buttons, cursor keys, and the like (not shown), and outputs operation information of the operation unit 12 by the user to the control unit 11.
- the display unit 13 displays photographed image data on the liquid crystal display and also displays settings and conditions related to photography.
- FIG. 2 shows an internal configuration of the image processing unit 7.
- the image processing unit 7 includes a preprocessing unit 70, a brightness correction unit 71, and an image quality correction unit 72.
- the preprocessing unit 70 performs spectral sensitivity crosstalk correction, dark current noise suppression, and temporary white balance adjustment on the captured image data input from the temporary storage memory 6, and the brightness correction unit 71 and the image quality Output to the correction unit 72.
- the brightness correction unit 71 includes an image analysis unit 73, an index calculation unit 74, a brightness correction amount calculation unit 75, and a brightness correction curve generation unit 76.
- the image analysis unit 73 calculates a brightness analysis value of the captured image data.
- the brightness analysis value is a numerical value indicating the average brightness of the captured image data obtained by examining the distribution state of the pixel values of the captured image data, and is the most important subject in the captured image data (main subject image).
- the brightness of the body As brightness analysis values, for example, the average brightness value of the entire captured image data (hereinafter referred to as “total average brightness”), the average brightness value in the skin color region of the captured image data (hereinafter referred to as “skin color average brightness”). ), And an exposure index (Indicator 6 to be described later) indicating the exposure shooting degree (under, over) due to the exposure setting at the time of shooting.
- the index calculation unit 74 is a natural light index that represents the degree of outdoor shooting with natural light of the captured image data.
- the brightness correction amount calculation unit 75 calculates the brightness correction amount of the photographed image data based on the brightness analysis value calculated by the image analysis unit 73 and the calculation result of the index calculation unit 74.
- the internal configuration of the brightness correction amount calculation unit 75 will be described in detail later with reference to FIG. 3 (Embodiment 1) and FIG. 29 (Embodiment 2).
- the brightness correction curve generation unit 76 generates a brightness correction curve for converting captured image data based on the brightness correction amount calculated by the brightness correction amount calculation unit 75.
- the image quality correction unit 72 corrects the brightness of the captured image data input from the preprocessing unit 70 according to the brightness correction curve generated by the brightness correction curve generation unit 76.
- the captured image data whose brightness has been corrected is output to the header information processing unit 8 and the display unit 13.
- FIG. 3 shows an internal configuration of the brightness correction amount calculation unit 75 of the first embodiment.
- the brightness correction amount calculation unit 75 includes a first temporary correction amount setting unit 101, a first mixing coefficient setting unit 102, a second temporary correction amount calculation unit 103, a second mixing coefficient setting unit 104, and a brightness correction amount calculation unit. Consists of 105.
- the first temporary correction amount setting unit 101 is based on the brightness analysis value of the captured image data, the brightness reproduction target value, and the brightness ratio index and the exposure index calculated by the index calculation unit 74. Set the first temporary correction amount for the captured image data.
- the provisional correction amount setting unit 101 sets the first correction amount necessary to approximate each brightness analysis value to the reproduction target value. Set n + 4 temporary correction amounts.
- Figure 4 shows a one-dimensional LUT that defines the relationship between the luminance ratio index and the first temporary correction amount key—auto [0].
- FIG. 5 is a diagram showing a one-dimensional LUT that defines the relationship between the exposure index and the first temporary correction amount key_auto [1].
- FIG. 6 is a diagram showing a one-dimensional LUT that defines the relationship between the flesh color average luminance and the first provisional correction amount key-auto [2].
- FIG. 7 is a diagram showing a one-dimensional LUT that defines the relationship between the skin tone average brightness or the overall average brightness and the first temporary correction amount key-auto [3].
- FIG. 8 is a diagram showing a one-dimensional LUT that defines the relationship between the luminance ratio index and the first temporary correction amount key-auto [4].
- FIG. 9 is a diagram showing a one-dimensional LUT that defines the relationship between the exposure index and the first temporary correction amount key-auto [5].
- the first mixing coefficient setting unit 102 is based on the natural light index calculated by the index calculation unit 74! /
- the first mixing coefficient as a weighting coefficient to multiply n + 2 (key—auto [0] to [3]) out of the n + 4 first temporary correction amounts set by the temporary correction amount setting unit 101 Set n + two.
- FIG. 10 is a diagram showing a one-dimensional LUT that defines the relationship between the natural light index and the first mixing coefficient wgt [0].
- Figure 11 shows a one-dimensional definition of the relationship between the natural light index and the first mixing coefficient wgt [l].
- FIG. 12 is a diagram showing a one-dimensional LUT that defines the relationship between the natural light index and the first mixing coefficient wgt [2].
- FIG. 13 is a diagram showing a one-dimensional LUT that defines the relationship between the natural light index and the first mixing coefficient wgt [3].
- Second temporary correction amount calculation unit 103 is set by 11+ two first temporary correction amounts (1 ⁇ — & 1 ⁇ 0 [0] to [3]) and first mixing coefficient setting unit 102 Based on the n + 2 first mixing coefficients wgt [0] to wgt [3], the second temporary correction amount for the captured image data is set. Equation (2) shows the formula for calculating the second temporary correction amount.
- Second temporary correction amount key— auto [0] X wgt [0] + key_auto [l]
- the second temporary correction amount in Equation (2) is expressed as key-auto [6].
- the second mixing coefficient setting unit 104 discriminates the scene type of the captured image data from the values of the natural light index, the luminance ratio index, and the exposure index calculated by the index calculation unit 74 using a discrimination map.
- the first temporary correction amount key— auto [4], key— auto [5], and the second temporary correction amount key— auto [6] are each multiplied by three second mixing coefficients wgt [ Set [4] to [6].
- FIG. 14 (a) shows a discrimination map for discriminating the scene type (forward light, backlight, strobe, under, low accuracy region) of the captured image data based on the natural light index and the luminance ratio index.
- Fig. 14 (b) shows a discrimination map for discriminating the scene type (forward light, backlight, strobe, under, low accuracy region) of the captured image data based on the natural light index and the exposure index.
- the low accuracy region represents a region where the accuracy of being determined as follow light, backlight, strobe, or under is low (than a predetermined value).
- FIG. 15 shows a coefficient calculation table representing the values of the second mixing coefficient wgt [4] to [6] for each scene type.
- This coefficient calculation table is stored in a memory (not shown) of the imaging apparatus 100.
- each number shown in the scene type item is a number assigned to each scene type in FIG.
- “3” of the scene type item represents the low accuracy region (3) of FIG.
- the brightness correction amount calculation unit 105 includes two first temporary correction amounts key—auto [4], key—auto [5], second temporary correction amount key—auto [6], and second Based on the three second mixing coefficients wgt [4] to [6] set by the mixing coefficient setting unit 104, the brightness correction amount is calculated as shown in Equation (3).
- Brightness correction amount key_auto [4] X wgt [4] + key_auto [5]
- a brightness correction process executed in the image processing unit 7 of the first embodiment will be described with reference to the flowchart of FIG.
- the index calculation unit 74 performs index calculation processing for calculating a natural light index, a luminance ratio index, and an exposure index (step Tl).
- the index calculation process in step T1 will be described in detail later with reference to FIGS.
- the image analysis unit 73 calculates ⁇ brightness analysis values of the captured image data (step ⁇ 2).
- Step ⁇ 2 the two brightness analysis values (skin color level) Average brightness, overall average brightness).
- N + 4 (six) first temporary correction amounts key—auto [0] to [5] are set (step T3).
- n + 2 (4) first mixing coefficients wgt [0] are extracted from the one-dimensional LUTs of FIGS. 10 to 13 by extracting values corresponding to the natural light index calculated in step T1.
- ⁇ [3] is set (step T4).
- the second temporary correction is obtained from equation (2).
- the quantity key_ a uto [6] is calculated (step T5).
- step T6 three second mixing coefficients wgt [4] to [6] corresponding to the scene type determined using the determination map (Fig. 14) are extracted from the coefficient calculation table (Fig. 15), Set (step T6).
- two first temporary correction amounts key—auto [4], key—auto [5], second temporary correction amounts key—auto [6], and three second mixing coefficients wgt [4] to Using [6] the brightness correction amount is calculated by equation (3) (step T7), and the scene type determined based on the calculated brightness correction amount and each index calculated in step T1.
- a brightness correction curve for converting the captured image data is generated (step ⁇ 8).
- FIG. 17 (a) is a diagram showing brightness correction curves for each brightness correction amount when the scene type is direct light.
- Fig. 17 (b) shows the brightness correction curve for each brightness correction amount when the scene type is backlight.
- FIG. 17 shows the brightness correction curve in the practical range (the 1, 6, 1, 2, 0 buttons) of the number of correction buttons operated by the operation unit 12.
- a brightness correction curve corresponding to the brightness correction amount calculated in step ⁇ 7 is selected from a plurality of brightness correction curves set in advance for each scene type.
- the brightness correction curve When the brightness correction curve is generated, the brightness of the captured image data is corrected according to the brightness correction curve (step ⁇ 9), and this brightness correction process is ended.
- the captured image data whose brightness has been corrected in this way is output to the designated output destination. Examples of the output destination include the display unit 13 and a printer connected to the imaging device 100.
- the captured image data is divided into predetermined image areas, and an occupation ratio (first occupation ratio, second occupation ratio) indicating the ratio of each divided area to the entire captured image data is calculated.
- Occupancy calculation processing is performed (step Sl). Details of the occupation rate calculation process will be described later with reference to FIGS.
- step S2 a bias amount calculation process for calculating a bias amount indicating a bias in the gradation distribution of the photographed image data is performed.
- the bias amount calculation process in step S2 will be described in detail later with reference to FIG.
- step S3 Next, based on the occupancy calculated in step S1 and the coefficient set in advance according to the shooting conditions (scene type, etc.), the natural light representing the outdoor shooting degree by the natural light of the shot image data.
- An index, a luminance ratio index that indicates the size of the dynamic range of the captured image data, and an exposure index that indicates the exposure shooting degree due to the exposure setting at the time of shooting are calculated (step S3), and this index calculation process ends. .
- the method for calculating the index in step S3 will be described in detail later.
- the RGB value of the photographed image data is converted into the HSV color system (step S10).
- Figure 20 shows an example of a conversion program (HSV conversion program) that obtains hue values, saturation values, and brightness values by converting from RGB to the HSV color system in program code (c language). is there.
- HSV conversion program shown in Fig. 20
- the digital image data values that are input image data are defined as InR, InG, and InB
- the calculated hue value is defined as OutH
- the scale is defined as 0 to 360
- the degree value is OutS
- the lightness value is OutV
- the unit is defined as 0 to 255.
- the photographed image data is divided into regions composed of a predetermined combination of brightness and hue, and a two-dimensional histogram is created by calculating the cumulative number of pixels for each divided region (step Sl l). .
- a two-dimensional histogram is created by calculating the cumulative number of pixels for each divided region (step Sl l).
- Lightness (V) i Lightness value power ⁇ ) to 25 (vl), 26— 50 ( ⁇ 2), 51 to 84 ( ⁇ 3), 85 to 169 ( ⁇ 4) , 170 to 199 (v5), 200 to 224 (v6), and 225 to 255 (v7).
- Hue (H) is a flesh color range (HI and H2) with a hue value of 0 to 39, 330 to 359, a green hue range (H3) with a hue value of 0 to 160, and a blue hue range with a hue value of 161 to 250. It is divided into four areas: (H4) and red hue area (H5).
- the red hue region (H5) is not used in the calculations below, based on the knowledge that there is little contribution to scene type discrimination (see Figure 14).
- the flesh-color hue area is further divided into a flesh-color area (HI) and other areas (H2).
- HI flesh-color area
- H2 other areas
- the hue '(H) that satisfies the following formula (4) is defined as the flesh-colored area (HI), and the formula (4) is not satisfied! /, Let the region be (H2).
- Hue '(H) Hue (H) — 300
- Luminance (Y) InRX0.30 + InGXO.59 + ⁇ .11 ⁇ ( ⁇ )
- a first occupancy ratio indicating the ratio of the cumulative number of pixels calculated for each divided region to the total number of pixels (the entire captured image) is calculated (step S12).
- the occupation rate calculation process ends. Assuming that Rij is the first occupancy calculated in the divided area, which is the combined power of the lightness area vi and the hue area Hj, the first occupancy ratio in each divided area is shown in Table 1.
- Table 2 shows, for each divided area, the first coefficient necessary to calculate the index 1 that quantitatively indicates the accuracy of flash photography, that is, the brightness state of the face area during flash photography.
- the coefficient of each divided area shown in Table 2 is a weighting coefficient by which the first occupancy Rij of each divided area shown in Table 1 is multiplied, and is set in advance according to the photographing conditions.
- FIG. 21 shows the brightness (V) —hue (H) plane.
- a positive (+) coefficient is used for the first occupancy calculated from the region (rl) distributed in the high-luminance skin color hue region in Fig. 21, and other hues are used.
- Blue hue region (r2) force A negative (-) coefficient is used for the first occupancy calculated.
- Figure 23 shows the first coefficient in the flesh tone area (HI) and the first coefficient in the other areas (green hue area (H3)) as curves (coefficient curves) that change continuously over the entire brightness. It is shown. According to Table 2 and Fig.
- HI area sum R11X (—44.0) + R21X (-16.0) + (omitted) ...
- Index 1 is defined as equation (6) using the sum of the H1 to H4 regions shown in equations (5-1) to (5-4).
- Indicator 1 H1 region sum + H2 region sum + H3 region sum + H4 region sum +4.424 ⁇ (6)
- Table 3 shows the second coefficient required for each divided area to calculate the index 2 that quantitatively shows the accuracy of backlighting, that is, the brightness state of the face area during backlighting.
- the coefficient of each divided area shown in Table 3 is a weighting coefficient by which the first occupancy ratio Rij of each divided area shown in Table 1 is multiplied, and is set in advance according to the shooting conditions.
- FIG. 22 shows the lightness (V) —hue (H) plane.
- a negative (one) coefficient is used for the occupancy calculated from the area (r4) distributed in the intermediate lightness of the flesh-colored hue area in Figure 22, and the low lightness (shadow) of the flesh-colored hue area.
- a positive (+) coefficient is used for the occupation ratio calculated from the region (r3).
- FIG. 24 shows the second coefficient in the skin color region (HI) as a curve (coefficient curve) that continuously changes over the entire brightness. According to Table 3 and Fig.
- the sign of the second coefficient in the intermediate lightness region of the flesh hue region with the lightness value of 85 to 169 (v4) is negative (-), and the lightness value is 26 to 84 (v2,
- the sign of the second coefficient in the low lightness (shadow) region of v3) is positive (+), which indicates that the sign of the coefficient in both regions is different.
- HI area sum R11X (--27.0) + R21X4.5 + (omitted) ...
- H4 region sum R14 X 0. 0 + R24 X (-5.1) + (omitted) ...
- Index 2 is defined as equation (8) using the sum of the H1 to H4 regions shown in equations (7-1) to (7-4).
- Indicator 2 sum of H1 regions + sum of H2 regions + sum of H3 regions + sum of H4 regions + 1. 554...
- index 1 and index 2 are calculated based on the brightness and hue distribution amount of the captured image data, they are effective in determining the scene type when the captured image data is a color image.
- the RGB value of the photographed image data is converted into the HSV color system (step S 20).
- the captured image data is divided into areas where the combined power of the distance from the outer edge of the captured image screen and the brightness is determined, and a two-dimensional histogram is created by calculating the cumulative number of pixels for each divided area. (Step S21).
- the area division of the captured image data will be described in detail.
- FIGS. 26 (a) to (d) show four regions nl to n4 divided according to the distance from the outer edge of the screen of the captured image data.
- the area nl shown in FIG. 26 (a) is the outer frame
- the area n2 shown in FIG. 26 (b) is the area inside the outer frame
- an area n4 shown in FIG. 26 (d) is an area at the center of the captured image screen.
- a second occupancy ratio indicating the ratio of the cumulative number of pixels calculated for each divided region to the total number of pixels (the entire captured image) is calculated (step S22).
- the occupation rate calculation process ends. If the second occupancy calculated in the divided area, which is the combined power of the brightness area vi and the screen area nj, is Qij, the second occupancy in each divided area is The share is shown in Table 4.
- Table 5 shows the third coefficient necessary for calculating index 3 for each divided region.
- the coefficient of each divided area shown in Table 5 is a weighting coefficient by which the second occupancy Qij of each divided area shown in Table 4 is multiplied, and is set in advance according to the photographing conditions.
- FIG. 27 shows the third coefficient in the screen areas nl to n4 as a curve (coefficient curve) that continuously changes over the entire brightness.
- nl region sum Q11X40. 1 + Q21X37.0 + (omitted) ...
- n3 area sum Q13X24.6 + Q23X12.1 + (omitted) ...
- n4 region sum Q14X1.5 + Q24X (-32.9) + (omitted) ...
- Index 3 is defined as equation (10) using the sum of nl to n4 regions shown in equations (91) to (94).
- Index 3 is calculated based on the compositional characteristics (distance from the outer edge of the screen of the captured image data) based on the brightness distribution position of the captured image data, so the scene type of the monochrome image as well as the color image is selected. It is also effective for discrimination.
- step S2 in FIG. 18 the bias amount calculation process
- the luminance Y (brightness) of each pixel is calculated from the RGB (Red, Green, Blue) value of the captured image data using Equation (A), and the standard deviation (xl) of the luminance is calculated. (Step S23).
- the standard deviation (xl) of luminance is expressed as shown in Equation (11).
- the sum is calculated for each pixel of the captured image data.
- pixel The brightness value is the brightness of each pixel of the captured image data
- the overall average brightness is the average value of the brightness of the entire captured image data.
- the total number of pixels is the number of pixels of the entire captured image data.
- the luminance difference value (x2) is calculated (step S24).
- Luminance difference value (x2) (Maximum luminance value Overall average luminance) Z255... (12)
- the maximum luminance value is the maximum luminance value of the captured image data.
- the average luminance value (x3) of the flesh color region at the center of the screen of the photographed image data is calculated (step S25), and further, the average luminance value (x4) at the center of the screen is calculated (step S25).
- the center of the screen is, for example, an area composed of an area n3 and an area n4 in FIG.
- the flesh color luminance distribution value (x5) is calculated (step S27), and this deviation amount calculation processing ends.
- the maximum brightness value of the skin color area of the captured image data is Yskin—max
- the minimum brightness value of the skin color area is Yskin—min
- the average brightness value (skin color average brightness) of the skin color area is Yskin—ave
- the skin color brightness distribution value ( x5) is expressed as in Equation (13).
- x5 (Yskin ⁇ max ⁇ Yskin ⁇ min) / 2 ⁇ Yskin ⁇ ave
- x6 be the average luminance value of the skin color area in the center of the screen of the captured image data.
- the center of the screen is, for example, a region composed of region n2, region n3, and region n4 in FIG.
- index 4 is defined as in equation (14) using index indexes 3 and x6, and index 5 is defined as in equation (15) using index 2, index 3, and x6.
- Indicator 4 0. 46 X indicator 1 + 0. 61 X indicator 3 + 0. 01 ⁇ ⁇ 6 0. 79
- Indicator 5 0. 58 ⁇ Indicator 2 + 0.18 X Indicator 3 + (— 0. 03) ⁇ ⁇ 6 + 3. 34---(15)
- each indicator in Equation (14) and Equation (15) The weighting coefficient multiplied by is preset according to the shooting conditions.
- the index 6 is obtained by multiplying the deviation amounts (xl) to (x5) calculated in the deviation amount calculation processing by a fourth coefficient set in advance according to the imaging conditions.
- Table 6 shows the fourth coefficient, which is a weighting coefficient by which each deviation is multiplied.
- Indicator 6 xlX0.02 + x2Xl. 13 + x3XO.06 + x4X (-0.01)
- This index 6 has luminance histogram distribution information that is based only on the compositional characteristics of the captured image data screen, and is particularly effective in distinguishing between a flash photography scene and an under photography scene.
- the index 4 shown in Expression (14) corresponds to a natural light index
- the index 5 shown in Expression (15) corresponds to a luminance ratio index
- the index 6 shown in Expression (16) corresponds to an exposure index.
- the brightness of the main subject for example, a human face area
- a backlight scene or strobe shooting scene is an output device that outputs shot image data. It is possible to obtain a brightness correction amount that can be reproduced with an optimum brightness (for example, a printer).
- a captured image such as a backlight scene or a flash shooting scene is generated.
- the degree to which the output device's dynamic range power is off will be small, so the brightness of the main subject of the captured image data will be properly finished, It is possible to suppress the dark part from being crushed, high-saturated colors being saturated and crushed, and the hue from being changed.
- the brightness correction amount calculation unit 75 of Embodiment 2 includes a first temporary correction amount setting unit 101, a first mixing coefficient setting unit 102, a second temporary correction amount calculating unit 103, and a second mixing coefficient. It comprises a setting unit 104, a brightness correction amount calculation unit 105, a suppression coefficient calculation unit 106, and a multiplication unit 107.
- the suppression coefficient calculation unit 106 calculates the number of high-saturation pixels having a predetermined hue that is higher than a predetermined threshold and has a predetermined hue that is set based on the natural light index. Based on the ratio of the number of high-saturation pixels to the total number of pixels in the image data, a suppression coefficient Re (0 ⁇ 0 ⁇ Re ⁇ l. 0) for suppressing the brightness correction amount of the captured image data is calculated. (Set). The calculation method of the suppression coefficient Re will be described in detail later with reference to FIG.
- the multiplication unit 107 calculates (sets) the brightness correction amount (Equation (3)) calculated by the brightness correction amount calculation unit 105 by the suppression coefficient calculation unit 106 as shown in Equation (17). By multiplying the suppression coefficient Re thus obtained, a new brightness correction amount is calculated, and this new brightness correction amount is output to the brightness correction force curve generator 76.
- New brightness correction amount Re X brightness correction amount (17)
- the brightness correction curve generation unit 76 converts captured image data based on the scene type determined by the determination map (see FIG. 14) and the new brightness correction amount input from the multiplication unit 107. To generate a brightness correction curve.
- a brightness correction process executed in the image processing unit 7 of the second embodiment will be described with reference to the flowchart of FIG.
- the index calculation unit 74 performs an index calculation process (see FIGS. 18 to 28) for calculating a natural light index, a luminance ratio index, and an exposure index (step T20).
- the image analysis unit 73 calculates ⁇ brightness analysis values of the captured image data (step ⁇ 21). Step In step T21, two brightness analysis values (skin color average brightness, overall average brightness) are calculated.
- n + 4 (six) first temporary correction amounts key—auto [0] to [5] are set (step T22).
- n + 2 (4) first mixing coefficients wgt [0] are extracted from the one-dimensional LUTs in Figs. 10 to 13 by extracting the values corresponding to the natural light index calculated in Step T20.
- ⁇ [3] is set (step T23).
- the second temporary correction is obtained from Equation (2).
- the amount key_ a uto [6] is calculated (step T24).
- step T27 it is determined whether or not the luminance ratio index calculated in step ⁇ 20 is larger than the threshold value Thl (step T27).
- the threshold Thl l.5. If it is determined in step T27 that the luminance ratio index> Thl (step T27; YES), the hue condition of the pixel to be counted later as a high saturation pixel is determined according to the natural light index calculated in step T20. Set (step T28).
- FIG. 31 shows the hue condition (hue range) set according to the value of the natural light index in step T28.
- the number of pixels having the hue condition set in step T28 and having a saturation (S) greater than the threshold Th2 among the total number of pixels of the captured image data is calculated.
- Saturation > The saturation level depends on the ratio (%) of the high saturation pixels that satisfy Th2 to the total number of pixels.
- Th2 130 (HSV color system, maximum value 255).
- Table 7 shows the ratio (%) of high-saturation pixels satisfying saturation)> Th2 to the total number of pixels and the suppression coefficient for each saturation level (saturation 1 to 4).
- the suppression coefficient Re corresponding to the set saturation level is set (step T30).
- the processing of steps ⁇ 27 to ⁇ 30 is executed by the suppression coefficient calculation unit 106.
- a new brightness correction amount is calculated by multiplying the brightness correction amount calculated in step ⁇ 26 by the suppression coefficient Re set in step ⁇ 30 (step (T31), a brightness correction curve for converting the captured image data is generated from the new brightness correction amount and the scene type determined based on each index calculated in step ⁇ 20 (step S31). ( ⁇ 32).
- step ⁇ 27 If it is determined in step ⁇ 27 that the luminance ratio index ⁇ Thl (step ⁇ 27;
- a brightness correction curve for converting captured image data from the brightness correction amount calculated in step T26 and the scene type determined based on each index calculated in step T20! Is generated (step T32).
- the brightness correction curve is generated, the brightness of the captured image data is corrected according to the brightness correction curve (step T33), and the brightness correction processing is terminated.
- the captured image data whose brightness has been corrected in this way is output to the designated output destination. Examples of the output destination include a display unit 13 and a printer connected to the imaging apparatus 100.
- the brightness of captured image data is determined using the suppression coefficient calculated based on the ratio of the number of high-saturation pixels to the total number of pixels of captured image data.
- the correction amount it is possible to prevent saturation of high saturation pixels in captured image data having many high saturation pixels.
- the hue of a pixel to be counted as a high saturation pixel is determined based on the value of the natural light index, saturation of the high saturation pixel can be prevented with high accuracy.
- FIG. 32 shows the main configuration of an image processing apparatus 200 to which the present invention is applied.
- the image processing apparatus 200 includes an image input unit 201, an image processing unit 202, and an image output unit 203.
- the image input unit 201 acquires photographed image data obtained by photographing a subject and outputs it to the image processing unit 202.
- the image output unit 203 has a display such as an LCD (Liquid Crystal Display) and a CRT (Cathode Ray Tube), and displays captured image data processed by the image processing unit 202. Further, the image output unit 203 may include a printing unit that prints out the captured image data processed by the image processing unit 202.
- the image processing unit 202 includes an image analysis unit 204, an index calculation unit 205, a brightness correction amount calculation unit 206, a brightness correction curve generation unit 207, and an image quality correction unit 208.
- the functions of the respective units are the same as those of the image analysis unit 73, the index calculation unit 74, the brightness correction amount calculation unit 75, the brightness correction curve generation unit 76, and the image quality correction unit 72 of FIG.
- the brightness correction curve has many more types than just the four types shown in Fig. 17 (1-6, --4, -2, 0 buttons). It is possible to generate a brightness correction curve.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Image Processing (AREA)
Abstract
An imaging device includes: an index calculation unit for calculating the natural light index representing the outdoor imaging degree by the natural light, a brightness ratio index representing a dynamic range, and an exposure index; a brightness compensation amount calculation unit for setting a temporary correction amount for the captured image data according to a brightness analysis value of the captured image data and a brightness reproduction target value, setting a mixture coefficient as a weight coefficient to be multiplied on each of the temporary correction amounts according to the natural light index, and calculating the brightness correction amount of the captured image data according to the mixture coefficient and the temporary correction amount; and a brightness correction curve generation unit for generating a brightness correction curve for converting the captured image data according to the brightness correction amount and the respective indexes calculated by the index calculation unit.
Description
明 細 書 Specification
撮像装置、画像処理装置、画像処理方法及び画像処理プログラム 技術分野 Imaging apparatus, image processing apparatus, image processing method, and image processing program
[0001] 本発明は、撮影画像データの明るさの補正処理を行う撮像装置、画像処理装置、 画像処理方法及び画像処理プログラムに関する。 The present invention relates to an imaging device, an image processing device, an image processing method, and an image processing program that perform brightness correction processing of captured image data.
背景技術 Background art
[0002] 従来、デジタルカメラ等の撮像装置により取得された画像や、ネガフィルム等の写 真フィルムに記録された画像を光電的に読み取ることによって得られた撮影画像を、 プリンタ等の出力デバイスで出力(再生)することが行われている。このように出力デ バイスを用いて撮影画像を出力(再生)する場合において、画像領域の低輝度部と 高輝度部とを別々に補正し、画像全体のダイナミックレンジを圧縮する所謂「覆い焼 き」処理を適用することにより、出力デバイスの再現範囲限界で生じる、明部及び暗 部のつぶれを抑制する方法が知られている(例えば、特許文献 1参照)。 Conventionally, a captured image obtained by photoelectrically reading an image acquired by an imaging device such as a digital camera or an image recorded on a photographic film such as a negative film is output by an output device such as a printer. Output (playback) is performed. In the case of outputting (reproducing) a captured image using an output device in this way, the so-called “cover dodging” in which the low luminance portion and the high luminance portion of the image area are separately corrected and the dynamic range of the entire image is compressed. In other words, there is known a method for suppressing the collapse of the bright part and the dark part, which occurs at the limit of the reproduction range of the output device by applying the process (see, for example, Patent Document 1).
[0003] 一方、撮影画像データの主要被写体 (例えば、人物顔領域)の明るさが適正に仕 上がるように、撮影画像データの明るさを自動的に調整することが行われている。こ のような明るさ調整方法において、撮影画像データの主要被写体を解析して得られ た明るさに基づいて、その撮影画像データの明るさを補正するための補正量及び補 正カーブを設定する方法が知られている (例えば、特許文献 2参照)。 [0003] On the other hand, the brightness of captured image data is automatically adjusted so that the brightness of a main subject (for example, a human face region) in captured image data is appropriately finished. In such a brightness adjustment method, a correction amount and a correction curve for correcting the brightness of the captured image data are set based on the brightness obtained by analyzing the main subject of the captured image data. A method is known (see, for example, Patent Document 2).
特許文献 1:特開 2005 - 72930号公報 Patent Document 1: Japanese Patent Laid-Open No. 2005-72930
特許文献 2:特開 2002— 247393号公報 Patent Document 2: JP 2002-247393 A
発明の開示 Disclosure of the invention
発明が解決しょうとする課題 Problems to be solved by the invention
[0004] し力しながら、撮影画像データの主要被写体の明るさに基づ 、て、撮影画像データ の明るさを補正するための明るさ補正量及び補正カーブを設定すると、逆光やスト口 ボ撮影シーンのような、ダイナミックレンジの大きいシーンでは、明るさ補正量が大き い程、明部及び暗部がつぶれたり、高彩度の色が飽和してつぶれたり、色相が変わ つてしまうという問題がある。
[0005] このような問題の解決策として上記の「覆い焼き」処理を適用すると、人物顔領域の 明るさを適正に保つことが難しぐまた、著しい「覆い焼き」処理の結果に対するユー ザの嗜好も様々であることから、改善が望まれていた。更に、逆光とストロボ撮影シー ンとでは、ダイナミックレンジに差がないが、そもそも夫々のシーンにおいてつぶれを 警戒すべき輝度や色の種類は、画像を明るくするか暗くするかの判断、即ち、人物 顔領域の明るさをどのように検出するかの精度に依存するという、本質的な問題があ つた o [0004] When the brightness correction amount and the correction curve for correcting the brightness of the captured image data are set based on the brightness of the main subject of the captured image data, In a scene with a large dynamic range, such as a shooting scene, there is a problem that as the brightness correction amount is increased, the bright and dark portions are crushed, the high-saturation color is saturated and crushed, and the hue is changed. [0005] When the above-described “drilling” process is applied as a solution to such a problem, it is difficult to maintain the brightness of the human face area properly. Improvements have been desired because of various tastes. Furthermore, there is no difference in dynamic range between backlight and strobe shooting scenes, but in the first place the brightness and color types that should be wary of crushing in each scene are determined whether to make the image brighter or darker. There is an essential problem that depends on the accuracy of how the brightness of the face area is detected o
[0006] 本発明の課題は、撮影画像データの明るさを適正に補正することである。 An object of the present invention is to appropriately correct the brightness of captured image data.
課題を解決するための手段 Means for solving the problem
[0007] 上記課題を解決するため、請求の範囲第 1項に記載の発明は、被写体を撮影して 撮影画像データを取得し、当該撮影画像データ内の主要被写体の明るさを最適化 する処理を行う撮像装置であって、 [0007] In order to solve the above-described problem, the invention described in claim 1 is a process for photographing a subject to obtain photographed image data and optimizing the brightness of a main subject in the photographed image data. An imaging device for performing
前記撮影画像データの自然光による屋外撮影度を表す自然光指標と、当該撮影 画像データのダイナミックレンジの大きさを表す輝度比指標と、撮影時の露出設定に 起因する露出撮影度を表す露出指標を算出する指標算出手段と、 Calculates a natural light index that represents the degree of outdoor shooting with natural light in the photographed image data, a luminance ratio index that represents the size of the dynamic range of the photographed image data, and an exposure index that represents the exposure photographing degree due to the exposure setting at the time of photographing. Index calculation means to
前記撮影画像データの明るさ解析値と、明るさの再現目標値と、前記指標算出手 段により算出された輝度比指標及び露出指標に基づいて、当該撮影画像データに 対する複数の第 1仮補正量を設定する第 1仮補正量設定手段と、 Based on the brightness analysis value of the captured image data, the brightness reproduction target value, and the luminance ratio index and the exposure index calculated by the index calculation means, a plurality of first temporary corrections for the captured image data First temporary correction amount setting means for setting the amount;
前記指標算出手段により算出された自然光指標に基づいて、前記複数の第 1仮補 正量の各々に乗算する重み係数としての第 1混合係数を設定する第 1混合係数設定 手段と、 First mixing coefficient setting means for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculating means;
前記第 1混合係数設定手段により設定された第 1混合係数と、前記複数の第 1仮補 正量に基づ 、て、前記撮影画像データに対する第 2仮補正量を設定する第 2仮補正 量設定手段と、 A second temporary correction amount for setting a second temporary correction amount for the photographed image data based on the first mixing coefficient set by the first mixing coefficient setting means and the plurality of first temporary correction amounts. Setting means;
前記指標算出手段により算出された自然光指標、輝度比指標、露出指標に基づい て、前記複数の第 1仮補正量のうちの少なくとも 1つと、前記第 2仮補正量に乗算する 重み係数としての第 2混合係数を設定する第 2混合係数設定手段と、 Based on the natural light index, the luminance ratio index, and the exposure index calculated by the index calculation means, at least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor. 2nd mixing coefficient setting means for setting the mixing coefficient;
前記第 2混合係数により設定された第 2混合係数と、前記少なくとも 1つの第 1仮補
正量と、前記第 2仮補正量に基づいて、前記撮影画像データの明るさ補正量を算出 する補正量算出手段と、 A second mixing factor set by the second mixing factor and the at least one first provisional compensation. Correction amount calculating means for calculating a brightness correction amount of the captured image data based on a positive amount and the second temporary correction amount;
前記補正量算出手段により算出された明るさ補正量と、前記自然光指標と、前記輝 度比指標に基づいて、前記撮影画像データを変換するための補正カーブを生成す る補正カーブ生成手段と、 A correction curve generating means for generating a correction curve for converting the captured image data based on the brightness correction amount calculated by the correction amount calculating means, the natural light index, and the brightness ratio index;
前記補正カーブ生成手段により生成された補正カーブに従って、前記撮影画像デ ータの明るさを補正する補正手段と、を備えることを特徴としている。 Correction means for correcting the brightness of the captured image data in accordance with the correction curve generated by the correction curve generation means.
請求の範囲第 2項に記載の発明は、被写体を撮影して撮影画像データを取得し、 当該撮影画像データ内の主要被写体の明るさを最適化する処理を行う撮像装置で あって、 The invention described in claim 2 is an imaging apparatus that captures captured image data by capturing a subject, and performs processing for optimizing the brightness of a main subject in the captured image data.
前記撮影画像データの自然光による屋外撮影度を表す自然光指標と、当該撮影 画像データのダイナミックレンジの大きさを表す輝度比指標と、撮影時の露出設定に 起因する露出撮影度を表す露出指標を算出する指標算出手段と、 Calculates a natural light index that represents the degree of outdoor shooting with natural light in the photographed image data, a luminance ratio index that represents the size of the dynamic range of the photographed image data, and an exposure index that represents the exposure photographing degree due to the exposure setting at the time of photographing. Index calculation means to
前記撮影画像データの明るさ解析値と、明るさの再現目標値と、前記指標算出手 段により算出された輝度比指標及び露出指標に基づいて、当該撮影画像データに 対する複数の第 1仮補正量を設定する第 1仮補正量設定手段と、 Based on the brightness analysis value of the captured image data, the brightness reproduction target value, and the luminance ratio index and the exposure index calculated by the index calculation means, a plurality of first temporary corrections for the captured image data First temporary correction amount setting means for setting the amount;
前記指標算出手段により算出された自然光指標に基づいて、前記複数の第 1仮補 正量の各々に乗算する重み係数としての第 1混合係数を設定する第 1混合係数設定 手段と、 First mixing coefficient setting means for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculating means;
前記第 1混合係数設定手段により設定された第 1混合係数と、前記複数の第 1仮補 正量に基づ 、て、前記撮影画像データに対する第 2仮補正量を設定する第 2仮補正 量設定手段と、 A second temporary correction amount for setting a second temporary correction amount for the photographed image data based on the first mixing coefficient set by the first mixing coefficient setting means and the plurality of first temporary correction amounts. Setting means;
前記指標算出手段により算出された自然光指標、輝度比指標、露出指標に基づい て、前記複数の第 1仮補正量のうちの少なくとも 1つと、前記第 2仮補正量に乗算する 重み係数としての第 2混合係数を設定する第 2混合係数設定手段と、 Based on the natural light index, the luminance ratio index, and the exposure index calculated by the index calculation means, at least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor. 2nd mixing coefficient setting means for setting the mixing coefficient;
前記第 2混合係数により設定された第 2混合係数と、前記少なくとも 1つの第 1仮補 正量と、前記第 2仮補正量に基づいて、前記撮影画像データの明るさ補正量を算出 する補正量算出手段と、
前記撮影画像データの彩度が所定の閾値よりも高ぐ且つ前記自然光指標に基づ V、て設定される所定の色相を有する高彩度の画素数に基づ!/、て、当該撮影画像デ ータの明るさ補正量を抑制するための抑制係数を設定する抑制係数設定手段と、 前記補正量算出手段により算出された明るさ補正量に前記抑制係数を乗算して新 たな明るさ補正量を算出する乗算手段と、 Correction for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount. A quantity calculating means; Based on the number of pixels of high saturation having a predetermined hue that is set based on the natural light index, and the saturation of the captured image data is higher than a predetermined threshold value, V / A suppression coefficient setting means for setting a suppression coefficient for suppressing the brightness correction amount of the data, and a new brightness correction amount by multiplying the brightness correction amount calculated by the correction amount calculation means by the suppression coefficient Multiplication means for calculating
前記乗算手段により得られた新たな明るさ補正量と、前記自然光指標と、前記輝度 比指標に基づいて、前記撮影画像データを変換するための補正カーブを生成する 補正カーブ生成手段と、 A correction curve generation means for generating a correction curve for converting the captured image data based on the new brightness correction amount obtained by the multiplication means, the natural light index, and the luminance ratio index;
前記補正カーブ生成手段により生成された補正カーブに従って、前記撮影画像デ ータの明るさを補正する補正手段と、を備えることを特徴としている。 Correction means for correcting the brightness of the captured image data in accordance with the correction curve generated by the correction curve generation means.
[0009] 請求の範囲第 3項に記載の発明は、請求の範囲第 1項又は第 2項に記載の撮像装 ¾【こ; i l /、て、 [0009] The invention described in claim 3 is the imaging device according to claim 1 or 2, wherein
前記指標算出手段は、撮影画像データを、所定の明度と色相の組み合わせからな る領域に分割し、当該分割された領域毎に前記撮影画像データ全体に占める割合 を示す第 1の占有率を算出する第 1算出処理と、撮影画像データを、当該撮影画像 データの画面の外縁からの距離と明度の組み合わせ力 なる所定の領域に分割し、 当該分割された領域毎に前記撮影画像データ全体に占める割合を示す第 2の占有 率を算出する第 2算出処理の少なくとも一方の算出処理を実行し、 The index calculation means divides the photographed image data into regions composed of a combination of predetermined brightness and hue, and calculates a first occupancy ratio indicating the proportion of the entire photographed image data for each of the divided regions. The first calculation process and the photographed image data are divided into predetermined areas having a combination power of the distance from the outer edge of the screen of the photographed image data and the brightness, and each divided area occupies the entire photographed image data Execute at least one of the second calculation processes for calculating the second occupation ratio indicating the ratio,
前記撮影画像データの階調分布の偏りを示す偏倚量を算出し、 Calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
前記算出された第 1の占有率及び Z又は第 2の占有率と、前記偏倚量に、撮影条 件に応じて予め設定された係数を乗算することにより、前記自然光指標、前記輝度 比指標、前記露出指標を算出することを特徴としている。 By multiplying the calculated first occupancy and Z or second occupancy by the deviation amount by a coefficient set in advance according to the shooting conditions, the natural light index, the luminance ratio index, The exposure index is calculated.
[0010] 請求の範囲第 4項に記載の発明は、撮影画像データ内の主要被写体の明るさを最 適化する処理を行う画像処理装置であって、 [0010] The invention described in claim 4 is an image processing apparatus that performs processing for optimizing the brightness of a main subject in captured image data.
前記撮影画像データの自然光による屋外撮影度を表す自然光指標と、当該撮影 画像データのダイナミックレンジの大きさを表す輝度比指標と、撮影時の露出設定に 起因する露出撮影度を表す露出指標を算出する指標算出手段と、 Calculates a natural light index that represents the degree of outdoor shooting with natural light in the photographed image data, a luminance ratio index that represents the size of the dynamic range of the photographed image data, and an exposure index that represents the exposure photographing degree due to the exposure setting at the time of photographing. Index calculation means to
前記撮影画像データの明るさ解析値と、明るさの再現目標値と、前記指標算出手
段により算出された輝度比指標及び露出指標に基づいて、当該撮影画像データに 対する複数の第 1仮補正量を設定する第 1仮補正量設定手段と、 The brightness analysis value of the captured image data, the brightness reproduction target value, and the index calculation First temporary correction amount setting means for setting a plurality of first temporary correction amounts for the captured image data based on the brightness ratio index and the exposure index calculated by the stage;
前記指標算出手段により算出された自然光指標に基づいて、前記複数の第 1仮補 正量の各々に乗算する重み係数としての第 1混合係数を設定する第 1混合係数設定 手段と、 First mixing coefficient setting means for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculating means;
前記第 1混合係数設定手段により設定された第 1混合係数と、前記複数の第 1仮補 正量に基づ 、て、前記撮影画像データに対する第 2仮補正量を設定する第 2仮補正 量設定手段と、 A second temporary correction amount for setting a second temporary correction amount for the photographed image data based on the first mixing coefficient set by the first mixing coefficient setting means and the plurality of first temporary correction amounts. Setting means;
前記指標算出手段により算出された自然光指標、輝度比指標、露出指標に基づい て、前記複数の第 1仮補正量のうちの少なくとも 1つと、前記第 2仮補正量に乗算する 重み係数としての第 2混合係数を設定する第 2混合係数設定手段と、 Based on the natural light index, the luminance ratio index, and the exposure index calculated by the index calculation means, at least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor. 2nd mixing coefficient setting means for setting the mixing coefficient;
前記第 2混合係数により設定された第 2混合係数と、前記少なくとも 1つの第 1仮補 正量と、前記第 2仮補正量に基づいて、前記撮影画像データの明るさ補正量を算出 する補正量算出手段と、 Correction for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount. A quantity calculating means;
前記補正量算出手段により算出された明るさ補正量と、前記自然光指標と、前記輝 度比指標に基づいて、前記撮影画像データを変換するための補正カーブを生成す る補正カーブ生成手段と、 A correction curve generating means for generating a correction curve for converting the captured image data based on the brightness correction amount calculated by the correction amount calculating means, the natural light index, and the brightness ratio index;
前記補正カーブ生成手段により生成された補正カーブに従って、前記撮影画像デ ータの明るさを補正する補正手段と、を備えることを特徴としている。 Correction means for correcting the brightness of the captured image data in accordance with the correction curve generated by the correction curve generation means.
請求の範囲第 5項に記載の発明は、撮影画像データ内の主要被写体の明るさを最 適化する処理を行う画像処理装置であって、 The invention described in claim 5 is an image processing apparatus for performing processing for optimizing the brightness of a main subject in captured image data,
前記撮影画像データの自然光による屋外撮影度を表す自然光指標と、当該撮影 画像データのダイナミックレンジの大きさを表す輝度比指標と、撮影時の露出設定に 起因する露出撮影度を表す露出指標を算出する指標算出手段と、 Calculates a natural light index that represents the degree of outdoor shooting with natural light in the photographed image data, a luminance ratio index that represents the size of the dynamic range of the photographed image data, and an exposure index that represents the exposure photographing degree due to the exposure setting at the time of photographing. Index calculation means to
前記撮影画像データの明るさ解析値と、明るさの再現目標値と、前記指標算出手 段により算出された輝度比指標及び露出指標に基づいて、当該撮影画像データに 対する複数の第 1仮補正量を設定する第 1仮補正量設定手段と、 Based on the brightness analysis value of the captured image data, the brightness reproduction target value, and the luminance ratio index and the exposure index calculated by the index calculation means, a plurality of first temporary corrections for the captured image data First temporary correction amount setting means for setting the amount;
前記指標算出手段により算出された自然光指標に基づいて、前記複数の第 1仮補
正量の各々に乗算する重み係数としての第 1混合係数を設定する第 1混合係数設定 手段と、 Based on the natural light index calculated by the index calculating means, the plurality of first temporary complements. First mixing coefficient setting means for setting a first mixing coefficient as a weighting coefficient for multiplying each positive amount;
前記第 1混合係数設定手段により設定された第 1混合係数と、前記複数の第 1仮補 正量に基づ 、て、前記撮影画像データに対する第 2仮補正量を設定する第 2仮補正 量設定手段と、 A second temporary correction amount for setting a second temporary correction amount for the photographed image data based on the first mixing coefficient set by the first mixing coefficient setting means and the plurality of first temporary correction amounts. Setting means;
前記指標算出手段により算出された自然光指標、輝度比指標、露出指標に基づい て、前記複数の第 1仮補正量のうちの少なくとも 1つと、前記第 2仮補正量に乗算する 重み係数としての第 2混合係数を設定する第 2混合係数設定手段と、 Based on the natural light index, the luminance ratio index, and the exposure index calculated by the index calculation means, at least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor. 2nd mixing coefficient setting means for setting the mixing coefficient;
前記第 2混合係数により設定された第 2混合係数と、前記少なくとも 1つの第 1仮補 正量と、前記第 2仮補正量に基づいて、前記撮影画像データの明るさ補正量を算出 する補正量算出手段と、 Correction for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount. A quantity calculating means;
前記撮影画像データの彩度が所定の閾値よりも高ぐ且つ前記自然光指標に基づ V、て設定される所定の色相を有する高彩度の画素数に基づ!/、て、当該撮影画像デ ータの明るさ補正量を抑制するための抑制係数を設定する抑制係数設定手段と、 前記補正量算出手段により算出された明るさ補正量に前記抑制係数を乗算して新 たな明るさ補正量を算出する乗算手段と、 Based on the number of pixels of high saturation having a predetermined hue that is set based on the natural light index, and the saturation of the captured image data is higher than a predetermined threshold value, V / A suppression coefficient setting means for setting a suppression coefficient for suppressing the brightness correction amount of the data, and a new brightness correction amount by multiplying the brightness correction amount calculated by the correction amount calculation means by the suppression coefficient Multiplication means for calculating
前記乗算手段により得られた新たな明るさ補正量と、前記自然光指標と、前記輝度 比指標に基づいて、前記撮影画像データを変換するための補正カーブを生成する 補正カーブ生成手段と、 A correction curve generation means for generating a correction curve for converting the captured image data based on the new brightness correction amount obtained by the multiplication means, the natural light index, and the luminance ratio index;
前記補正カーブ生成手段により生成された補正カーブに従って、前記撮影画像デ ータの明るさを補正する補正手段と、を備えることを特徴としている。 Correction means for correcting the brightness of the captured image data in accordance with the correction curve generated by the correction curve generation means.
請求の範囲第 6項に記載の発明は、請求の範囲第 4項又は第 5項に記載の画像処 理装置において、 The invention according to claim 6 is the image processing apparatus according to claim 4 or 5, wherein
前記指標算出手段は、撮影画像データを、所定の明度と色相の組み合わせからな る領域に分割し、当該分割された領域毎に前記撮影画像データ全体に占める割合 を示す第 1の占有率を算出する第 1算出処理と、撮影画像データを、当該撮影画像 データの画面の外縁からの距離と明度の組み合わせ力 なる所定の領域に分割し、 当該分割された領域毎に前記撮影画像データ全体に占める割合を示す第 2の占有
率を算出する第 2算出処理の少なくとも一方の算出処理を実行し、 The index calculation means divides the photographed image data into regions composed of a combination of predetermined brightness and hue, and calculates a first occupancy ratio indicating the proportion of the entire photographed image data for each of the divided regions. The first calculation process and the photographed image data are divided into predetermined areas having a combination power of the distance from the outer edge of the screen of the photographed image data and the brightness, and each of the divided areas occupies the entire photographed image data Second occupancy showing percentage Execute at least one of the second calculation processes for calculating the rate,
前記撮影画像データの階調分布の偏りを示す偏倚量を算出し、 Calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
前記算出された第 1の占有率及び Z又は第 2の占有率と、前記偏倚量に、撮影条 件に応じて予め設定された係数を乗算することにより、前記自然光指標、前記輝度 比指標、前記露出指標を算出することを特徴としている。 By multiplying the calculated first occupancy and Z or second occupancy by the deviation amount by a coefficient set in advance according to the shooting conditions, the natural light index, the luminance ratio index, The exposure index is calculated.
請求の範囲第 7項に記載の発明は、撮影画像データ内の主要被写体の明るさを最 適化する処理を行う画像処理方法であって、 The invention described in claim 7 is an image processing method for performing a process of optimizing the brightness of a main subject in captured image data.
前記撮影画像データの自然光による屋外撮影度を表す自然光指標と、当該撮影 画像データのダイナミックレンジの大きさを表す輝度比指標と、撮影時の露出設定に 起因する露出撮影度を表す露出指標を算出する指標算出工程と、 Calculates a natural light index that represents the degree of outdoor shooting with natural light in the photographed image data, a luminance ratio index that represents the size of the dynamic range of the photographed image data, and an exposure index that represents the exposure photographing degree due to the exposure setting at the time of photographing. An index calculation process to perform,
前記撮影画像データの明るさ解析値と、明るさの再現目標値と、前記指標算出ェ 程により算出された輝度比指標及び露出指標に基づいて、当該撮影画像データに 対する複数の第 1仮補正量を設定する第 1仮補正量設定工程と、 Based on the brightness analysis value of the captured image data, the brightness reproduction target value, and the luminance ratio index and exposure index calculated by the index calculation process, a plurality of first temporary corrections for the captured image data A first provisional correction amount setting step for setting the amount;
前記指標算出工程により算出された自然光指標に基づいて、前記複数の第 1仮補 正量の各々に乗算する重み係数としての第 1混合係数を設定する第 1混合係数設定 工程と、 A first mixing coefficient setting step for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculation step;
前記第 1混合係数設定工程により設定された第 1混合係数と、前記複数の第 1仮補 正量に基づ 、て、前記撮影画像データに対する第 2仮補正量を設定する第 2仮補正 量設定工程と、 Based on the first mixing coefficient set in the first mixing coefficient setting step and the plurality of first temporary correction amounts, a second temporary correction amount for setting a second temporary correction amount for the captured image data A setting process;
前記指標算出工程により算出された自然光指標、輝度比指標、露出指標に基づい て、前記複数の第 1仮補正量のうちの少なくとも 1つと、前記第 2仮補正量に乗算する 重み係数としての第 2混合係数を設定する第 2混合係数設定工程と、 Based on the natural light index, the luminance ratio index, and the exposure index calculated by the index calculation step, at least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor. (2) a second mixing coefficient setting step for setting a mixing coefficient;
前記第 2混合係数により設定された第 2混合係数と、前記少なくとも 1つの第 1仮補 正量と、前記第 2仮補正量に基づいて、前記撮影画像データの明るさ補正量を算出 する補正量算出工程と、 Correction for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount. A quantity calculation step;
前記補正量算出工程により算出された明るさ補正量と、前記自然光指標と、前記輝 度比指標に基づいて、前記撮影画像データを変換するための補正カーブを生成す る補正カーブ生成工程と、
前記補正カーブ生成工程により生成された補正カーブに従って、前記撮影画像デ ータの明るさを補正する補正工程と、を含むことを特徴としている。 A correction curve generating step for generating a correction curve for converting the captured image data based on the brightness correction amount calculated by the correction amount calculating step, the natural light index, and the brightness ratio index; And a correction step of correcting the brightness of the captured image data according to the correction curve generated by the correction curve generation step.
請求の範囲第 8項に記載の発明は、撮影画像データ内の主要被写体の明るさを最 適化する処理を行う画像処理方法であって、 The invention described in claim 8 is an image processing method for performing a process of optimizing the brightness of a main subject in captured image data.
前記撮影画像データの自然光による屋外撮影度を表す自然光指標と、当該撮影 画像データのダイナミックレンジの大きさを表す輝度比指標と、撮影時の露出設定に 起因する露出撮影度を表す露出指標を算出する指標算出工程と、 Calculates a natural light index that represents the degree of outdoor shooting with natural light in the photographed image data, a luminance ratio index that represents the size of the dynamic range of the photographed image data, and an exposure index that represents the exposure photographing degree due to the exposure setting at the time of photographing. An index calculation process to perform,
前記撮影画像データの明るさ解析値と、明るさの再現目標値と、前記指標算出ェ 程により算出された輝度比指標及び露出指標に基づいて、当該撮影画像データに 対する複数の第 1仮補正量を設定する第 1仮補正量設定工程と、 Based on the brightness analysis value of the captured image data, the brightness reproduction target value, and the luminance ratio index and exposure index calculated by the index calculation process, a plurality of first temporary corrections for the captured image data A first provisional correction amount setting step for setting the amount;
前記指標算出工程により算出された自然光指標に基づいて、前記複数の第 1仮補 正量の各々に乗算する重み係数としての第 1混合係数を設定する第 1混合係数設定 工程と、 A first mixing coefficient setting step for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculation step;
前記第 1混合係数設定工程により設定された第 1混合係数と、前記複数の第 1仮補 正量に基づ 、て、前記撮影画像データに対する第 2仮補正量を設定する第 2仮補正 量設定工程と、 Based on the first mixing coefficient set in the first mixing coefficient setting step and the plurality of first temporary correction amounts, a second temporary correction amount for setting a second temporary correction amount for the captured image data A setting process;
前記指標算出工程により算出された自然光指標、輝度比指標、露出指標に基づい て、前記複数の第 1仮補正量のうちの少なくとも 1つと、前記第 2仮補正量に乗算する 重み係数としての第 2混合係数を設定する第 2混合係数設定工程と、 Based on the natural light index, the luminance ratio index, and the exposure index calculated by the index calculation step, at least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor. (2) a second mixing coefficient setting step for setting a mixing coefficient;
前記第 2混合係数により設定された第 2混合係数と、前記少なくとも 1つの第 1仮補 正量と、前記第 2仮補正量に基づいて、前記撮影画像データの明るさ補正量を算出 する補正量算出工程と、 Correction for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount. A quantity calculation step;
前記撮影画像データの彩度が所定の閾値よりも高ぐ且つ前記自然光指標に基づ V、て設定される所定の色相を有する高彩度の画素数に基づ!/、て、当該撮影画像デ ータの明るさ補正量を抑制するための抑制係数を設定する抑制係数設定工程と、 前記補正量算出工程により算出された明るさ補正量に前記抑制係数を乗算して新 たな明るさ補正量を算出する乗算工程と、 Based on the number of pixels of high saturation having a predetermined hue that is set based on the natural light index, and the saturation of the captured image data is higher than a predetermined threshold value, V / A suppression coefficient setting step for setting a suppression coefficient for suppressing the brightness correction amount of the data, and a new brightness correction amount by multiplying the brightness correction amount calculated by the correction amount calculation step by the suppression coefficient A multiplication step for calculating
前記乗算工程により得られた新たな明るさ補正量と、前記自然光指標と、前記輝度
比指標に基づいて、前記撮影画像データを変換するための補正カーブを生成する 補正カーブ生成工程と、 New brightness correction amount obtained by the multiplication step, the natural light index, and the luminance A correction curve generating step for generating a correction curve for converting the captured image data based on the ratio index;
前記補正カーブ生成工程により生成された補正カーブに従って、前記撮影画像デ ータの明るさを補正する補正工程と、を含むことを特徴としている。 And a correction step of correcting the brightness of the captured image data according to the correction curve generated by the correction curve generation step.
[0015] 請求の範囲第 9項に記載の発明は、請求の範囲第 7項又は第 8項に記載の画像処 理方法において、 [0015] The invention according to claim 9 is the image processing method according to claim 7 or 8,
前記指標算出工程では、撮影画像データを、所定の明度と色相の組み合わせカゝら なる領域に分割し、当該分割された領域毎に前記撮影画像データ全体に占める割 合を示す第 1の占有率を算出する第 1算出処理と、撮影画像データを、当該撮影画 像データの画面の外縁からの距離と明度の組み合わせ力 なる所定の領域に分割 し、当該分割された領域毎に前記撮影画像データ全体に占める割合を示す第 2の占 有率を算出する第 2算出処理の少なくとも一方の算出処理を実行し、 In the index calculation step, the photographed image data is divided into regions that are combinations of predetermined brightness and hue, and a first occupancy ratio that indicates a proportion of the entire photographed image data for each of the divided regions The first calculation process for calculating the image data and the captured image data are divided into predetermined areas having a combination power of distance and brightness from the outer edge of the screen of the captured image data, and the captured image data is divided into the divided areas. Execute at least one of the second calculation processes for calculating the second occupancy ratio indicating the proportion of the total,
前記撮影画像データの階調分布の偏りを示す偏倚量を算出し、 Calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
前記算出された第 1の占有率及び Z又は第 2の占有率と、前記偏倚量に、撮影条 件に応じて予め設定された係数を乗算することにより、前記自然光指標、前記輝度 比指標、前記露出指標を算出することを特徴としている。 By multiplying the calculated first occupancy and Z or second occupancy by the deviation amount by a coefficient set in advance according to the shooting conditions, the natural light index, the luminance ratio index, The exposure index is calculated.
[0016] 請求の範囲第 10項に記載の画像処理プログラムは、コンピュータに、 [0016] An image processing program according to claim 10 is stored in a computer.
撮影画像データの自然光による屋外撮影度を表す自然光指標と、当該撮影画像 データのダイナミックレンジの大きさを表す輝度比指標と、撮影時の露出設定に起因 する露出撮影度を表す露出指標を算出する指標算出機能と、 Calculates a natural light index that represents the degree of outdoor shooting with natural light in the captured image data, a luminance ratio index that represents the size of the dynamic range of the captured image data, and an exposure index that represents the exposure photographing level that results from the exposure setting at the time of shooting. An index calculation function,
前記撮影画像データの明るさ解析値と、明るさの再現目標値と、前記指標算出機 能により算出された輝度比指標及び露出指標に基づいて、当該撮影画像データに 対する複数の第 1仮補正量を設定する第 1仮補正量設定機能と、 Based on the brightness analysis value of the captured image data, the brightness reproduction target value, and the luminance ratio index and the exposure index calculated by the index calculation function, a plurality of first temporary corrections for the captured image data A first provisional correction amount setting function for setting the amount;
前記指標算出機能により算出された自然光指標に基づいて、前記複数の第 1仮補 正量の各々に乗算する重み係数としての第 1混合係数を設定する第 1混合係数設定 機能と、 A first mixing coefficient setting function for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculation function;
前記第 1混合係数設定機能により設定された第 1混合係数と、前記複数の第 1仮補 正量に基づ 、て、前記撮影画像データに対する第 2仮補正量を設定する第 2仮補正
量設定機能と、 Second temporary correction for setting a second temporary correction amount for the captured image data based on the first mixing coefficient set by the first mixing coefficient setting function and the plurality of first temporary correction amounts. The volume setting function,
前記指標算出機能により算出された自然光指標、輝度比指標、露出指標に基づい て、前記複数の第 1仮補正量のうちの少なくとも 1つと、前記第 2仮補正量に乗算する 重み係数としての第 2混合係数を設定する第 2混合係数設定機能と、 Based on the natural light index, the brightness ratio index, and the exposure index calculated by the index calculation function, at least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor. 2nd mixing coefficient setting function to set the mixing coefficient,
前記第 2混合係数により設定された第 2混合係数と、前記少なくとも 1つの第 1仮補 正量と、前記第 2仮補正量に基づいて、前記撮影画像データの明るさ補正量を算出 する補正量算出機能と、 Correction for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount. A quantity calculation function;
前記補正量算出機能により算出された明るさ補正量と、前記自然光指標と、前記輝 度比指標に基づいて、前記撮影画像データを変換するための補正カーブを生成す る補正カーブ生成機能と、 A correction curve generation function for generating a correction curve for converting the captured image data based on the brightness correction amount calculated by the correction amount calculation function, the natural light index, and the brightness ratio index;
前記補正カーブ生成機能により生成された補正カーブに従って、前記撮影画像デ ータの明るさを補正する補正機能と、を実現させる。 And a correction function for correcting the brightness of the captured image data in accordance with the correction curve generated by the correction curve generation function.
請求の範囲第 11項に記載の画像処理プログラムは、コンピュータに、 The image processing program according to claim 11 is stored in a computer.
撮影画像データの自然光による屋外撮影度を表す自然光指標と、当該撮影画像 データのダイナミックレンジの大きさを表す輝度比指標と、撮影時の露出設定に起因 する露出撮影度を表す露出指標を算出する指標算出機能と、 Calculates a natural light index that represents the degree of outdoor shooting with natural light in the captured image data, a luminance ratio index that represents the size of the dynamic range of the captured image data, and an exposure index that represents the exposure photographing level that results from the exposure setting at the time of shooting. An index calculation function,
前記撮影画像データの明るさ解析値と、明るさの再現目標値と、前記指標算出機 能により算出された輝度比指標及び露出指標に基づいて、当該撮影画像データに 対する複数の第 1仮補正量を設定する第 1仮補正量設定機能と、 Based on the brightness analysis value of the captured image data, the brightness reproduction target value, and the luminance ratio index and the exposure index calculated by the index calculation function, a plurality of first temporary corrections for the captured image data A first provisional correction amount setting function for setting the amount;
前記指標算出機能により算出された自然光指標に基づいて、前記複数の第 1仮補 正量の各々に乗算する重み係数としての第 1混合係数を設定する第 1混合係数設定 機能と、 A first mixing coefficient setting function for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculation function;
前記第 1混合係数設定機能により設定された第 1混合係数と、前記複数の第 1仮補 正量に基づ 、て、前記撮影画像データに対する第 2仮補正量を設定する第 2仮補正 量設定機能と、 A second temporary correction amount for setting a second temporary correction amount for the photographed image data based on the first mixing coefficient set by the first mixing coefficient setting function and the plurality of first temporary correction amounts. Setting function,
前記指標算出機能により算出された自然光指標、輝度比指標、露出指標に基づい て、前記複数の第 1仮補正量のうちの少なくとも 1つと、前記第 2仮補正量に乗算する 重み係数としての第 2混合係数を設定する第 2混合係数設定機能と、
前記第 2混合係数により設定された第 2混合係数と、前記少なくとも 1つの第 1仮補 正量と、前記第 2仮補正量に基づいて、前記撮影画像データの明るさ補正量を算出 する補正量算出機能と、 Based on the natural light index, the brightness ratio index, and the exposure index calculated by the index calculation function, at least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor. 2nd mixing coefficient setting function to set the mixing coefficient, Correction for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount. A quantity calculation function,
前記撮影画像データの彩度が所定の閾値よりも高ぐ且つ前記自然光指標に基づ V、て設定される所定の色相を有する高彩度の画素数に基づ!/、て、当該撮影画像デ ータの明るさ補正量を抑制するための抑制係数を設定する抑制係数設定機能と、 前記補正量算出機能により算出された明るさ補正量に前記抑制係数を乗算して新 たな明るさ補正量を算出する乗算機能と、 Based on the number of pixels of high saturation having a predetermined hue that is set based on the natural light index, and the saturation of the captured image data is higher than a predetermined threshold value, V / A suppression coefficient setting function for setting a suppression coefficient for suppressing the brightness correction amount of the data, and a new brightness correction amount by multiplying the brightness correction amount calculated by the correction amount calculation function by the suppression coefficient A multiplication function for calculating
前記乗算機能により得られた新たな明るさ補正量と、前記自然光指標と、前記輝度 比指標に基づいて、前記撮影画像データを変換するための補正カーブを生成する 補正カーブ生成機能と、 A correction curve generation function for generating a correction curve for converting the photographed image data based on the new brightness correction amount obtained by the multiplication function, the natural light index, and the luminance ratio index;
前記補正カーブ生成機能により生成された補正カーブに従って、前記撮影画像デ ータの明るさを補正する補正機能と、を実現させる。 And a correction function for correcting the brightness of the captured image data in accordance with the correction curve generated by the correction curve generation function.
[0018] 請求の範囲第 12項に記載の発明は、請求の範囲第 10項又は第 11項に記載の画 像処理プログラムにおいて、前記指標算出機能を実現させる際に、 [0018] The invention according to claim 12 is the image processing program according to claim 10 or 11, wherein the index calculation function is realized when the index calculation function is realized.
撮影画像データを、所定の明度と色相の組み合わせカゝらなる領域に分割し、当該 分割された領域毎に前記撮影画像データ全体に占める割合を示す第 1の占有率を 算出する第 1算出処理と、撮影画像データを、当該撮影画像データの画面の外縁か らの距離と明度の組み合わせ力 なる所定の領域に分割し、当該分割された領域毎 に前記撮影画像データ全体に占める割合を示す第 2の占有率を算出する第 2算出 処理の少なくとも一方の算出処理を実行し、 First calculation processing that divides photographed image data into regions that are a combination of predetermined brightness and hue, and calculates a first occupancy ratio that indicates a proportion of the entire photographed image data for each of the divided regions The photographed image data is divided into predetermined areas having a combination power of distance and brightness from the outer edge of the screen of the photographed image data, and the ratio of the divided area to the whole photographed image data is shown for each divided area. Execute at least one of the second calculation processes for calculating the occupancy ratio of 2,
前記撮影画像データの階調分布の偏りを示す偏倚量を算出し、 Calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
前記算出された第 1の占有率及び Z又は第 2の占有率と、前記偏倚量に、撮影条 件に応じて予め設定された係数を乗算することにより、前記自然光指標、前記輝度 比指標、前記露出指標を算出することを特徴としている。 By multiplying the calculated first occupancy and Z or second occupancy by the deviation amount by a coefficient set in advance according to the shooting conditions, the natural light index, the luminance ratio index, The exposure index is calculated.
[0019] 次に、本発明における用語について説明する。 Next, terms in the present invention will be described.
[0020] 「撮影画像データ内の主要被写体の明るさを最適化する」とは、例えば、撮影画像 データの主要被写体である人物顔領域の明るさが、撮影画像データを出力する出力
デバイス (例えば、プリンタ)において最適な明るさで再現されるようにすることを意味 する。 [0020] “Optimizing the brightness of the main subject in the captured image data” means, for example, that the brightness of the human face area, which is the main subject of the captured image data, outputs the captured image data It means that it is reproduced at the optimum brightness on the device (eg printer).
[0021] 「自然光」とは、人工的な光源である定常光や閃光(「ストロボ」、「フラッシュ」、「スピ 一ドライト」などと称される)ではなぐ太陽を光源とする光のことである。 日中光とも言 う。デーライトは、日中光に近い色温度 (約 5500K)の人工的な光源を示す用語であ るため、「自然光」とは異なる。 [0021] "Natural light" refers to light that uses the sun as a light source, which is not an artificial light source such as steady light or flash light (referred to as "strobe", "flash", "speed light", etc.). is there. Also known as daylight. Daylight is a term that refers to an artificial light source with a color temperature close to that of daylight (approximately 5500K), and is therefore different from “natural light”.
[0022] 「屋外撮影度」 (「自然光指標」とも 、う。 )とは、撮影画像データが「自然光」を用い て撮影されたものであるかどうかを推定し、その結果を定量的に示した数値である。「 自然光」を用いて撮影され、明るさ補正を要するシーンには逆光シーンが多ぐ画面 上部に高輝度領域或いは高彩度の空色領域、画面下部に、低輝度領域或いは肌 色や緑色が分布する確率が高い。一方、「自然光」を用いないで撮影された屋内撮 影或いはストロボ撮影シーンには、画面中央に高輝度領域或いは低彩度の肌色領 域、画面周辺には低輝度領域或いは低輝度の肌色や高彩度の肌色が分布する傾 向にある。このような経験側を基に、「自然光」を用いて撮影されかどうかを、「屋外撮 影度」として定量的に示すことが可能である。画面上部の輝度や空色色相の画素数 、画面下部の輝度や肌色色相の画素数など、多くの変量から 1つの傾向を導き出す 統計処理手法としては、多変量解析を用いることが望ま 、。 [0022] "Outdoor shooting degree" (also referred to as "natural light index") estimates whether or not the shot image data was taken using "natural light" and shows the result quantitatively. It is a numerical value. Many scenes that have been shot using “natural light” and that require brightness correction have many backlight scenes. Is expensive. On the other hand, for indoor or strobe shooting scenes taken without using “natural light”, a high-brightness area or low-saturation skin color area at the center of the screen, and a low-brightness area or low-brightness skin color around the screen. Highly saturated skin color tends to be distributed. Based on such experience, it is possible to quantitatively indicate whether or not the image is taken using “natural light” as “outdoor imaging degree”. It is desirable to use multivariate analysis as a statistical processing method that derives one tendency from many variables, such as the brightness at the top of the screen and the number of pixels in the sky blue hue, the brightness at the bottom of the screen and the number of pixels in the skin tone hue.
[0023] 「ダイナミックレンジの大きさを表す輝度比指標」とは、逆光シーンやストロボ撮影シ ーンのような、撮影時の光源条件に起因して、主要被写体領域と背景領域の明るさ が異なる程度を定量的に示す値のことである。例えば、逆光シーンでは、撮影者が力 メラを太陽の方角に向け、人物を撮影することに起因して、人物顔領域が暗ぐ背景 領域である空が明るい画像となっている。即ち、人物顔領域と背景領域との明るさの 差分値が得られれば、差分値を指標の 1つとすることができる。一般的には、画差撮 影画像データのヒストグラムを作図することにより差分値を得ることが知られている。 [0023] “Luminance ratio index indicating the size of the dynamic range” means that the brightness of the main subject area and the background area depends on the light source conditions at the time of shooting such as a backlight scene or strobe shooting scene. It is a value that indicates the degree of difference quantitatively. For example, in a backlight scene, the sky, which is the background area in which the human face area is dark, is a bright image due to the photographer turning the camera in the direction of the sun and shooting a person. That is, if the brightness difference value between the human face area and the background area is obtained, the difference value can be used as one of the indices. In general, it is known to obtain a difference value by drawing a histogram of image difference image data.
[0024] 撮影画像データの「明るさ解析値」とは、画素値の分布状態を調べることで得られる 、画像の平均的な明るさを示す数値である。「明るさ解析値」は、撮影画像データで 最も重要な被写体 (主要被写体)の明るさであることが望ましい。人物顔領域の探索 は、色相 ·彩度 ·明度を用いた表色系における照合により行う。より高い精度を得るた
めには、目 '鼻'口 ·顔の輪郭など、顔を構成するパーツを照合する所謂「顔検出」を 用いることが好ましい。また、撮影時の露出設定に起因する露出撮影度 (アンダー撮 影、オーバー撮影)を表す露出指標を算出し、この露出指標を明るさ解析値として用 いてもよい。更に、明るさ解析値の解析方法は、撮影画像データの解析に限定する ものではなぐ例えば、撮像装置の自動露出情報や自動露出情報の記録された付加 情報を解析して得られた明るさであってもよ 、。 The “brightness analysis value” of photographed image data is a numerical value indicating the average brightness of an image obtained by examining the distribution state of pixel values. The “brightness analysis value” is preferably the brightness of the most important subject (main subject) in the captured image data. The human face area is searched by collation in the color system using hue, saturation, and brightness. For higher accuracy For this purpose, it is preferable to use so-called “face detection” in which parts constituting the face, such as the eyes “nose” mouth and face contour, are collated. In addition, an exposure index representing the exposure shooting degree (under shooting or over shooting) resulting from the exposure setting at the time of shooting may be calculated, and this exposure index may be used as the brightness analysis value. Furthermore, the analysis method of the brightness analysis value is not limited to the analysis of the captured image data. For example, the brightness obtained by analyzing the automatic exposure information of the imaging device and the additional information recorded in the automatic exposure information is used. May be.
[0025] 「再現目標値」とは、例えば、撮影画像データの主要被写体である人物顔領域が、 撮影画像データを出力する出力デバイスにおいて最適に再現されるために必要な 明るさを示す数値である。即ち、撮影画像データの「明るさ解析値」が「再現目標値」 に近似した値であれば、出力デバイスにおいて最適に再現される確率が高いことを 意味する。 The “reproduction target value” is, for example, a numerical value indicating the brightness necessary for the human face area, which is the main subject of the captured image data, to be optimally reproduced in the output device that outputs the captured image data. is there. That is, if the “brightness analysis value” of the photographed image data is a value that approximates the “reproduction target value”, it means that the probability that the output device is optimally reproduced is high.
[0026] 「第 1仮補正量」とは、「明るさ解析値」を「再現目標値」へと近似させるために必要 な補正量を、一時的なものとして示した数値である。「第 1仮補正量を設定する」とは 、予め「明るさ解析値」と「第 1仮補正量」、との関係を定義した 1次元 LUT(Look U p Table)などを作成しておき、この 1次元 LUTと「明るさ解析値」に基づき、「第 1仮 補正量」を決定することを意味する。更に、「複数の第 1仮補正量を設定する」とは、「 明るさ解析値」を条件違 、で算出する方法、異なる「再現目標値」を設定する方法( 複数の 1次元 LUTを定義しておくことと同一)の一方又は双方により、少なくとも 2つ の「第 1仮補正量」を一時的に得ることである。 The “first provisional correction amount” is a numerical value that temporarily indicates the correction amount necessary for approximating the “brightness analysis value” to the “reproduction target value”. “Set the first provisional correction amount” means creating a one-dimensional LUT (Look Up Table) that defines the relationship between the “brightness analysis value” and the “first provisional correction amount” in advance. This means that the “first provisional correction amount” is determined based on the one-dimensional LUT and the “brightness analysis value”. Furthermore, “setting multiple first provisional correction values” means “calculating brightness analysis values” under different conditions, or setting different “reproduction target values” (defining multiple 1D LUTs). Or at least two “first provisional correction amounts” temporarily.
[0027] 本発明では、逆光シーンとストロボ撮影シーンにおける人物顔領域の明るさ補正を 想定した、それぞれ 2つの「第 1仮補正量」設定用の 1次元 LUTを定義する。また、逆 光シーンとストロボ撮影シーンの中間的なシーンでは、アンダーとオーバー撮影シー ンにおける画像全体の明るさ補正を想定した、少なくとも 1つの「第 1仮補正量」設定 用の 1次元 LUTを定義することが望ましい。 In the present invention, two one-dimensional LUTs for setting “first provisional correction amount” are defined, assuming brightness correction of a human face area in a backlight scene and a flash photography scene. For intermediate scenes between backlight scenes and flash shooting scenes, at least one 1D LUT for setting the “first provisional correction amount” that assumes brightness correction of the entire image in under and over shooting scenes is used. It is desirable to define.
[0028] 本発明の効果を十分に発揮させるために、「第 1仮補正量」設定用の 1次元 LUTの 作成に際しては、明部及び暗部がつぶれたり、高彩度の色が飽和してつぶれたり、 色相が変わるなどの現象が実際に発生する逆光シーンやストロボ撮影シーンを予め 「学習用画像(「教師データ」とも云う)」として多数用意し、人物顔領域の明るさと、こ
れらの現象の発生を観察しながら行うことが望ま 、。 [0028] In order to fully demonstrate the effects of the present invention, when creating a one-dimensional LUT for setting the "first provisional correction amount", bright and dark portions may be crushed, or high-saturation colors may be saturated and crushed. Prepare a large number of backlight scenes and flash photography scenes where phenomena such as hue change actually occur as “learning images” (also called “teacher data”). It is desirable to do this while observing the occurrence of these phenomena.
[0029] 「明るさの再現目標値」と「輝度比指標」に基づ!/ヽて、「第 1仮補正量を設定する」と は、撮影画像データのダイナミックレンジ力 撮影画像データを出力する出力デバイ スのダイナミックレンジ内に適切に収まるように、主要被写体の明るさに基づいて設定 された明るさ補正量を弱め、輝度比指標に基づいて明るさ補正量を設定することを 意味する。 [0029] Based on "brightness reproduction target value" and "brightness ratio index" !, "Set the first temporary correction amount" is the dynamic range power of the shot image data. This means that the brightness correction amount set based on the brightness of the main subject is weakened and the brightness correction amount is set based on the brightness ratio index so that it falls within the dynamic range of the output device. .
[0030] 自然光指標に基づいて「第 1混合係数を設定する」とは、予め「自然光指標」と、各 第 1仮補正量に乗算する「第 1混合係数」との関係を定義した 1次元 LUTなどを、第 1 仮補正量の数だけ作成しておき、この 1次元 LUTと「自然光指標」に基づき、各第 1 仮補正量に乗算する「第 1混合係数」を決定することを意味する。なお、輝度比指標 に基づ!/、て、第 1混合係数を調整するようにしてもょ 、。 [0030] “Setting the first mixing coefficient” based on the natural light index is a one-dimensional definition that defines in advance the relationship between the “natural light index” and the “first mixing coefficient” by which each first temporary correction amount is multiplied. This means that LUTs, etc., are created for the number of first temporary correction amounts, and based on this one-dimensional LUT and the `` natural light index '', the `` first mixing coefficient '' to be multiplied by each first temporary correction amount is determined. To do. Note that the first mixing factor may be adjusted based on the luminance ratio index!
[0031] 例えば、自然光指標が、高い屋外撮影度の数値を示した場合、逆光シーンにおけ る人物顔領域の明るさ補正を想定した、「第 1仮補正量」設定用の 1次元 LUT (入力: 肌色平均輝度、出力:第 1仮補正量)の「第 1混合係数」が高くなるように、 1次元 LU Tを定義する。 [0031] For example, when the natural light index indicates a high outdoor photographing value, a one-dimensional LUT for setting the “first provisional correction amount” assuming brightness correction of a human face area in a backlight scene ( Define one-dimensional LUT so that the “first mixing coefficient” of input: flesh tone average luminance, output: first temporary correction amount) becomes high.
[0032] 一方、自然光指標が、低 ヽ屋外撮影度の数値を示した場合、ストロボ撮影シーンに おける人物顔領域の明るさ補正を想定した、「第 1仮補正量」設定用の 1次元 LUT( 入力:肌色平均輝度、出力:第 1仮補正量)の「第 1混合係数」が高くなるように、 1次 元 LUTを定義する。 [0032] On the other hand, if the natural light index indicates a low-light outdoor shooting degree, a one-dimensional LUT for setting the “first provisional correction amount” assuming brightness correction of the human face area in the flash shooting scene. Define a one-dimensional LUT so that the “first mixing coefficient” of (input: flesh color average brightness, output: first temporary correction amount) is high.
[0033] また、自然光指標が、曖昧な屋外撮影度の数値を示した場合、アンダー撮影シー ンとオーバー撮影シーンにおける画像全体の明るさ補正を想定した、「第 1仮補正量 」設定用の 1次元 LUT (入力:全体平均輝度又はアンダー 'オーバー撮影指標、出 力:第 1仮補正量)の「第 1混合係数」が高くなるように 1次元 LUTを定義する。 [0033] Also, when the natural light index shows an ambiguous outdoor shooting degree value, it is assumed that the "first provisional correction amount" is set assuming brightness correction of the entire image in the under shooting scene and over shooting scene. Define the one-dimensional LUT so that the “first mixing coefficient” of the one-dimensional LUT (input: overall average brightness or under-over shooting index, output: first temporary correction amount) is high.
[0034] 撮影画像データが予め逆光画像とわ力 ている場合には、「輝度比指標」に基づき 、明るさ補正量と補正カーブを修正することができ、撮影画像データの明部及び暗部 がつぶれたり、高彩度の色が飽和してつぶれたり、色相が変化することが抑制される 。し力しながら、逆光シーンとストロボ撮影シーンとでは、ダイナミックレンジの大きさが 同程度であっても、明るさ補正の方向が全く逆であるため、人物顔領域を適正な明る
さに補正する処理を自動化するには、逆光シーン力ストロボ撮影シーンあるか否かを 定量的に示した予測数値(自然光指標)に応じて、ダイナミックレンジの大きさを表す 輝度比指標に基づく第 1仮補正量の適用量を定義しなくてはならない。そこで、逆光 シーンにおける人物顔領域の明るさ補正を想定した、「第 1仮補正量」設定用の 1次 元 LUT (入力:輝度比指標、出力:第 1仮補正量)の「第 1混合係数」が高くなるように 、「自然光指標」と「第 1混合係数」との関係を定義した 1次元 LUTを定義する。 [0034] When the photographed image data is in advance a backlight image, the brightness correction amount and the correction curve can be corrected based on the “brightness ratio index”, and the bright and dark parts of the photographed image data can be corrected. It is possible to suppress crushing, crushing due to saturation of a high-saturation color, or a change in hue. However, in the backlight scene and the flash shooting scene, even if the dynamic range is the same, the direction of brightness correction is completely opposite, so that In order to automate the correction process, the first step is based on a luminance ratio index that represents the size of the dynamic range according to a predicted numerical value (natural light index) that quantitatively indicates whether there is a backlit scene force strobe shooting scene. 1 The amount of provisional correction must be defined. Therefore, assuming the brightness correction of the human face area in the backlight scene, the 1st LUT (input: luminance ratio index, output: 1st temporary correction amount) for the “first temporary correction amount” setting Define a one-dimensional LUT that defines the relationship between the “natural light index” and the “first mixing coefficient” so that the “coefficient” becomes higher.
[0035] 「第 2仮補正量」は、第 1仮補正量と第 1混合係数に基づいて算出されるもので、式 The “second provisional correction amount” is calculated based on the first provisional correction amount and the first mixing coefficient.
(1)のように定義される。式(1)において、第 1仮補正量設定手段により設定される複 数の第 1仮補正量のうち、 m個の第 1仮補正量を計算対象とし、潘目の第 1仮補正 量を key— auto [i]、第 1仮補正量 key— auto [i]に乗算する第 1混合係数を wgt [i] としている。 It is defined as (1). In Equation (1), m first temporary correction amounts among a plurality of first temporary correction amounts set by the first temporary correction amount setting means are calculated, and the first temporary correction amount of the cell is calculated as The first mixing coefficient to be multiplied by key—auto [i] and the first temporary correction amount key—auto [i] is wgt [i].
[0036] [数 1] m— 1 [0036] [Equation 1] m— 1
第 2仮補正量 = X key一 auto [i ] x wgt [i ] (l) 2nd temporary correction amount = X key one auto [i] x wgt [i] (l)
i=0 i = 0
[0037] 「明るさ補正量と、自然光指標と、輝度比指標に基づいて、撮影画像データを変換 するための補正カーブを生成する」とは、「自然光」を用いて撮影されたシーンである か否力を定量的に示した予測数値 (自然光指標)及びダイナミックレンジの大きさを 表す輝度比指標に応じて、撮影画像データの主要被写体 (例えば、人物顔領域)の 明るさを適正に仕上げつつ、明るさ補正カーブの形状を変更することにより、明部及 び暗部がつぶれたり、高彩度の色が飽和してつぶれたり、色相が変化することを抑 帘 Uすることである。 “Generate a correction curve for converting captured image data based on a brightness correction amount, a natural light index, and a luminance ratio index” is a scene captured using “natural light”. The brightness of the main subject (e.g., human face area) of the captured image data is properly finished according to the predicted numerical value (natural light index) that quantitatively indicates whether or not power and the luminance ratio index that indicates the size of the dynamic range. On the other hand, by changing the shape of the brightness correction curve, it is possible to prevent the bright and dark areas from being crushed, high-saturation colors to be saturated and crushed, and the hue from being changed.
[0038] 「自然光」を用いて撮影され、明るさ補正を要するシーンには逆光シーンが多ぐ明 るさ補正量がマイナスで、明部のつぶれ、高彩度の空色が飽和してつぶれたり、シァ ンゃグリーンなどへ色相が変わる確率が高い。一方、「自然光」を用いないで撮影さ れた屋内撮影或いはストロボ撮影シーンには、明るさ補正量がプラスで、暗部がつぶ れたり、高彩度の肌色が飽和してつぶれたり、イェローやレッドなどへ色相が変わる 傾向にある。このような経験側を基に、明るさ補正カーブの形状を変更する。
[0039] 自然光指標が、高い屋外撮影度の数値を示した場合、逆光シーンにおける明部が つぶれたり、高彩度の空色が飽和してつぶれたりすることを想定した、ハイライト側の 軟調カーブを定義する。一方、自然光指標が、低い屋外撮影度の数値を示した場合 、ストロボ撮影シーンにおける暗部がつぶれたり、高彩度の肌色が飽和してつぶれた りすることを想定した、シャドー側の軟調カーブを定義する。 [0038] Scenes that are shot using “natural light” and require brightness correction have many backlighting scenes. The brightness correction amount is negative, and the bright part is shattered and the high-saturation sky blue is saturated. There is a high probability that the hue will change to green. On the other hand, for indoor shooting or strobe shooting scenes that were shot without using “natural light”, the brightness correction amount is positive, dark areas are crushed, high-saturated skin color is saturated, yellow, red, etc. The hue tends to change. Based on such experience, the shape of the brightness correction curve is changed. [0039] Defines a soft curve on the highlight side, assuming that when the natural light index shows a high outdoor shooting degree, the bright part in the backlight scene will be crushed or the sky will be saturated with high saturation. To do. On the other hand, if the natural light index shows a low outdoor shooting value, define a soft curve on the shadow side assuming that the dark area in the flash photography scene will be crushed or the skin color of high saturation will be saturated and crushed. .
[0040] 「所定の色相」とは、飽和してつぶれたり、シアンやグリーンなどへ色相が変わる確 率が高い高彩度画素の色相であり、逆光シーンでは空色、屋内撮影或いはストロボ 撮影シーンでは肌色である。「自然光指標に基づ 、て設定される所定の色相」とは、 画素数をカウントする高彩度画素の色相を、自然光指標に基づき変更することである [0040] The "predetermined hue" is a hue of a high-saturation pixel that has a high probability of being saturated and crushed or changing to a hue such as cyan or green. is there. “Predetermined hue set based on the natural light index” means that the hue of the high-saturation pixel that counts the number of pixels is changed based on the natural light index
[0041] なお、明るさ補正量算出手段が、撮影画像データのタグ領域に記録された付加情 報を解析し、その解析された付加情報を補助的に用いて新たな明るさ補正量を設定 するようにしてちょい。 [0041] Note that the brightness correction amount calculation means analyzes the additional information recorded in the tag area of the captured image data, and sets a new brightness correction amount by using the analyzed additional information as a supplement. Please do it.
発明の効果 The invention's effect
[0042] 本発明によれば、撮影画像データの主要被写体の明るさを補正しつつ、明部及び 暗部のつぶれ、高彩度の色の飽和によるつぶれ、色相の変化を防止することが可能 となる。 According to the present invention, while correcting the brightness of the main subject in the photographed image data, it is possible to prevent the bright part and the dark part from being crushed, the collapsing due to high saturation color saturation, and the hue change.
図面の簡単な説明 Brief Description of Drawings
[0043] [図 1]本発明の実施形態に係る撮像装置の主要部構成を示すブロック図。 FIG. 1 is a block diagram showing a main part configuration of an imaging apparatus according to an embodiment of the present invention.
[図 2]画像処理部の内部構成を示すブロック図。 FIG. 2 is a block diagram showing an internal configuration of an image processing unit.
[図 3]本発明の実施形態 1における明るさ補正量算出部の内部構成を示すブロック図 FIG. 3 is a block diagram showing an internal configuration of a brightness correction amount calculation unit in Embodiment 1 of the present invention.
[図 4]輝度比指標と仮補正量 key— auto [0]との関係を示す LUT。 [Figure 4] LUT showing the relationship between the luminance ratio index and the temporary correction amount key—auto [0].
[図 5]露出指標と仮補正量 key— auto [l]との関係を示す LUT。 [Figure 5] LUT showing the relationship between the exposure index and the temporary correction amount key—auto [l].
[図 6]肌色平均輝度と仮補正量 key— auto [2]との関係を示す LUT。 [Fig.6] LUT showing the relationship between skin tone average brightness and provisional correction amount key—auto [2].
[図 7]肌色平均輝度又は全体平均輝度と仮補正量 key— auto [3]との関係を示す L [Fig.7] Skin color average luminance or overall average luminance and the temporary correction amount key— auto [3]
[図 8]輝度比指標と仮補正量 key— auto [4]との関係を示す LUT。
圆 9]露出指標と仮補正量 key— auto [5]との関係を示す LUT。 [Figure 8] LUT showing the relationship between the brightness ratio index and the provisional correction amount key—auto [4]. 圆 9] LUT indicating the relationship between exposure index and provisional correction amount key—auto [5].
[図 10]自然光指標と混合係数 wgt[0]との関係を示す LUT。 [Figure 10] LUT showing the relationship between natural light index and mixing coefficient wgt [0].
[図 11]自然光指標と混合係数 wgt[l]との関係を示す LUT。 [Fig. 11] LUT showing the relationship between natural light index and mixing coefficient wgt [l].
[図 12]自然光指標と混合係数 wgt[2]との関係を示す LUT。 [Figure 12] LUT showing the relationship between natural light index and mixing coefficient wgt [2].
[図 13]自然光指標と混合係数 wgt[3]との関係を示す LUT。 [Figure 13] LUT showing the relationship between natural light index and mixing coefficient wgt [3].
[図 14]自然光指標、輝度比指標、露出指標からシーンタイプを判別するための判別 マップを示す図。 FIG. 14 is a diagram showing a discrimination map for discriminating a scene type from a natural light index, a luminance ratio index, and an exposure index.
[図 15]シーンタイプ別に混合係数 wgt [4]〜 [6]の値を表す係数算出テーブルを示 す図。 [FIG. 15] A diagram showing a coefficient calculation table representing the values of the mixing coefficient wgt [4] to [6] for each scene type.
[図 16]実施形態 1の画像処理部において実行される明るさ補正処理を示すフローチ ヤート。 FIG. 16 is a flowchart showing brightness correction processing executed in the image processing unit of the first embodiment.
[図 17]シーンタイプが順光である場合の明るさ補正カーブ (a)と、シーンタイプが逆光 である場合の明るさ補正カーブを示す図 (b)。 [FIG. 17] A brightness correction curve (a) when the scene type is direct light and a brightness correction curve when the scene type is backlight (b).
圆 18]指標算出処理を示すフローチャート。 [18] A flowchart showing the index calculation process.
圆 19]明度,色相の領域毎に第 1の占有率を算出する第 1の占有率算出処理を示す フローチャート。 [19] A flowchart showing a first occupancy ratio calculation process for calculating a first occupancy ratio for each area of brightness and hue.
[図 20]RGB力 HSV表色系に変換するプログラムの一例を示す図。 FIG. 20 is a diagram showing an example of a program for converting to RGB power HSV color system.
圆 21]明度 (V)—色相 (H)平面と、 V— H平面上の領域 rl及び領域 r2を示す図。 圆 21] Lightness (V) —Hue (H) plane, and region rl and region r2 on the V—H plane.
[図 22]明度 (V)—色相(H)平面と、 V— H平面上の領域 r3及び領域 r4を示す図。 圆 23]指標 1を算出するための、第 1の占有率に乗算する第 1の係数を表す曲線を 示す図。 FIG. 22 is a diagram showing the lightness (V) —hue (H) plane and regions r3 and r4 on the V—H plane. [23] A diagram showing a curve representing a first coefficient for multiplying the first occupancy ratio for calculating the index 1.
圆 24]指標 2を算出するための、第 1の占有率に乗算する第 2の係数を表す曲線を 示す図。 [24] A diagram showing a curve representing a second coefficient for multiplying the first occupancy ratio for calculating index 2.
圆 25]撮影画像データの構図に基づ 、て第 2の占有率を算出する第 2の占有率算 出処理を示すフローチャート。 25] A flowchart showing a second occupancy ratio calculation process for calculating the second occupancy ratio based on the composition of the captured image data.
[図 26]撮影画像データの画面の外縁からの距離に応じて決定される領域 nl〜n4を 示す図。 FIG. 26 is a diagram showing areas nl to n4 determined according to the distance from the outer edge of the screen of captured image data.
圆 27]指標 3を算出するための、第 2の占有率に乗算する第 3の係数を表す曲線を
領域別(nl〜n4)に示す図。 圆 27] A curve representing the third coefficient for multiplying the second occupancy to calculate index 3 The figure shown according to area | region (nl-n4).
圆 28]偏倚量算出処理を示すフローチャート。 圆 28] A flowchart showing a bias amount calculation process.
圆 29]本発明の実施形態 2における明るさ補正量算出部の内部構成を示すブロック 図。 圆 29] A block diagram showing the internal configuration of the brightness correction amount calculation unit in Embodiment 2 of the present invention.
[図 30]実施形態 2の画像処理部において実行される明るさ補正処理を示すフローチ ヤート。 FIG. 30 is a flowchart showing brightness correction processing executed in the image processing unit of the second embodiment.
[図 31]自然光指標と、高彩度画素の色相条件との関係を示す図。 FIG. 31 is a diagram showing a relationship between a natural light index and a hue condition of a high saturation pixel.
圆 32]本発明が適用された画像処理装置の主要部構成を示すブロック図。 圆 32] A block diagram showing the main configuration of an image processing apparatus to which the present invention is applied.
符号の説明 Explanation of symbols
1 レンズ 1 lens
2 絞り 2 Aperture
3 CCD 3 CCD
4 アナログ処理回路 4 Analog processing circuit
5 AZD変 5 AZD
6 一時記憶メモリ 6 Temporary memory
7 画像処理部 7 Image processing section
70 前処理部 70 Pretreatment section
71 明るさ補正部 71 Brightness correction section
72 画質補正部 72 Image quality correction section
73 画像解析部 73 Image analysis unit
74 指標算出部 74 Indicator calculator
75 明るさ補正量算出部 75 Brightness correction amount calculator
76 明るさ補正カーブ生成部 76 Brightness correction curve generator
8 ヘッダ情報処理部 8 Header information processing section
9 記憶デバイス 9 Storage device
10 CCD駆動回路 10 CCD drive circuit
11 制御部 11 Control unit
12 操作部
13 表示部 12 Operation unit 13 Display
14 ストロボ駆動回路 14 Strobe drive circuit
15 ストロボ 15 Strobe
16 焦点距離調整回路 16 Focal length adjustment circuit
17 自動焦点駆動回路 17 Autofocus drive circuit
20 モータ 20 Motor
100 撮像装置 100 imaging device
101 第 1仮補正量設定部 101 First provisional correction amount setting section
102 第 1混合係数設定部 102 First mixing coefficient setting section
103 第 2仮補正量演算部 103 Second temporary correction amount calculation section
104 第 2混合係数設定部 104 Second mixing coefficient setting section
105 明るさ補正量演算部 105 Brightness correction amount calculator
106 抑制係数算出部 106 Suppression coefficient calculator
107 乗算部 107 multiplier
200 画像処理装置 200 Image processing device
201 画像入力部 201 Image input section
202 画像処理部 202 Image processing unit
203 画像出力部 203 Image output section
204 画像解析部 204 Image analysis unit
205 指標算出部 205 Indicator calculation section
206 明るさ補正量算出部 206 Brightness correction amount calculator
207 明るさ補正カーブ生成部 207 Brightness correction curve generator
208 画質補正部 208 Image quality correction section
発明を実施するための最良の形態 BEST MODE FOR CARRYING OUT THE INVENTION
[0045] 以下、図面を参照して、本発明の実施形態 1及び 2を詳細に説明する。 [0045] Hereinafter, embodiments 1 and 2 of the present invention will be described in detail with reference to the drawings.
[実施形態 1] [Embodiment 1]
まず、実施形態 1及び 2に共通する構成について説明する。 First, a configuration common to the first and second embodiments will be described.
[0046] 図 1に、本発明の実施形態 1及び 2に係る撮像装置 100の主要部構成を示す。撮
像装置 100は、図 1に示すように、レンズ 1、絞り 2、 CCD (Charge Coupled Devi ce) 3、アナログ処理回路 4、 AZD変換器 5、一時記憶メモリ 6、画像処理部 7、へッ ダ情報処理部 8、記憶デバイス 9、 CCD駆動回路 10、制御部 11、操作部 12、表示 部 13、ストロボ駆動回路 14、ストロボ 15、焦点距離調整回路 16、自動焦点駆動回路 17、モータ 20により構成される。 FIG. 1 shows a main part configuration of an imaging apparatus 100 according to Embodiments 1 and 2 of the present invention. Shoot As shown in FIG. 1, the image apparatus 100 includes a lens 1, an aperture 2, a CCD (Charge Coupled Device) 3, an analog processing circuit 4, an AZD converter 5, a temporary storage memory 6, an image processing unit 7, and a header. Information processing unit 8, storage device 9, CCD drive circuit 10, control unit 11, operation unit 12, display unit 13, strobe drive circuit 14, strobe 15, focal length adjustment circuit 16, automatic focus drive circuit 17, motor 20 Is done.
[0047] 撮像装置 100の光学系は、フォーカスの調節が可能なレンズ 1と、光量を調節する 絞り 2と、被写体情報を電気信号に変換する固体撮像素子である CCD3とを備えて いる。 The optical system of the imaging apparatus 100 includes a lens 1 that can adjust focus, a diaphragm 2 that adjusts the amount of light, and a CCD 3 that is a solid-state imaging device that converts subject information into an electrical signal.
[0048] 被写体情報は、レンズ 1及び絞り 2を介して CCD3の受光面に結像される。 CCD3 は、被写体情報を CCD3内のセンサ毎に光の入射光量に応じた量の電気的な信号 へと光電変換する。制御部 11から入力される制御信号に基づいて、 CCD駆動回路 10からタイミングパルスが出力され、このタイミングパルスによって CCD3に蓄積され た電気的な信号 (撮像信号)が順次出力されてアナログ処理回路 4に転送される。 The subject information is imaged on the light receiving surface of the CCD 3 through the lens 1 and the diaphragm 2. CCD3 photoelectrically converts subject information into an electrical signal of an amount corresponding to the amount of incident light for each sensor in CCD3. A timing pulse is output from the CCD drive circuit 10 based on a control signal input from the control unit 11, and an electrical signal (imaging signal) accumulated in the CCD 3 is sequentially output by this timing pulse to generate an analog processing circuit 4 Forwarded to
[0049] アナログ処理回路 4は、アナログの撮像信号の増幅やノイズの低減処理を行う。 A ZD変換器 5は、アナログ処理回路 4から入力されたアナログの撮像信号をデジタル の撮像信号 (R、 G、 B信号)に変換する。 AZD変翻5から出力されたデジタルの R 、 G、 B信号はー且、一時記憶メモリ 6に保存される。以下、デジタルの撮像信号を「 撮影画像データ」と呼ぶ。 [0049] The analog processing circuit 4 performs amplification processing of an analog imaging signal and noise reduction processing. A ZD converter 5 converts the analog imaging signal input from the analog processing circuit 4 into a digital imaging signal (R, G, B signal). The digital R, G, B signals output from the AZD transformation 5 are stored in the temporary storage memory 6. Hereinafter, the digital image signal is referred to as “captured image data”.
[0050] 画像処理部 7は、表示部 13での表示、記憶デバイス 9の記録メディアへの保存に 用いる撮影画像データの明るさ補正、分光感度のクロストーク補正、ノイズ抑制、鮮 鋭化、ホワイトバランス調整、彩度調整等の画質向上処理の他、画像サイズの変更、 トリミング、アスペクト変換等の処理を行う。画像処理部 7における処理は、操作部 12 力 の操作情報に応じて ONZOFF或 、は適応量等の設定が切り替えられるように なっている。例えば、操作部 12から、明るさ補正を指定する操作情報が入力されると 、画像処理部 7は、撮影画像データの明るさを補正する明るさ補正処理(図 16、図 3 0参照)を開始する。画像処理部 7による明るさ補正に係る内部構成については、後 に図 2を参照して説明する。 [0050] The image processing unit 7 displays on the display unit 13 and corrects the brightness of the captured image data used for storage in the recording medium of the storage device 9, crosstalk correction of spectral sensitivity, noise suppression, sharpening, white In addition to image quality improvement processing such as balance adjustment and saturation adjustment, processing such as image size change, trimming, and aspect conversion is performed. In the processing in the image processing unit 7, ONZOFF or the setting of the adaptive amount or the like can be switched according to the operation information of the operation unit 12 force. For example, when operation information specifying brightness correction is input from the operation unit 12, the image processing unit 7 performs brightness correction processing (see FIGS. 16 and 30) for correcting the brightness of the captured image data. Start. The internal configuration relating to the brightness correction by the image processing unit 7 will be described later with reference to FIG.
[0051] ヘッダ情報処理部 8は、画像処理部 7によって生成された撮影情報データのヘッダ
情報の書き込み処理を行う。ヘッダ情報の書き込み処理が行われた R、 G、 B信号は 、画像データとして記憶デバイス 9により記録メディアに保存される。記憶デバイス 9は 、撮影画像画像データや、撮像装置 100の制御プログラムを記憶する。 [0051] The header information processing unit 8 is a header of shooting information data generated by the image processing unit 7. Write information. The R, G, and B signals for which the header information has been written are stored as image data on the recording medium by the storage device 9. The storage device 9 stores captured image image data and a control program for the imaging apparatus 100.
[0052] 制御部 11は、 CPU (Central Processing Unit)等により構成され、レンズ 1の 焦点距離とフォーカス (ピント)を調節するモータ 20の制御を行う自動焦点駆動回路 17、焦点距離調整回路 16、 CCD駆動回路 10、アナログ処理回路 4、一時記憶メモ リ 6、画像処理部 7、表示部 13、ストロボ 15を駆動するストロボ駆動回路 14の制御を 行う。 The control unit 11 includes a CPU (Central Processing Unit) and the like, and includes an automatic focus driving circuit 17 that controls a motor 20 that adjusts the focal length and focus (focus) of the lens 1, a focal length adjustment circuit 16, Controls the strobe drive circuit 14 that drives the CCD drive circuit 10, analog processing circuit 4, temporary storage memory 6, image processing unit 7, display unit 13 and strobe 15.
[0053] 操作部 12は、図示しないボタン、カーソルキー等を備え、ユーザによる操作部 12の 操作情報を制御部 11に出力する。表示部 13は、撮影画像データを液晶ディスプレ ィに表示するとともに、撮影に関する設定や条件を表示する。 The operation unit 12 includes buttons, cursor keys, and the like (not shown), and outputs operation information of the operation unit 12 by the user to the control unit 11. The display unit 13 displays photographed image data on the liquid crystal display and also displays settings and conditions related to photography.
[0054] 図 2に、画像処理部 7の内部構成を示す。画像処理部 7は、図 2に示すように、前処 理部 70、明るさ補正部 71、画質補正部 72により構成される。 FIG. 2 shows an internal configuration of the image processing unit 7. As shown in FIG. 2, the image processing unit 7 includes a preprocessing unit 70, a brightness correction unit 71, and an image quality correction unit 72.
[0055] 前処理部 70は、一時記憶メモリ 6から入力された撮影画像データに対し、分光感度 のクロストーク補正、暗電流ノイズ抑制、仮のホワイトバランス調整を施し、明るさ補正 部 71及び画質補正部 72に出力する。 [0055] The preprocessing unit 70 performs spectral sensitivity crosstalk correction, dark current noise suppression, and temporary white balance adjustment on the captured image data input from the temporary storage memory 6, and the brightness correction unit 71 and the image quality Output to the correction unit 72.
[0056] 明るさ補正部 71は、画像解析部 73、指標算出部 74、明るさ補正量算出部 75、明 るさ補正カーブ生成部 76により構成される。 The brightness correction unit 71 includes an image analysis unit 73, an index calculation unit 74, a brightness correction amount calculation unit 75, and a brightness correction curve generation unit 76.
[0057] 画像解析部 73は、撮影画像データの明るさ解析値を算出する。明るさ解析値とは 、撮影画像データの画素値の分布状態を調べることで得られる、撮影画像データの 平均的な明るさを示す数値であり、撮影画像データで最も重要な被写体 (主要被写 体)の明るさであることが好ましい。明るさ解析値としては、例えば、撮影画像データ 全体の輝度値の平均値 (以下、「全体平均輝度」という。)、撮影画像データの肌色領 域における平均輝度値 (以下、「肌色平均輝度」という。)、撮影時の露出設定に起因 する露出撮影度 (アンダー、オーバー)を表す露出指標 (後述の指標 6)等がある。 [0057] The image analysis unit 73 calculates a brightness analysis value of the captured image data. The brightness analysis value is a numerical value indicating the average brightness of the captured image data obtained by examining the distribution state of the pixel values of the captured image data, and is the most important subject in the captured image data (main subject image). The brightness of the body). As brightness analysis values, for example, the average brightness value of the entire captured image data (hereinafter referred to as “total average brightness”), the average brightness value in the skin color region of the captured image data (hereinafter referred to as “skin color average brightness”). ), And an exposure index (Indicator 6 to be described later) indicating the exposure shooting degree (under, over) due to the exposure setting at the time of shooting.
[0058] 指標算出部 74は、撮影画像データの自然光による屋外撮影度を表す自然光指標 [0058] The index calculation unit 74 is a natural light index that represents the degree of outdoor shooting with natural light of the captured image data.
(後述の指標 4)と、撮影画像データのダイナミックレンジの大きさを表す輝度比指標( 後述の指標 5)と、撮影時の露出設定に起因する露出撮影度 (アンダー、オーバー)
を表す露出指標 (後述の指標 6)を算出する。指標算出部 74で実行される指標算出 処理については、後に図 18〜図 28を参照して詳細に説明する。 (Indicator 4 below), luminance ratio indicator (Indicator 5 below) indicating the dynamic range of the captured image data, and exposure exposure (under, over) due to exposure settings during shooting An exposure index (index 6 described later) is calculated. The index calculation process executed by the index calculation unit 74 will be described in detail later with reference to FIGS.
[0059] 明るさ補正量算出部 75は、画像解析部 73で算出された明るさ解析値と、指標算出 部 74の算出結果に基づいて、撮影画像データの明るさ補正量を算出する。明るさ補 正量算出部 75の内部構成については、後に図 3 (実施形態 1)、図 29 (実施形態 2) を参照して詳細に説明する。 The brightness correction amount calculation unit 75 calculates the brightness correction amount of the photographed image data based on the brightness analysis value calculated by the image analysis unit 73 and the calculation result of the index calculation unit 74. The internal configuration of the brightness correction amount calculation unit 75 will be described in detail later with reference to FIG. 3 (Embodiment 1) and FIG. 29 (Embodiment 2).
[0060] 明るさ補正カーブ生成部 76は、明るさ補正量算出部 75で算出された明るさ補正量 に基づいて、撮影画像データを変換するための明るさ補正カーブを生成する。 The brightness correction curve generation unit 76 generates a brightness correction curve for converting captured image data based on the brightness correction amount calculated by the brightness correction amount calculation unit 75.
[0061] 画質補正部 72は、明るさ補正カーブ生成部 76で生成された明るさ補正カーブに 従って、前処理部 70から入力された撮影画像データの明るさを補正する。明るさが 補正された撮影画像データは、ヘッダ情報処理部 8及び表示部 13に出力される。 The image quality correction unit 72 corrects the brightness of the captured image data input from the preprocessing unit 70 according to the brightness correction curve generated by the brightness correction curve generation unit 76. The captured image data whose brightness has been corrected is output to the header information processing unit 8 and the display unit 13.
[0062] 図 3に、実施形態 1の明るさ補正量算出部 75の内部構成を示す。明るさ補正量算 出部 75は、第 1仮補正量設定部 101、第 1混合係数設定部 102、第 2仮補正量演算 部 103、第 2混合係数設定部 104、明るさ補正量演算部 105により構成される。 FIG. 3 shows an internal configuration of the brightness correction amount calculation unit 75 of the first embodiment. The brightness correction amount calculation unit 75 includes a first temporary correction amount setting unit 101, a first mixing coefficient setting unit 102, a second temporary correction amount calculation unit 103, a second mixing coefficient setting unit 104, and a brightness correction amount calculation unit. Consists of 105.
[0063] 第 1仮補正量設定部 101は、撮影画像データの明るさ解析値と、明るさの再現目標 値と、指標算出部 74で算出された輝度比指標及び露出指標に基づいて、当該撮影 画像データに対する第 1仮補正量を設定する。画像解析部 73から n個の明るさ解析 値が入力された場合、仮補正量設定部 101は、各明るさ解析値を再現目標値へと近 似するために必要な補正量としての第 1仮補正量を n+4個設定する。 [0063] The first temporary correction amount setting unit 101 is based on the brightness analysis value of the captured image data, the brightness reproduction target value, and the brightness ratio index and the exposure index calculated by the index calculation unit 74. Set the first temporary correction amount for the captured image data. When n brightness analysis values are input from the image analysis unit 73, the provisional correction amount setting unit 101 sets the first correction amount necessary to approximate each brightness analysis value to the reproduction target value. Set n + 4 temporary correction amounts.
[0064] 図 4は、輝度比指標と第 1仮補正量 key— auto [0]との関係を定義した 1次元 LUT [0064] Figure 4 shows a one-dimensional LUT that defines the relationship between the luminance ratio index and the first temporary correction amount key—auto [0].
(Look Up Table)を示す図である。図 5は、露出指標と第 1仮補正量 key_auto [ 1]との関係を定義した 1次元 LUTを示す図である。図 6は、肌色平均輝度と第 1仮補 正量 key— auto [2]との関係を定義した 1次元 LUTを示す図である。図 7は、肌色平 均輝度又は全体平均輝度と第 1仮補正量 key— auto [3]との関係を定義した 1次元 LUTを示す図である。図 8は、輝度比指標と第 1仮補正量 key— auto [4]との関係を 定義した 1次元 LUTを示す図である。図 9は、露出指標と第 1仮補正量 key— auto [ 5]との関係を定義した 1次元 LUTを示す図である。 It is a figure which shows (Look Up Table). FIG. 5 is a diagram showing a one-dimensional LUT that defines the relationship between the exposure index and the first temporary correction amount key_auto [1]. FIG. 6 is a diagram showing a one-dimensional LUT that defines the relationship between the flesh color average luminance and the first provisional correction amount key-auto [2]. FIG. 7 is a diagram showing a one-dimensional LUT that defines the relationship between the skin tone average brightness or the overall average brightness and the first temporary correction amount key-auto [3]. FIG. 8 is a diagram showing a one-dimensional LUT that defines the relationship between the luminance ratio index and the first temporary correction amount key-auto [4]. FIG. 9 is a diagram showing a one-dimensional LUT that defines the relationship between the exposure index and the first temporary correction amount key-auto [5].
なお、図 7に示す肌色平均輝度又は全体平均輝度と第 1仮補正量 key— auto [3]と
の関係の定義した 1次元 LUTでは、露出指標が正の場合には全体平均輝度を使用 し、露出指標が 0又は負の場合には肌色平均輝度を使用し、露出指標が算出されてNote that the flesh color average brightness or overall average brightness shown in Fig. 7 and the first temporary correction amount key-auto [3] In the one-dimensional LUT that defines the relationship, the overall average brightness is used when the exposure index is positive, and the skin color average brightness is used when the exposure index is 0 or negative.
V、な 、場合には全体平均輝度を使用する。 In this case, use the overall average brightness.
[0065] 実施形態 1及び 2では、画像解析部 73で算出される明るさ解析値が、肌色平均輝 度及び全体平均輝度 (即ち、 n= 2)であるため、第 1仮補正量設定部 101では、図 4In Embodiments 1 and 2, since the brightness analysis values calculated by the image analysis unit 73 are the skin color average brightness and the overall average brightness (ie, n = 2), the first provisional correction amount setting unit 101, figure 4
〜図 9に示した 1次元 LUTを用いて、第 1仮補正量として 6個の仮補正量 (key— aut o [0]〜[5])が設定される。 ~ Using the one-dimensional LUT shown in Fig. 9, six temporary correction values (key-auto [0] to [5]) are set as the first temporary correction values.
[0066] 第 1混合係数設定部 102は、指標算出部 74で算出された自然光指標に基づ!/、て[0066] The first mixing coefficient setting unit 102 is based on the natural light index calculated by the index calculation unit 74! /
、仮補正量設定部 101で設定された n+4個の第 1仮補正量のうちの n+ 2個(key— auto [0]〜 [3] )に乗算する重み係数としての第 1混合係数を n+ 2個設定する。 The first mixing coefficient as a weighting coefficient to multiply n + 2 (key—auto [0] to [3]) out of the n + 4 first temporary correction amounts set by the temporary correction amount setting unit 101 Set n + two.
[0067] 図 10は、自然光指標と第 1混合係数 wgt[0]との関係を定義した 1次元 LUTを示 す図である。図 11は、自然光指標と第 1混合係数 wgt[l]との関係を定義した 1次元FIG. 10 is a diagram showing a one-dimensional LUT that defines the relationship between the natural light index and the first mixing coefficient wgt [0]. Figure 11 shows a one-dimensional definition of the relationship between the natural light index and the first mixing coefficient wgt [l].
LUTを示す図である。図 12は、自然光指標と第 1混合係数 wgt[2]との関係を定義 した 1次元 LUTを示す図である。図 13は、自然光指標と第 1混合係数 wgt[3]との関 係を定義した 1次元 LUTを示す図である。 It is a figure which shows LUT. FIG. 12 is a diagram showing a one-dimensional LUT that defines the relationship between the natural light index and the first mixing coefficient wgt [2]. FIG. 13 is a diagram showing a one-dimensional LUT that defines the relationship between the natural light index and the first mixing coefficient wgt [3].
[0068] なお、図 11において、自然光指標が 2より大きい場合、露出指標が算出されていな いか、露出指標が 0又は負の場合には実線で示す関係となり、露出指標が正の場合 には破線で示す関係となる。 [0068] In FIG. 11, when the natural light index is larger than 2, the exposure index is not calculated, or when the exposure index is 0 or negative, the relationship is indicated by a solid line, and when the exposure index is positive, The relationship is indicated by a broken line.
[0069] なお、図 4〜図 9の 1次元 LUTと、図 10〜図 13の 1次元 LUTは、撮像装置 100の 図示しな!、メモリに格納されて!、る。 [0069] Note that the one-dimensional LUTs shown in FIGS. 4 to 9 and the one-dimensional LUTs shown in FIGS. 10 to 13 are not shown in FIG. RU
[0070] 第 2仮補正量演算部 103は、 11+ 2個の第1仮補正量(1^ —&1^0 [0]〜[3])と、 第 1混合係数設定部 102で設定された n+ 2個の第 1混合係数 wgt[0]〜wgt[3]に 基づいて、撮影画像データに対する第 2仮補正量を設定する。式 (2)に、第 2仮補正 量の算出式を示す。 [0070] Second temporary correction amount calculation unit 103 is set by 11+ two first temporary correction amounts (1 ^ — & 1 ^ 0 [0] to [3]) and first mixing coefficient setting unit 102 Based on the n + 2 first mixing coefficients wgt [0] to wgt [3], the second temporary correction amount for the captured image data is set. Equation (2) shows the formula for calculating the second temporary correction amount.
[0071] 第 2仮補正量 = key— auto [0] X wgt[0] +key_auto [l] [0071] Second temporary correction amount = key— auto [0] X wgt [0] + key_auto [l]
X wgt [l] +key_auto[2] X wgt[2] +key_auto[3] X wgt [l] + key_auto [2] X wgt [2] + key_auto [3]
X wgt[3] ー(2) X wgt [3] ー (2)
以後、式(2)の第 2仮補正量を key— auto [6]と表記する。
[0072] 第 2混合係数設定部 104は、指標算出部 74で算出された自然光指標、輝度比指 標、露出指標の値から、判別マップを用いて撮影画像データのシーンタイプを判別し 、 2個の第 1仮補正量 key— auto [4]、 key— auto [5]と、第 2仮補正量 key— auto [ 6]の各々に乗算する重み係数として 3個の第 2混合係数 wgt [4]〜 [6]を設定する。 Hereafter, the second temporary correction amount in Equation (2) is expressed as key-auto [6]. The second mixing coefficient setting unit 104 discriminates the scene type of the captured image data from the values of the natural light index, the luminance ratio index, and the exposure index calculated by the index calculation unit 74 using a discrimination map. The first temporary correction amount key— auto [4], key— auto [5], and the second temporary correction amount key— auto [6] are each multiplied by three second mixing coefficients wgt [ Set [4] to [6].
[0073] 図 14 (a)に、自然光指標及び輝度比指標に基づいて撮影画像データのシーンタイ プ (順光、逆光、ストロボ、アンダー、低確度領域)を判別するための判別マップを示 し、図 14 (b)に自然光指標及び露出指標に基づ!、て撮影画像データのシーンタイ プ (順光、逆光、ストロボ、アンダー、低確度領域)を判別するための判別マップを示 す。図 14において、低確度領域とは、順光、逆光、ストロボ、アンダーと判別される確 度が(所定値より)低 、領域を表して 、る。 [0073] FIG. 14 (a) shows a discrimination map for discriminating the scene type (forward light, backlight, strobe, under, low accuracy region) of the captured image data based on the natural light index and the luminance ratio index. Fig. 14 (b) shows a discrimination map for discriminating the scene type (forward light, backlight, strobe, under, low accuracy region) of the captured image data based on the natural light index and the exposure index. In FIG. 14, the low accuracy region represents a region where the accuracy of being determined as follow light, backlight, strobe, or under is low (than a predetermined value).
[0074] 図 15は、シーンタイプ別に第 2混合係数 wgt [4]〜 [6]の値を表す係数算出テー ブルを示している。この係数算出テーブルは、撮像装置 100の図示しないメモリに格 納されている。図 15において、シーンタイプ項目に示された各数字は、図 14の各シ ーンタイプに付与された数字である。例えば、図 15において、シーンタイプ項目の" 3 "は、図 14 (a)の低確度領域(3)を表す。 FIG. 15 shows a coefficient calculation table representing the values of the second mixing coefficient wgt [4] to [6] for each scene type. This coefficient calculation table is stored in a memory (not shown) of the imaging apparatus 100. In FIG. 15, each number shown in the scene type item is a number assigned to each scene type in FIG. For example, in FIG. 15, “3” of the scene type item represents the low accuracy region (3) of FIG.
[0075] 明るさ補正量演算部 105は、 2個の第 1仮補正量 key— auto [4]、 key— auto [5] と、第 2仮補正量 key— auto [6]と、第 2混合係数設定部 104で設定された 3個の第 2混合係数 wgt [4]〜 [6]に基づ 、て、式 (3)に示すように明るさ補正量を算出する。 [0075] The brightness correction amount calculation unit 105 includes two first temporary correction amounts key—auto [4], key—auto [5], second temporary correction amount key—auto [6], and second Based on the three second mixing coefficients wgt [4] to [6] set by the mixing coefficient setting unit 104, the brightness correction amount is calculated as shown in Equation (3).
[0076] 明るさ補正量 = key_auto [4] X wgt[4] +key_auto [5] [0076] Brightness correction amount = key_auto [4] X wgt [4] + key_auto [5]
X wgt [5] +key_auto [6] X wgt [6] · ' · (3) X wgt [5] + key_auto [6] X wgt [6] · '· (3)
次に、実施形態 1における動作について説明する。 Next, the operation in the first embodiment will be described.
[0077] 図 16のフローチャートを参照して、実施形態 1の画像処理部 7において実行される 明るさ補正処理にっ 、て説明する。 A brightness correction process executed in the image processing unit 7 of the first embodiment will be described with reference to the flowchart of FIG.
[0078] まず、指標算出部 74において、自然光指標、輝度比指標、露出指標を算出する指 標算出処理が行われる (ステップ Tl)。ステップ T1の指標算出処理については、後 に図 18〜図 28を参照して詳細に説明する。 First, the index calculation unit 74 performs index calculation processing for calculating a natural light index, a luminance ratio index, and an exposure index (step Tl). The index calculation process in step T1 will be described in detail later with reference to FIGS.
[0079] 指標算出処理が終了すると、画像解析部 73において、撮影画像データの明るさ解 析値が η個算出される (ステップ Τ2)。ステップ Τ2では、 2個の明るさ解析値 (肌色平
均輝度、全体平均輝度)が算出される。次いで、図 4〜図 9の 1次元 LUTから、ステツ プ T2で算出された明るさ解析値と、ステップ T1の指標算出処理で算出された自然 光指標、輝度比指標、露出指標に対応する値を抽出することにより、 n+4個(6個) の第 1仮補正量 key— auto [0]〜 [5]が設定される (ステップ T3)。 [0079] When the index calculation process ends, the image analysis unit 73 calculates η brightness analysis values of the captured image data (step Τ2). In Step Τ2, the two brightness analysis values (skin color level) Average brightness, overall average brightness). Next, from the one-dimensional LUTs in Figs. 4 to 9, the brightness analysis value calculated in step T2, and the values corresponding to the natural light index, luminance ratio index, and exposure index calculated in the index calculation process in step T1. N + 4 (six) first temporary correction amounts key—auto [0] to [5] are set (step T3).
[0080] 次いで、図 10〜図 13の 1次元 LUTから、ステップ T1で算出された自然光指標に 対応する値を抽出することにより、 n+ 2個 (4個)の第 1混合係数 wgt[0]〜[3]が設 定される(ステップ T4)。次いで、 4個の第 1仮補正量 key— auto [0]〜 [3]と、 4個の 第 1混合係数 wgt [0]〜 [3]を用いて、式 (2)より第 2仮補正量 key_auto [6]が算 出される (ステップ T5)。 [0080] Next, n + 2 (4) first mixing coefficients wgt [0] are extracted from the one-dimensional LUTs of FIGS. 10 to 13 by extracting values corresponding to the natural light index calculated in step T1. ~ [3] is set (step T4). Next, using the four first temporary correction values key—auto [0] to [3] and the four first mixing coefficients wgt [0] to [3], the second temporary correction is obtained from equation (2). The quantity key_ a uto [6] is calculated (step T5).
[0081] 次いで、係数算出テーブル(図 15)から、判別マップ(図 14)を用いて判別されたシ ーンタイプに対応する 3個の第 2混合係数 wgt[4]〜[6]が抽出され、設定される (ス テツプ T6)。次いで、 2個の第 1仮補正量 key— auto [4]、 key— auto [5]と、第 2仮 補正量 key— auto [6]と、 3個の第 2混合係数 wgt[4]〜[6]を用いて、式(3)により 明るさ補正量が算出され (ステップ T7)、その算出された明るさ補正量と、ステップ T1 で算出された各指標に基づいて判別されたシーンタイプから、撮影画像データを変 換するための明るさ補正カーブが生成される (ステップ Τ8)。 [0081] Next, three second mixing coefficients wgt [4] to [6] corresponding to the scene type determined using the determination map (Fig. 14) are extracted from the coefficient calculation table (Fig. 15), Set (step T6). Next, two first temporary correction amounts key—auto [4], key—auto [5], second temporary correction amounts key—auto [6], and three second mixing coefficients wgt [4] to Using [6], the brightness correction amount is calculated by equation (3) (step T7), and the scene type determined based on the calculated brightness correction amount and each index calculated in step T1. Then, a brightness correction curve for converting the captured image data is generated (step Τ8).
[0082] 図 17 (a)は、シーンタイプが順光である場合の明るさ補正カーブを明るさ補正量別 に示した図である。図 17 (b)は、シーンタイプが逆光である場合の明るさ補正カーブ を明るさ補正量別に示した図である。図 17では、操作部 12によって操作される補正 ボタン数の実用域(一 6、 一4、 一2、 0ボタン)における明るさ補正カーブを示している 。ステップ Τ8では、予めシーンタイプ毎に設定された複数の明るさ補正カーブの中 から、ステップ Τ7で算出された明るさ補正量に対応する明るさ補正カーブが選択さ れる。 FIG. 17 (a) is a diagram showing brightness correction curves for each brightness correction amount when the scene type is direct light. Fig. 17 (b) shows the brightness correction curve for each brightness correction amount when the scene type is backlight. FIG. 17 shows the brightness correction curve in the practical range (the 1, 6, 1, 2, 0 buttons) of the number of correction buttons operated by the operation unit 12. In step Τ8, a brightness correction curve corresponding to the brightness correction amount calculated in step Τ7 is selected from a plurality of brightness correction curves set in advance for each scene type.
[0083] 明るさ補正カーブが生成されると、その明るさ補正カーブに従って、撮影画像デー タの明るさが補正され (ステップ Τ9)、本明るさ補正処理が終了する。このように明るさ が補正された撮影画像データは、指定された出力先に出力される。出力先としては、 表示部 13や、撮像装置 100に接続されたプリンタ等がある。 When the brightness correction curve is generated, the brightness of the captured image data is corrected according to the brightness correction curve (step Τ9), and this brightness correction process is ended. The captured image data whose brightness has been corrected in this way is output to the designated output destination. Examples of the output destination include the display unit 13 and a printer connected to the imaging device 100.
<指標算出処理 >
以下、図 18のフローチャートを参照して、ステップ T1の指標算出処理について説 明する。 <Indicator calculation process> Hereinafter, the index calculation process in step T1 will be described with reference to the flowchart of FIG.
[0084] まず、撮影画像データが所定の画像領域に分割され、各分割領域が撮影画像デ ータ全体に占める割合を示す占有率 (第 1の占有率、第 2の占有率)を算出する占有 率算出処理が行われる (ステップ Sl)。占有率算出処理の詳細は、後に図 19、図 25 を参照して説明する。 First, the captured image data is divided into predetermined image areas, and an occupation ratio (first occupation ratio, second occupation ratio) indicating the ratio of each divided area to the entire captured image data is calculated. Occupancy calculation processing is performed (step Sl). Details of the occupation rate calculation process will be described later with reference to FIGS.
[0085] 次いで、撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出 処理が行われる (ステップ S2)。ステップ S2の偏倚量算出処理については、後に図 2 8を参照して詳細に説明する。 [0085] Next, a bias amount calculation process for calculating a bias amount indicating a bias in the gradation distribution of the photographed image data is performed (step S2). The bias amount calculation process in step S2 will be described in detail later with reference to FIG.
[0086] 次いで、ステップ S1で算出された占有率と、撮影条件 (シーンタイプ等)に応じて予 め設定された係数に基づ!ヽて、撮影画像データの自然光による屋外撮影度を表す 自然光指標と、当該撮影画像データのダイナミックレンジの大きさを表す輝度比指標 と、撮影時の露出設定に起因する露出撮影度を表す露出指標が算出され (ステップ S3)、本指標算出処理が終了する。ステップ S3における指標の算出方法は、後に詳 細に説明する。 [0086] Next, based on the occupancy calculated in step S1 and the coefficient set in advance according to the shooting conditions (scene type, etc.), the natural light representing the outdoor shooting degree by the natural light of the shot image data. An index, a luminance ratio index that indicates the size of the dynamic range of the captured image data, and an exposure index that indicates the exposure shooting degree due to the exposure setting at the time of shooting are calculated (step S3), and this index calculation process ends. . The method for calculating the index in step S3 will be described in detail later.
[0087] 次に、図 19のフローチャートを参照して、第 1の占有率算出処理について詳細に説 明する。 Next, the first occupancy rate calculation process will be described in detail with reference to the flowchart of FIG.
[0088] まず、撮影画像データの RGB値が HSV表色系に変換される (ステップ S 10)。図 2 0は、 RGBから HSV表色系に変換することにより色相値、彩度値、明度値を得る変 換プログラム (HSV変換プログラム)の一例を、プログラムコード (c言語)により示した ものである。図 20に示す HSV変換プログラムでは、入力画像データであるデジタル 画像データの値を、 InR、 InG、 InBと定義し、算出された色相値を OutHとし、スケー ノレを 0〜360と定義し、彩度値を OutS、明度値を OutVとし、単位を 0〜255と定義 している。 [0088] First, the RGB value of the photographed image data is converted into the HSV color system (step S10). Figure 20 shows an example of a conversion program (HSV conversion program) that obtains hue values, saturation values, and brightness values by converting from RGB to the HSV color system in program code (c language). is there. In the HSV conversion program shown in Fig. 20, the digital image data values that are input image data are defined as InR, InG, and InB, the calculated hue value is defined as OutH, the scale is defined as 0 to 360, The degree value is OutS, the lightness value is OutV, and the unit is defined as 0 to 255.
[0089] 次 、で、撮影画像データが、所定の明度と色相の組み合わせからなる領域に分割 され、分割領域毎に累積画素数を算出することにより 2次元ヒストグラムが作成される (ステップ Sl l)。以下、撮影画像データの領域分割について詳細に説明する。 Next, the photographed image data is divided into regions composed of a predetermined combination of brightness and hue, and a two-dimensional histogram is created by calculating the cumulative number of pixels for each divided region (step Sl l). . Hereinafter, the area division of the captured image data will be described in detail.
[0090] 明度(V) iま、明度値力^)〜 25 (vl)、 26— 50 (ν2)、 51〜84 (ν3)、 85〜169 (ν4)
、 170〜199(v5)、 200〜224(v6)、 225〜255(v7)の 7つの領域に分割される。 色相(H)は、色相値が 0〜39、 330〜359の肌色色相領域 (HI及び H2)、色相値 力 0〜160の緑色色相領域 (H3)、色相値が 161〜250の青色色相領域 (H4)、赤 色色相領域 (H5)の 4つの領域に分割される。なお、赤色色相領域 (H5)は、シーン タイプ(図 14参照)の判別への寄与が少ないとの知見から、以下の計算では用いて いない。肌色色相領域は、更に、肌色領域 (HI)と、それ以外の領域 (H2)に分割さ れる。以下、肌色色相領域 (H = 0〜39、 330〜359)のうち、下記の式 (4)を満たす 色相 '(H)を肌色領域 (HI)とし、式 (4)を満たさな!/、領域を (H2)とする。 [0090] Lightness (V) i, Lightness value power ^) to 25 (vl), 26— 50 (ν2), 51 to 84 (ν3), 85 to 169 (ν4) , 170 to 199 (v5), 200 to 224 (v6), and 225 to 255 (v7). Hue (H) is a flesh color range (HI and H2) with a hue value of 0 to 39, 330 to 359, a green hue range (H3) with a hue value of 0 to 160, and a blue hue range with a hue value of 161 to 250. It is divided into four areas: (H4) and red hue area (H5). Note that the red hue region (H5) is not used in the calculations below, based on the knowledge that there is little contribution to scene type discrimination (see Figure 14). The flesh-color hue area is further divided into a flesh-color area (HI) and other areas (H2). Hereinafter, out of the flesh-colored hue area (H = 0 to 39, 330 to 359), the hue '(H) that satisfies the following formula (4) is defined as the flesh-colored area (HI), and the formula (4) is not satisfied! /, Let the region be (H2).
[0091] 10 < 彩度 ) <175、 [0091] 10 <Saturation) <175,
色相'(H) = 色相(H) + 60 Hue '(H) = Hue (H) + 60
(0 ≤ 色相(H) < 300のとき)、 (When 0 ≤ Hue (H) <300),
色相'(H) = 色相(H) — 300 Hue '(H) = Hue (H) — 300
(300 ≤ 色相(H) く 360のとき)、 (When 300 ≤ Hue (H) <360),
輝度(Y)=InRX0.30+InGXO.59+ΙηΒΧΟ. 11···(Α)として、 Luminance (Y) = InRX0.30 + InGXO.59 + ΙηΒΧΟ.11 ··· (Α)
色相'(Η)Ζ輝度 (Υ)く 3.0Χ(彩度(S)Z255)+0.7 …( Hue '(Η) ΖLuminance (Υ) く 3.0Χ (Saturation (S) Z255) +0.7… (
従って、撮影画像データの分割領域の数は 4X7 = 28個となる。なお、式 (4)にお V、て明度 (V)を用いることも可能である。 Therefore, the number of divided areas of the captured image data is 4X7 = 28. It is also possible to use V and brightness (V) in equation (4).
[0092] 2次元ヒストグラムが作成されると、分割領域毎に算出された累積画素数の全画素 数 (撮影画像全体)に占める割合を示す第 1の占有率が算出され (ステップ S12)、本 占有率算出処理が終了する。明度領域 vi、色相領域 Hjの組み合わせ力 なる分割 領域において算出された第 1の占有率を Rijとすると、各分割領域における第 1の占 有率は表 1のように表される。 [0092] When the two-dimensional histogram is created, a first occupancy ratio indicating the ratio of the cumulative number of pixels calculated for each divided region to the total number of pixels (the entire captured image) is calculated (step S12). The occupation rate calculation process ends. Assuming that Rij is the first occupancy calculated in the divided area, which is the combined power of the lightness area vi and the hue area Hj, the first occupancy ratio in each divided area is shown in Table 1.
[0093] [表 1]
[第 1の占有率] [0093] [Table 1] [First occupancy]
[0094] 次に、指標 1及び指標 2の算出方法について説明する。 [0094] Next, a method for calculating the index 1 and the index 2 will be described.
[0095] 表 2に、ストロボ撮影としての確度、即ち、ストロボ撮影時の顔領域の明度状態を定 量的に示す指標 1を算出するために必要な第 1の係数を分割領域別に示す。表 2に 示された各分割領域の係数は、表 1に示した各分割領域の第 1の占有率 Rijに乗算 する重み係数であり、撮影条件に応じて予め設定されている。 [0095] Table 2 shows, for each divided area, the first coefficient necessary to calculate the index 1 that quantitatively indicates the accuracy of flash photography, that is, the brightness state of the face area during flash photography. The coefficient of each divided area shown in Table 2 is a weighting coefficient by which the first occupancy Rij of each divided area shown in Table 1 is multiplied, and is set in advance according to the photographing conditions.
[0096] [表 2] [0096] [Table 2]
[第 1の係数] [First factor]
[0097] 図 21に、明度 (V)—色相 (H)平面を示す。表 2によると、図 21において高明度の肌 色色相領域に分布する領域 (rl)から算出される第 1の占有率には、正(+ )の係数 が用いられ、それ以外の色相である青色色相領域 (r2)力 算出される第 1の占有率 には、負(-)の係数が用いられる。図 23は、肌色領域 (HI)における第 1の係数と、 その他の領域 (緑色色相領域 (H3) )における第 1の係数を、明度全体に渡って連続 的に変化する曲線 (係数曲線)として示したものである。表 2及び図 23によると、高明 度 (V= 170〜224)の領域では、肌色領域 (HI)における第 1の係数の符号は正(
+ )であり、その他の領域 (例えば、緑色色相領域 (H3))における第 1の係数の符号 は負(一)であり、両者の符号が異なっていることがわかる。 FIG. 21 shows the brightness (V) —hue (H) plane. According to Table 2, a positive (+) coefficient is used for the first occupancy calculated from the region (rl) distributed in the high-luminance skin color hue region in Fig. 21, and other hues are used. Blue hue region (r2) force A negative (-) coefficient is used for the first occupancy calculated. Figure 23 shows the first coefficient in the flesh tone area (HI) and the first coefficient in the other areas (green hue area (H3)) as curves (coefficient curves) that change continuously over the entire brightness. It is shown. According to Table 2 and Fig. 23, the sign of the first coefficient in the skin color region (HI) is positive (in the region of high brightness (V = 170 to 224)) +), And the sign of the first coefficient in other areas (for example, the green hue area (H3)) is negative (one), indicating that the signs of the two are different.
[0098] 明度領域 vi、色相領域 Hjにおける第 1の係数を Cijとすると、指標 1を算出するため の Hk領域の和は、式(5)のように定義される。 [0098] If the first coefficient in the lightness region vi and the hue region Hj is Cij, the sum of the Hk regions for calculating the index 1 is defined as in Equation (5).
[0099] [数 2] [0099] [Equation 2]
H k領域の和 =: : Rik X Cik (5) Sum of H k regions =:: Rik X Cik (5)
i=1 i = 1
[0100] 従って、 H1〜H4領域の和は、下記の式(5— 1)〜式(5— 4)のように表される。 [0100] Therefore, the sum of the H1 to H4 regions is expressed by the following equations (5-1) to (5-4).
HI領域の和 =R11X (—44.0)+R21X (-16.0) + (中略)... HI area sum = R11X (—44.0) + R21X (-16.0) + (omitted) ...
+R71X (-11.3) ---(5-1); + R71X (-11.3) --- (5-1);
H2領域の和 =R12X0.0+R22X8.6+ (中略)... Sum of H2 regions = R12X0.0 + R22X8.6 + (omitted) ...
+R72X (-11.1) ---(5-2); + R72X (-11.1) --- (5-2);
H3領域の和 =R13XO.0+R23X (-6.3) + (中略)... Sum of H3 regions = R13XO.0 + R23X (-6.3) + (omitted) ...
+R73X (-10.0) ---(5-3); + R73X (-10.0) --- (5-3);
H4領域の和 =R14X0.0+R24X (-1.8) + (中略)... Sum of H4 region = R14X0.0 + R24X (-1.8) + (omitted) ...
+R74X (一 14.6) ---(5-4). + R74X (14.6) --- (5-4).
指標 1は、式(5— 1)〜(5— 4)で示された H1〜H4領域の和を用いて、式(6)のよ うに定義される。 Index 1 is defined as equation (6) using the sum of the H1 to H4 regions shown in equations (5-1) to (5-4).
[0101] 指標 1=H1領域の和 +H2領域の和 +H3領域の和 +H4領域の和 +4.424 ー(6) [0101] Indicator 1 = H1 region sum + H2 region sum + H3 region sum + H4 region sum +4.424 ー (6)
表 3に、逆光撮影としての確度、即ち、逆光撮影時の顔領域の明度状態を定量的 に示す指標 2を算出するために必要な第 2の係数を分割領域別に示す。表 3に示さ れた各分割領域の係数は、表 1に示した各分割領域の第 1の占有率 Rijに乗算する 重み係数であり、撮影条件に応じて予め設定されている。 Table 3 shows the second coefficient required for each divided area to calculate the index 2 that quantitatively shows the accuracy of backlighting, that is, the brightness state of the face area during backlighting. The coefficient of each divided area shown in Table 3 is a weighting coefficient by which the first occupancy ratio Rij of each divided area shown in Table 1 is multiplied, and is set in advance according to the shooting conditions.
[0103] 図 22に、明度 (V)—色相(H)平面を示す。表 3によると、図 22において肌色色相 領域の中間明度に分布する領域 (r4)から算出される占有率には負(一)の係数が用 Vヽられ、肌色色相領域の低明度 (シャドー)領域 (r3)から算出される占有率には正 ( + )の係数が用いられる。図 24は、肌色領域 (HI)における第 2の係数を、明度全体 に渡って連続的に変化する曲線 (係数曲線)として示したものである。表 3及び図 24 によると、肌色色相領域の、明度値が 85〜169(v4)の中間明度領域の第 2の係数 の符号は負(-)であり、明度値が 26〜84(v2, v3)の低明度 (シャドー)領域の第 2 の係数の符号は正( + )であり、両領域での係数の符号が異なって 、ることがわ力る。 FIG. 22 shows the lightness (V) —hue (H) plane. According to Table 3, a negative (one) coefficient is used for the occupancy calculated from the area (r4) distributed in the intermediate lightness of the flesh-colored hue area in Figure 22, and the low lightness (shadow) of the flesh-colored hue area. A positive (+) coefficient is used for the occupation ratio calculated from the region (r3). FIG. 24 shows the second coefficient in the skin color region (HI) as a curve (coefficient curve) that continuously changes over the entire brightness. According to Table 3 and Fig. 24, the sign of the second coefficient in the intermediate lightness region of the flesh hue region with the lightness value of 85 to 169 (v4) is negative (-), and the lightness value is 26 to 84 (v2, The sign of the second coefficient in the low lightness (shadow) region of v3) is positive (+), which indicates that the sign of the coefficient in both regions is different.
[0104] 明度領域 vi、色相領域 Hjにおける第 2の係数を Dijとすると、指標 2を算出するため の Hk領域の和は、式(7)のように定義される。 [0104] If the second coefficient in the lightness region vi and the hue region Hj is Dij, the sum of the Hk regions for calculating the index 2 is defined as in Equation (7).
[0105] [数 3] [0105] [Equation 3]
H k領域の和 = > Rik X Dik (7) Sum of H k regions => Rik X Dik (7)
[0106] 従って、 H1〜H4領域の和は、下記の式(7— 1)〜式(7— 4)のように表される。 Accordingly, the sum of the H1 to H4 regions is expressed by the following formulas (7-1) to (7-4).
HI領域の和 =R11X (― 27.0)+R21X4.5+ (中略)... HI area sum = R11X (--27.0) + R21X4.5 + (omitted) ...
+R71X (-24.0) 〜(7—1); + R71X (-24.0) to (7-1);
H2領域の和 =R12X0.0+R22X4.7+ (中略)... Sum of H2 regions = R12X0.0 + R22X4.7 + (omitted) ...
+R72X (-8.5) ---(7-2); + R72X (-8.5) --- (7-2);
H3領域の和 =R13XO.0+R23XO.0+ (中略)...
+R73 X 0. 0 - -- (7- 3); Sum of H3 regions = R13XO.0 + R23XO.0 + (omitted) ... + R73 X 0. 0--(7- 3);
H4領域の和 =R14 X 0. 0+R24 X (- 5. 1) + (中略). . . H4 region sum = R14 X 0. 0 + R24 X (-5.1) + (omitted) ...
+R74 X 7. 2 - -- (7-4) . + R74 X 7. 2--(7-4).
指標 2は、式(7— 1)〜(7— 4)で示された H1〜H4領域の和を用いて、式 (8)のよ うに定義される。 Index 2 is defined as equation (8) using the sum of the H1 to H4 regions shown in equations (7-1) to (7-4).
[0107] 指標 2=H1領域の和 +H2領域の和 +H3領域の和 +H4領域の和 + 1. 554 … [0107] Indicator 2 = sum of H1 regions + sum of H2 regions + sum of H3 regions + sum of H4 regions + 1. 554…
指標 1及び指標 2は、撮影画像データの明度と色相の分布量に基づいて算出され るため、撮影画像データがカラー画像である場合のシーンタイプの判別に有効であ る。 Since index 1 and index 2 are calculated based on the brightness and hue distribution amount of the captured image data, they are effective in determining the scene type when the captured image data is a color image.
[0108] 次に、図 25のフローチャートを参照して、指標 3を算出するために実行される第 2の 占有率算出処理について詳細に説明する。 Next, the second occupancy rate calculation process executed to calculate the index 3 will be described in detail with reference to the flowchart in FIG.
[0109] まず、撮影画像データの RGB値が HSV表色系に変換される (ステップ S 20)。次 ヽ で、撮影画像データが、撮影画像画面の外縁からの距離と明度の組み合わせ力ゝらな る領域に分割され、分割領域毎に累積画素数を算出することにより 2次元ヒストグラム が作成される (ステップ S21)。以下、撮影画像データの領域分割について詳細に説 明する。 First, the RGB value of the photographed image data is converted into the HSV color system (step S 20). Next, the captured image data is divided into areas where the combined power of the distance from the outer edge of the captured image screen and the brightness is determined, and a two-dimensional histogram is created by calculating the cumulative number of pixels for each divided area. (Step S21). Hereinafter, the area division of the captured image data will be described in detail.
[0110] 図 26 (a)〜(d)に、撮影画像データの画面の外縁からの距離に応じて分割された 4 つの領域 nl〜n4を示す。図 26 (a)に示す領域 nlが外枠であり、図 26 (b)に示す領 域 n2が、外枠の内側の領域であり、図 26 (c)に示す領域 n3が、領域 n2の更に内側 の領域であり、図 26 (d)に示す領域 n4が、撮影画像画面の中心部の領域である。ま た、明度は、上述のように vl〜v7の 7つの領域に分割するものとする。従って、撮影 画像データを、撮影画像画面の外縁からの距離と明度の組み合わせカゝらなる領域に 分割した場合の分割領域の数は 4 X 7 = 28個となる。 [0110] FIGS. 26 (a) to (d) show four regions nl to n4 divided according to the distance from the outer edge of the screen of the captured image data. The area nl shown in FIG. 26 (a) is the outer frame, the area n2 shown in FIG. 26 (b) is the area inside the outer frame, and the area n3 shown in FIG. A further inner area, an area n4 shown in FIG. 26 (d) is an area at the center of the captured image screen. In addition, the lightness is divided into seven regions from vl to v7 as described above. Therefore, when the captured image data is divided into regions that are a combination of the distance from the outer edge of the captured image screen and the brightness, the number of divided regions is 4 × 7 = 28.
[0111] 2次元ヒストグラムが作成されると、分割領域毎に算出された累積画素数の全画素 数 (撮影画像全体)に占める割合を示す第 2の占有率が算出され (ステップ S22)、本 占有率算出処理が終了する。明度領域 vi、画面領域 njの組み合わせ力 なる分割 領域において算出された第 2の占有率を Qijとすると、各分割領域における第 2の占
有率は表 4のように表される。 [0111] When the two-dimensional histogram is created, a second occupancy ratio indicating the ratio of the cumulative number of pixels calculated for each divided region to the total number of pixels (the entire captured image) is calculated (step S22). The occupation rate calculation process ends. If the second occupancy calculated in the divided area, which is the combined power of the brightness area vi and the screen area nj, is Qij, the second occupancy in each divided area is The share is shown in Table 4.
[0112] [表 4] [0112] [Table 4]
[第 2の占有率] [Second occupancy]
[0113] 次に、指標 3の算出方法について説明する。 [0113] Next, a method of calculating the index 3 will be described.
[0114] 表 5に、指標 3を算出するために必要な第 3の係数を分割領域別に示す。表 5に示 された各分割領域の係数は、表 4に示した各分割領域の第 2の占有率 Qijに乗算す る重み係数であり、撮影条件に応じて予め設定されている。 [0114] Table 5 shows the third coefficient necessary for calculating index 3 for each divided region. The coefficient of each divided area shown in Table 5 is a weighting coefficient by which the second occupancy Qij of each divided area shown in Table 4 is multiplied, and is set in advance according to the photographing conditions.
[0115] [表 5] [0115] [Table 5]
[第 3の係数] [Third coefficient]
[0116] 図 27は、画面領域 nl〜n4における第 3の係数を、明度全体に渡って連続的に変 化する曲線 (係数曲線)として示したものである。 [0116] FIG. 27 shows the third coefficient in the screen areas nl to n4 as a curve (coefficient curve) that continuously changes over the entire brightness.
[0117] 明度領域 vi、画面領域 njにおける第 3の係数を Eijとすると、指標 3を算出するため の nk領域 (画面領域 nk)の和は、式(9)のように定義される。 [0117] If the third coefficient in the lightness area vi and screen area nj is Eij, the sum of the nk area (screen area nk) for calculating index 3 is defined as in equation (9).
[0118] [数 4]
n k領域の和 = J Qik x Eik [0118] [Equation 4] nk region sum = J Qik x Eik
[0119] 従って、 nl〜n4領域の和は、下記の式(9 1)〜式(9 4)のように表される。 Accordingly, the sum of the nl to n4 regions is expressed by the following formulas (91) to (94).
nl領域の和 = Q11X40. 1 + Q21X37.0+ (中略)... nl region sum = Q11X40. 1 + Q21X37.0 + (omitted) ...
+ Q71X22.0 ---(9-1); + Q71X22.0 --- (9-1);
n2領域の和 = Q12X (-14.8)+Q22X (— 10.5) + (中略)... Sum of n2 regions = Q12X (-14.8) + Q22X (— 10.5) + (omitted) ...
+ Q72X0.0 ---(9-2); + Q72X0.0 --- (9-2);
n3領域の和 = Q13X24.6 + Q23X12.1+ (中略)... n3 area sum = Q13X24.6 + Q23X12.1 + (omitted) ...
+ Q73X10.1 ---(9-3); + Q73X10.1 --- (9-3);
n4領域の和 = Q14X1.5 + Q24X (-32.9) + (中略)... n4 region sum = Q14X1.5 + Q24X (-32.9) + (omitted) ...
+ Q74X (-52.2) ---(9-4). + Q74X (-52.2) --- (9-4).
指標 3は、式(9 1)〜(9 4)で示された nl〜n4領域の和を用いて、式(10)のよ うに定義される。 Index 3 is defined as equation (10) using the sum of nl to n4 regions shown in equations (91) to (94).
指標 3=nl領域の和 +n2領域の和 +n3領域の和 +n4領域の和 12.6201 ···( 10) Index 3 = Sum of nl regions + Sum of n2 regions + Sum of n3 regions + Sum of n4 regions 12.6201 (10)
指標 3は、撮影画像データの明度の分布位置による構図的な特徴 (撮影画像デー タの画面の外縁からの距離)に基づいて算出されるため、カラー画像だけでなくモノ クロ画像のシーンタイプを判別するのにも有効である。 Index 3 is calculated based on the compositional characteristics (distance from the outer edge of the screen of the captured image data) based on the brightness distribution position of the captured image data, so the scene type of the monochrome image as well as the color image is selected. It is also effective for discrimination.
[0120] 次に、図 28のフローチャートを参照して、偏倚量算出処理(図 18のステップ S2)に ついて説明する。 Next, the bias amount calculation process (step S2 in FIG. 18) will be described with reference to the flowchart in FIG.
[0121] まず、撮影画像データの RGB (Red, Green, Blue)値から、式 (A)を用いて各画 素の輝度 Y (明るさ)が算出され、輝度の標準偏差 (xl)が算出される (ステップ S23) 。輝度の標準偏差 (xl)は、式(11)のように表される。 [0121] First, the luminance Y (brightness) of each pixel is calculated from the RGB (Red, Green, Blue) value of the captured image data using Equation (A), and the standard deviation (xl) of the luminance is calculated. (Step S23). The standard deviation (xl) of luminance is expressed as shown in Equation (11).
[0123] 式(11)では、撮影画像データの各画素について和をとる。式(11)において、画素
輝度値とは、撮影画像データの各画素の輝度であり、全体平均輝度とは、撮影画像 データ全体の輝度の平均値である。また、全体画素数とは、撮影画像データ全体の 画素数である。 In Expression (11), the sum is calculated for each pixel of the captured image data. In equation (11), pixel The brightness value is the brightness of each pixel of the captured image data, and the overall average brightness is the average value of the brightness of the entire captured image data. The total number of pixels is the number of pixels of the entire captured image data.
[0124] 次いで、式(12)に示すように、輝度差分値 (x2)が算出される (ステップ S24)。 Next, as shown in Expression (12), the luminance difference value (x2) is calculated (step S24).
[0125] 輝度差分値 (x2) = (最大輝度値 全体平均輝度) Z255 …(12) [0125] Luminance difference value (x2) = (Maximum luminance value Overall average luminance) Z255… (12)
式(12)において、最大輝度値とは、撮影画像データの輝度の最大値である。 In equation (12), the maximum luminance value is the maximum luminance value of the captured image data.
[0126] 次いで、撮影画像データの画面中央部における肌色領域の平均輝度値 (x3)が算 出され (ステップ S25)、更に、当該画面中央部における平均輝度値 (x4)が算出され る(ステップ S26)。ここで、画面中央部とは、例えば、図 26において、領域 n3及び領 域 n4により構成される領域である。 [0126] Next, the average luminance value (x3) of the flesh color region at the center of the screen of the photographed image data is calculated (step S25), and further, the average luminance value (x4) at the center of the screen is calculated (step S25). S26). Here, the center of the screen is, for example, an area composed of an area n3 and an area n4 in FIG.
[0127] 次いで、肌色輝度分布値 (x5)が算出され (ステップ S27)、本偏倚量算出処理が 終了する。撮影画像データの肌色領域の最大輝度値を Yskin— max、肌色領域の 最小輝度値を Yskin— min、肌色領域の平均輝度値 (肌色平均輝度)を Yskin— av eとすると、肌色輝度分布値 (x5)は、式(13)のように表される。 [0127] Next, the flesh color luminance distribution value (x5) is calculated (step S27), and this deviation amount calculation processing ends. When the maximum brightness value of the skin color area of the captured image data is Yskin—max, the minimum brightness value of the skin color area is Yskin—min, and the average brightness value (skin color average brightness) of the skin color area is Yskin—ave, the skin color brightness distribution value ( x5) is expressed as in Equation (13).
[0128」 x5 = (Yskin― max― Yskin― min) / 2— Yskin― ave [0128] x5 = (Yskin― max― Yskin― min) / 2― Yskin― ave
•••(13) •••(13)
撮影画像データの画面中央部における肌色領域の平均輝度値を x6とする。ここで の画面中央部とは、例えば、図 26の領域 n2、領域 n3及び領域 n4から構成される領 域である。このとき、指標 4は、指標 指標 3、 x6を用いて式(14)のように定義され、 指標 5は、指標 2、指標 3、 x6を用いて式(15)のように定義される。 Let x6 be the average luminance value of the skin color area in the center of the screen of the captured image data. Here, the center of the screen is, for example, a region composed of region n2, region n3, and region n4 in FIG. At this time, index 4 is defined as in equation (14) using index indexes 3 and x6, and index 5 is defined as in equation (15) using index 2, index 3, and x6.
[0129] 指標 4 = 0. 46 X指標 1 + 0. 61 X指標 3 + 0. 01 Χ χ6 0. 79 [0129] Indicator 4 = 0. 46 X indicator 1 + 0. 61 X indicator 3 + 0. 01 χ χ6 0. 79
•••(14) •••(14)
指標 5 = 0. 58 Χ指標 2 + 0. 18 X指標 3 + (— 0. 03) Χ χ6 + 3. 34 - - - (15) ここで、式(14)及び式(15)において各指標に乗算される重み係数は、撮影条件 に応じて予め設定されて ヽる。 Indicator 5 = 0. 58 Χ Indicator 2 + 0.18 X Indicator 3 + (— 0. 03) Χ χ6 + 3. 34---(15) Here, each indicator in Equation (14) and Equation (15) The weighting coefficient multiplied by is preset according to the shooting conditions.
[0130] 指標 6は、偏倚量算出処理で算出された偏倚量 (xl)〜(x5)に、撮影条件に応じ て予め設定された第 4の係数を乗算することにより得られる。表 6に、各偏倚量に乗算 する重み係数である第 4の係数を示す。
[0131] [表 6] [0130] The index 6 is obtained by multiplying the deviation amounts (xl) to (x5) calculated in the deviation amount calculation processing by a fourth coefficient set in advance according to the imaging conditions. Table 6 shows the fourth coefficient, which is a weighting coefficient by which each deviation is multiplied. [0131] [Table 6]
[第 4の係数] [Fourth coefficient]
[0132] 指標 6は、式(16)のように表される。 [0132] The index 6 is expressed as in Expression (16).
[0133] 指標 6=xlX0.02+x2Xl. 13+x3XO.06+x4X (-0.01) [0133] Indicator 6 = xlX0.02 + x2Xl. 13 + x3XO.06 + x4X (-0.01)
+x5XO.03-6.49 ---(16) + x5XO.03-6.49 --- (16)
この指標 6は、撮影画像データの画面の構図的な特徴だけでなぐ輝度ヒストグラム 分布情報を持ち合わせており、特に、ストロボ撮影シーンとアンダー撮影シーンの判 別に有効である。 This index 6 has luminance histogram distribution information that is based only on the compositional characteristics of the captured image data screen, and is particularly effective in distinguishing between a flash photography scene and an under photography scene.
[0134] 式 (14)に示す指標 4が自然光指標に相当し、式 (15)に示す指標 5が輝度比指標 に相当し、式(16)に示す指標 6が露出指標に相当する。 [0134] The index 4 shown in Expression (14) corresponds to a natural light index, the index 5 shown in Expression (15) corresponds to a luminance ratio index, and the index 6 shown in Expression (16) corresponds to an exposure index.
[0135] 以上のように、実施形態 1の撮像装置 100によれば、逆光シーンやストロボ撮影シ ーンにおける主要被写体 (例えば、人物顔領域)の明るさが、撮影画像データを出力 する出力デバイス (例えば、プリンタ)において最適な明るさで再現できる明るさ補正 量を得ることが可能となる。 As described above, according to the imaging apparatus 100 of the first embodiment, the brightness of the main subject (for example, a human face area) in a backlight scene or strobe shooting scene is an output device that outputs shot image data. It is possible to obtain a brightness correction amount that can be reproduced with an optimum brightness (for example, a printer).
[0136] また、上述のようにして算出された明るさ補正量と、判別されたシーンタイプに基づ いて明るさ補正カーブを生成することにより、逆光シーンやストロボ撮影シーンのよう な、撮影画像データのダイナミックレンジが大きいシーンを出力する際、出力デバイ スのダイナミックレンジ力 外れる程度が小さくなるため、撮影画像データの主要被写 体の明るさを適正に仕上げつつ、撮影画像データの明部及び暗部がつぶれたり、高 彩度の色が飽和してつぶれたり、色相が変化したりすることを抑制することが可能とな る。 [0136] Further, by generating a brightness correction curve based on the brightness correction amount calculated as described above and the determined scene type, a captured image such as a backlight scene or a flash shooting scene is generated. When outputting a scene with a large data dynamic range, the degree to which the output device's dynamic range power is off will be small, so the brightness of the main subject of the captured image data will be properly finished, It is possible to suppress the dark part from being crushed, high-saturated colors being saturated and crushed, and the hue from being changed.
[実施形態 2] [Embodiment 2]
次に、本発明の実施形態 2について説明する。 Next, Embodiment 2 of the present invention will be described.
[0137] 実施形態 1及び 2に共通する構成要素の機能については、説明済みであるため、
以下では、実施形態 2に特有の機能について説明する。 [0137] Since the functions of the constituent elements common to the first and second embodiments have been described, Hereinafter, functions unique to the second embodiment will be described.
[0138] 以下、図 29を参照して、実施形態 2の明るさ補正量算出部 75の内部構成について 説明する。なお、実施形態 2に係る明るさ補正量算出部 75の構成要素のうち、図 3に 示した実施形態 1と同一の構成要素には同一の符号を付し、その機能説明を省略す る。実施形態 2の明るさ補正量算出部 75は、図 29に示すように、第 1仮補正量設定 部 101、第 1混合係数設定部 102、第 2仮補正量演算部 103、第 2混合係数設定部 104、明るさ補正量演算部 105、抑制係数算出部 106、乗算部 107により構成される Hereinafter, the internal configuration of the brightness correction amount calculation unit 75 of Embodiment 2 will be described with reference to FIG. Note that, among the components of the brightness correction amount calculation unit 75 according to the second embodiment, the same components as those in the first embodiment shown in FIG. 3 are denoted by the same reference numerals, and the functional description thereof is omitted. As shown in FIG. 29, the brightness correction amount calculation unit 75 of Embodiment 2 includes a first temporary correction amount setting unit 101, a first mixing coefficient setting unit 102, a second temporary correction amount calculating unit 103, and a second mixing coefficient. It comprises a setting unit 104, a brightness correction amount calculation unit 105, a suppression coefficient calculation unit 106, and a multiplication unit 107.
[0139] 抑制係数算出部 106は、撮影画像データの彩度が所定の閾値よりも高ぐ且つ自 然光指標に基づいて設定される所定の色相を有する高彩度の画素数を算出し、撮 影画像データの全画素数に対する前記高彩度の画素数の割合に基づいて、当該撮 影画像データの明るさ補正量を抑制するための抑制係数 Re (0. 0<Re≤l. 0)を算 出(設定)する。抑制係数 Reの算出方法については、後に図 30を参照して詳細に説 明する。 The suppression coefficient calculation unit 106 calculates the number of high-saturation pixels having a predetermined hue that is higher than a predetermined threshold and has a predetermined hue that is set based on the natural light index. Based on the ratio of the number of high-saturation pixels to the total number of pixels in the image data, a suppression coefficient Re (0 <0 <Re≤l. 0) for suppressing the brightness correction amount of the captured image data is calculated. (Set). The calculation method of the suppression coefficient Re will be described in detail later with reference to FIG.
[0140] 乗算部 107は、式(17)に示すように、明るさ補正量演算部 105で算出された明るさ 補正量 (式 (3) )に、抑制係数算出部 106で算出 (設定)された抑制係数 Reを乗算す ることにより、新たな明るさ補正量を算出し、この新たな明るさ補正量を明るさ補正力 ーブ生成部 76に出力する。 [0140] The multiplication unit 107 calculates (sets) the brightness correction amount (Equation (3)) calculated by the brightness correction amount calculation unit 105 by the suppression coefficient calculation unit 106 as shown in Equation (17). By multiplying the suppression coefficient Re thus obtained, a new brightness correction amount is calculated, and this new brightness correction amount is output to the brightness correction force curve generator 76.
[0141] 新たな明るさ補正量 =Re X明るさ補正量 …(17) [0141] New brightness correction amount = Re X brightness correction amount (17)
実施形態 2の明るさ補正カーブ生成部 76は、判別マップによって判別されたシー ンタイプ(図 14参照)と、乗算部 107から入力された新たな明るさ補正量に基づいて 、撮影画像データを変換するための明るさ補正カーブを生成する。 The brightness correction curve generation unit 76 according to the second embodiment converts captured image data based on the scene type determined by the determination map (see FIG. 14) and the new brightness correction amount input from the multiplication unit 107. To generate a brightness correction curve.
[0142] 次に、実施形態 2における動作について説明する。 Next, the operation in the second embodiment will be described.
[0143] 図 30のフローチャートを参照して、実施形態 2の画像処理部 7において実行される 明るさ補正処理にっ 、て説明する。 A brightness correction process executed in the image processing unit 7 of the second embodiment will be described with reference to the flowchart of FIG.
[0144] まず、指標算出部 74において、自然光指標、輝度比指標、露出指標を算出する指 標算出処理(図 18〜図 28参照)が行われる (ステップ T20)。次いで、画像解析部 7 3において、撮影画像データの明るさ解析値が η個算出される (ステップ Τ21)。ステツ
プ T21では、 2個の明るさ解析値 (肌色平均輝度、全体平均輝度)が算出される。 First, the index calculation unit 74 performs an index calculation process (see FIGS. 18 to 28) for calculating a natural light index, a luminance ratio index, and an exposure index (step T20). Next, the image analysis unit 73 calculates η brightness analysis values of the captured image data (step Τ21). Step In step T21, two brightness analysis values (skin color average brightness, overall average brightness) are calculated.
[0145] 次いで、図 4〜図 9の 1次元 LUTから、ステップ T21で算出された明るさ解析値と、 ステップ T20の指標算出処理で算出された自然光指標、輝度比指標、露出指標に 対応する値を抽出することにより、 n+4個(6個)の第 1仮補正量 key— auto[0]〜[5 ]が設定される (ステップ T22)。 [0145] Next, from the one-dimensional LUT shown in Figs. 4 to 9, the brightness analysis value calculated in step T21 and the natural light index, luminance ratio index, and exposure index calculated in the index calculation process in step T20 are supported. By extracting the value, n + 4 (six) first temporary correction amounts key—auto [0] to [5] are set (step T22).
[0146] 次いで、図 10〜図 13の 1次元 LUTから、ステップ T20で算出された自然光指標に 対応する値を抽出することにより、 n+ 2個 (4個)の第 1混合係数 wgt[0]〜[3]が設 定される (ステップ T23)。次いで、 4個の第 1仮補正量 key— auto [0]〜 [3]と、 3個 の第 1混合係数 wgt [0]〜 [3]を用いて、式(2)より第 2仮補正量 key_auto [6]が 算出される (ステップ T24)。 [0146] Next, n + 2 (4) first mixing coefficients wgt [0] are extracted from the one-dimensional LUTs in Figs. 10 to 13 by extracting the values corresponding to the natural light index calculated in Step T20. ~ [3] is set (step T23). Next, using the four first temporary correction values key—auto [0] to [3] and the three first mixing coefficients wgt [0] to [3], the second temporary correction is obtained from Equation (2). the amount key_ a uto [6] is calculated (step T24).
[0147] 次いで、係数算出テーブル(図 15)から、判別マップ(図 14)を用いて判別されたシ ーンタイプに対応する 3個の第 2混合係数 wgt[4]〜[6]が抽出され、設定される (ス テツプ T25)。そして、 2個の第 1仮補正量 key— auto [4]、 key— auto [5]と、第 2仮 補正量 key— auto [6]と、 3個の第 2混合係数 wgt[4]〜[6]を用いて、式(3)により 明るさ補正量が算出される (ステップ T26)。 [0147] Next, three second mixing coefficients wgt [4] to [6] corresponding to the scene type determined using the determination map (Figure 14) are extracted from the coefficient calculation table (Figure 15). Set (step T25). Then, two first temporary correction amounts key—auto [4], key—auto [5], second temporary correction amounts key—auto [6], and three second mixing coefficients wgt [4] to Using [6], the brightness correction amount is calculated by equation (3) (step T26).
[0148] 次 、で、ステップ Τ20で算出された輝度比指標が閾値 Thlより大き 、か否かが判 定される(ステップ T27)。ここで、閾値 Thl = l. 5である。ステップ T27において、輝 度比指標 >Thlであると判定された場合 (ステップ T27 ; YES)、後に高彩度画素と してカウントすべき画素の色相条件が、ステップ T20で算出された自然光指標に応じ て設定される (ステップ T28)。 [0148] Next, it is determined whether or not the luminance ratio index calculated in step Τ20 is larger than the threshold value Thl (step T27). Here, the threshold Thl = l.5. If it is determined in step T27 that the luminance ratio index> Thl (step T27; YES), the hue condition of the pixel to be counted later as a high saturation pixel is determined according to the natural light index calculated in step T20. Set (step T28).
[0149] 図 31に、ステップ T28において、自然光指標の値に応じて設定される色相条件 (色 相の範囲)を示す。図 31に示すように、色相条件は、 -6. 0<自然光指標≤ 1. 5 のとき、色相 H= 161〜250であり、 1. 5<自然光指標 < 2. 0のとき、色相 H = 0 〜39、 161〜250、 330〜359であり、 2. 0≤自然光指標く 6. 0のとき、色相 H = 0 〜39、 330〜359である。 FIG. 31 shows the hue condition (hue range) set according to the value of the natural light index in step T28. As shown in Fig. 31, the hue condition is -6. 0 <natural light index ≤ 1.5, hue H = 161-250, and 1.5 <natural light index <2.0, hue H = 0 to 39, 161 to 250, 330 to 359, and 2.0 ≦ natural light index 6.0, hue H = 0 to 39, 330 to 359.
[0150] 色相条件が設定されると、撮影画像データの全画素数のうち、ステップ T28で設定 された色相条件を有し、且つ、彩度 (S)が閾値 Th2より大きい画素数が算出され、彩 度 ) >Th2を満たす高彩度画素数が全画素数に占める割合 (%)により、彩度レべ
ルが設定される(ステップ T29)。ここで、 Th2= 130 (HSV表色系、最大値 255)で ある。表 7に、彩度 ) >Th2を満たす高彩度画素数が全画素数に占める割合 (%) と抑制係数を、彩度レベル (彩度 1〜4)別に示す。 [0150] When the hue condition is set, the number of pixels having the hue condition set in step T28 and having a saturation (S) greater than the threshold Th2 among the total number of pixels of the captured image data is calculated. Saturation)> The saturation level depends on the ratio (%) of the high saturation pixels that satisfy Th2 to the total number of pixels. Is set (step T29). Here, Th2 = 130 (HSV color system, maximum value 255). Table 7 shows the ratio (%) of high-saturation pixels satisfying saturation)> Th2 to the total number of pixels and the suppression coefficient for each saturation level (saturation 1 to 4).
[表 7] [Table 7]
[0152] 彩度レベルが設定されると、表 7により、その設定された彩度レベルに対応する抑 制係数 Reが設定される(ステップ T30)。なお、ステップ Τ27〜Τ30の処理は、抑制 係数算出部 106で実行される。次いで、式(17)に示すように、ステップ Τ26で算出さ れた明るさ補正量に、ステップ Τ30で設定された抑制係数 Reを乗算することにより、 新たな明るさ補正量が算出され (ステップ T31)、その新たな明るさ補正量と、ステツ プ Τ20で算出された各指標に基づいて判別されたシーンタイプから、撮影画像デー タを変換するための明るさ補正カーブが生成される (ステップ Τ32)。 [0152] When the saturation level is set, according to Table 7, the suppression coefficient Re corresponding to the set saturation level is set (step T30). Note that the processing of steps Τ27 to Τ30 is executed by the suppression coefficient calculation unit 106. Next, as shown in equation (17), a new brightness correction amount is calculated by multiplying the brightness correction amount calculated in step Τ26 by the suppression coefficient Re set in step Τ30 (step (T31), a brightness correction curve for converting the captured image data is generated from the new brightness correction amount and the scene type determined based on each index calculated in step Τ20 (step S31). (Τ32).
[0153] ステップ Τ27において、輝度比指標≤Thlであると判定された場合 (ステップ Τ27 ; [0153] If it is determined in step Τ27 that the luminance ratio index ≤ Thl (step Τ27;
NO)、ステップ T26で算出された明るさ補正量と、ステップ T20で算出された各指標 に基づ!/、て判別されたシーンタイプから、撮影画像データを変換するための明るさ補 正カーブが生成される(ステップ T32)。 NO), a brightness correction curve for converting captured image data from the brightness correction amount calculated in step T26 and the scene type determined based on each index calculated in step T20! Is generated (step T32).
[0154] 明るさ補正カーブが生成されると、その明るさ補正カーブに従って、撮影画像デー タの明るさが補正され (ステップ T33)、本明るさ補正処理が終了する。このように明る さが補正された撮影画像データは、指定された出力先に出力される。出力先としては 、表示部 13や、撮像装置 100に接続されたプリンタ等がある。 [0154] When the brightness correction curve is generated, the brightness of the captured image data is corrected according to the brightness correction curve (step T33), and the brightness correction processing is terminated. The captured image data whose brightness has been corrected in this way is output to the designated output destination. Examples of the output destination include a display unit 13 and a printer connected to the imaging apparatus 100.
[0155] 以上のように、実施形態 2の撮像装置 100によれば、撮影画像データの全画素数 に対する高彩度画素数の割合に基づいて算出される抑制係数を用いて、撮影画像 データの明るさ補正量を抑制することにより、高彩度画素が多い撮影画像データに おける高彩度画素の飽和を防止することが可能となる。特に、高彩度画素としてカウ ント対象となる画素の色相が、自然光指標の値に基づいて決定されることにより、高 彩度画素の飽和を高精度に防止することが可能となる。
[0156] なお、上記各実施形態における記載内容は、本発明の趣旨を逸脱しない範囲で適 宜変更可能である。 [0155] As described above, according to the imaging apparatus 100 of Embodiment 2, the brightness of captured image data is determined using the suppression coefficient calculated based on the ratio of the number of high-saturation pixels to the total number of pixels of captured image data. By suppressing the correction amount, it is possible to prevent saturation of high saturation pixels in captured image data having many high saturation pixels. In particular, since the hue of a pixel to be counted as a high saturation pixel is determined based on the value of the natural light index, saturation of the high saturation pixel can be prevented with high accuracy. [0156] Note that the description in each of the above embodiments can be changed as appropriate without departing from the spirit of the present invention.
[0157] 例えば、上記各実施形態で示した明るさ補正処理が、デジタルカメラ等の撮像装置 で行われる場合を示したが、ミニラボ (小規模現像所)に設置された画像処理装置( パーソナルコンピュータでもよい。)に、図 2の画像処理部 7の機能を搭載させるように してちよい。 For example, the case where the brightness correction processing shown in each of the above embodiments is performed by an imaging apparatus such as a digital camera has been described. However, an image processing apparatus (personal computer) installed in a minilab (small-scale development laboratory) is shown. However, it is possible to install the function of the image processing unit 7 in FIG.
[0158] 図 32に、本発明を適用した画像処理装置 200の主要部構成を示す。画像処理装 置 200は、図 32に示すように、画像入力部 201、画像処理部 202、画像出力部 203 により構成される。 FIG. 32 shows the main configuration of an image processing apparatus 200 to which the present invention is applied. As shown in FIG. 32, the image processing apparatus 200 includes an image input unit 201, an image processing unit 202, and an image output unit 203.
[0159] 画像入力部 201は、被写体の撮影により得られた撮影画像データを取得し、画像 処理部 202に出力する。画像出力部 203は、 LCD (Liquid Crystal Display)、C RT (Cathode Ray Tube)等の表示ディスプレイを有し、画像処理部 202で処理さ れた撮影画像データ等を表示する。また、画像出力部 203が、画像処理部 202で処 理された撮影画像データを印刷出力する印刷部を備えるようにしてもょ ヽ。 The image input unit 201 acquires photographed image data obtained by photographing a subject and outputs it to the image processing unit 202. The image output unit 203 has a display such as an LCD (Liquid Crystal Display) and a CRT (Cathode Ray Tube), and displays captured image data processed by the image processing unit 202. Further, the image output unit 203 may include a printing unit that prints out the captured image data processed by the image processing unit 202.
[0160] 画像処理部 202は、図 32に示すように、画像解析部 204、指標算出部 205、明る さ補正量算出部 206、明るさ補正カーブ生成部 207、画質補正部 208により構成さ れ、各部の機能は、それぞれ、図 2の画像解析部 73、指標算出部 74、明るさ補正量 算出部 75、明るさ補正カーブ生成部 76、画質補正部 72と同等である。 As shown in FIG. 32, the image processing unit 202 includes an image analysis unit 204, an index calculation unit 205, a brightness correction amount calculation unit 206, a brightness correction curve generation unit 207, and an image quality correction unit 208. The functions of the respective units are the same as those of the image analysis unit 73, the index calculation unit 74, the brightness correction amount calculation unit 75, the brightness correction curve generation unit 76, and the image quality correction unit 72 of FIG.
[0161] 但し、ミニラボに設置された画像処理装置 200の場合、明るさ補正カーブは、図 17 に示した 4種類(一 6、—4、—2、 0ボタン)だけでなぐ更に多種類の明るさ補正カー ブを生成することが可能である。
[0161] However, in the case of the image processing apparatus 200 installed in the minilab, the brightness correction curve has many more types than just the four types shown in Fig. 17 (1-6, --4, -2, 0 buttons). It is possible to generate a brightness correction curve.
Claims
請求の範囲 The scope of the claims
[1] 被写体を撮影して撮影画像データを取得し、当該撮影画像データ内の主要被写 体の明るさを最適化する処理を行う撮像装置であって、 [1] An imaging device that captures captured image data by capturing an image of a subject and performs processing for optimizing the brightness of a main object in the captured image data.
前記撮影画像データの自然光による屋外撮影度を表す自然光指標と、当該撮影 画像データのダイナミックレンジの大きさを表す輝度比指標と、撮影時の露出設定に 起因する露出撮影度を表す露出指標を算出する指標算出手段と、 Calculates a natural light index that represents the degree of outdoor shooting with natural light in the photographed image data, a luminance ratio index that represents the size of the dynamic range of the photographed image data, and an exposure index that represents the exposure photographing degree due to the exposure setting at the time of photographing. Index calculation means to
前記撮影画像データの明るさ解析値と、明るさの再現目標値と、前記指標算出手 段により算出された輝度比指標及び露出指標に基づいて、当該撮影画像データに 対する複数の第 1仮補正量を設定する第 1仮補正量設定手段と、 Based on the brightness analysis value of the captured image data, the brightness reproduction target value, and the luminance ratio index and the exposure index calculated by the index calculation means, a plurality of first temporary corrections for the captured image data First temporary correction amount setting means for setting the amount;
前記指標算出手段により算出された自然光指標に基づいて、前記複数の第 1仮補 正量の各々に乗算する重み係数としての第 1混合係数を設定する第 1混合係数設定 手段と、 First mixing coefficient setting means for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculating means;
前記第 1混合係数設定手段により設定された第 1混合係数と、前記複数の第 1仮補 正量に基づ 、て、前記撮影画像データに対する第 2仮補正量を設定する第 2仮補正 量設定手段と、 A second temporary correction amount for setting a second temporary correction amount for the photographed image data based on the first mixing coefficient set by the first mixing coefficient setting means and the plurality of first temporary correction amounts. Setting means;
前記指標算出手段により算出された自然光指標、輝度比指標、露出指標に基づい て、前記複数の第 1仮補正量のうちの少なくとも 1つと、前記第 2仮補正量に乗算する 重み係数としての第 2混合係数を設定する第 2混合係数設定手段と、 Based on the natural light index, the luminance ratio index, and the exposure index calculated by the index calculation means, at least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor. 2nd mixing coefficient setting means for setting the mixing coefficient;
前記第 2混合係数により設定された第 2混合係数と、前記少なくとも 1つの第 1仮補 正量と、前記第 2仮補正量に基づいて、前記撮影画像データの明るさ補正量を算出 する補正量算出手段と、 Correction for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount. A quantity calculating means;
前記補正量算出手段により算出された明るさ補正量と、前記自然光指標と、前記輝 度比指標に基づいて、前記撮影画像データを変換するための補正カーブを生成す る補正カーブ生成手段と、 A correction curve generating means for generating a correction curve for converting the captured image data based on the brightness correction amount calculated by the correction amount calculating means, the natural light index, and the brightness ratio index;
前記補正カーブ生成手段により生成された補正カーブに従って、前記撮影画像デ ータの明るさを補正する補正手段と、 Correction means for correcting the brightness of the captured image data in accordance with the correction curve generated by the correction curve generation means;
を備えることを特徴とする撮像装置。 An imaging apparatus comprising:
[2] 被写体を撮影して撮影画像データを取得し、当該撮影画像データ内の主要被写
体の明るさを最適化する処理を行う撮像装置であって、 [2] Take a picture of the subject, obtain the shot image data, and then capture the main subject in the shot image data An imaging device that performs processing to optimize body brightness,
前記撮影画像データの自然光による屋外撮影度を表す自然光指標と、当該撮影 画像データのダイナミックレンジの大きさを表す輝度比指標と、撮影時の露出設定に 起因する露出撮影度を表す露出指標を算出する指標算出手段と、 Calculates a natural light index that represents the degree of outdoor shooting with natural light in the photographed image data, a luminance ratio index that represents the size of the dynamic range of the photographed image data, and an exposure index that represents the exposure photographing degree due to the exposure setting at the time of photographing. Index calculation means to
前記撮影画像データの明るさ解析値と、明るさの再現目標値と、前記指標算出手 段により算出された輝度比指標及び露出指標に基づいて、当該撮影画像データに 対する複数の第 1仮補正量を設定する第 1仮補正量設定手段と、 Based on the brightness analysis value of the captured image data, the brightness reproduction target value, and the luminance ratio index and the exposure index calculated by the index calculation means, a plurality of first temporary corrections for the captured image data First temporary correction amount setting means for setting the amount;
前記指標算出手段により算出された自然光指標に基づいて、前記複数の第 1仮補 正量の各々に乗算する重み係数としての第 1混合係数を設定する第 1混合係数設定 手段と、 First mixing coefficient setting means for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculating means;
前記第 1混合係数設定手段により設定された第 1混合係数と、前記複数の第 1仮補 正量に基づ 、て、前記撮影画像データに対する第 2仮補正量を設定する第 2仮補正 量設定手段と、 A second temporary correction amount for setting a second temporary correction amount for the photographed image data based on the first mixing coefficient set by the first mixing coefficient setting means and the plurality of first temporary correction amounts. Setting means;
前記指標算出手段により算出された自然光指標、輝度比指標、露出指標に基づい て、前記複数の第 1仮補正量のうちの少なくとも 1つと、前記第 2仮補正量に乗算する 重み係数としての第 2混合係数を設定する第 2混合係数設定手段と、 Based on the natural light index, the luminance ratio index, and the exposure index calculated by the index calculation means, at least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor. 2nd mixing coefficient setting means for setting the mixing coefficient;
前記第 2混合係数により設定された第 2混合係数と、前記少なくとも 1つの第 1仮補 正量と、前記第 2仮補正量に基づいて、前記撮影画像データの明るさ補正量を算出 する補正量算出手段と、 Correction for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount. A quantity calculating means;
前記撮影画像データの彩度が所定の閾値よりも高ぐ且つ前記自然光指標に基づ V、て設定される所定の色相を有する高彩度の画素数に基づ!/、て、当該撮影画像デ ータの明るさ補正量を抑制するための抑制係数を設定する抑制係数設定手段と、 前記補正量算出手段により算出された明るさ補正量に前記抑制係数を乗算して新 たな明るさ補正量を算出する乗算手段と、 Based on the number of pixels of high saturation having a predetermined hue that is set based on the natural light index, and the saturation of the captured image data is higher than a predetermined threshold value, V / A suppression coefficient setting means for setting a suppression coefficient for suppressing the brightness correction amount of the data, and a new brightness correction amount by multiplying the brightness correction amount calculated by the correction amount calculation means by the suppression coefficient Multiplication means for calculating
前記乗算手段により得られた新たな明るさ補正量と、前記自然光指標と、前記輝度 比指標に基づいて、前記撮影画像データを変換するための補正カーブを生成する 補正カーブ生成手段と、 A correction curve generation means for generating a correction curve for converting the captured image data based on the new brightness correction amount obtained by the multiplication means, the natural light index, and the luminance ratio index;
前記補正カーブ生成手段により生成された補正カーブに従って、前記撮影画像デ
ータの明るさを補正する補正手段と、 According to the correction curve generated by the correction curve generating means, the captured image data is displayed. Correction means for correcting the brightness of the data;
を備えることを特徴とする撮像装置。 An imaging apparatus comprising:
[3] 前記指標算出手段は、 [3] The index calculation means includes:
撮影画像データを、所定の明度と色相の組み合わせカゝらなる領域に分割し、当該 分割された領域毎に前記撮影画像データ全体に占める割合を示す第 1の占有率を 算出する第 1算出処理と、撮影画像データを、当該撮影画像データの画面の外縁か らの距離と明度の組み合わせ力 なる所定の領域に分割し、当該分割された領域毎 に前記撮影画像データ全体に占める割合を示す第 2の占有率を算出する第 2算出 処理の少なくとも一方の算出処理を実行し、 First calculation processing that divides photographed image data into regions that are a combination of predetermined brightness and hue, and calculates a first occupancy ratio that indicates a proportion of the entire photographed image data for each of the divided regions The photographed image data is divided into predetermined areas having a combination power of distance and brightness from the outer edge of the screen of the photographed image data, and the ratio of the divided area to the whole photographed image data is shown for each divided area. Execute at least one of the second calculation processes for calculating the occupancy ratio of 2,
前記撮影画像データの階調分布の偏りを示す偏倚量を算出し、 Calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
前記算出された第 1の占有率及び Z又は第 2の占有率と、前記偏倚量に、撮影条 件に応じて予め設定された係数を乗算することにより、前記自然光指標、前記輝度 比指標、前記露出指標を算出することを特徴とする請求の範囲第 1項又は第 2項に 記載の撮像装置。 By multiplying the calculated first occupancy rate and Z or second occupancy rate and the deviation amount by a coefficient set in advance according to the shooting conditions, the natural light index, the luminance ratio index, The imaging apparatus according to claim 1, wherein the exposure index is calculated.
[4] 撮影画像データ内の主要被写体の明るさを最適化する処理を行う画像処理装置で あって、 [4] An image processing device that performs processing for optimizing the brightness of a main subject in captured image data.
前記撮影画像データの自然光による屋外撮影度を表す自然光指標と、当該撮影 画像データのダイナミックレンジの大きさを表す輝度比指標と、撮影時の露出設定に 起因する露出撮影度を表す露出指標を算出する指標算出手段と、 Calculates a natural light index that represents the degree of outdoor shooting with natural light in the photographed image data, a luminance ratio index that represents the size of the dynamic range of the photographed image data, and an exposure index that represents the exposure photographing degree due to the exposure setting at the time of photographing. Index calculation means to
前記撮影画像データの明るさ解析値と、明るさの再現目標値と、前記指標算出手 段により算出された輝度比指標及び露出指標に基づいて、当該撮影画像データに 対する複数の第 1仮補正量を設定する第 1仮補正量設定手段と、 Based on the brightness analysis value of the captured image data, the brightness reproduction target value, and the luminance ratio index and the exposure index calculated by the index calculation means, a plurality of first temporary corrections for the captured image data First temporary correction amount setting means for setting the amount;
前記指標算出手段により算出された自然光指標に基づいて、前記複数の第 1仮補 正量の各々に乗算する重み係数としての第 1混合係数を設定する第 1混合係数設定 手段と、 First mixing coefficient setting means for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculating means;
前記第 1混合係数設定手段により設定された第 1混合係数と、前記複数の第 1仮補 正量に基づ 、て、前記撮影画像データに対する第 2仮補正量を設定する第 2仮補正 量設定手段と、
前記指標算出手段により算出された自然光指標、輝度比指標、露出指標に基づい て、前記複数の第 1仮補正量のうちの少なくとも 1つと、前記第 2仮補正量に乗算する 重み係数としての第 2混合係数を設定する第 2混合係数設定手段と、 A second temporary correction amount for setting a second temporary correction amount for the photographed image data based on the first mixing coefficient set by the first mixing coefficient setting means and the plurality of first temporary correction amounts. Setting means; Based on the natural light index, the luminance ratio index, and the exposure index calculated by the index calculation means, at least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor. 2nd mixing coefficient setting means for setting the mixing coefficient;
前記第 2混合係数により設定された第 2混合係数と、前記少なくとも 1つの第 1仮補 正量と、前記第 2仮補正量に基づいて、前記撮影画像データの明るさ補正量を算出 する補正量算出手段と、 Correction for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount. A quantity calculating means;
前記補正量算出手段により算出された明るさ補正量と、前記自然光指標と、前記輝 度比指標に基づいて、前記撮影画像データを変換するための補正カーブを生成す る補正カーブ生成手段と、 A correction curve generating means for generating a correction curve for converting the captured image data based on the brightness correction amount calculated by the correction amount calculating means, the natural light index, and the brightness ratio index;
前記補正カーブ生成手段により生成された補正カーブに従って、前記撮影画像デ ータの明るさを補正する補正手段と、 Correction means for correcting the brightness of the captured image data in accordance with the correction curve generated by the correction curve generation means;
を備えることを特徴とする画像処理装置。 An image processing apparatus comprising:
[5] 撮影画像データ内の主要被写体の明るさを最適化する処理を行う画像処理装置で あって、 [5] An image processing apparatus that performs processing for optimizing the brightness of a main subject in captured image data.
前記撮影画像データの自然光による屋外撮影度を表す自然光指標と、当該撮影 画像データのダイナミックレンジの大きさを表す輝度比指標と、撮影時の露出設定に 起因する露出撮影度を表す露出指標を算出する指標算出手段と、 Calculates a natural light index that represents the degree of outdoor shooting with natural light in the photographed image data, a luminance ratio index that represents the size of the dynamic range of the photographed image data, and an exposure index that represents the exposure photographing degree due to the exposure setting at the time of photographing. Index calculation means to
前記撮影画像データの明るさ解析値と、明るさの再現目標値と、前記指標算出手 段により算出された輝度比指標及び露出指標に基づいて、当該撮影画像データに 対する複数の第 1仮補正量を設定する第 1仮補正量設定手段と、 Based on the brightness analysis value of the captured image data, the brightness reproduction target value, and the luminance ratio index and the exposure index calculated by the index calculation means, a plurality of first temporary corrections for the captured image data First temporary correction amount setting means for setting the amount;
前記指標算出手段により算出された自然光指標に基づいて、前記複数の第 1仮補 正量の各々に乗算する重み係数としての第 1混合係数を設定する第 1混合係数設定 手段と、 First mixing coefficient setting means for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculating means;
前記第 1混合係数設定手段により設定された第 1混合係数と、前記複数の第 1仮補 正量に基づ 、て、前記撮影画像データに対する第 2仮補正量を設定する第 2仮補正 量設定手段と、 A second temporary correction amount for setting a second temporary correction amount for the photographed image data based on the first mixing coefficient set by the first mixing coefficient setting means and the plurality of first temporary correction amounts. Setting means;
前記指標算出手段により算出された自然光指標、輝度比指標、露出指標に基づい て、前記複数の第 1仮補正量のうちの少なくとも 1つと、前記第 2仮補正量に乗算する
重み係数としての第 2混合係数を設定する第 2混合係数設定手段と、 前記第 2混合係数により設定された第 2混合係数と、前記少なくとも 1つの第 1仮補 正量と、前記第 2仮補正量に基づいて、前記撮影画像データの明るさ補正量を算出 する補正量算出手段と、 Multiplying the second temporary correction amount by at least one of the plurality of first temporary correction amounts based on the natural light index, the luminance ratio index, and the exposure index calculated by the index calculating means. A second mixing coefficient setting means for setting a second mixing coefficient as a weighting coefficient; a second mixing coefficient set by the second mixing coefficient; the at least one first temporary correction amount; and the second temporary coefficient. Correction amount calculating means for calculating a brightness correction amount of the captured image data based on a correction amount;
前記撮影画像データの彩度が所定の閾値よりも高ぐ且つ前記自然光指標に基づ V、て設定される所定の色相を有する高彩度の画素数に基づ!/、て、当該撮影画像デ ータの明るさ補正量を抑制するための抑制係数を設定する抑制係数設定手段と、 前記補正量算出手段により算出された明るさ補正量に前記抑制係数を乗算して新 たな明るさ補正量を算出する乗算手段と、 Based on the number of pixels of high saturation having a predetermined hue that is set based on the natural light index, and the saturation of the captured image data is higher than a predetermined threshold value, V / A suppression coefficient setting means for setting a suppression coefficient for suppressing the brightness correction amount of the data, and a new brightness correction amount by multiplying the brightness correction amount calculated by the correction amount calculation means by the suppression coefficient Multiplication means for calculating
前記乗算手段により得られた新たな明るさ補正量と、前記自然光指標と、前記輝度 比指標に基づいて、前記撮影画像データを変換するための補正カーブを生成する 補正カーブ生成手段と、 A correction curve generation means for generating a correction curve for converting the captured image data based on the new brightness correction amount obtained by the multiplication means, the natural light index, and the luminance ratio index;
前記補正カーブ生成手段により生成された補正カーブに従って、前記撮影画像デ ータの明るさを補正する補正手段と、 Correction means for correcting the brightness of the captured image data in accordance with the correction curve generated by the correction curve generation means;
を備えることを特徴とする画像処理装置。 An image processing apparatus comprising:
[6] 前記指標算出手段は、 [6] The index calculation means includes
撮影画像データを、所定の明度と色相の組み合わせカゝらなる領域に分割し、当該 分割された領域毎に前記撮影画像データ全体に占める割合を示す第 1の占有率を 算出する第 1算出処理と、撮影画像データを、当該撮影画像データの画面の外縁か らの距離と明度の組み合わせ力 なる所定の領域に分割し、当該分割された領域毎 に前記撮影画像データ全体に占める割合を示す第 2の占有率を算出する第 2算出 処理の少なくとも一方の算出処理を実行し、 First calculation processing that divides photographed image data into regions that are a combination of predetermined brightness and hue, and calculates a first occupancy ratio that indicates a proportion of the entire photographed image data for each of the divided regions The photographed image data is divided into predetermined areas having a combination power of distance and brightness from the outer edge of the screen of the photographed image data, and the ratio of the divided area to the whole photographed image data is shown for each divided area. Execute at least one of the second calculation processes for calculating the occupancy ratio of 2,
前記撮影画像データの階調分布の偏りを示す偏倚量を算出し、 Calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
前記算出された第 1の占有率及び Z又は第 2の占有率と、前記偏倚量に、撮影条 件に応じて予め設定された係数を乗算することにより、前記自然光指標、前記輝度 比指標、前記露出指標を算出することを特徴とする請求の範囲第 4項又は第 5項に 記載の画像処理装置。 By multiplying the calculated first occupancy and Z or second occupancy by the deviation amount by a coefficient set in advance according to the shooting conditions, the natural light index, the luminance ratio index, 6. The image processing apparatus according to claim 4, wherein the exposure index is calculated.
[7] 撮影画像データ内の主要被写体の明るさを最適化する処理を行う画像処理方法で
あって、 [7] An image processing method that optimizes the brightness of the main subject in the captured image data. There,
前記撮影画像データの自然光による屋外撮影度を表す自然光指標と、当該撮影 画像データのダイナミックレンジの大きさを表す輝度比指標と、撮影時の露出設定に 起因する露出撮影度を表す露出指標を算出する指標算出工程と、 Calculates a natural light index that represents the degree of outdoor shooting with natural light in the photographed image data, a luminance ratio index that represents the size of the dynamic range of the photographed image data, and an exposure index that represents the exposure photographing degree due to the exposure setting at the time of photographing. An index calculation process to perform,
前記撮影画像データの明るさ解析値と、明るさの再現目標値と、前記指標算出ェ 程により算出された輝度比指標及び露出指標に基づいて、当該撮影画像データに 対する複数の第 1仮補正量を設定する第 1仮補正量設定工程と、 Based on the brightness analysis value of the captured image data, the brightness reproduction target value, and the luminance ratio index and exposure index calculated by the index calculation process, a plurality of first temporary corrections for the captured image data A first provisional correction amount setting step for setting the amount;
前記指標算出工程により算出された自然光指標に基づいて、前記複数の第 1仮補 正量の各々に乗算する重み係数としての第 1混合係数を設定する第 1混合係数設定 工程と、 A first mixing coefficient setting step for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculation step;
前記第 1混合係数設定工程により設定された第 1混合係数と、前記複数の第 1仮補 正量に基づ 、て、前記撮影画像データに対する第 2仮補正量を設定する第 2仮補正 量設定工程と、 Based on the first mixing coefficient set in the first mixing coefficient setting step and the plurality of first temporary correction amounts, a second temporary correction amount for setting a second temporary correction amount for the captured image data A setting process;
前記指標算出工程により算出された自然光指標、輝度比指標、露出指標に基づい て、前記複数の第 1仮補正量のうちの少なくとも 1つと、前記第 2仮補正量に乗算する 重み係数としての第 2混合係数を設定する第 2混合係数設定工程と、 Based on the natural light index, the luminance ratio index, and the exposure index calculated by the index calculation step, at least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor. (2) a second mixing coefficient setting step for setting a mixing coefficient;
前記第 2混合係数により設定された第 2混合係数と、前記少なくとも 1つの第 1仮補 正量と、前記第 2仮補正量に基づいて、前記撮影画像データの明るさ補正量を算出 する補正量算出工程と、 Correction for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount. A quantity calculation step;
前記補正量算出工程により算出された明るさ補正量と、前記自然光指標と、前記輝 度比指標に基づいて、前記撮影画像データを変換するための補正カーブを生成す る補正カーブ生成工程と、 A correction curve generating step for generating a correction curve for converting the captured image data based on the brightness correction amount calculated by the correction amount calculating step, the natural light index, and the brightness ratio index;
前記補正カーブ生成工程により生成された補正カーブに従って、前記撮影画像デ ータの明るさを補正する補正工程と、 A correction step of correcting the brightness of the captured image data in accordance with the correction curve generated by the correction curve generation step;
を含むことを特徴とする画像処理方法。 An image processing method comprising:
撮影画像データ内の主要被写体の明るさを最適化する処理を行う画像処理方法で あって、 An image processing method for performing processing for optimizing the brightness of a main subject in captured image data,
前記撮影画像データの自然光による屋外撮影度を表す自然光指標と、当該撮影
画像データのダイナミックレンジの大きさを表す輝度比指標と、撮影時の露出設定に 起因する露出撮影度を表す露出指標を算出する指標算出工程と、 A natural light index indicating the degree of outdoor photographing with natural light of the photographed image data, and the photographing An index calculation step for calculating a brightness ratio index that represents the size of the dynamic range of the image data, and an exposure index that represents the exposure shooting degree due to the exposure setting at the time of shooting;
前記撮影画像データの明るさ解析値と、明るさの再現目標値と、前記指標算出ェ 程により算出された輝度比指標及び露出指標に基づいて、当該撮影画像データに 対する複数の第 1仮補正量を設定する第 1仮補正量設定工程と、 Based on the brightness analysis value of the captured image data, the brightness reproduction target value, and the luminance ratio index and exposure index calculated by the index calculation process, a plurality of first temporary corrections for the captured image data A first provisional correction amount setting step for setting the amount;
前記指標算出工程により算出された自然光指標に基づいて、前記複数の第 1仮補 正量の各々に乗算する重み係数としての第 1混合係数を設定する第 1混合係数設定 工程と、 A first mixing coefficient setting step for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculation step;
前記第 1混合係数設定工程により設定された第 1混合係数と、前記複数の第 1仮補 正量に基づ 、て、前記撮影画像データに対する第 2仮補正量を設定する第 2仮補正 量設定工程と、 Based on the first mixing coefficient set in the first mixing coefficient setting step and the plurality of first temporary correction amounts, a second temporary correction amount for setting a second temporary correction amount for the captured image data A setting process;
前記指標算出工程により算出された自然光指標、輝度比指標、露出指標に基づい て、前記複数の第 1仮補正量のうちの少なくとも 1つと、前記第 2仮補正量に乗算する 重み係数としての第 2混合係数を設定する第 2混合係数設定工程と、 Based on the natural light index, the luminance ratio index, and the exposure index calculated by the index calculation step, at least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor. (2) a second mixing coefficient setting step for setting a mixing coefficient;
前記第 2混合係数により設定された第 2混合係数と、前記少なくとも 1つの第 1仮補 正量と、前記第 2仮補正量に基づいて、前記撮影画像データの明るさ補正量を算出 する補正量算出工程と、 Correction for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount. A quantity calculation step;
前記撮影画像データの彩度が所定の閾値よりも高ぐ且つ前記自然光指標に基づ V、て設定される所定の色相を有する高彩度の画素数に基づ!/、て、当該撮影画像デ ータの明るさ補正量を抑制するための抑制係数を設定する抑制係数設定工程と、 前記補正量算出工程により算出された明るさ補正量に前記抑制係数を乗算して新 たな明るさ補正量を算出する乗算工程と、 Based on the number of pixels of high saturation having a predetermined hue that is set based on the natural light index, and the saturation of the captured image data is higher than a predetermined threshold value, V / A suppression coefficient setting step for setting a suppression coefficient for suppressing the brightness correction amount of the data, and a new brightness correction amount by multiplying the brightness correction amount calculated by the correction amount calculation step by the suppression coefficient A multiplication step for calculating
前記乗算工程により得られた新たな明るさ補正量と、前記自然光指標と、前記輝度 比指標に基づいて、前記撮影画像データを変換するための補正カーブを生成する 補正カーブ生成工程と、 A correction curve generating step for generating a correction curve for converting the captured image data based on the new brightness correction amount obtained by the multiplication step, the natural light index, and the luminance ratio index;
前記補正カーブ生成工程により生成された補正カーブに従って、前記撮影画像デ ータの明るさを補正する補正工程と、 A correction step of correcting the brightness of the captured image data in accordance with the correction curve generated by the correction curve generation step;
を含むことを特徴とする画像処理方法。
[9] 前記指標算出工程では、 An image processing method comprising: [9] In the index calculation step,
撮影画像データを、所定の明度と色相の組み合わせカゝらなる領域に分割し、当該 分割された領域毎に前記撮影画像データ全体に占める割合を示す第 1の占有率を 算出する第 1算出処理と、撮影画像データを、当該撮影画像データの画面の外縁か らの距離と明度の組み合わせ力 なる所定の領域に分割し、当該分割された領域毎 に前記撮影画像データ全体に占める割合を示す第 2の占有率を算出する第 2算出 処理の少なくとも一方の算出処理を実行し、 First calculation processing that divides photographed image data into regions that are a combination of predetermined brightness and hue, and calculates a first occupancy ratio that indicates a proportion of the entire photographed image data for each of the divided regions The photographed image data is divided into predetermined areas having a combination power of distance and brightness from the outer edge of the screen of the photographed image data, and the ratio of the divided area to the whole photographed image data is shown for each divided area. Execute at least one of the second calculation processes for calculating the occupancy ratio of 2,
前記撮影画像データの階調分布の偏りを示す偏倚量を算出し、 Calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
前記算出された第 1の占有率及び Z又は第 2の占有率と、前記偏倚量に、撮影条 件に応じて予め設定された係数を乗算することにより、前記自然光指標、前記輝度 比指標、前記露出指標を算出することを特徴とする請求の範囲第 7項又は第 8項に 記載の画像処理方法。 By multiplying the calculated first occupancy and Z or second occupancy by the deviation amount by a coefficient set in advance according to the shooting conditions, the natural light index, the luminance ratio index, The image processing method according to claim 7, wherein the exposure index is calculated.
[10] コンピュータに、 [10] On the computer,
撮影画像データの自然光による屋外撮影度を表す自然光指標と、当該撮影画像 データのダイナミックレンジの大きさを表す輝度比指標と、撮影時の露出設定に起因 する露出撮影度を表す露出指標を算出する指標算出機能と、 Calculates a natural light index that represents the degree of outdoor shooting with natural light in the captured image data, a luminance ratio index that represents the size of the dynamic range of the captured image data, and an exposure index that represents the exposure photographing level that results from the exposure setting at the time of shooting. An index calculation function,
前記撮影画像データの明るさ解析値と、明るさの再現目標値と、前記指標算出機 能により算出された輝度比指標及び露出指標に基づいて、当該撮影画像データに 対する複数の第 1仮補正量を設定する第 1仮補正量設定機能と、 Based on the brightness analysis value of the captured image data, the brightness reproduction target value, and the luminance ratio index and the exposure index calculated by the index calculation function, a plurality of first temporary corrections for the captured image data A first provisional correction amount setting function for setting the amount;
前記指標算出機能により算出された自然光指標に基づいて、前記複数の第 1仮補 正量の各々に乗算する重み係数としての第 1混合係数を設定する第 1混合係数設定 機能と、 A first mixing coefficient setting function for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculation function;
前記第 1混合係数設定機能により設定された第 1混合係数と、前記複数の第 1仮補 正量に基づ 、て、前記撮影画像データに対する第 2仮補正量を設定する第 2仮補正 量設定機能と、 A second temporary correction amount for setting a second temporary correction amount for the photographed image data based on the first mixing coefficient set by the first mixing coefficient setting function and the plurality of first temporary correction amounts. Setting function,
前記指標算出機能により算出された自然光指標、輝度比指標、露出指標に基づい て、前記複数の第 1仮補正量のうちの少なくとも 1つと、前記第 2仮補正量に乗算する 重み係数としての第 2混合係数を設定する第 2混合係数設定機能と、
前記第 2混合係数により設定された第 2混合係数と、前記少なくとも 1つの第 1仮補 正量と、前記第 2仮補正量に基づいて、前記撮影画像データの明るさ補正量を算出 する補正量算出機能と、 Based on the natural light index, the brightness ratio index, and the exposure index calculated by the index calculation function, at least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor. 2nd mixing coefficient setting function to set the mixing coefficient, Correction for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount. A quantity calculation function,
前記補正量算出機能により算出された明るさ補正量と、前記自然光指標と、前記輝 度比指標に基づいて、前記撮影画像データを変換するための補正カーブを生成す る補正カーブ生成機能と、 A correction curve generation function for generating a correction curve for converting the captured image data based on the brightness correction amount calculated by the correction amount calculation function, the natural light index, and the brightness ratio index;
前記補正カーブ生成機能により生成された補正カーブに従って、前記撮影画像デ ータの明るさを補正する補正機能と、 A correction function for correcting the brightness of the captured image data according to the correction curve generated by the correction curve generation function;
を実現させるための画像処理プログラム。 An image processing program for realizing
[11] コンピュータに、 [11] On the computer,
撮影画像データの自然光による屋外撮影度を表す自然光指標と、当該撮影画像 データのダイナミックレンジの大きさを表す輝度比指標と、撮影時の露出設定に起因 する露出撮影度を表す露出指標を算出する指標算出機能と、 Calculates a natural light index that represents the degree of outdoor shooting with natural light in the captured image data, a luminance ratio index that represents the size of the dynamic range of the captured image data, and an exposure index that represents the exposure photographing level that results from the exposure setting at the time of shooting. An index calculation function,
前記撮影画像データの明るさ解析値と、明るさの再現目標値と、前記指標算出機 能により算出された輝度比指標及び露出指標に基づいて、当該撮影画像データに 対する複数の第 1仮補正量を設定する第 1仮補正量設定機能と、 Based on the brightness analysis value of the captured image data, the brightness reproduction target value, and the luminance ratio index and the exposure index calculated by the index calculation function, a plurality of first temporary corrections for the captured image data A first provisional correction amount setting function for setting the amount;
前記指標算出機能により算出された自然光指標に基づいて、前記複数の第 1仮補 正量の各々に乗算する重み係数としての第 1混合係数を設定する第 1混合係数設定 機能と、 A first mixing coefficient setting function for setting a first mixing coefficient as a weighting coefficient for multiplying each of the plurality of first temporary correction amounts based on the natural light index calculated by the index calculation function;
前記第 1混合係数設定機能により設定された第 1混合係数と、前記複数の第 1仮補 正量に基づ 、て、前記撮影画像データに対する第 2仮補正量を設定する第 2仮補正 量設定機能と、 A second temporary correction amount for setting a second temporary correction amount for the photographed image data based on the first mixing coefficient set by the first mixing coefficient setting function and the plurality of first temporary correction amounts. Setting function,
前記指標算出機能により算出された自然光指標、輝度比指標、露出指標に基づい て、前記複数の第 1仮補正量のうちの少なくとも 1つと、前記第 2仮補正量に乗算する 重み係数としての第 2混合係数を設定する第 2混合係数設定機能と、 Based on the natural light index, the brightness ratio index, and the exposure index calculated by the index calculation function, at least one of the plurality of first temporary correction amounts is multiplied by the second temporary correction amount as a weighting factor. 2nd mixing coefficient setting function to set the mixing coefficient,
前記第 2混合係数により設定された第 2混合係数と、前記少なくとも 1つの第 1仮補 正量と、前記第 2仮補正量に基づいて、前記撮影画像データの明るさ補正量を算出 する補正量算出機能と、
前記撮影画像データの彩度が所定の閾値よりも高ぐ且つ前記自然光指標に基づ V、て設定される所定の色相を有する高彩度の画素数に基づ!/、て、当該撮影画像デ ータの明るさ補正量を抑制するための抑制係数を設定する抑制係数設定機能と、 前記補正量算出機能により算出された明るさ補正量に前記抑制係数を乗算して新 たな明るさ補正量を算出する乗算機能と、 Correction for calculating a brightness correction amount of the captured image data based on the second mixing coefficient set by the second mixing coefficient, the at least one first temporary correction amount, and the second temporary correction amount. A quantity calculation function, Based on the number of pixels of high saturation having a predetermined hue that is set based on the natural light index, and the saturation of the captured image data is higher than a predetermined threshold value, V / A suppression coefficient setting function for setting a suppression coefficient for suppressing the brightness correction amount of the data, and a new brightness correction amount by multiplying the brightness correction amount calculated by the correction amount calculation function by the suppression coefficient A multiplication function for calculating
前記乗算機能により得られた新たな明るさ補正量と、前記自然光指標と、前記輝度 比指標に基づいて、前記撮影画像データを変換するための補正カーブを生成する 補正カーブ生成機能と、 A correction curve generation function for generating a correction curve for converting the photographed image data based on the new brightness correction amount obtained by the multiplication function, the natural light index, and the luminance ratio index;
前記補正カーブ生成機能により生成された補正カーブに従って、前記撮影画像デ ータの明るさを補正する補正機能と、 A correction function for correcting the brightness of the captured image data according to the correction curve generated by the correction curve generation function;
を実現させるための画像処理プログラム。 An image processing program for realizing
前記指標算出機能を実現させる際に、 When realizing the index calculation function,
撮影画像データを、所定の明度と色相の組み合わせカゝらなる領域に分割し、当該 分割された領域毎に前記撮影画像データ全体に占める割合を示す第 1の占有率を 算出する第 1算出処理と、撮影画像データを、当該撮影画像データの画面の外縁か らの距離と明度の組み合わせ力 なる所定の領域に分割し、当該分割された領域毎 に前記撮影画像データ全体に占める割合を示す第 2の占有率を算出する第 2算出 処理の少なくとも一方の算出処理を実行し、 First calculation processing that divides photographed image data into regions that are a combination of predetermined brightness and hue, and calculates a first occupancy ratio that indicates a proportion of the entire photographed image data for each of the divided regions The photographed image data is divided into predetermined areas having a combination power of distance and brightness from the outer edge of the screen of the photographed image data, and the ratio of the divided area to the whole photographed image data is shown for each divided area. Execute at least one of the second calculation processes for calculating the occupancy ratio of 2,
前記撮影画像データの階調分布の偏りを示す偏倚量を算出し、 Calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
前記算出された第 1の占有率及び Z又は第 2の占有率と、前記偏倚量に、撮影条 件に応じて予め設定された係数を乗算することにより、前記自然光指標、前記輝度 比指標、前記露出指標を算出することを特徴とする請求の範囲第 10項又は第 11項 に記載の画像処理プログラム。
By multiplying the calculated first occupancy and Z or second occupancy by the deviation amount by a coefficient set in advance according to the shooting conditions, the natural light index, the luminance ratio index, The image processing program according to claim 10, wherein the exposure index is calculated.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005263958A JP2007081550A (en) | 2005-09-12 | 2005-09-12 | Imaging apparatus, and image processing unit, method, and program |
JP2005-263958 | 2005-09-12 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2007032324A1 true WO2007032324A1 (en) | 2007-03-22 |
Family
ID=37864916
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2006/318009 WO2007032324A1 (en) | 2005-09-12 | 2006-09-12 | Imaging device, image processing device, image processing method, and image processing program |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP2007081550A (en) |
WO (1) | WO2007032324A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112804461A (en) * | 2021-02-01 | 2021-05-14 | 深圳瑞为智能科技有限公司 | Method for automatically adjusting AE target brightness |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009001467A1 (en) * | 2007-06-28 | 2008-12-31 | Fujitsu Limited | Electronic device for improving brightness of recorded image in low luminance environment |
TWI695622B (en) * | 2018-09-06 | 2020-06-01 | 華晶科技股份有限公司 | Image processing method and image processing device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002247393A (en) * | 2001-02-14 | 2002-08-30 | Konica Corp | Method of processing image |
JP2002247361A (en) * | 2001-02-14 | 2002-08-30 | Ricoh Co Ltd | Image processor, image processing method and recording medium having recorded programs for executing the same |
JP2002369075A (en) * | 2001-06-04 | 2002-12-20 | Olympus Optical Co Ltd | Image pickup unit, picture processor, image pickup program and picture processing program |
JP2003069822A (en) * | 2001-08-29 | 2003-03-07 | Ricoh Co Ltd | Image processor, image processing method and recording medium |
JP2003169231A (en) * | 2001-11-29 | 2003-06-13 | Ricoh Co Ltd | Image processing apparatus, and computer program |
JP2004336521A (en) * | 2003-05-09 | 2004-11-25 | Konica Minolta Photo Imaging Inc | Image processing method, image processor, and image recording apparatus |
JP2005072930A (en) * | 2003-08-25 | 2005-03-17 | Fuji Photo Film Co Ltd | Image processing apparatus and method therefor, and program |
-
2005
- 2005-09-12 JP JP2005263958A patent/JP2007081550A/en active Pending
-
2006
- 2006-09-12 WO PCT/JP2006/318009 patent/WO2007032324A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002247393A (en) * | 2001-02-14 | 2002-08-30 | Konica Corp | Method of processing image |
JP2002247361A (en) * | 2001-02-14 | 2002-08-30 | Ricoh Co Ltd | Image processor, image processing method and recording medium having recorded programs for executing the same |
JP2002369075A (en) * | 2001-06-04 | 2002-12-20 | Olympus Optical Co Ltd | Image pickup unit, picture processor, image pickup program and picture processing program |
JP2003069822A (en) * | 2001-08-29 | 2003-03-07 | Ricoh Co Ltd | Image processor, image processing method and recording medium |
JP2003169231A (en) * | 2001-11-29 | 2003-06-13 | Ricoh Co Ltd | Image processing apparatus, and computer program |
JP2004336521A (en) * | 2003-05-09 | 2004-11-25 | Konica Minolta Photo Imaging Inc | Image processing method, image processor, and image recording apparatus |
JP2005072930A (en) * | 2003-08-25 | 2005-03-17 | Fuji Photo Film Co Ltd | Image processing apparatus and method therefor, and program |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112804461A (en) * | 2021-02-01 | 2021-05-14 | 深圳瑞为智能科技有限公司 | Method for automatically adjusting AE target brightness |
Also Published As
Publication number | Publication date |
---|---|
JP2007081550A (en) | 2007-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100467610B1 (en) | Method and apparatus for improvement of digital image quality | |
EP2426928B1 (en) | Image processing apparatus, image processing method and program | |
US7084907B2 (en) | Image-capturing device | |
US8254675B2 (en) | Image processing apparatus, imaging apparatus and image processing program | |
JP3668014B2 (en) | Image processing method and apparatus | |
JP2004173010A (en) | Image pickup device, image processor, image recorder, image processing method, program and recording medium | |
KR20080035981A (en) | Image processing apparatus, imaging apparatus, image processing method, and computer program | |
US8502881B2 (en) | Image processing apparatus, image processing method, and electronic camera | |
US9997133B2 (en) | Image processing apparatus, image processing method, and computer-readable recording medium | |
WO2006123492A1 (en) | Image processing method, image processing device, imaging device and image processing program | |
CN113411554A (en) | Underwater image color restoration method and device | |
JP4544308B2 (en) | Image processing apparatus, imaging apparatus, method, and program | |
EP3460748A1 (en) | Dynamic range compression device and image processing device cross-reference to related application | |
WO2007032324A1 (en) | Imaging device, image processing device, image processing method, and image processing program | |
JP2007311895A (en) | Imaging apparatus, image processor, image processing method and image processing program | |
US8102446B2 (en) | Image capturing system and image processing method for applying grayscale conversion to a video signal, and computer-readable recording medium having recorded thereon an image processing program for applying grayscale conversion to a video signal | |
JP2007221678A (en) | Imaging apparatus, image processor, image processing method and image processing program | |
JP2007312294A (en) | Imaging apparatus, image processor, method for processing image, and image processing program | |
JP2007293686A (en) | Imaging apparatus, image processing apparatus, image processing method and image processing program | |
JP2009070099A (en) | Image-processing device, image-processing method, program and recording medium | |
JP2006203566A (en) | Imaging apparatus, image processing apparatus and image processing method | |
JP2006333113A (en) | Imaging device | |
JP2007235204A (en) | Imaging apparatus, image processing apparatus, image processing method and image processing program | |
JP2007318320A (en) | Image processor, imaging device, image processing method, and image processing program | |
JP2006203571A (en) | Imaging apparatus, image processing apparatus, and image recording apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application | ||
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 06797816 Country of ref document: EP Kind code of ref document: A1 |