WO2022172676A1 - 撮像装置、画像処理方法、プログラム、画像処理装置 - Google Patents

撮像装置、画像処理方法、プログラム、画像処理装置 Download PDF

Info

Publication number
WO2022172676A1
WO2022172676A1 PCT/JP2022/000908 JP2022000908W WO2022172676A1 WO 2022172676 A1 WO2022172676 A1 WO 2022172676A1 JP 2022000908 W JP2022000908 W JP 2022000908W WO 2022172676 A1 WO2022172676 A1 WO 2022172676A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
correction
foreground
color
background
Prior art date
Application number
PCT/JP2022/000908
Other languages
English (en)
French (fr)
Inventor
英輔 宇根
Original Assignee
ソニーグループ株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ソニーグループ株式会社 filed Critical ソニーグループ株式会社
Publication of WO2022172676A1 publication Critical patent/WO2022172676A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Definitions

  • This technology relates to an imaging device, an image processing method, a program, and an image processing device, and particularly to a technology for color correction of images.
  • the image processing device may change the color of the color image according to the user's input operation.
  • the colors of the foreground and background are changed according to the user's input operation. It was not possible to correct the color of the foreground part considering the phenomenon.
  • the purpose of this technology is to reproduce the foreground and background in colors with a reduced color contrast effect when changing the colors according to the user's input operation.
  • An imaging device includes an imaging element that captures an image and outputs image data, and a target value of one of a foreground part and a background part included in the image data based on the other color element. and a target value setting unit that sets a correction value for the one color element according to a user's input operation, and corrects the target value for the other color element based on the set correction value for the one color element and a correction value setting unit for setting a value.
  • the correction value of the other color element is set in consideration of the color contrast effect due to the correction of one of the color elements. It is possible.
  • the input operation may be an instruction to increase or decrease the value of the color element.
  • the correction value setting unit may set correction values for at least one of hue, saturation, and lightness of the foreground portion and the background portion. As a result, when at least one of the hue, saturation, and lightness of one of the foreground and background is corrected according to the user's input operation, the effect of color contrast due to correction of one color element is reduced. It is possible to set correction values for at least one of hue, saturation and lightness.
  • the input operation is an instruction to change the amount of blurring of the background portion
  • the correction value setting unit adjusts the foreground portion and the background portion according to the blurring amount. It is conceivable to set correction values for the color elements of Accordingly, it is possible to set the correction value of the foreground color factor that reduces the color contrast effect in accordance with the change of the background color factor by changing the blurring amount of the background part.
  • the correction value setting unit sets a correction value for at least one of hue, saturation, and lightness of the foreground portion and the background portion according to the amount of blurring. can be considered.
  • the hue, saturation, and lightness of the background is corrected according to the amount of blurring of the background, the hue, saturation, and lightness of the foreground with reduced color contrast effect can be obtained. It is possible to set a correction value for at least one of
  • the correction value setting unit may set the target value of the other hue based on the complementary color of the one hue. This makes it possible to set a target value for one color component that reduces the contrast effect of the other color.
  • the correction value setting unit sets a correction value for the target value of the one color element according to a user's input operation, and sets the target value of the one color element and the correction value. It is conceivable to set the correction value of the other color element based on the ratio with the value. This makes it possible to set a target value for one color component that reduces the contrast effect of the other color.
  • a correction processing unit that corrects the color elements of the foreground portion and the background portion based on the correction values obtained by the correction value setting unit; and a display control unit that performs display control to display the image corrected by the correction processing unit on the display unit. This allows the user to confirm the image in which the color elements of the foreground and background are corrected.
  • the display control unit may display the correction values of the color elements of the foreground portion and the background portion obtained by the correction value setting unit. This allows the user to confirm the correction values of the color elements of the foreground and background.
  • the display control unit causes the display unit to display an image before correction by the correction processing unit and an image after correction by the correction processing unit. can be considered. This allows the user to check the images before and after the correction by comparing them.
  • the display control unit may cause the display unit to display the hue and saturation of the foreground portion and the background portion in the image corrected by the correction processing unit. Conceivable. This allows the user to check the hue and saturation of the foreground and background after correction.
  • the target value of the other color element is set, and according to the user's input operation, A correction value for the one color element is set, and a correction value is set by correcting the target value for the other color element based on the set correction value for the one color element.
  • a target value setting unit that sets a target value for one of the foreground and background color elements included in image data based on the other color element
  • a correction value setting unit that sets a correction value for the one color element according to an input operation, and sets a correction value obtained by correcting the target value for the other color element based on the set correction value for the one color element; Be prepared.
  • Such an image processing device can also provide the same effects as the imaging device according to the present technology described above.
  • FIG. 10 is a first diagram for explaining correction of the foreground chromaticity target value;
  • FIG. 10 is a second diagram illustrating correction of the foreground chromaticity target value;
  • FIG. 4 is a diagram for explaining an image displayed on a display unit;
  • FIG. 9 is a flow chart showing the flow of processing by a control unit in the second embodiment; 9 is a flow chart showing the flow of processing by a control unit in the second embodiment; It is a figure explaining a brightness contrast effect.
  • FIG. 10 is a diagram for explaining correction of the foreground brightness target value;
  • FIG. 10 is a diagram illustrating correction of a target foreground brightness value and a target background brightness value;
  • FIG. 14 is a flow chart showing the flow of processing by a control unit in the fourth embodiment;
  • FIG. FIG. 14 is a flow chart showing the flow of processing by a control unit in the fourth embodiment;
  • FIG. 10 is a diagram illustrating correction of a foreground chromaticity target value;
  • FIG. 14 is a flow chart showing the flow of processing by a control unit in the fifth embodiment;
  • FIG. 14 is a flow chart showing the flow of processing by a control unit in the fifth embodiment;
  • FIG. It is a flow chart which shows a flow of processing of a control part in a modification.
  • FIG. 1 is a diagram illustrating the configuration of an imaging device 1 according to an embodiment.
  • solid line arrows indicate paths related to image data
  • broken line arrows indicate paths related to signals other than image data, such as control signals.
  • the imaging apparatus 1 includes an optical system 11, a driving system 12, an imaging element 13, a signal processing section 14, a recording section 15, a display section 16, a control section 17, an operation section 18, and an input/output section 19. Prepare.
  • the optical system 11 is composed of a plurality of lenses for condensing the light from the subject onto the imaging device 13 .
  • the drive system 12 includes a drive mechanism for moving the zoom lens and the focus lens of the optical system 11, a shutter mechanism, an aperture mechanism, and the like. These mechanisms in the drive system 12 are driven based on control signals from the controller 17 .
  • the imaging device 13 is, for example, a CCD (Charge Coupled Device) type, CMOS (Complementary Metal Oxide Semiconductor) type, or other solid-state imaging device, and captures a color image (hereinafter sometimes simply referred to as an image).
  • the imaging device 13 includes a pixel array section in which pixels are two-dimensionally arranged. In the pixel array section, R (red), G (green), and B (blue) color filters are arranged in a Bayer array or the like. Based on the control signal from the control unit 17 , the image sensor 13 reads the image signal photoelectrically converted at each pixel as image data and outputs the image data to the signal processing unit 14 .
  • FIG. 2 is a diagram explaining the functional configuration of the signal processing unit 14. As shown in FIG. As shown in FIG. 2, the signal processing unit 14 functions as a demosaicing processing unit 21, a white balance processing unit 22, a gamma correction processing unit 23, and a color correction processing unit 24.
  • the signal processing unit 14 functions as a demosaicing processing unit 21, a white balance processing unit 22, a gamma correction processing unit 23, and a color correction processing unit 24.
  • the demosaic processing unit 21 performs demosaic processing on the image data input from the imaging device 13 .
  • the image data input from the imaging device 13 contains only one color value among the color components (R, G, B) for each pixel. Therefore, in the demosaic processing, the demosaic processing unit 21 interpolates the values of the color components not included in each pixel using the values of the color components of the surrounding pixels, thereby obtaining all the values of the color components for each pixel.
  • Generate image data that includes
  • the white balance processing unit 22 performs white balance processing on the image data generated by the demosaic processing unit 21 .
  • the white balance processing unit 22 independently adjusts the values of the color components (R, G, B) of each pixel in the image data based on the parameters specified by the control signal from the control unit 17. By correcting, image data in which the influence of the color of the light in the shooting environment is corrected is generated.
  • the gamma correction processing unit 23 performs gamma correction processing on the image data generated by the white balance processing unit 22.
  • the gamma correction processing unit 23 corrects the contrast according to the signal level of each pixel based on the parameters specified by the control signal from the control unit 17, and generates contrast-corrected image data. do.
  • the color correction processing unit 24 performs color correction processing on the image data generated by the gamma correction processing unit 23, and outputs the image data subjected to the color correction processing to the recording unit 15 and the display unit 16.
  • the color correction processing unit 24 corrects the hue, saturation, and lightness of each pixel based on parameters (correction values) specified by a control signal from the control unit 17, and corrects the hue, saturation, and brightness of each pixel. To generate image data whose saturation and brightness are corrected.
  • the parameters (correction values) input from the control unit 17 to the color correction processing unit 24 will be described later in detail.
  • the recording unit 15 is, for example, a drive device for a portable recording medium such as a magnetic tape, an optical disc, or a semiconductor memory, an HDD (Hard Disk Drive), etc., and records the image data input from the color correction processing unit 24. Note that the recording unit 15 can also supply information accompanying the recorded image data to the control unit 17 .
  • the display unit 16 is a liquid crystal display or an organic EL display (organic light emitting diode) or the like, and displays images based on image data input from the signal processing unit 14.
  • the control unit 17 is configured with a microcomputer having, for example, a CPU (Central Processing Unit), a ROM (Read Only Memory), and a RAM (Random Access Memory), and reads and executes programs stored in the ROM. to control the imaging device 1 .
  • Various data such as programs to be executed by the control unit 17 and control data to be selected when the programs are executed are stored in advance in the ROM.
  • the RAM temporarily stores necessary programs and data as a work area when the control unit 17 executes various processes. Details of the control unit 17 will be described later.
  • the operation unit 18 is a press-type button, a touch panel provided on the surface of the display unit 16, or the like, and receives user input operations.
  • the input/output unit 19 has, for example, a communication device, and performs wired or wireless data communication with an external device.
  • the control unit 17 obtains parameters for executing focus control, shutter control, and aperture control based on the user's input operation to the operation unit 18 .
  • the control unit 17 also sets parameters for white balance processing, gamma correction processing, and color correction processing based on input operations. Then, the control unit 17 outputs control signals containing these parameters to the drive system 12, the imaging device 13, and the signal processing unit 14 as appropriate.
  • Example> In the following, the processing of the control unit 17 for determining the parameters (correction values) to be output to the color correction processing unit 24 and displaying on the display unit 16 an image based on the image data color-corrected by the color correction processing unit 24 will be described. explain.
  • FIG. 3 is a diagram explaining the functional configuration of the control unit 17. As shown in FIG. As shown in FIG. 3, the control unit 17 functions as a color element information detection unit 31, an area information detection unit 32, an area color setting unit 33, a target value setting unit 34, a correction value setting unit 35, and a display control unit 36. .
  • the color element information detection unit 31 acquires image data before color correction processing is performed by the color correction processing unit 24, and detects the value of the color component of each pixel shown in the image data. Then, the color element information detection unit 31 detects the contrast value, luminance value, chromaticity value (hue, saturation, lightness) and the like of each pixel as color element information based on the detected color component values. Here, the color element information detection unit 31 converts the values of the color components (R, G, B) of each pixel expressed in the RGB space into the CIE L*a*b* space (hereinafter simply referred to as Lab space). ) to chromaticity values (L*, a*, b*). In the chromaticity values (L*, a*, b*), lightness is indicated by lightness (L*), and hue and saturation are indicated by chromaticity (a*, b*).
  • the area information detection unit 32 detects area information indicating, for example, a foreground area that is a human face and a background area that is a background, based on the acquired image data.
  • the area information detection unit 32 detects a human face area as a foreground area by executing a known face detection process, and also detects an area within the chromaticity value range of the sky, forest, etc., which are often used as backgrounds.
  • a group of pixels may be detected as a region of the background portion.
  • Various known methods can be used to detect the foreground portion and the background portion from the image data.
  • a human face is used as an example of the foreground portion, but the foreground portion may be a predetermined object other than the human face, such as a human body, an animal other than the human, or the like.
  • the area color setting unit 33 sets chromaticity values as the color elements of the foreground and background based on the area information obtained from the area information detection unit 32 and the color element information obtained from the color element information detection unit 31. set.
  • a color element is an element for expressing colors in an image.
  • the area color setting unit 33 sets the average value of the chromaticity values of the pixels detected as the foreground portion by the area information detection unit 32 as the chromaticity value of the foreground portion, and sets the average value of the chromaticity values of the pixels detected as the background portion. is set as the chromaticity value of the background portion.
  • the target value setting unit 34 sets the target values of the chromaticity values (color elements) of the foreground portion and the background portion based on the chromaticity values of the foreground portion and the background portion set by the area color setting portion 33 .
  • the target values set here are initial target values, and are values that are set so that the foreground portion and the background portion are each independently optimized when color correction processing is performed. be.
  • the target value setting unit 34 corrects (sets) the target value of one of the foreground portion and the background portion based on the target value of the other.
  • the corrected target values have a mutual relationship (a relationship that reduces the contrast effect). For example, if the background has a predetermined target value, the target value of the foreground is the optimum value ( value that reduces the contrast effect).
  • the correction value setting unit 35 sets a correction value for one of the foreground and background color elements based on the target value set by the target value setting unit 34 and the user's input operation.
  • a correction value is set by correcting the target value of the other color element based on the correction value of the other color element.
  • the correction value setting unit 35 determines whether the user's input operation is an operation to increase or decrease the chromaticity value, and based on the determination result, sets the correction values for the foreground portion and the background portion. set.
  • the correction value is a value calculated and set based on the user's operation when the set target value is further corrected by the user's operation.
  • the display control unit 36 controls the display unit 16 and performs display control of images and the like based on the parameters obtained by the correction value setting unit 35 .
  • the processing performed by the control unit 17 will be mainly described with specific examples (first to sixth examples).
  • the target value of the foreground is corrected and set according to the target value of the background, but the target value of the background is corrected and set according to the target value of the foreground.
  • [2-1. First embodiment] 4 and 5 are flowcharts showing the flow of processing by the control unit 17 in the first embodiment.
  • the control unit 17 provides correction values for correcting the hue and saturation of the foreground and background, that is, the chromaticity (a*, b*) of the foreground and background. Calculate the correction value of
  • step S1 the control unit 17 determines whether image data has been acquired. Then, when the image data is acquired (Yes in step S1), in step S2, the color element information detection unit 31 detects the color component value of each pixel shown in the image data, and uses the detected color component value as Based on this, the color element information of each pixel is detected. In step S2, the chromaticity value, that is, each value of lightness and chromaticity, is obtained as the color element information. A process for obtaining a correction value is performed, and a process for obtaining a lightness correction value is not performed.
  • step S3 the area information detection unit 32 detects area information indicating a foreground area, which is a human face, and a background area, which is a background, based on the acquired image data.
  • step S4 the area color setting unit 33 sets chromaticity values for each of the foreground part and the background part based on the area information and the color element information.
  • the target value setting unit 34 sets a target value for the chromaticity of the foreground portion (hereinafter referred to as a target chromaticity value for the foreground portion) and a target value for the chromaticity of the background portion. (hereinafter referred to as the background chromaticity target value) is set.
  • a target chromaticity target value for the foreground chromaticity to be set and a background chromaticity target value for the background chromaticity to be set are stored in advance.
  • the chromaticity of the foreground is within a predetermined range for a human face
  • the chromaticity that is optimal for a human face is obtained as the foreground chromaticity target value.
  • foreground chromaticity target values are stored in association with chromaticities within a predetermined range for human faces.
  • the chromaticity of the background portion is within a predetermined range where the chromaticity of the background portion is empty
  • the optimum chromaticity of the sky is obtained as the background portion chromaticity target value.
  • Background portion chromaticity target values for chromaticities within a predetermined range are stored in association with each other.
  • the ROM of the control unit 17 stores forests so that, if the chromaticity of the background is within a predetermined range for forests, the optimum chromaticity for forests is obtained as the background chromaticity target value.
  • Background portion chromaticity target values for chromaticities within a predetermined range are stored in association with each other.
  • the ROM of the control unit 17 stores foreground chromaticity target values and background chromaticity target values for chromaticity within various ranges. Values are associated with each other and stored. Therefore, the target value setting unit 34 uniquely sets the optimum initial foreground chromaticity target value and background chromaticity target value based on the chromaticity values of the foreground and background. .
  • step S5 the correction value setting unit 35 sets the foreground chromaticity target value obtained in step S4 as the current value of the foreground chromaticity (hereinafter referred to as the current foreground chromaticity value). Further, the correction value setting unit 35 sets the background portion chromaticity target value obtained in step S4 as the current value of the background portion chromaticity (hereinafter referred to as the background portion chromaticity current value).
  • step S18 If it is determined in step S6 that there is no input operation for changing the chromaticity, in step S18 that will be described later, the current foreground chromaticity value and the current background chromaticity value set in step S5 are changed to It is output to the color correction processing unit 24 as a parameter (correction value) for color correction processing. Therefore, when there is no input operation for changing the chromaticity, the color correction processing unit 24 corrects the chromaticity of the foreground to the chromaticity indicated by the foreground chromaticity target value, and corrects the chromaticity of the background. As for the chromaticity, image data corrected so as to have the chromaticity indicated by the background portion chromaticity target value is generated. In such a case, the target foreground chromaticity value may be subjected to the processing of step S15, which will be described later, and the processed value may be used as the current foreground chromaticity value.
  • step S6 the correction value setting unit 35 determines whether there is an input operation to the operation unit 18 for changing chromaticity.
  • the correction value setting unit 35 determines whether or not there is an input operation to the operation unit 18 for changing the chromaticity.
  • step S6 the correction value setting unit 35 acquires the current background chromaticity value in step S7.
  • the background chromaticity target value is set as the background chromaticity current value. If an input operation to change the chromaticity of the same image data has already been performed, the value after the processing in step S11 or step S14, which will be described later, is set as the background portion chromaticity current value. .
  • FIG. 6 is a diagram for explaining an input operation for changing chromaticity.
  • 6 to 9 show cross-sectional views perpendicular to the L* direction in the Lab space. Set the direction to the blue direction. 6 to 9, the radial direction is the saturation direction, and the circumferential direction is the hue direction.
  • the input operation for changing the chromaticity in the first embodiment is to increase the saturation of the background portion chromaticity target value AT or the background portion chromaticity current value as indicated by the arrow D1 in FIG. It is possible to perform an operation (increase operation) or an operation to lower the saturation (decrease operation) as indicated by an arrow D2 in FIG. Further, the input operation of the first embodiment can be performed in multiple stages for each of the increasing operation and the decreasing operation.
  • step S8 the correction value setting unit 35 determines whether the input operation via the operation unit 18 is an increase operation. If the operation is to increase (Yes in step S8), the correction value setting unit 35 determines in step S9 whether the current background chromaticity value is less than the preset background chromaticity upper limit value. do.
  • the background portion chromaticity upper limit value is set to a value corresponding to the maximum permissible vividness of the background portion.
  • the correction value setting unit 35 increases the background chromaticity current value in step S10 (Fig. 6 in the direction indicated by the arrow D1) is set as the background portion chromaticity current value. That is, the correction value setting unit 35 changes the background portion chromaticity current value so as to be more vivid when there is an operation to increase it.
  • step S11 the correction value setting unit 35 sets the current background chromaticity value when the current background chromaticity value is equal to or greater than the upper limit value of background chromaticity (No in step S9), and the current background chromaticity value set in step S10. Limit processing is performed so that the current background chromaticity value does not exceed the background chromaticity upper limit value.
  • the correction value setting unit 35 changes the background portion chromaticity current value to the background portion chromaticity upper limit value.
  • step S12 the correction value setting unit 35 sets the background color to which the current background chromaticity value is preset. Determine if it is greater than the lower limit value.
  • the background portion chromaticity lower limit value is set to a value corresponding to the minimum permissible vividness of the background portion.
  • the correction value setting unit 35 decreases the current background chromaticity value (see FIG. 6) in step S13. (direction indicated by arrow D2)) is set as the current background chromaticity value. That is, the correction value setting unit 35 changes the background portion chromaticity current value to a more blurred color (lighter color) when a decrease operation is performed.
  • step S14 the correction value setting unit 35 sets the current background chromaticity value when the current background chromaticity value is equal to or less than the lower limit background chromaticity value (No in step S12), and the current background chromaticity value set in step S13. Limit processing is performed so that the current background chromaticity value does not become smaller than the background chromaticity lower limit value.
  • the correction value setting unit 35 changes the background portion chromaticity current value to the background portion chromaticity lower limit value.
  • FIG. 7 is a diagram for explaining the color contrast effect.
  • FIG. 8 is a first diagram for explaining the correction of the foreground chromaticity target value.
  • the target value setting unit 34 corrects the foreground chromaticity target value in accordance with the background chromaticity target value.
  • the target value setting unit 34 sets the foreground chromaticity target value to reduce the color contrast effect (color ratio effect, saturation contrast effect) of the foreground chromaticity target value with respect to the background chromaticity target value. correct. Reducing the color contrast effect means reproducing more visually accurate colors in the foreground and background of an image.
  • the foreground chromaticity target value ST1 (aST1, bST1) and the background chromaticity target value AT (aAT, bAT) are set.
  • the chromaticity of the foreground becomes the foreground chromaticity target value ST1 (aST1, bST1)
  • the chromaticity of the background becomes the background chromaticity target value AT (aAT , bAT).
  • the foreground portion displayed on the display unit 16 is changed from the foreground portion target chromaticity value ST1 (aST1, bST1) to the background portion target chromaticity value AT due to the color contrast effect.
  • the chromaticity appears deviated toward the background chromaticity complementary color value AC (aAC, bAC), which is the complementary color of (aAT, bAT). That is, the foreground portion is visually reproduced in a color different from the color set in the foreground portion chromaticity target value ST1 (aST1, bST1).
  • the target value setting unit 34 first sets the hue angle ⁇ 1 of the background complementary color value AC (aAC, bAC) and the hue angle of the foreground target chromaticity value ST1 (aST1, bST1). From the angle .theta.2, the hue angle .theta.3 of the foreground portion chromaticity target value ST2 (aST2, bST2) after the correction for reducing the color contrast effect is obtained using equation (1). However, in equation (1), 0° ⁇
  • the target value setting unit 34 obtains the foreground chromaticity target values ST2 (aST2, bST2) obtained by changing the hue angle to the hue angle ⁇ 3 from the foreground chromaticity target values ST1 (aST1, bST1).
  • the correction value setting unit 35 can obtain the optimum foreground chromaticity target values ST2 (aST2, bST2) that reduce the color contrast effect of the background chromaticity target values AT.
  • FIG. 9 is a second diagram for explaining the correction of the foreground chromaticity target value.
  • the background portion chromaticity current value AN (aAN, bAN) is reduced from the background portion chromaticity target value AT (aAT, bAT) according to the user operation. shall be reduced.
  • the correction value setting portion 35 when the background portion chromaticity current value is changed according to the input operation through the operation portion 18, the correction value setting portion 35 further sets the foreground portion chromaticity target value according to the background portion chromaticity current value. correct.
  • the correction value setting unit 35 calculates the ratio R of the distance from the origin between the background portion chromaticity current value AN (aAN, bAN) and the background portion chromaticity target value AT (aAT, bAT) by the formula ( 2).
  • the correction value setting unit 35 sets the hue angle ⁇ 2 of the foreground chromaticity target value ST1 (aST1, bST1) and the hue angle ⁇ 3 of the foreground chromaticity target value ST2 (aST2, bST2).
  • Hue angle ⁇ 4 of foreground portion chromaticity target value ST3 (aST3, bST3) that internally divides between and is obtained using equation (3).
  • Equation (3) 0 ⁇ k2 ⁇ 1 is satisfied, and k2 is a preset correction coefficient.
  • This hue angle ⁇ 4 is a hue angle for reducing the color contrast effect with respect to the background portion chromaticity current value changed according to the user's operation.
  • the correction value setting unit 35 obtains the foreground chromaticity target values ST3 (aST3, bST3) by changing the hue angle to the hue angle ⁇ 4 from the foreground chromaticity target values ST2 (aST2, bST2). Then, based on the ratio R, the correction value setting unit 35 takes the point that divides the origin and the target foreground chromaticity value ST3 (aST3, bST3), and calculates the target foreground chromaticity value OT on the hue angle ⁇ 4. (aOT, bOT) is obtained using equation (4). However, in Equation (4), 0 ⁇ k3 ⁇ 1 is satisfied, and k3 is a preset correction coefficient.
  • the foreground chromaticity in which the color contrast effect is reduced is obtained as the foreground chromaticity target value OT (aOT, bOT) with respect to the background chromaticity current value changed according to the user operation. That's what it means.
  • step S17 the correction value setting unit 35 sets the foreground portion chromaticity target value OT as the foreground portion chromaticity current value.
  • step S18 the correction value setting unit 35 outputs the current foreground chromaticity value and the current background chromaticity value to the color correction processing unit 24 as parameters (correction values) for color correction processing.
  • the correction value of the chromaticity of the background portion (current background chromaticity value AN) is set in accordance with the user operation, and in step S15, the chromaticity of the background portion (target chromaticity value of the background portion AT ), and in step S16, the foreground color is determined based on the background chromaticity correction value (background chromaticity current value AN). degree correction value (foreground portion chromaticity target value OT) is set.
  • the color correction processing unit 24 performs the color correction processing to generate image data in which the chromaticity of the foreground portion becomes the current foreground chromaticity value and the chromaticity of the background portion becomes the current chromaticity value of the background portion. will generate.
  • FIG. 10 is a diagram explaining an image displayed on the display unit 16. As shown in FIG. As described above, when an input operation for correcting chromaticity is performed via the operation unit 18, the chromaticity of the foreground and background is corrected by the color correction processing unit 24 according to the input operation. Therefore, as shown in FIG. 10, the display control unit 36 controls the image before the color correction processing is performed by the color correction processing unit 24 and the image after the color correction processing is performed by the color correction processing unit 24. is displayed on the display section 16.
  • a pre-correction image display area 51 is provided in which an image before color correction processing is displayed.
  • a post-correction image display area 52 is provided at the lower left of the color correction display image 50 to display the image after the color correction processing.
  • a chromaticity display area 53 is provided in which the chromaticities of the foreground portion and the background portion after color correction processing in the Lab space are displayed.
  • a correction direction display area 54 is provided for displaying in which direction in the Lab space the chromaticity of the foreground before processing is corrected.
  • the user can grasp the details of the color correction processing. For example, by comparing the images displayed in the pre-correction image display area 51 and the post-correction image display area 52, the user can confirm how the foreground and background are changed by the color correction process. can. In addition, the user can compare the image displayed in the post-correction image display area 52 with the chromaticities of the foreground and background displayed in the chromaticity display area 53 to determine the color contrast effect. You can check if it works. Also, the user can confirm how the chromaticity is changed by looking at the correction direction display area 54 .
  • FIG. 11 and 12 are flowcharts showing the flow of processing by the control unit 17 in the second embodiment.
  • the controller 17 obtains a correction value for correcting the lightness (L*) of the foreground and background.
  • the control unit 17 determines whether image data has been acquired in step S21. Then, when the image data is acquired (Yes in step S21), in step S22, the color element information detection unit 31 detects the color component value of each pixel shown in the image data, and uses the detected color component value as Based on this, the color element information of each pixel is detected. In step S22, chromaticity values, that is, lightness and chromaticity values, are obtained as color element information. A process for obtaining a value is performed, and a process for obtaining a chromaticity correction value is not performed.
  • step S23 the area information detection unit 32 detects area information indicating the foreground area, which is the human face, and the background area, which is the background, based on the acquired image data.
  • step S24 the area color setting unit 33 sets the chromaticity values of the foreground and background based on the area information and the color element information. Based on the set chromaticity values, the target value setting unit 34 sets a target value for the brightness of the foreground portion (hereinafter referred to as a target brightness value for the foreground portion) and a target value for the brightness of the background portion. (hereinafter referred to as the target background brightness value).
  • a target brightness target value for the brightness of the foreground portion and a background portion brightness target value for the brightness of the background portion are stored in advance.
  • the optimal brightness for a human face is obtained as the foreground brightness target value.
  • a foreground brightness target value is stored in association with brightness within a predetermined range for a person's face.
  • the brightness of the background portion is within a predetermined range for which the brightness is blank, the brightness is set to blank so that the optimal brightness for the sky is obtained as the background brightness target value.
  • a background portion brightness target value is associated with a brightness within a predetermined range and stored.
  • the ROM of the control unit 17 if the brightness of the background portion is within a predetermined range for the forest, the brightness is set to the forest so that the optimal brightness for the forest is obtained as the background portion brightness target value.
  • a background portion brightness target value is associated with a brightness within a predetermined range and stored.
  • step S25 the correction value setting unit 35 sets the foreground brightness target value obtained in step S24 as the current value of the brightness of the foreground (hereinafter referred to as the current foreground brightness value). Further, the correction value setting unit 35 sets the background portion brightness target value obtained in step S24 as the current value of the background portion brightness (hereinafter referred to as the background portion brightness current value). Note that if it is determined in step S26 that there is no input operation for changing the brightness, in step S38 that will be described later, the current foreground brightness value and the current background brightness value set in step S25 are used for color correction processing. is output to the color correction processing unit 24 as a parameter (correction value) of .
  • the color correction processing unit 24 corrects the foreground so that it has the brightness indicated by the target foreground brightness, and corrects the background to the target background brightness. Image data corrected to have the indicated brightness is generated.
  • the target foreground brightness value may be subjected to the processing of step S35, which will be described later, and the processed value may be used as the current foreground brightness value.
  • step S26 the correction value setting unit 35 determines whether there is an input operation to the operation unit 18 for changing the brightness.
  • the correction value setting unit 35 determines whether or not there is an input operation to the operation unit 18 for changing the brightness.
  • the correction value setting unit 35 acquires the background portion brightness current value in step S27.
  • the target background brightness value is set as the current background brightness value.
  • the value after the processing in step S31 or step S34, which will be described later is set as the background portion brightness current value.
  • the input operation for changing the brightness in the second embodiment can be an input operation to increase the brightness (increase operation) or an input operation to decrease the brightness (decrease operation).
  • the input operation of the second embodiment can be performed in multiple stages for each of the increasing operation and the decreasing operation.
  • step S28 the correction value setting unit 35 determines whether the input operation via the operation unit 18 is an increase operation. If the operation is to increase (Yes in step S28), the correction value setting unit 35 determines in step S29 whether or not the background portion brightness current value is less than the preset background portion brightness upper limit value.
  • the background portion brightness upper limit value is set to a value corresponding to the maximum allowable brightness of the background portion.
  • step S30 the correction value setting unit 35 increases the current background brightness value by a certain amount. Set as current partial chromaticity value. That is, the correction value setting unit 35 changes the current brightness value of the background portion so as to be brighter when an operation to increase the brightness is performed.
  • step S31 the correction value setting unit 35 sets the current background brightness value when the background brightness current value is equal to or higher than the background brightness upper limit value (No in step S29), and the background brightness set in step S30. Limit processing is performed so that the current value does not exceed the background brightness upper limit.
  • the correction value setting unit 35 changes the background portion brightness current value to the background portion brightness upper limit value when the background portion brightness current value is greater than the background portion brightness upper limit value.
  • the correction value setting unit 35 sets the background portion brightness current value to the preset background portion brightness. Determine if it is greater than the lower limit.
  • the background portion brightness lower limit value is set to a value corresponding to the minimum allowable brightness for the background portion.
  • step S33 the correction value setting unit 35 reduces the current background brightness value by a certain amount to Set as the current brightness value. That is, the correction value setting unit 35 changes the background portion brightness current value so as to be darker when a decrease operation is performed.
  • step S34 the correction value setting unit 35 sets the current background brightness value when the background brightness current value is equal to or lower than the background brightness lower limit value (No in step S32), and the background brightness set in step S33. Limit processing is performed so that the current value does not become smaller than the lower limit of background brightness. Here, if the current background brightness value is smaller than the lower limit background brightness value, the correction value setting unit 35 changes the current background brightness value to the lower limit background brightness value.
  • FIG. 13 is a diagram for explaining the brightness contrast effect.
  • FIG. 14 is a diagram for explaining correction of the target foreground brightness value.
  • the target value setting unit 34 corrects the foreground brightness target value according to the background brightness target value.
  • the target value setting unit 34 corrects the foreground brightness target value in order to reduce the brightness contrast effect of the foreground brightness target value with respect to the background brightness target value.
  • the foreground portion brightness target value LST1 and the background portion brightness target value LAT are set.
  • the brightness of the foreground portion becomes the foreground portion brightness target value LST1
  • the brightness of the background portion becomes the background portion brightness target value LAT.
  • the foreground portion displayed on the display unit 16 appears to be higher in brightness than the foreground portion brightness target value LST1 due to the brightness contrast effect, as indicated by LST1′ in FIG. 13, for example. That is, the foreground is visually reproduced with brightness different from the brightness set in the foreground brightness target value LST1.
  • the target value setting unit 34 calculates the corrected foreground brightness target value LST2 with reduced brightness contrast effect from the foreground brightness target value LST1 and the background brightness target value LAT by the formula It is obtained using (5).
  • Equation (5) 0 ⁇ k4 ⁇ 1 is satisfied, and k4 is a preset correction coefficient.
  • the target value setting unit 34 obtains the foreground portion brightness target value LST2 that reduces the brightness contrast effect of the background portion brightness target value LAT.
  • FIG. 15 is a diagram for explaining the correction of the background portion brightness target value LAT and the foreground portion brightness target value LST2.
  • the operating unit 18 is operated to increase, and the current background brightness value LAN is increased from the target background brightness value LAT in accordance with the user's operation.
  • the correction value setting unit 35 further corrects the target foreground brightness value in accordance with the current background brightness value when the background brightness current value is changed according to the input operation through the operation unit 18. .
  • the correction value setting unit 35 obtains the ratio R between the background portion brightness current value LAN and the background portion brightness target value LAT using Equation (6).
  • the correction value setting unit 35 obtains the foreground portion brightness target value LOT that internally divides between the foreground portion brightness target value LST1 and the foreground portion brightness target value LST2 using equation (7).
  • Equation (7) 0 ⁇ k5 ⁇ 1 is satisfied, and k5 is a preset correction coefficient.
  • step S37 the correction value setting unit 35 sets the foreground brightness target value LOT as the foreground brightness current value.
  • the correction value setting unit 35 outputs the current foreground brightness value and the current background brightness value to the color correction processing unit 24 as parameters (correction values) for color correction processing.
  • the correction value of the background lightness (current background lightness value LAN) is set according to the user's operation, and in step S35, based on the lightness of the background (background lightness target value LAT), A target value for the foreground (target foreground brightness value LST2) is set, and in step S36, based on the correction value for the background brightness (current background brightness value LAN), the correction value for the brightness of the foreground (foreground brightness target value LOT) is set.
  • the color correction processing unit 24 performs color correction processing to generate image data in which the brightness of the foreground becomes the current foreground brightness value and the brightness of the background becomes the current background brightness value. Become.
  • the display control unit 36 controls the image before the color correction processing is performed by the color correction processing unit 24 and the image after the color correction processing is performed by the color correction processing unit 24.
  • a color-corrected display image 50 combined with the images may be displayed on the display unit 16 .
  • a brightness display area may be provided in which the brightness of the foreground portion and the background portion after the color correction processing is displayed.
  • the color correction display image 50 instead of the correction direction display area 54, the brightness of the foreground portion after the color correction processing is changed from the brightness of the foreground portion before the color correction processing in which direction.
  • a correction direction display area may be provided to display whether or not the correction has been made.
  • the user can grasp the details of the color correction process, as in the first embodiment. Also, the user can see how the lightness contrast effect works.
  • control unit 17 controls the correction values for correcting the lightness, hue and saturation of the foreground and background, that is, the lightness (L*) and chromaticity (a*) of the foreground and background. , b*) is determined.
  • control unit 17 executes both the processing of the first embodiment shown in FIGS. 4 and 5 and the processing of the second embodiment shown in FIGS. 11 and 12.
  • FIG. 11 and 12 the control unit 17 executes both the processing of the first embodiment shown in FIGS. 4 and 5 and the processing of the second embodiment shown in FIGS. 11 and 12.
  • FIGS. 16 and 17 are flow charts showing the flow of processing by the controller 17 in the fourth embodiment.
  • the control unit 17 obtains correction values for correcting the hue and saturation of the foreground and background in conjunction with blurring of the background.
  • the blurring amount of the background portion can be adjusted by driving the diaphragm mechanism of the drive system 12 according to the background blurring operation on the operation unit 18.
  • the operation for changing the blurring amount can be performed in multiple stages, each of an increasing operation and a multiple decreasing operation.
  • the control unit 17 obtains image data, detects area information and color element information from the image data, and calculates the target foreground chromaticity. and the background chromaticity target value, the foreground chromaticity target value is set as the foreground chromaticity current value, and the background chromaticity target value is set as the background chromaticity current value.
  • step S46 the correction value setting unit 35 determines whether there is an input operation to the operation unit 18 for changing the amount of blurring.
  • the correction value setting unit 35 acquires the background portion chromaticity current value in step S7, and the correction value setting unit 35 acquires the background portion chromaticity current value in step S48. determines whether the input operation via the operation unit 18 is an operation for increasing the amount of blurring. If the operation is to increase the amount of blurring (Yes in step S48), the correction value setting unit 35 decreases the current background chromaticity value in steps S12 to S14.
  • the correction value setting unit 35 sets the current background chromaticity Increase value.
  • FIG. 18 is a diagram illustrating correction of the foreground chromaticity target value.
  • the target value setting unit 34 sets the hue angle ⁇ 3 of the corrected foreground chromaticity target value ST2 (aST2, bST2) for reducing the color contrast effect to the background complementary chromaticity value AC (aAC, bAC). ) and the hue angle ⁇ 2 of the foreground portion chromaticity target value ST1 (aST1, bST1) using Equation (1).
  • the target value setting unit 34 obtains the foreground portion chromaticity target values ST2 (aST2, bST2) by changing the hue angle to the hue angle ⁇ 3 from the foreground portion chromaticity target values ST1 (aST1, bST1).
  • step S56 when the background portion chromaticity current value is changed according to the amount of blur by the input operation via the operation portion 18, the correction value setting portion 35 further adjusts the foreground portion color according to the background portion chromaticity current value. Correct the degree target value. Specifically, the correction value setting unit 35 calculates the ratio R of the distance from the origin between the background portion chromaticity current value AN (aAN, bAN) and the background portion chromaticity target value AT (aAT, bAT) by the formula ( 2).
  • the correction value setting unit 35 sets the hue angle ⁇ 2 of the foreground portion chromaticity target value ST1 (aST1, bST1) and the hue angle ⁇ 3 of the foreground portion chromaticity target value ST2 (aST2, bST2).
  • a hue angle ⁇ 4 of the foreground portion chromaticity target value OT (aOT, bOT) that internally divides between is obtained using equation (3).
  • the correction value setting unit 35 obtains the foreground chromaticity target values OT (aOT, bOT) obtained by changing the hue angle to the hue angle ⁇ 4 from the foreground chromaticity target values ST2 (aST2, bST2).
  • step S17 the correction value setting unit 35 sets the foreground portion chromaticity target value OT as the foreground portion chromaticity current value.
  • step S18 the correction value setting unit 35 outputs the current foreground chromaticity value and the current background chromaticity value to the color correction processing unit 24 as parameters (correction values) for color correction processing.
  • the color correction processing unit 24 performs the color correction processing so that the chromaticity of the foreground becomes the current foreground chromaticity value and the chromaticity of the background becomes the current background chromaticity value according to the amount of blurring. image data is generated.
  • the display control unit 36 displays a color-corrected display image 50 in which the image before color correction processing by the color correction processing unit 24 and the image after color correction processing by the color correction processing unit 24 are combined. Displayed on the display unit 16 .
  • [2-5. Fifth embodiment] 19 and 20 are flow charts showing the flow of processing by the control unit 17 in the fifth embodiment.
  • the control unit 17 obtains correction values for correcting the brightness of the foreground and background in conjunction with blurring of the background.
  • the control unit 17 obtains image data, detects area information and color element information from the image data, and calculates the foreground brightness target value. and the background brightness target value are set, the foreground brightness target value is set as the foreground brightness current value, and the background brightness target value is set as the background brightness current value.
  • step S66 the correction value setting unit 35 determines whether there is an input operation to the operation unit 18 for changing the amount of blurring.
  • the correction value setting unit 35 acquires the background portion brightness current value in step S27, and the correction value setting unit 35 acquires the current brightness value in step S68. , determines whether the input operation via the operation unit 18 is an operation for increasing the amount of blurring. If the operation is to increase the amount of blurring (Yes in step S68), the correction value setting unit 35 decreases the current background brightness value in steps S32 to S34.
  • the correction value setting unit 35 sets the current background brightness value to increase
  • step S35 the target value setting unit 34 calculates a corrected foreground brightness target value LST2 for reducing the brightness contrast effect from the foreground brightness target value LST1 and the background brightness target value LAT, using equation (5).
  • step S36 when the background portion brightness current value is changed in response to an input operation through the operation portion 18, the correction value setting portion 35 uses equations (6) and (7) to determine the background portion brightness current value The foreground brightness target value is further corrected according to .
  • step S37 the correction value setting unit 35 sets the foreground brightness target value LOT as the foreground brightness current value.
  • the correction value setting unit 35 outputs the current foreground brightness value and the current background brightness value to the color correction processing unit 24 as parameters (correction values) for color correction processing.
  • the color correction processing unit 24 performs the color correction processing, so that the brightness of the foreground becomes the current foreground brightness value, and the brightness of the background becomes the current background brightness value.
  • the display control unit 36 displays a color-corrected display image 50 in which the image before color correction processing by the color correction processing unit 24 and the image after color correction processing by the color correction processing unit 24 are combined. Displayed on the display unit 16 .
  • control unit 17 controls the correction values for correcting the lightness, hue, and saturation of the foreground and background, that is, the lightness (L*) of the foreground and background, according to the amount of blurring. and a correction value for correcting chromaticity (a*, b*).
  • control section 17 executes both the processing of the fourth embodiment shown in FIGS. 16 and 17 and the processing of the fifth embodiment shown in FIGS. 19 and 20.
  • FIG. thus, in the sixth embodiment, it is possible to reduce the color contrast effect and brightness contrast effect according to the amount of blurring.
  • the embodiment is not limited to the specific examples described above, and various modifications can be made.
  • the foreground Added correction values for color elements after calculating the correction value of the background color element (hue, saturation or lightness), the foreground Added correction values for color elements.
  • the correction value of the other color element may be obtained based on the correction value of the other color element.
  • the imaging apparatus 1 obtains the chromaticity correction value of the foreground portion, and then obtains the chromaticity correction value of the background portion based on the chromaticity correction value of the foreground portion. You may do so.
  • step S101 the control unit 17 determines whether image data has been acquired. Then, when the image data is acquired (Yes in step S101), in step S102, the color element information detection unit 31 detects the color component value of each pixel shown in the image data, and uses the detected color component value as Based on this, the color element information of each pixel is detected.
  • step S103 the area information detection unit 32 detects area information indicating a foreground area, which is a human face, and a background area, which is a background, based on the acquired image data.
  • step S104 the target value setting unit 34 sets a target foreground chromaticity value and a target background chromaticity value based on the area information and the color element information.
  • step S105 the correction value setting unit 35 sets the foreground chromaticity target value obtained in step S104 as the current foreground chromaticity value. Further, the correction value setting unit 35 sets the background portion chromaticity target value set in step S104 as the background portion chromaticity current value.
  • step S106 the correction value setting unit 35 determines whether there is an input operation to the operation unit 18 for changing the chromaticity. Then, if there is an input operation for changing the chromaticity (Yes in step S106), the correction value setting unit 35 acquires the current foreground chromaticity value in step S107.
  • step S108 the correction value setting unit 35 determines whether the input operation via the operation unit 18 is an increase operation. If the operation is to increase (Yes in step S108), the correction value setting unit 35 determines in step S109 whether the current foreground chromaticity value is less than the preset foreground chromaticity upper limit value. do.
  • step S109 if the current foreground chromaticity value is less than the foreground chromaticity upper limit value (Yes in step S109), the correction value setting unit 35 increases the current foreground chromaticity value in step S110. The incremented value is set as the current foreground chromaticity value. Further, in step S111, the correction value setting unit 35 performs limit processing so that the current foreground chromaticity value does not exceed the upper limit foreground chromaticity value.
  • step S112 the correction value setting unit 35 sets the current foreground chromaticity value to the preset foreground Determine whether the chromaticity is greater than the lower limit value. If the current foreground chromaticity value is greater than the lower limit value of foreground chromaticity (Yes in step S112), the correction value setting unit 35 decreases the current foreground chromaticity value by a certain amount in step S113. The decremented value is set as the background chromaticity current value. Further, in step S114, the correction value setting unit 35 performs limit processing so that the current foreground chromaticity value does not become smaller than the lower limit foreground chromaticity value.
  • step S115 the target value setting unit 34 corrects the background portion chromaticity target value according to the foreground portion chromaticity target value.
  • the target value setting unit 34 corrects the background chromaticity target value in order to reduce the color contrast effect of the background chromaticity target value with respect to the foreground chromaticity target value.
  • step S116 when the foreground chromaticity current value is changed according to the input operation through the operation unit 18, the correction value setting unit 35 further sets the background chromaticity target value according to the foreground chromaticity current value. is corrected. Note that in steps S115 and S116, the same processes as in steps S15 and S16 are performed.
  • step S117 the correction value setting unit 35 sets the background portion chromaticity target value as the background portion chromaticity current value.
  • step S118 the correction value setting unit 35 outputs the current foreground chromaticity value and the current background chromaticity value to the color correction processing unit 24 as parameters (correction values) for color correction processing.
  • the correction values are obtained after the initial target values of the foreground and background are obtained.
  • the correction values may be obtained without obtaining the initial target values, that is, using the values of the color elements indicated in the image data as they are.
  • hue, saturation, and lightness are expressed using the Lab space as color elements, and correction values for any of the hue, saturation, and lightness in the Lab space I tried to ask for
  • color factors are not limited to hue, saturation and lightness in the Lab space.
  • it may be each value of R, G, and B in the RGB space, or hue, saturation, and brightness in the HSV space.
  • one control unit 17 includes a color element information detection unit 31, an area information detection unit 32, an area color setting unit 33, and a target value setting unit 34. , a correction value setting unit 35 and a display control unit 36.
  • each functional unit may function with one or more processors.
  • the values of the color elements of the foreground and background are obtained as the correction values.
  • a coefficient or the like that is multiplied to the original value may be used instead of the direct value.
  • the correction direction display area 54 functions as an operation bar and is circled in the drawing. You may make it increase or decrease a color element by operating the icon displayed.
  • the operation unit 18 can also be used to increase or decrease color elements by inputting numerical values on a touch panel, by pressing buttons, or by using direction keys. An input method or the like may be used.
  • the imaging device 1 as an image processing device is provided with the imaging element 13, and the imaging element 13 generates image data.
  • the image processing apparatus 100 may not include the optical system 11, the drive system 12, and the image sensor 13, unlike the imaging apparatus 1.
  • the control unit 17 may acquire image data captured by another imaging device via the input/output unit 19 and perform the above-described processing on the image data.
  • Image data may be read and acquired from an external recording medium, and the above-described processing may be performed on the image data.
  • the image pickup device 13 picks up an image and outputs image data, and one of the foreground portion and the background portion included in the image data is based on the color element of the other.
  • a target value setting unit 34 for setting a target value for a color element for setting a target value for a color element
  • a correction value for one of the color elements according to a user's input operation for setting a correction value obtained by correcting the target value.
  • the correction value of the other color element is set by reducing the color contrast effect due to the correction of one of the color elements. It is possible. Therefore, it is possible to reduce the color contrast effect of the foreground portion and the background portion with respect to the color elements changed according to the user operation, and to reproduce the foreground portion and the background portion with visually accurate colors.
  • the input operation may be an instruction to increase or decrease the value of the color element.
  • the correction value setting unit 35 may set correction values for at least one of hue, saturation, and lightness of the foreground portion and the background portion.
  • the input operation is an instruction to change the blurring amount of the background portion
  • the correction value setting unit 35 changes the color elements of the foreground portion and the background portion according to the blurring amount. It is conceivable to set a correction value. Accordingly, it is possible to set the correction value of the foreground color factor that reduces the color contrast effect in accordance with the change of the background color factor by changing the blurring amount of the background part. Therefore, it is possible to reduce the color contrast effect of the foreground portion and the background portion with respect to the amount of blurring changed according to the user's operation, and reproduce the foreground portion and the background portion with visually accurate colors.
  • the correction value setting unit 35 may set correction values for at least one of the hue, saturation, and lightness of the foreground portion and the background portion according to the amount of blurring. be done.
  • the hue, saturation, and lightness of the background is corrected according to the amount of blurring of the background, the hue, saturation, and lightness of the foreground with reduced color contrast effect can be obtained.
  • the correction value setting unit 35 may set the target value of one color element based on the complementary color of the other color element. This makes it possible to set a target value for one color component that reduces the contrast effect of the other color. Therefore, the effect of color contrast with respect to the complementary color of one of the foreground and background can be reduced, and the foreground and background can be reproduced with visually accurate colors.
  • the correction value setting unit 35 sets the correction value for the target value of one color element according to the user's input operation, and the target value and the correction value of the one color element It is conceivable to set the correction value of the other color element based on the ratio of . This makes it possible to set a target value for one color component that reduces the contrast effect of the other color. Therefore, since the correction values for the target values of the foreground and background are set, the optimum color elements can be used in the foreground and background.
  • a correction processing unit color correction processing unit 24 that corrects the color elements of the foreground portion and the background portion based on the correction values obtained by the correction value setting unit 35; and a display control unit 36 that performs display control to display the image corrected by the correction processing unit on the display unit.
  • the display control unit 36 may display the correction values of the color elements of the foreground and background portions obtained by the correction value setting unit 35 . This allows the user to confirm the correction values of the color elements of the foreground and background. Therefore, by checking the correction value, it is possible for the user to check to what extent the color contrast effect has occurred.
  • the display control unit 36 controls the image before being corrected by the correction processing unit (color correction processing unit 24) and the image corrected by the correction processing unit (color correction processing unit 24). It is conceivable to display the image after being processed on the display unit. This allows the user to check the images before and after the correction by comparing them. Therefore, an input operation can be performed while checking the image before and after correction, and an image of color elements desired by the user can be generated.
  • the display control unit 36 displays the hue and saturation of the foreground and background portions of the image corrected by the correction processing unit (color correction processing unit 24) on the display unit. It is conceivable to display This allows the user to check the hue and saturation of the foreground and background after correction. Therefore, the input operation can be performed while confirming the corrected hue and saturation of the foreground and background, and an image of the color elements desired by the user can be generated.
  • the above-described program according to the present technology includes processing for setting a target value for one of the foreground and background color elements included in image data based on the other color element,
  • a program for causing an image processing apparatus to execute a process of setting a correction value of one color element and setting a correction value obtained by correcting a target value of the other color element based on the set correction value of one color element. is.
  • Such a program facilitates realization of the imaging apparatus 1 of the present embodiment.
  • a program can be stored in advance in a recording medium built in a device such as a computer or in a ROM or the like in a microcomputer having a CPU.
  • a removable recording medium such as a semiconductor memory, memory card, optical disk, magneto-optical disk, or magnetic disk.
  • a removable recording medium can be provided as so-called package software.
  • the image processing device and the image processing method according to the present technology can be implemented using a computer device and widely provided.
  • the target value setting unit 34 for setting a target value for one of the foreground part and the background part included in the image data based on the other color element; a correction value setting unit 35 for setting the correction value of the one color element in response to the input operation of , and setting the correction value obtained by correcting the target value of the other color element based on the set correction value of the one color element; , provided.
  • Such an image processing device can also provide the same effects as the imaging device according to the present technology described above.
  • the present technology can also adopt the following configuration.
  • An imaging device comprising: (2) The imaging device according to (1), wherein the input operation is an instruction to increase or decrease the value of the color element.
  • the imaging apparatus according to (1) or (2), wherein the correction value setting unit sets correction values for at least one of hue, saturation, and lightness of the foreground portion and the background portion.
  • the input operation is an instruction to change the amount of blurring of the background portion;
  • the correction value setting unit The imaging apparatus according to any one of (1) to (3), wherein correction values for color elements of the foreground portion and the background portion are set according to the amount of blurring.
  • the correction value setting unit The imaging device according to any one of (1) to (5), wherein a target value of the other hue is set based on a complementary color of the one hue. (7) The correction value setting unit A correction value for the target value of the one color element is set according to a user's input operation, and a correction value for the other color element is set based on a ratio between the target value and the correction value of the one color element.
  • the imaging device according to any one of (1) to (6).
  • a correction processing unit that corrects the color elements of the foreground portion and the background portion based on the correction values obtained by the correction value setting unit; a display control unit that performs display control for displaying an image corrected by the correction processing unit on a display unit;
  • the imaging device according to any one of (1) to (7).
  • the display control unit (8) wherein the correction values of the color elements of the foreground portion and the background portion obtained by the correction value setting section are displayed.
  • the display control unit The imaging apparatus according to (8) or (9), wherein the color image before correction by the correction processing section and the color image after correction by the correction processing section are displayed on the display section.
  • the display control unit The imaging apparatus according to any one of (8) to (10), wherein the display unit displays the hue and saturation of the foreground portion and the background portion in the color image corrected by the correction processing unit.
  • (13) a process of setting a target value for one of the foreground and background color elements included in the image data based on the other color element; a process of setting a correction value of the one color element according to a user's input operation, and setting a correction value obtained by correcting the target value of the other color element based on the set correction value of the one color element; is executed by the image processing device.
  • a target value setting unit that sets a target value for one of the foreground and background color elements included in the image data based on the other color element
  • a correction value setting unit that sets a correction value for the one color element according to a user's input operation, and sets a correction value obtained by correcting the target value for the other color element based on the set correction value for the one color element
  • imaging device 13 imaging device 16 display unit 17 control unit 18 operation unit 31 color element information detection unit 32 area information detection unit 33 area color setting unit 34 target value setting unit 35 correction value setting unit 36 display control unit

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

撮像装置は、画像を撮像して画像データを出力する撮像素子と、画像データに含まれる前景部および背景部のうちの一方の色要素に基づいて他方の色要素の目標値を設定する目標値設定部と、ユーザの入力操作に応じて一方の色要素の補正値を設定し、設定した一方の色要素の補正値に基づいて他方の目標値を補正した補正値を設定する補正値設定部と、を備える。

Description

撮像装置、画像処理方法、プログラム、画像処理装置
 本技術は撮像装置、画像処理方法、プログラム、画像処理装置に関し、特に、画像の色補正を行う技術に関する。
 カラー画像においては、例えば画像の前景部が背景部によってその色の見え方が異なってしまう対比現象(対比効果)が発生することがある。そこで、画像処理装置では、人間の視覚特性として背景部の画像によって生じる前景部の色みの変化(対比現象)を補正し、視覚的に正確な色を再現可能とするものが提案されている(例えば、特許文献1参照)。
特開2001-292333公報
 ところで、画像処理装置では、ユーザの入力操作に応じて、カラー画像の色を変更する場合がある。このような場合、ユーザの入力操作に応じて前景部および背景部の色が変更されるため、特許文献1の技術では、ユーザの入力操作に応じた背景部の色に対して、色の対比現象を考慮して前景部の色を補正することができなかった。
 そこで本技術は、ユーザの入力操作に応じて色を変更する際に、色の対比効果を低減した色で前景部および背景部を再現することを目的とする。
 本技術に係る撮像装置は、画像を撮像して画像データを出力する撮像素子と、前記画像データに含まれる前景部および背景部のうちの一方の色要素に基づいて他方の色要素の目標値を設定する目標値設定部と、ユーザの入力操作に応じて前記一方の色要素の補正値を設定し、設定した前記一方の色要素の補正値に基づいて前記他方の目標値を補正した補正値を設定する補正値設定部と、を備えるものである。
 これにより、前景部および背景部の一方の色要素をユーザの入力操作に応じて補正したときに、一方の色要素の補正による色の対比効果を考慮した他方の色要素の補正値を設定することが可能である。
 上記した本技術に係る撮像装置においては、前記入力操作は、前記色要素の値を増加または減少させる指示であることが考えられる。
 これにより、前景部および背景部の一方の色要素をユーザの入力操作に応じて増加または減少させる補正を行ったときに、一方の色要素の補正による色の対比効果を低減した他方の色要素の補正値を設定することが可能である。
 上記した本技術に係る撮像装置においては、前記補正値設定部は、前記前景部および前記背景部の色相、彩度および明度の少なくともいずれかの補正値を設定することが考えられる。
 これにより、前景部および背景部の一方の色相、彩度および明度の少なくともいずれかをユーザの入力操作に応じて補正したときに、一方の色要素の補正による色の対比効果を低減した他方の色相、彩度および明度の少なくともいずれかの補正値を設定することが可能である。
 上記した本技術に係る撮像装置においては、前記入力操作は、前記背景部のぼかし量を変更させる指示であり、前記補正値設定部は、前記ぼかし量に応じて、前記前景部および前記背景部の色要素の補正値を設定することが考えられる。
 これにより、背景部のぼかし量を変更することによる背景部の色要素の変更に応じて、色の対比効果を低減した前景部の色要素の補正値を設定することが可能である。
 上記した本技術に係る撮像装置においては、前記補正値設定部は、前記ぼかし量に応じて、前記前景部および前記背景部の色相、彩度および明度の少なくともいずれかの補正値を設定することが考えられる。
 これにより、背景部のぼかし量に応じて背景部の一方の色相、彩度および明度の少なくともいずれかの補正を行ったときに、色の対比効果を低減した前景部の色相、彩度および明度の少なくともいずれかの補正値を設定することが可能である。
 上記した本技術に係る撮像装置においては、前記補正値設定部は、前記一方の色相の補色に基づいて他方の色相の目標値を設定することが考えられる。
 これにより、一方の色の対比効果を低減した他方の色要素の目標値を設定することが可能である。
 上記した本技術に係る撮像装置においては、前記補正値設定部は、ユーザの入力操作に応じて前記一方の色要素の目標値に対する補正値を設定し、前記一方の色要素の目標値と補正値との比率に基づいて、前記他方の色要素の補正値を設定することが考えられる。
 これにより、一方の色の対比効果を低減した他方の色要素の目標値を設定することが可能である。
 上記した本技術に係る撮像装置においては、前記補正値設定部によって求められた補正値に基づいて、前記前景部および前記背景部の色要素を補正する補正処理部と、
 前記補正処理部によって補正された画像を表示部に表示させる表示制御を行う表示制御部と、を備えることが考えられる。
 これにより、前景部および背景部の色要素が補正された画像をユーザに確認させることが可能である。
 上記した本技術に係る撮像装置においては、前記表示制御部は、前記補正値設定部により求められた前記前景部および前記背景部の色要素の補正値を表示することが考えられる。
 これにより、前景部および背景部の色要素の補正値をユーザに確認させることが可能である。
 上記した本技術に係る撮像装置においては、前記表示制御部は、前記補正処理部により補正される前の画像、および、前記補正処理部により補正された後の画像を前記表示部に表示させることが考えられる。
 これにより、補正前後の画像を対比させてユーザに確認させることが可能である。
 上記した本技術に係る撮像装置においては、前記表示制御部は、前記補正処理部により補正された後の画像における前記前景部および前記背景部の色相および彩度を前記表示部に表示させることが考えられる。
 これにより、補正後の前景部および背景部の色相および彩度をユーザに確認させることが可能である。
 上記した本技術に係る画像処理方法においては、画像データに含まれる前景部および背景部のうちの一方の色要素に基づいて他方の色要素の目標値を設定し、ユーザの入力操作に応じて前記一方の色要素の補正値を設定し、設定した前記一方の色要素の補正値に基づいて前記他方の目標値を補正した補正値を設定するものである。
 このような画像処理方法によっても、上記した本技術に係る撮像装置と同様の作用が得られる。
 上記した本技術に係るプログラムにおいては、画像データに含まれる前景部および背景部のうちの一方の色要素に基づいて他方の色要素の目標値を設定する処理と、ユーザの入力操作に応じて前記一方の色要素の補正値を設定し、設定した前記一方の色要素の補正値に基づいて前記他方の目標値を補正した補正値を設定する処理と、を画像処理装置に実行させるものである。
 このようなプログラムによっても、上記した本技術に係る撮像装置と同様の作用が得られる。
 上記した本技術に係る画像処理装置においては、画像データに含まれる前景部および背景部のうちの一方の色要素に基づいて他方の色要素の目標値を設定する目標値設定部と、ユーザの入力操作に応じて前記一方の色要素の補正値を設定し、設定した前記一方の色要素の補正値に基づいて前記他方の目標値を補正した補正値を設定する補正値設定部と、を備えるものである。
 このような画像処理装置によっても、上記した本技術に係る撮像装置と同様の作用が得られる。
実施形態の撮像装置の構成を説明する図である。 信号処理部の機能的な構成を説明する図である。 制御部の機能的な構成を説明する図である。 第1実施例における制御部の処理の流れを示すフローチャートである。 第1実施例における制御部の処理の流れを示すフローチャートである。 色度を変更するための入力操作を説明する図である。 色の対比効果を説明する図である。 前景部色度目標値の補正を説明する第1の図である。 前景部色度目標値の補正を説明する第2の図である。 表示部に表示される画像を説明する図である。 第2実施例における制御部の処理の流れを示すフローチャートである。 第2実施例における制御部の処理の流れを示すフローチャートである。 明度対比効果を説明する図である。 前景部明度目標値の補正を説明する図である。 前景部明度目標値と背景部明度目標値の補正を説明する図である。 第4実施例における制御部の処理の流れを示すフローチャートである。 第4実施例における制御部の処理の流れを示すフローチャートである。 前景部色度目標値の補正を説明する図である。 第5実施例における制御部の処理の流れを示すフローチャートである。 第5実施例における制御部の処理の流れを示すフローチャートである。 変形例における制御部の処理の流れを示すフローチャートである。 変形例における制御部の処理の流れを示すフローチャートである。 変形例における画像処理装置の構成を説明する図である。
 以下、実施の形態を次の順序で説明する。
<1.撮像装置の構成>
<2.実施例>
 [2-1.第1実施例]
 [2-2.第2実施例]
 [2-3.第3実施例]
 [2-4.第4実施例]
 [2-5.第5実施例]
 [2-6.第6実施例]
<3.撮像装置の他の構成例>
<4.まとめ>
<5.本技術>
<1.撮像装置の構成>
 図1は、実施形態の撮像装置1の構成を説明する図である。なお、図1において、画像データに関する経路を実線矢印で示し、制御信号等の画像データ以外の信号に関する経路を破線矢印で示す。
 図1に示すように、撮像装置1は、光学系11、駆動系12、撮像素子13、信号処理部14、記録部15、表示部16、制御部17、操作部18および入出力部19を備える。
 光学系11は、被写体からの光を撮像素子13に集光するための複数のレンズにより構成される。駆動系12は、光学系11のズームレンズおよびフォーカスレンズを移動させる駆動機構、シャッタ機構、絞り機構等を備える。駆動系12内のこれらの機構は、制御部17からの制御信号に基づいて駆動される。
 撮像素子13は、例えば、CCD(Charge Coupled Device)型、CMOS(Complementary Metal Oxide Semiconductor)型等の固体撮像素子であり、カラー画像(以下では、単に画像と表記することがある)を撮像する。撮像素子13は、画素が2次元配置された画素アレイ部を備える。画素アレイ部には、R(赤)、G(緑)およびB(青)のカラーフィルタがベイヤ配列等で配置される。撮像素子13は、制御部17からの制御信号に基づいて、各画素で光電変換された画像信号を画像データとして読み出して信号処理部14に出力する。
 図2は、信号処理部14の機能的な構成を説明する図である。図2に示すように、信号処理部14は、デモザイク処理部21、ホワイトバランス処理部22、ガンマ補正処理部23および色補正処理部24として機能する。
 デモザイク処理部21は、撮像素子13から入力された画像データに対してデモザイク処理を施す。撮像素子13から入力された画像データには、各画素について、色成分(R、G、B)のうち一色の値しか含まれていない。そこで、デモザイク処理部21は、デモザイク処理において、各画素において含まれていない色成分の値を、周囲の画素の色成分の値を用いて補間することにより、各画素について全ての色成分の値が含まれる画像データを生成する。
 ホワイトバランス処理部22は、デモザイク処理部21によって生成された画像データに対してホワイトバランス処理を施す。ホワイトバランス処理部22は、ホワイトバランス処理において、制御部17からの制御信号により指定されるパラメータに基づいて、画像データにおける各画素の色成分(R、G、B)の値をそれぞれ独立して補正することにより、撮影環境の光の色の影響が補正された画像データを生成する。
 ガンマ補正処理部23は、ホワイトバランス処理部22によって生成された画像データに対してガンマ補正処理を施す。ガンマ補正処理部23は、ガンマ補正処理において、制御部17からの制御信号により指定されるパラメータに基づいて、各画素の信号レベルに応じてコントラストを補正し、コントラストが補正された画像データを生成する。
 色補正処理部24は、ガンマ補正処理部23によって生成された画像データに対して色補正処理を施し、色補正処理が施された画像データを記録部15および表示部16に出力する。色補正処理部24は、色補正処理において、制御部17からの制御信号により指定されるパラメータ(補正値)に基づいて、各画素の色相、彩度、明度を補正し、各画素の色相、彩度、明度が補正された画像データを生成する。なお、制御部17から色補正処理部24に入力されるパラメータ(補正値)について詳しくは後述する。
 記録部15は、例えば、磁気テープ、光ディスク、半導体メモリ等の可搬型記録媒体のドライブ装置、HDD(Hard Disk Drive)等であり、色補正処理部24から入力された画像データを記録する。なお、記録部15は、記録された画像データに付随した情報を制御部17に供給することも可能である。
 表示部16は、液晶ディスプレイ(Liquid Crystal Display)または有機ELディスプレイ(Organic Light Emitting Diode)等であり、信号処理部14から入力された画像データに基づく画像等を表示する。
 制御部17は、例えばCPU(Central Processing Unit)、ROM(Read Only Memory)、および、RAM(Random Access Memory)を有するマイクロコンピュータを備えて構成され、ROMに記憶されたプログラムを読み出して実行することで、撮像装置1を制御する。ROMには、制御部17で実行されるプログラムや、それらのプログラムの実行時に選択される制御データなどの各種データが予め記憶されている。RAMは、制御部17が各種処理を実行する際のワークエリアとして必要なプログラムやデータを一時的に記憶する。なお、制御部17について詳しくは後述する。
 操作部18は、押下式のボタン、表示部16の表面に設けられたタッチパネル等であり、ユーザの入力操作を受け付ける。
 入出力部19は、例えば通信装置を有し、外部機器との間で有線または無線によるデータ通信を行う。
 制御部17は、操作部18に対するユーザの入力操作に基づいて、フォーカス制御、シャッタ制御および絞り制御を実行させるためのパラメータを求める。また、制御部17は、入力操作に基づいて、ホワイトバランス処理、ガンマ補正処理および色補正処理に対するパラメータを設定する。そして、制御部17は、これらのパラメータが含まれる制御信号を適宜、駆動系12、撮像素子13、信号処理部14に出力する。
<2.実施例>
 以下では、色補正処理部24に出力するパラメータ(補正値)を決定し、色補正処理部24で色補正された画像データに基づく画像を表示部16に表示するための制御部17の処理を説明する。
 図3は、制御部17の機能的な構成を説明する図である。図3に示すように、制御部17は、色要素情報検出部31、領域情報検出部32、領域色設定部33、目標値設定部34、補正値設定部35および表示制御部36として機能する。
 色要素情報検出部31は、色補正処理部24により色補正処理が行われる前の画像データを取得し、その画像データに示される各画素の色成分の値を検出する。そして、色要素情報検出部31は、検出した色成分の値に基づいて各画素のコントラスト値、輝度値、色度値(色相、彩度、明度)等を色要素情報として検出する。ここでは、色要素情報検出部31は、RGB空間で表される各画素の色成分(R、G、B)の値を、CIE L*a*b*空間(以下では、単にLab空間と表記する)で表される色度値(L*、a*、b*)に変換する。なお、色度値(L*、a*、b*)では、明度が明度(L*)によって示され、色相および彩度が色度(a*、b*)によって示されることになる。
 領域情報検出部32は、取得された画像データに基づいて、例えば人の顔である前景部の領域、および、背景である背景部の領域を示す領域情報を検出する。例えば、領域情報検出部32は、公知の顔検出処理を実行することにより人の顔の領域を前景部の領域として検出するとともに、背景としてよく使われる空や森などの色度値範囲内の画素群を背景部の領域として検出するようにすればよい。なお、画像データから前景部および背景部を検出する方法は公知の様々な方法を用いることができる。また、実施形態では、前景部として人の顔を例に挙げて説明するが、前景部は、例えば人の全身、人以外の動物等、人の顔以外の所定のオブジェクトであってもよい。
 領域色設定部33は、領域情報検出部32から取得した領域情報と、色要素情報検出部31から取得した色要素情報とに基づいて、前景部と背景部それぞれの色要素として色度値を設定する。なお、色要素は、画像において色を表現するための要素である。ここでは、領域色設定部33は、領域情報検出部32によって前景部として検出された画素についての色度値の平均値を前景部の色度値として設定するとともに、背景部として検出された画素についての色度値の平均値を背景部の色度値として設定する。
 目標値設定部34は、領域色設定部33により設定された前景部および背景部の色度値に基づいて、前景部および背景部の色度値(色要素)の目標値を設定する。
 なお、ここで設定される目標値は、初期の目標値であり、色補正処理が施される際に、前景部および背景部がそれぞれ独立して最適な値となるように設定される値である。
 また、目標値設定部34は、前景部および背景部のうちの一方の目標値に基づいて他方の目標値を補正(設定)する。
 なお、補正後の目標値は互いに関係性(対比効果を低減させる関係性)を有し、例えば、背景部が所定の目標値である場合はそれに合わせて前景部の目標値が最適な値(対比効果を低減させる値)に補正される。
 補正値設定部35は、目標値設定部34によって設定された目標値、および、ユーザの入力操作に基づいて、前景部および背景部のうちの一方の色要素の補正値を設定し、設定した一方の色要素の補正値に基づいて他方の目標値を補正した補正値を設定する。具体的には、補正値設定部35は、ユーザの入力操作が色度値を増加させる操作なのか減少させる操作なのかを判定し、その判定結果をもとに前景部および背景部の補正値を設定する。
 なお、補正値とは、設定された目標値に対してユーザの操作によってさらに補正を行う場合に、ユーザの操作に基づいて算出・設定される値である。
 表示制御部36は、表示部16を制御し、補正値設定部35によって求められたパラメータに基づく画像等の表示制御を行う。
 以下では、主に、制御部17が行う処理について、具体的な例(第1実施例から第6実施例)を挙げて説明する。なお、具体的な例では、背景部の目標値に応じて前景部の目標値を補正、設定しているが、前景部の目標値に応じて背景部の目標値を補正、設定するようにしてもよい。
[2-1.第1実施例]
 図4および図5は、第1実施例における制御部17の処理の流れを示すフローチャートである。第1実施例では、制御部17は、前景部および背景部の色相および彩度を補正するための補正値、すなわち、前景部および背景部の色度(a*、b*)を補正するための補正値を求める。
 図4に示すように、処理を開始すると、ステップS1で制御部17は、画像データが取得されたかを判定する。そして、画像データが取得されると(ステップS1でYes)、ステップS2で色要素情報検出部31は、画像データに示される各画素の色成分の値を検出し、検出した色成分の値に基づいて各画素の色要素情報を検出する。なお、ステップS2では、色要素情報として、色度値すなわち明度および色度の各値を取得することになるが、第1実施例では、以下のステップにおいて、色要素情報のうちの色度の補正値を求める処理が行われ、明度の補正値を求める処理は行われない。
 ステップS3で領域情報検出部32は、取得した画像データに基づいて、人の顔である前景部の領域、および、背景である背景部の領域を示す領域情報を検出する。
 ステップS4で領域色設定部33は、領域情報と色要素情報とに基づいて、前景部と背景部それぞれの色度値を設定する。そして、目標値設定部34は、設定された色度値に基づいて、前景部の色度についての目標値(以下、前景部色度目標値と表記する)、および、背景部の色度についての目標値(以下、背景部色度目標値と表記する)を設定する。
 ここで、制御部17のROMには、設定される前景部の色度に対する前景部色度目標値、および、設定される背景部の色度に対する背景部色度目標値が予め記憶されている。
 例えば、制御部17のROMには、前景部の色度が人の顔とされる所定の範囲内であれば、人の顔として最適とされる色度が前景部色度目標値として求められるように、人の顔とされる所定の範囲内の色度に対する前景部色度目標値が対応付けて記憶されている。また、制御部17のROMには、背景部の色度が空とされる所定の範囲内であれば、空として最適とされる色度が背景部色度目標値として求められるように、空とされる所定の範囲内の色度に対する背景部色度目標値が対応付けて記憶されている。また、制御部17のROMには、背景部の色度が森とされる所定の範囲内であれば、森として最適とされる色度が背景部色度目標値として求められるように、森とされる所定の範囲内の色度に対する背景部色度目標値が対応付けて記憶されている。なお、これらの前景部色度目標値および背景部色度目標値は一例であり、制御部17のROMには、様々な範囲内の色度に対する前景部色度目標値および背景部色度目標値がそれぞれ対応付けられて記憶されている。
 したがって、目標値設定部34は、前景部および背景部の色度値に基づいて、最適とされる初期の前景部色度目標値および背景部色度目標値を一義的に設定することになる。
 ステップS5で補正値設定部35は、ステップS4で求められた前景部色度目標値を、前景部の色度の現在値(以下、前景部色度現在値と表記する)として設定する。また、補正値設定部35は、ステップS4で求められた背景部色度目標値を、背景部の色度の現在値(以下、背景部色度現在値と表記する)として設定する。
 なお、後述するステップS6において色度を変更するための入力操作がないと判定された場合、後述するステップS18において、ステップS5で設定された前景部色度現在値および背景部色度現在値が色補正処理のパラメータ(補正値)として色補正処理部24に出力されることになる。したがって、色補正処理部24は、色度を変更するための入力操作がない場合、前景部の色度については前景部色度目標値が示す色度となるように補正し、背景部の色度については背景部色度目標値が示す色度となるように補正した画像データを生成することになる。なお、このような場合に、前景部色度目標値に対して後述するステップS15の処理を施し、処理が施された値を前景部色度現在値としてもよい。
 ステップS6で補正値設定部35は、色度を変更するための操作部18に対する入力操作があったかを判定する。なお、ここでは、補正値設定部35は、操作部18から入力される入力情報に基づいて、色度を変更するための操作部18に対する入力操作の有無を判定している。
 そして、色度を変更するための入力操作があった場合(ステップS6でYes)、ステップS7で補正値設定部35は、背景部色度現在値を取得する。なお、同一の画像データに対して初めてステップS7の処理を実行する場合には、背景部色度現在値として背景部色度目標値が設定されている。また、同一の画像データに対して色度を変更する入力操作が既にあった場合には、背景部色度現在値として後述するステップS11またはステップS14の処理後の値が設定されることになる。
 図6は、色度を変更するための入力操作を説明する図である。なお、図6~図9は、Lab空間においてL*方向に直交する断面図を示し、横軸正方向を赤方向、横軸負方向を緑方向、縦軸正方向を?方向、縦軸負方向を青方向とする。また、図6~図9は、径方向を彩度方向とし、周方向を色相方向とする。
 ここで、第1実施例における色度を変更するための入力操作は、背景部色度目標値ATまたは背景部色度現在値に対して、図6の矢印D1で示すように彩度を上げる操作(増加させる操作)、または、図6の矢印D2で示すように彩度を下げる操作(減少させる操作)を行うことが可能である。また、第1実施例の入力操作は、増加させる操作および減少させる操作をそれぞれ複数段階行うことが可能である。
 図4に戻り、ステップS8で補正値設定部35は、操作部18を介した入力操作が増加させる操作であるかを判定する。そして、増加させる操作であった場合(ステップS8でYes)、ステップS9で補正値設定部35は、背景部色度現在値が、予め設定された背景部色度上限値未満であるかを判定する。ここで、背景部色度上限値は、背景部として許容可能な最大限の鮮やかさに対応する値に設定されている。
 そして、背景部色度現在値が背景部色度上限値未満である場合(ステップS9でYes)、ステップS10で補正値設定部35は、背景部色度現在値に対して増加させる側(図6の矢印D1で示す方向)に一定量増加させた値を背景部色度現在値として設定する。すなわち、補正値設定部35は、増加させる操作があった場合、背景部色度現在値をより鮮やかになるよう変更する。
 また、ステップS11で補正値設定部35は、背景部色度現在値が背景部色度上限値以上である場合(ステップS9でNo)における背景部色度現在値、および、ステップS10で設定した背景部色度現在値が、背景部色度上限値より大きくならないようにするリミット処理を行う。ここでは、補正値設定部35は、背景部色度現在値が背景部色度上限値より大きい場合に、背景部色度現在値を背景部色度上限値に変更する。
 一方、増加させる操作でなかった場合(ステップS8でNo)、すなわち、減少させる操作であった場合、ステップS12で補正値設定部35は、背景部色度現在値が予め設定された背景部色度下限値より大きいかを判定する。ここで、背景部色度下限値は、背景部として許容可能な最小限の鮮やかさに対応する値に設定されている。
 そして、背景部色度現在値が背景部色度下限値より大きい場合(ステップS12でYes)、ステップS13で補正値設定部35は、背景部色度現在値に対して減少させる側(図6の矢印D2で示す方向)に一定量減少させた値を背景部色度現在値として設定する。すなわち、補正値設定部35は、減少させる操作があった場合、背景部色度現在値をよりぼやけた色(薄い色)になるよう変更する。
 また、ステップS14で補正値設定部35は、背景部色度現在値が背景部色度下限値以下である場合(ステップS12でNo)における背景部色度現在値、および、ステップS13で設定した背景部色度現在値が、背景部色度下限値より小さくならないようにするリミット処理を行う。ここでは、補正値設定部35は、背景部色度現在値が背景部色度下限値より小さい場合に、背景部色度現在値を背景部色度下限値に変更する。
 図7は、色の対比効果を説明する図である。図8は、前景部色度目標値の補正を説明する第1の図である。
 図5に示すように、ステップS15で目標値設定部34は、背景部色度目標値に応じて前景部色度目標値を補正する。ここでは、目標値設定部34は、背景部色度目標値に対する前景部色度目標値の色の対比効果(色相対比効果、彩度対比効果)を低減するために、前景部色度目標値を補正する。なお、色の対比効果を低減するとは、画像において前景部および背景部について視覚的により正確な色を再現することを意味する。
 ここで、図7に示すように、前景部色度目標値ST1(aST1,bST1)および背景部色度目標値AT(aAT,bAT)が設定されているとする。このように設定された画像を表示部16に表示すると、前景部の色度は前景部色度目標値ST1(aST1,bST1)となり、背景部の色度は背景部色度目標値AT(aAT,bAT)となる。
 しかしながら、表示部16に表示された前景部は、図7中ST1’で示すように、色の対比効果により、前景部色度目標値ST1(aST1,bST1)から、背景部色度目標値AT(aAT,bAT)の補色である背景部色度補色値AC(aAC,bAC)側にずれた色度で見える。すなわち、前景部は、前景部色度目標値ST1(aST1,bST1)に設定されている色とは異なる色で視覚的に再現される。
 そこで、図8に示すように、目標値設定部34は、まず、背景部色度補色値AC(aAC,bAC)の色相角θ1と、前景部色度目標値ST1(aST1,bST1)の色相角θ2とから、式(1)を用いて、色の対比効果を低減した補正後の前景部色度目標値ST2(aST2,bST2)の色相角θ3を求める。
Figure JPOXMLDOC01-appb-M000001
 ただし、式(1)において、0°<|θ2-θ1|<180°、0°≦k1≦90°を満たし、k1は事前に設定された補正係数である。
 そして、目標値設定部34は、前景部色度目標値ST1(aST1,bST1)から、色相角を色相角θ3に変更した前景部色度目標値ST2(aST2,bST2)を求める。これにより、補正値設定部35は、背景部色度目標値ATによる色の対比効果を低減した最適な前景部色度目標値ST2(aST2,bST2)を求めることができる。
 図9は、前景部色度目標値の補正を説明する第2の図である。なお、図9では、操作部18に減少させる操作があり、背景部色度現在値AN(aAN,bAN)は背景部色度目標値AT(aAT,bAT)から彩度がユーザ操作に応じて減少されたものとする。
 ステップS16で補正値設定部35は、操作部18を介した入力操作に応じて背景部色度現在値が変更された場合、その背景部色度現在値に応じてさらに前景部色度目標値を補正する。
 具体的には、補正値設定部35は、背景部色度現在値AN(aAN,bAN)と背景部色度目標値AT(aAT,bAT)との原点からの距離の比率Rを、式(2)を用いて求める。
Figure JPOXMLDOC01-appb-M000002
 そして、補正値設定部35は、図9に示すように、前景部色度目標値ST1(aST1,bST1)の色相角θ2と、前景部色度目標値ST2(aST2,bST2)の色相角θ3との間を内分する前景部色度目標値ST3(aST3,bST3)の色相角θ4を、式(3)を用いて求める。
Figure JPOXMLDOC01-appb-M000003
ただし、式(3)において、0≦k2≦1を満たし、k2は予め設定された補正係数である。
 この色相角θ4は、ユーザ操作に応じて変更された背景部色度現在値に対して、色の対比効果を低減するための色相角である。
 さらに、補正値設定部35は、前景部色度目標値ST2(aST2,bST2)から、色相角を色相角θ4に変更した前景部色度目標値ST3(aST3,bST3)を求める。そして、補正値設定部35は、比率Rに基づいて、原点と前景部色度目標値ST3(aST3,bST3)との内分点を取り、色相角θ4上にある前景部色度目標値OT(aOT,bOT)を、式(4)を用いて求める。
Figure JPOXMLDOC01-appb-M000004
ただし、式(4)において、0≦k3≦1を満たし、k3は予め設定された補正係数である。
 これにより、ユーザ操作に応じて変更された背景部色度現在値に対して、色の対比効果が低減された前景部の色度が前景部色度目標値OT(aOT,bOT)として求められたことになる。
 その後、ステップS17で補正値設定部35は、前景部色度目標値OTを前景部色度現在値として設定する。また、ステップS18で補正値設定部35は、前景部色度現在値および背景部色度現在値を色補正処理のパラメータ(補正値)として色補正処理部24に出力する。つまり、ステップS8~ステップS14でユーザ操作に応じて背景部の色度の補正値(背景部色度現在値AN)が設定され、ステップS15で背景部の色度(背景部色度目標値AT)に基づいて前景部の目標値(前景部色度目標値ST2)が設定され、ステップS16で背景部の色度の補正値(背景部色度現在値AN)に基づいて、前景部の色度の補正値(前景部色度目標値OT)が設定されることになる。
 これにより、色補正処理部24は、色補正処理を施すことにより、前景部の色度が前景部色度現在値となり、背景部の色度が背景部色度現在値となった画像データを生成することになる。
 図10は、表示部16に表示される画像を説明する図である。上記したように、操作部18を介して色度を補正する入力操作がなされると、入力操作に応じて前景部および背景部の色度が色補正処理部24によって補正される。
 そこで、図10に示すように、表示制御部36は、色補正処理部24によって色補正処理が施される前の画像、および、色補正処理部24によって色補正処理が施された後の画像が合わされた色補正表示画像50を表示部16に表示する。
 例えば、色補正表示画像50の左上には、色補正処理が施される前の画像が表示される補正前画像表示領域51が設けられる。また、色補正表示画像50の左下には、色補正処理が施された後の画像が表示される補正後画像表示領域52が設けられる。
 また、色補正表示画像50の右側には、Lab空間における、色補正処理が施された後の前景部および背景部の色度が表示される色度表示領域53が設けられる。
 さらに、色補正表示画像50における、補正前画像表示領域51および色度表示領域53の間には、色補正処理部24によって色補正処理が施された後の前景部の色度が、色補正処理が施される前の前景部の色度から、Lab空間においてどの方向に補正されたかを表示する補正方向表示領域54が設けられる。
 ユーザは、表示部16に表示された色補正表示画像50を確認することにより、色補正処理の詳細を把握することが可能となる。例えば、ユーザは、補正前画像表示領域51および補正後画像表示領域52に表示された画像を比較することで、色補正処理によってどのように前景部および背景部が変更されたかを確認することができる。また、ユーザは、補正後画像表示領域52に表示された画像と、色度表示領域53に表示された前景部および背景部の色度とを比較することで、色の対比効果がどのように作用するかを確認することができる。
 また、ユーザは、補正方向表示領域54を見ることで、色度がどのように変更されたかを確認することができる。
[2-2.第2実施例]
 図11および図12は、第2実施例における制御部17の処理の流れを示すフローチャートである。第2実施例では、制御部17は、前景部および背景部の明度(L*)を補正するための補正値を求める。
 図11に示すように、処理を開始すると、ステップS21で制御部17は、画像データが取得されたかを判定する。そして、画像データが取得されると(ステップS21でYes)、ステップS22で色要素情報検出部31は、画像データに示される各画素の色成分の値を検出し、検出した色成分の値に基づいて各画素の色要素情報を検出する。なお、ステップS22では、色要素情報として、色度値すなわち明度および色度の各値を取得することになるが、第2実施例では、以下のステップにおいて、色要素情報のうちの明度の補正値を求める処理が行われ、色度の補正値を求める処理は行われない。
 ステップS23で領域情報検出部32は、取得された画像データに基づいて、人の顔である前景部の領域、および、背景である背景部の領域を示す領域情報を検出する。
 ステップS24で領域色設定部33は、領域情報と色要素情報とに基づいて、前景部と背景部それぞれの色度値を設定する。そして、目標値設定部34は、設定された色度値に基づいて、前景部の明度についての目標値(以下、前景部明度目標値と表記する)、および、背景部の明度についての目標値(以下、背景部明度目標値と表記する)を求める。
 ここで、制御部17のROMには、前景部の明度に対する前景部明度目標値、および、背景部の明度に対する背景部明度目標値が予め記憶されている。
 例えば、制御部17のROMには、前景部の明度が人の顔とされる所定の範囲内であれば、人の顔として最適とされる明度が前景部明度目標値として求められるように、人の顔とされる所定の範囲内の明度に対する前景部明度目標値が対応付けて記憶されている。また、制御部17のROMには、背景部の明度が空とされる所定の範囲内であれば、空として最適とされる明度が背景部明度目標値として求められるように、空とされる所定の範囲内の明度に対する背景部明度目標値が対応付けて記憶されている。また、制御部17のROMには、背景部の明度が森とされる所定の範囲内であれば、森として最適とされる明度が背景部明度目標値として求められるように、森とされる所定の範囲内の明度に対する背景部明度目標値が対応付けて記憶されている。なお、これらの前景部明度目標値および背景部明度目標値は一例であり、制御部17のROMには、様々な範囲内の色度に対する前景部明度目標値および背景部明度目標値がそれぞれ対応付けられて記憶されている。
 したがって、目標値設定部34は、前景部および背景部の色度値に基づいて、最適とされる初期の前景部明度目標値および背景部明度目標値を一義的に設定することになる。
 ステップS25で補正値設定部35は、ステップS24で求められた前景部明度目標値を、前景部の明度の現在値(以下、前景部明度現在値と表記する)として設定する。また、補正値設定部35は、ステップS24で求められた背景部明度目標値を、背景部の明度の現在値(以下、背景部明度現在値と表記する)として設定する。
 なお、後述するステップS26において明度を変更するための入力操作がないと判定された場合、後述するステップS38において、ステップS25で設定された前景部明度現在値および背景部明度現在値が色補正処理のパラメータ(補正値)として色補正処理部24に出力されることになる。したがって、色補正処理部24は、明度を変更するための入力操作がない場合、前景部については前景部明度目標値が示す明度となるように補正し、背景部については背景部明度目標値が示す明度となるように補正した画像データを生成することになる。なお、このような場合に、前景部明度目標値に対して後述するステップS35の処理を施し、処理が施された値を前景部明度現在値としてもよい。
 ステップS26で補正値設定部35は、明度を変更するための操作部18に対する入力操作があったかを判定する。なお、ここでは、補正値設定部35は、操作部18から入力される入力情報に基づいて、明度を変更するための操作部18に対する入力操作の有無を判定している。
 そして、明度を変更するための入力操作があった場合(ステップS26でYes)、ステップS27で補正値設定部35は、背景部明度現在値を取得する。なお、同一の画像データに対して初めてステップS27の処理を実行する場合には、背景部明度現在値として背景部明度目標値が設定されている。また、同一の画像データに対して明度を変更する入力操作が既にあった場合には、背景部明度現在値として後述するステップS31またはステップS34の処理後の値が設定されることになる。
 なお、第2実施例における明度を変更するための入力操作は、明度を上げる入力操作(増加させる操作)、または、明度を下げる入力操作(減少させる操作)を行うことが可能である。また、第2実施例の入力操作は、増加させる操作および減少させる操作をそれぞれ複数段階行うことが可能である。
 ステップS28で補正値設定部35は、操作部18を介した入力操作が増加させる操作であるかを判定する。そして、増加させる操作であった場合(ステップS28でYes)、ステップS29で補正値設定部35は、背景部明度現在値が、予め設定された背景部明度上限値未満であるかを判定する。ここで、背景部明度上限値は、背景部として許容可能な最大限の明るさに対応する値に設定されている。
 そして、背景部明度現在値が背景部明度上限値未満である場合(ステップS29でYes)、ステップS30で補正値設定部35は、背景部明度現在値に対して一定量増加させた値を背景部色度現在値として設定する。すなわち、補正値設定部35は、増加させる操作があった場合、背景部明度現在値をより明るくなるよう変更する。
 また、ステップS31で補正値設定部35は、背景部明度現在値が背景部明度上限値以上である場合(ステップS29でNo)における背景部明度現在値、および、ステップS30で設定した背景部明度現在値が、背景部明度上限値より大きくならないようにするリミット処理を行う。ここでは、補正値設定部35は、背景部明度現在値が背景部明度上限値より大きい場合に、背景部明度現在値を背景部明度上限値に変更する。
 一方、増加させる操作でなかった場合(ステップS28でNo)、すなわち、減少させる操作であった場合、ステップS32で補正値設定部35は、背景部明度現在値が、予め設定された背景部明度下限値より大きいかを判定する。ここで、背景部明度下限値は、背景部として許容可能な最小限の明るさに対応する値に設定されている。
 そして、背景部明度現在値が背景部明度下限値より大きい場合(ステップS32でYes)、ステップS33で補正値設定部35は、背景部明度現在値に対して一定量減少させた値を背景部明度現在値として設定する。すなわち、補正値設定部35は、減少させる操作があった場合、背景部明度現在値をより暗くなるよう変更する。
 また、ステップS34で補正値設定部35は、背景部明度現在値が背景部明度下限値以下である場合(ステップS32でNo)における背景部明度現在値、および、ステップS33で設定した背景部明度現在値が、背景部明度下限値より小さくならないようにするリミット処理を行う。ここでは、補正値設定部35は、背景部明度現在値が背景部明度下限値より小さい場合に、背景部明度現在値を背景部明度下限値に変更する。
 図13は、明度対比効果を説明する図である。図14は、前景部明度目標値の補正を説明する図である。
 ステップS35で目標値設定部34は、背景部明度目標値に応じて前景部明度目標値を補正する。ここでは、目標値設定部34は、背景部明度目標値に対する前景部明度目標値の明度対比効果を低減するために、前景部明度目標値を補正する。
 ここで、図13に示すように、前景部明度目標値LST1および背景部明度目標値LATが設定されているとする。このように設定された画像を表示部16に表示すると、前景部の明度は前景部明度目標値LST1となり、背景部の明度は背景部明度目標値LATとなる。
 しかしながら、表示部16に表示された前景部は、例えば図13中LST1’で示すように、明度対比効果により、前景部明度目標値LST1よりも明度が高くなる方にずれて見える。すなわち、前景部は、前景部明度目標値LST1に設定されている明るさとは異なる明るさで視覚的に再現される。
 そこで、図14に示すように、目標値設定部34は、前景部明度目標値LST1と背景部明度目標値LATとから、明度対比効果を低減した補正後の前景部明度目標値LST2を、式(5)を用いて求める。
Figure JPOXMLDOC01-appb-M000005
 ただし、式(5)において、0<k4<1を満たし、k4は事前に設定された補正係数である。
 これにより、目標値設定部34は、背景部明度目標値LATによる明度対比効果を低減した前景部明度目標値LST2を求めたことになる。
 図15は、背景部明度目標値LATと前景部明度目標値LST2の補正を説明する図である。なお、図15では、操作部18に増加させる操作があり、背景部明度現在値LANは背景部明度目標値LATから明度がユーザ操作に応じて増加されたものとする。
 ステップS36で補正値設定部35は、操作部18を介した入力操作に応じて背景部明度現在値が変更された場合、その背景部明度現在値に応じてさらに前景部明度目標値を補正する。
 具体的には、補正値設定部35は、背景部明度現在値LANと背景部明度目標値LATの比率Rを、式(6)を用いて求める。
Figure JPOXMLDOC01-appb-M000006
 そして、補正値設定部35は、前景部明度目標値LST1と前景部明度目標値LST2との間を内分する前景部明度目標値LOTを、式(7)を用いて求める。
Figure JPOXMLDOC01-appb-M000007
ただし、式(7)において、0≦k5≦1を満たし、k5は予め設定された補正係数である。
 その後、ステップS37で補正値設定部35は、前景部明度目標値LOTを前景部明度現在値として設定する。また、ステップS38で補正値設定部35は、前景部明度現在値および背景部明度現在値を色補正処理のパラメータ(補正値)として色補正処理部24に出力する。つまり、ステップS28~ステップS34でユーザ操作に応じて背景部の明度の補正値(背景部明度現在値LAN)が設定され、ステップS35で背景部の明度(背景部明度目標値LAT)に基づいて前景部の目標値(前景部明度目標値LST2)が設定され、ステップS36で背景部の明度の補正値(背景部明度現在値LAN)に基づいて、前景部の明度の補正値(前景部明度目標値LOT)が設定されることになる。
 これにより、色補正処理部24は、色補正処理を施すことにより、前景部の明度が前景部明度現在値となり、背景部の明度が背景部明度現在値となった画像データを生成することになる。
 なお、表示制御部36は、第1実施例と同様に、色補正処理部24によって色補正処理が施される前の画像、および、色補正処理部24によって色補正処理が施された後の画像が合わされた色補正表示画像50を表示部16に表示するようにしてもよい。この場合、色補正表示画像50では、色度表示領域53に代えて、色補正処理が施された後の前景部および背景部の明度が表示される明度表示領域が設けられるようにしてもよい。また、色補正表示画像50では、補正方向表示領域54に代えて、色補正処理が施された後の前景部の明度が、色補正処理が施される前の前景部の明度から、どの方向に補正されたかを表示する補正方向表示領域が設けられるようにしてもよい。
 これにより、ユーザは、第1実施例と同様に、色補正処理の詳細を把握することが可能となる。また、ユーザは、明度対比効果がどのように作用するかを確認することができる。
[2-3.第3実施例]
 第3実施例では、制御部17は、前景部および背景部の明度、色相および彩度を補正するための補正値、すなわち、前景部および背景部の明度(L*)および色度(a*、b*)を補正するための補正値を求める。
 第3実施例では、制御部17は、図4および図5で示した第1実施例の処理と、図11および図12で示した第2実施例の処理とを両方とも実行する。これにより、第3実施例では、明度、色相および彩度の対比効果を低減することが可能となる。
[2-4.第4実施例]
 図16および図17は、第4実施例における制御部17の処理の流れを示すフローチャートである。なお、第4実施例では、第1実施例と同様に、色相、彩度および明度のうち、色相および彩度を補正し、明度は補正しない。また、図16および図17では、第1実施例と同一の処理について同一符号を付して、詳しい説明は省略する。
 第4実施例では、制御部17は、背景ぼかしに連動して、前景部および背景部の色相および彩度を補正するための補正値を求める。
 ここで、撮像装置1では、操作部18に対する背景ぼかし操作に応じて駆動系12の絞り機構を駆動させることで、背景部のぼかし量を調整することができる。具体的には、ぼかし量を増加させる操作が操作部18を介して入力されると、制御部17は、絞り機構を開いてF値を小さくする。また、ぼかし量を減少させる操作が操作部18を介して入力されると、制御部17は、絞り機構を閉じてF値を大きくする。
 なお、ぼかし量を変更する操作は、増加させる操作、および、減少させる操作をそれぞれ複数段階行うことが可能である。
 図16及び図17に示すように、処理を開始すると、ステップS1~ステップS5で制御部17は、画像データを取得すると、画像データから領域情報および色要素情報を検出し、前景部色度目標値および背景部色度目標値を設定し、前景部色度目標値を前景部色度現在値として設定するとともに、背景部色度目標値を背景部色度現在値として設定する。
 ステップS46で補正値設定部35は、ぼかし量を変更するための操作部18に対する入力操作があったかを判定する。
 そして、ぼかし量を変更するための入力操作があった場合(ステップS46でYes)、ステップS7で補正値設定部35は、背景部色度現在値を取得し、ステップS48で補正値設定部35は、操作部18を介した入力操作がぼかし量を増加させる操作であるかを判定する。そして、ぼかし量を増加させる操作であった場合(ステップS48でYes)、ステップS12~ステップS14で補正値設定部35は、背景部色度現在値を減少させる。
 一方、ぼかし量を増加させる操作でなかった場合(ステップS48でNo)、すなわち、ぼかし量を減少させる操作であった場合、ステップS9~ステップS11で補正値設定部35は、背景部色度現在値を増加させる。
 図18は、前景部色度目標値の補正を説明する図である。
 ステップS15で目標値設定部34は、色対比効果を低減するための補正後の前景部色度目標値ST2(aST2,bST2)の色相角θ3を、背景部色度補色値AC(aAC,bAC)の色相角θ1と、前景部色度目標値ST1(aST1,bST1)の色相角θ2とから式(1)を用いて求める。そして、目標値設定部34は、前景部色度目標値ST1(aST1,bST1)から、色相角を色相角θ3に変更した前景部色度目標値ST2(aST2,bST2)を求める。
 ステップS56で補正値設定部35は、操作部18を介した入力操作によってぼかし量に応じて背景部色度現在値が変更された場合、その背景部色度現在値に応じてさらに前景部色度目標値を補正する。
 具体的には、補正値設定部35は、背景部色度現在値AN(aAN,bAN)と背景部色度目標値AT(aAT,bAT)との原点からの距離の比率Rを、式(2)を用いて求める。
 そして、補正値設定部35は、比率Rに応じて、前景部色度目標値ST1(aST1,bST1)の色相角θ2と、前景部色度目標値ST2(aST2,bST2)の色相角θ3との間を内分する前景部色度目標値OT(aOT,bOT)の色相角θ4を、式(3)を用いて求める。
 さらに、補正値設定部35は、前景部色度目標値ST2(aST2,bST2)から、色相角を色相角θ4に変更した前景部色度目標値OT(aOT,bOT)を求める。
 その後、ステップS17で補正値設定部35は、前景部色度目標値OTを前景部色度現在値として設定する。また、ステップS18で補正値設定部35は、前景部色度現在値および背景部色度現在値を色補正処理のパラメータ(補正値)として色補正処理部24に出力する。
 これにより、色補正処理部24は、色補正処理を施すことにより、ぼかし量に応じて、前景部の色度が前景部色度現在値となり、背景部の色度が背景部色度現在値となった画像データを生成することになる。
 表示制御部36は、色補正処理部24によって色補正処理が施される前の画像、および、色補正処理部24によって色補正処理が施された後の画像が合わされた色補正表示画像50を表示部16に表示する。
[2-5.第5実施例]
 図19および図20は、第5実施例における制御部17の処理の流れを示すフローチャートである。なお、第5実施例では、第2実施例と同様に、色相、彩度および明度のうち、明度を補正し、色相および彩度は補正しない。また、図19および図20では、第2実施例と同一の処理について同一符号を付して、詳しい説明は省略する。
 第5実施例では、制御部17は、背景ぼかしに連動して、前景部および背景部の明度を補正するための補正値を求める。
 図19および図20に示すように、処理を開始すると、ステップS21~ステップS25で制御部17は、画像データを取得すると、画像データから領域情報および色要素情報を検出し、前景部明度目標値および背景部明度目標値を設定し、前景部明度目標値を前景部明度現在値として設定するとともに、背景部明度目標値を背景部明度現在値として設定する。
 ステップS66で補正値設定部35は、ぼかし量を変更するための操作部18に対する入力操作があったかを判定する。
 そして、ぼかし量を変更するための入力操作があった場合(ステップS66でYes)、ステップS27で補正値設定部35は、背景部明度現在値を取得し、ステップS68で補正値設定部35は、操作部18を介した入力操作がぼかし量を増加させる操作であるかを判定する。そして、ぼかし量を増加させる操作であった場合(ステップS68でYes)、ステップS32~ステップS34で補正値設定部35は、背景部明度現在値を減少させる。
 一方、ぼかし量を増加させる操作でなかった場合(ステップS68でNo)、すなわち、ぼかし量を減少させる操作であった場合、ステップS29~ステップS31で補正値設定部35は、背景部明度現在値を増加させる。
 ステップS35で目標値設定部34は、前景部明度目標値LST1と背景部明度目標値LATとから、明度対比効果を低減するための補正後の前景部明度目標値LST2を、式(5)を用いて求める。
 ステップS36で補正値設定部35は、操作部18を介した入力操作に応じて背景部明度現在値が変更された場合、式(6)および式(7)を用いて、背景部明度現在値に応じてさらに前景部明度目標値を補正する。
 その後、ステップS37で補正値設定部35は、前景部明度目標値LOTを前景部明度現在値として設定する。また、ステップS38で補正値設定部35は、前景部明度現在値および背景部明度現在値を色補正処理のパラメータ(補正値)として色補正処理部24に出力する。
 これにより、色補正処理部24は、色補正処理を施すことにより、ぼかし量に応じて、前景部の明度が前景部明度現在値となり、背景部の明度が背景部明度現在値となった画像データを生成することになる。
 表示制御部36は、色補正処理部24によって色補正処理が施される前の画像、および、色補正処理部24によって色補正処理が施された後の画像が合わされた色補正表示画像50を表示部16に表示する。
[2-6.第6実施例]
 第6実施例では、制御部17は、ぼかし量に応じて、前景部および背景部の明度、色相および彩度を補正するための補正値、すなわち、前景部および背景部の明度(L*)および色度(a*、b*)を補正するための補正値を求める。
 第6実施例では、制御部17は、図16および図17で示した第4実施例の処理と、図19および図20で示した第5実施例の処理とを両方とも実行する。これにより、第6実施例では、ぼかし量に応じた色対比効果および明度対比効果を低減することが可能となる。
<3.撮像装置の他の構成例>
 なお、実施形態としては上記により説明した具体例に限定されるものではなく、多様な変形例としての構成を採り得るものである。
 例えば、上記第1実施例~第6実施例では、背景部の色要素(色相、彩度または明度)の補正値を求めた後に、背景部の色要素の補正値に応じて、前景部の色要素の補正値を求めるようにした。しかしながら、背景部または前景部の一方の色要素の補正値を求めた後に、一方の色要素の補正値に基づいて他方の色要素の補正値を求めるようにすればよい。
 例えば、撮像装置1は、第1実施例の変形例として、前景部の色度の補正値を求めた後に、前景部の色度の補正値に基づいて背景部の色度の補正値を求めるようにしてもよい。
 図21および図22は、変形例における制御部17の処理の流れを示すフローチャートである。
 図21に示すように、処理を開始すると、ステップS101で制御部17は、画像データが取得されたかを判定する。そして、画像データが取得されると(ステップS101でYes)、ステップS102で色要素情報検出部31は、画像データに示される各画素の色成分の値を検出し、検出した色成分の値に基づいて各画素の色要素情報を検出する。ステップS103で領域情報検出部32は、取得した画像データに基づいて、人の顔である前景部の領域、および、背景である背景部の領域を示す領域情報を検出する。
 ステップS104で目標値設定部34は、領域情報と色要素情報とに基づいて、前景部色度目標値および背景部色度目標値を設定する。ステップS105で補正値設定部35は、ステップS104で求められた前景部色度目標値を前景部色度現在値として設定する。また、補正値設定部35は、ステップS104で設定された背景部色度目標値を背景部色度現在値として設定する。
 ステップS106で補正値設定部35は、色度を変更するための操作部18に対する入力操作があったかを判定する。そして、色度を変更するための入力操作があった場合(ステップS106でYes)、ステップS107で補正値設定部35は、前景部色度現在値を取得する。
 ステップS108で補正値設定部35は、操作部18を介した入力操作が増加させる操作であるかを判定する。そして、増加させる操作であった場合(ステップS108でYes)、ステップS109で補正値設定部35は、前景部色度現在値が、予め設定された前景部色度上限値未満であるかを判定する。
 そして、前景部色度現在値が前景部色度上限値未満である場合(ステップS109でYes)、ステップS110で補正値設定部35は、前景部色度現在値に対して増加させる側に一定量増加させた値を前景部色度現在値として設定する。また、ステップS111で補正値設定部35は、前景部色度現在値が前景部色度上限値より大きくならないようにするリミット処理を行う。
 一方、増加させる操作でなかった場合(ステップS108でNo)、すなわち、減少させる操作であった場合、ステップS112で補正値設定部35は、前景部色度現在値が、予め設定された前景部色度下限値より大きいかを判定する。そして、前景部色度現在値が前景部色度下限値より大きい場合(ステップS112でYes)、ステップS113で補正値設定部35は、前景部色度現在値に対して減少させる側に一定量減少させた値を背景部色度現在値として設定する。また、ステップS114で補正値設定部35は、前景部色度現在値が前景部色度下限値より小さくならないようにするリミット処理を行う。
 ステップS115で目標値設定部34は、前景部色度目標値に応じて背景部色度目標値を補正する。ここでは、目標値設定部34は、前景部色度目標値に対する背景部色度目標値の色の対比効果を低減するために、背景部色度目標値を補正する。
 ステップS116で補正値設定部35は、操作部18を介した入力操作に応じて前景部色度現在値が変更された場合、その前景部色度現在値に応じてさらに背景部色度目標値を補正する。なお、ステップS115およびステップS116では、ステップS15およびステップS16と同様の処理が行われる。
 その後、ステップS117で補正値設定部35は、背景部色度目標値を背景部色度現在値として設定する。また、ステップS118で補正値設定部35は、前景部色度現在値および背景部色度現在値を色補正処理のパラメータ(補正値)として色補正処理部24に出力する。
 また、上記第1実施例~第6実施例および変形例では、前景部および背景部の初期の目標値を求めた後に、補正値を求めるようにした。しかしながら、前景部および背景部について、初期の目標値を求めることなく、すなわち、画像データに示される色要素の値をそのまま用いて補正値を求めるようにしてもよい。
 また、上記第1実施例~第6実施例および変形例では、色要素として、Lab空間を用いて色相、彩度および明度を表し、Lab空間における色相、彩度および明度のいずれかの補正値を求めるようにした。しかしながら、色要素は、Lab空間における色相、彩度および明度に限られない。例えば、RGB空間におけるR、G、Bのそれぞれの値、HSV空間における色相、彩度および明度等であってもよい。
 また、上記第1実施例~第6実施例および変形例では、1つの制御部17(プロセッサ)が色要素情報検出部31、領域情報検出部32、領域色設定部33、目標値設定部34、補正値設定部35および表示制御部36として機能するようにした。しかしながら、各機能部は、1または複数のプロセッサにより機能するようにしてもよい。
 また、上記第1実施例~第6実施例および変形例では、補正値として前景部および背景部の色要素の値を求めるようにしたが、補正値は、前景部および背景部の色要素の直接的な値でなく、元の値に積算される係数等であってもよい。
 また、上記第1実施例~第6実施例および変形例では、操作部18が表示部16の前面に設けられたタッチパネルである場合、補正方向表示領域54が操作バーとして機能し、図中丸で表示されているアイコンを操作することで色要素の増加または減少させるようにしてもよい。また、操作部18は、色要素の増加または減少させる操作として、上記のようなバーを用いる以外にも、数値をタッチパネル上で入力する方法や、ボタン操作で数値を入力する方法、方向キーで入力する方法等であってもよい。
 また、上記第1実施例~第6実施例および変形例では、画像処理装置としての撮像装置1は撮像素子13を備え、撮像素子13によって画像データを生成するようにした。しかしながら、図23に示すように、画像処理装置100は、撮像装置1と比べ、光学系11、駆動系12および撮像素子13を備えないようにしてもよい。
 この場合、制御部17は、他の撮像装置で撮像された画像データを入出力部19を介して取得し、その画像データに対して上記した処理を行うようにしてもよく、また、USB等の外部記録媒体から画像データを読み込んで取得し、その画像データに対して上記した処理を行うようにしてもよい。
<4.まとめ>
 上記のように実施形態の撮像装置1においては、画像を撮像して画像データを出力する撮像素子13と、画像データに含まれる前景部および背景部のうちの一方の色要素に基づいて他方の色要素の目標値を設定する目標値設定部34と、ユーザの入力操作に応じて前記一方の色要素の補正値を設定し、設定した前記一方の色要素の補正値に基づいて前記他方の目標値を補正した補正値を設定する補正値設定部35と、を備えるものである。
 これにより、前景部および背景部の一方の色要素をユーザの入力操作に応じて補正したときに、一方の色要素の補正による色の対比効果を低減した他方の色要素の補正値を設定することが可能である。
 したがって、ユーザ操作に応じて変更された色要素に対して前景部および背景部の色の対比効果を低減し、視覚的に正確な色で前景部および背景部を再現することができる。
 上記した本技術に係る画像処理装置においては、入力操作は、色要素の値を増加または減少させる指示であることが考えられる。
 これにより、前景部および背景部の一方の色要素をユーザの入力操作に応じて増加または減少させる補正を行ったときに、一方の色要素の補正による色の対比効果を低減した他方の色要素の補正値を求めることが可能である。
 したがって、ユーザ操作に応じて増加または減少された色要素に対して前景部および背景部の色の対比効果を低減し、視覚的に正確な色で前景部および背景部を再現することができる。
 上記した本技術に係る画像処理装置においては、補正値設定部35は、前景部および背景部の色相、彩度および明度の少なくともいずれかの補正値を設定することが考えられる。
 これにより、前景部および背景部の一方の色相、彩度および明度の少なくともいずれかをユーザの入力操作に応じて補正したときに、一方の色要素の補正による色の対比効果を低減した他方の色相、彩度および明度の少なくともいずれかの補正値を設定することが可能である。
 したがって、ユーザ操作に応じて変更された色相、彩度および明度の少なくともいずれかに対して前景部および背景部の色の対比効果を低減し、視覚的に正確な色で前景部および背景部を再現することができる。
 上記した本技術に係る画像処理装置においては、入力操作は、背景部のぼかし量を変更させる指示であり、補正値設定部35は、ぼかし量に応じて、前景部および背景部の色要素の補正値を設定することが考えられる。
 これにより、背景部のぼかし量を変更することによる背景部の色要素の変更に応じて、色の対比効果を低減した前景部の色要素の補正値を設定することが可能である。
 したがって、ユーザ操作に応じて変更されたぼかし量に対して前景部および背景部の色の対比効果を低減し、視覚的に正確な色で前景部および背景部を再現することができる。
 上記した本技術に係る画像処理装置においては、補正値設定部35は、ぼかし量に応じて、前景部および背景部の色相、彩度および明度の少なくともいずれかの補正値を設定することが考えられる。
 これにより、背景部のぼかし量に応じて背景部の一方の色相、彩度および明度の少なくともいずれかの補正を行ったときに、色の対比効果を低減した前景部の色相、彩度および明度の少なくともいずれかの補正値を設定することが可能である。
 したがって、ユーザ操作に応じて変更されたぼかし量に基づいて変更された色相、彩度および明度の少なくともいずれかに対して前景部および背景部の色の対比効果を低減し、視覚的に正確な色で前景部および背景部を再現することができる。
 上記した本技術に係る画像処理装置においては、補正値設定部35は、一方の色要素の補色に基づいて他方の色要素の目標値を設定することが考えられる。
 これにより、一方の色の対比効果を低減した他方の色要素の目標値を設定することが可能である。
 したがって、前景部および背景部の一方の補色に対する色の対比効果を低減し、視覚的に正確な色で前景部および背景部を再現することができる。
 上記した本技術に係る画像処理装置においては、補正値設定部35は、ユーザの入力操作に応じて一方の色要素の目標値に対する補正値を設定し、一方の色要素の目標値と補正値との比率に基づいて、他方の色要素の補正値を設定することが考えられる。
 これにより、一方の色の対比効果を低減した他方の色要素の目標値を設定することが可能である。
 したがって、前景部および背景部の目標値に対する補正値を設定することになるため、前景部および背景部において最適とされる色要素を用いることができる。
 上記した本技術に係る画像処理装置においては、補正値設定部35によって求められた補正値に基づいて、前景部および背景部の色要素を補正する補正処理部(色補正処理部24)と、補正処理部によって補正された画像を表示部に表示させる表示制御を行う表示制御部36と、を備えることが考えられる。
 これにより、前景部および背景部の色要素が補正された画像をユーザに確認させることが可能である。
 したがって、ユーザが画像を確認しながら入力操作を行うことができ、ユーザが所望する色要素の画像を生成することができる。
 上記した本技術に係る画像処理装置においては、表示制御部36は、補正値設定部35により求められた前景部および背景部の色要素の補正値を表示することが考えられる。
 これにより、前景部および背景部の色要素の補正値をユーザに確認させることが可能である。
 したがって、補正値を確認することで、どの程度色の対比効果が発生しているかをユーザに確認させることができる。
 上記した本技術に係る画像処理装置においては、表示制御部36は、補正処理部(色補正処理部24)により補正される前の画像、および、補正処理部(色補正処理部24)により補正された後の画像を前記表示部に表示させることが考えられる。
 これにより、補正前後の画像を対比させてユーザに確認させることが可能である。
 したがって、補正前後の画像を確認しながら入力操作を行うことができ、ユーザが所望する色要素の画像を生成することができる。
 上記した本技術に係る画像処理装置においては、表示制御部36は、補正処理部(色補正処理部24)により補正された後の画像における前景部および背景部の色相および彩度を表示部に表示させることが考えられる。
 これにより、補正後の前景部および背景部の色相および彩度をユーザに確認させることが可能である。
 したがって、補正後の前景部および背景部の色相および彩度を確認しながら入力操作を行うことができ、ユーザが所望する色要素の画像を生成することができる。
 上記した本技術に係るプログラムは、画像データに含まれる前景部および背景部のうちの一方の色要素に基づいて他方の色要素の目標値を設定する処理と、ユーザの入力操作に応じて一方の色要素の補正値を設定し、設定した一方の色要素の補正値に基づいて他方の目標値を補正した補正値を設定する処理と、を画像処理装置に実行させるプログラム。
である。
 このようなプログラムにより本実施の形態の撮像装置1の実現が容易となる。
 そしてこのようなプログラムはコンピュータ装置等の機器に内蔵されている記録媒体や、CPUを有するマイクロコンピュータ内のROM等に予め記憶しておくことができる。あるいはまた、半導体メモリ、メモリカード、光ディスク、光磁気ディスク、磁気ディスクなどのリムーバブル記録媒体に、一時的あるいは永続的に格納(記憶)しておくことができる。またこのようなリムーバブル記録媒体は、いわゆるパッケージソフトウェアとして提供することができる。
 また、このようなプログラムは、リムーバブル記録媒体からパーソナルコンピュータ等にインストールする他、ダウンロードサイトから、LAN、インターネットなどのネットワークを介してダウンロードすることもできる。
 このようなプログラムにより本技術に係る画像処理装置、画像処理方法を、コンピュータ装置を用いて実現させ、広く提供できる。
 上記した本技術に係る画像処理装置においては、画像データに含まれる前景部および背景部のうちの一方の色要素に基づいて他方の色要素の目標値を設定する目標値設定部34と、ユーザの入力操作に応じて前記一方の色要素の補正値を設定し、設定した前記一方の色要素の補正値に基づいて前記他方の目標値を補正した補正値を設定する補正値設定部35と、を備える。
 このような画像処理装置によっても、上記した本技術に係る撮像装置と同様の作用が得られる。
 なお、本明細書に記載された効果はあくまでも例示であって限定されるものではなく、また他の効果があってもよい。
<5.本技術>
 本技術は以下のような構成も採ることができる。
(1)
 画像を撮像して画像データを出力する撮像素子と、
 前記画像データに含まれる前景部および背景部のうちの一方の色要素に基づいて他方の色要素の目標値を設定する目標値設定部と、
 ユーザの入力操作に応じて前記一方の色要素の補正値を設定し、設定した前記一方の色要素の補正値に基づいて前記他方の目標値を補正した補正値を設定する補正値設定部と、
を備える撮像装置。
(2)
 前記入力操作は、前記色要素の値を増加または減少させる指示である
 (1)に記載の撮像装置。
(3)
 前記補正値設定部は、前記前景部および前記背景部の色相、彩度および明度の少なくともいずれかの補正値を設定する
 (1)または(2)に記載の撮像装置。
(4)
 前記入力操作は、前記背景部のぼかし量を変更させる指示であり、
 前記補正値設定部は、
 前記ぼかし量に応じて、前記前景部および前記背景部の色要素の補正値を設定する
 (1)から(3)のいずれかに記載の撮像装置。
(5)
 前記補正値設定部は、
 前記ぼかし量に応じて、前記前景部および前記背景部の色相、彩度および明度の少なくともいずれかの補正値を設定する
 (4)に記載の撮像装置。
(6)
 前記補正値設定部は、
 前記一方の色相の補色に基づいて他方の色相の目標値を設定する
 (1)から(5)のいずれかに記載の撮像装置。
(7)
 前記補正値設定部は、
 ユーザの入力操作に応じて前記一方の色要素の目標値に対する補正値を設定し、前記一方の色要素の目標値と補正値との比率に基づいて、前記他方の色要素の補正値を設定する
 (1)から(6)のいずれかに記載の撮像装置。
(8)
 前記補正値設定部によって求められた補正値に基づいて、前記前景部および前記背景部の色要素を補正する補正処理部と、
 前記補正処理部によって補正された画像を表示部に表示させる表示制御を行う表示制御部と、
 を備える
 (1)から(7)のいずれかに記載の撮像装置。
(9)
 前記表示制御部は、
 前記補正値設定部により求められた前記前景部および前記背景部の色要素の補正値を表示する
 (8)に記載の撮像装置。
(10)
 前記表示制御部は、
 前記補正処理部により補正される前のカラー画像、および、前記補正処理部により補正された後のカラー画像を前記表示部に表示させる
 (8)または(9)に記載の撮像装置。
(11)
 前記表示制御部は、
 前記補正処理部により補正された後のカラー画像における前記前景部および前記背景部の色相および彩度を前記表示部に表示させる
 (8)から(10)のいずれかに記載の撮像装置。
(12)
 画像データに含まれる前景部および背景部のうちの一方の色要素に基づいて他方の色要素の目標値を設定し、
 ユーザの入力操作に応じて前記一方の色要素の補正値を設定し、設定した前記一方の色要素の補正値に基づいて前記他方の目標値を補正した補正値を設定する
画像処理方法。
(13)
 画像データに含まれる前景部および背景部のうちの一方の色要素に基づいて他方の色要素の目標値を設定する処理と、
 ユーザの入力操作に応じて前記一方の色要素の補正値を設定し、設定した前記一方の色要素の補正値に基づいて前記他方の目標値を補正した補正値を設定する処理と、
を画像処理装置に実行させるプログラム。
(14)
 画像データに含まれる前景部および背景部のうちの一方の色要素に基づいて他方の色要素の目標値を設定する目標値設定部と、
 ユーザの入力操作に応じて前記一方の色要素の補正値を設定し、設定した前記一方の色要素の補正値に基づいて前記他方の目標値を補正した補正値を設定する補正値設定部と、
を備える画像処理装置。
1 撮像装置
13 撮像素子
16 表示部
17 制御部
18 操作部
31 色要素情報検出部
32 領域情報検出部
33 領域色設定部
34 目標値設定部
35 補正値設定部
36 表示制御部

Claims (14)

  1.  画像を撮像して画像データを出力する撮像素子と、
     前記画像データに含まれる前景部および背景部のうちの一方の色要素に基づいて他方の色要素の目標値を設定する目標値設定部と、
     ユーザの入力操作に応じて前記一方の色要素の補正値を設定し、設定した前記一方の色要素の補正値に基づいて前記他方の目標値を補正した補正値を設定する補正値設定部と、
    を備える撮像装置。
  2.  前記入力操作は、前記色要素の値を増加または減少させる指示である
     請求項1に記載の撮像装置。
  3.  前記補正値設定部は、前記前景部および前記背景部の色相、彩度および明度の少なくともいずれかの補正値を設定する
     請求項1に記載の撮像装置。
  4.  前記入力操作は、前記背景部のぼかし量を変更させる指示であり、
     前記補正値設定部は、
     前記ぼかし量に応じて、前記前景部および前記背景部の色要素の補正値を設定する
     請求項1に記載の撮像装置。
  5.  前記補正値設定部は、
     前記ぼかし量に応じて、前記前景部および前記背景部の色相、彩度および明度の少なくともいずれかの補正値を設定する
     請求項4に記載の撮像装置。
  6.  前記補正値設定部は、
     前記一方の色相の補色に基づいて他方の色相の目標値を設定する
     請求項1に記載の撮像装置。
  7.  前記補正値設定部は、
     ユーザの入力操作に応じて前記一方の色要素の目標値に対する補正値を設定し、前記一方の色要素の目標値と補正値との比率に基づいて、前記他方の色要素の補正値を設定する
     請求項1に記載の撮像装置。
  8.  前記補正値設定部によって求められた補正値に基づいて、前記前景部および前記背景部の色要素を補正する補正処理部と、
     前記補正処理部によって補正された画像を表示部に表示させる表示制御を行う表示制御部と、
     を備える
     請求項1に記載の撮像装置。
  9.  前記表示制御部は、
     前記補正値設定部により求められた前記前景部および前記背景部の色要素の補正値を表示する
     請求項8に記載の撮像装置。
  10.  前記表示制御部は、
     前記補正処理部により補正される前の画像、および、前記補正処理部により補正された後の画像を前記表示部に表示させる
     請求項8に記載の撮像装置。
  11.  前記表示制御部は、
     前記補正処理部により補正された後の画像における前記前景部および前記背景部の色相および彩度を前記表示部に表示させる
     請求項8に記載の撮像装置。
  12.  画像データに含まれる前景部および背景部のうちの一方の色要素に基づいて他方の色要素の目標値を設定し、
     ユーザの入力操作に応じて前記一方の色要素の補正値を設定し、設定した前記一方の色要素の補正値に基づいて前記他方の目標値を補正した補正値を設定する
    画像処理方法。
  13.  画像データに含まれる前景部および背景部のうちの一方の色要素に基づいて他方の色要素の目標値を設定する処理と、
     ユーザの入力操作に応じて前記一方の色要素の補正値を設定し、設定した前記一方の色要素の補正値に基づいて前記他方の目標値を補正した補正値を設定する処理と、
    を画像処理装置に実行させるプログラム。
  14.  画像データに含まれる前景部および背景部のうちの一方の色要素に基づいて他方の色要素の目標値を設定する目標値設定部と、
     ユーザの入力操作に応じて前記一方の色要素の補正値を設定し、設定した前記一方の色要素の補正値に基づいて前記他方の目標値を補正した補正値を設定する補正値設定部と、
    を備える画像処理装置。
PCT/JP2022/000908 2021-02-09 2022-01-13 撮像装置、画像処理方法、プログラム、画像処理装置 WO2022172676A1 (ja)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2021019024 2021-02-09
JP2021-019024 2021-02-09

Publications (1)

Publication Number Publication Date
WO2022172676A1 true WO2022172676A1 (ja) 2022-08-18

Family

ID=82837777

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2022/000908 WO2022172676A1 (ja) 2021-02-09 2022-01-13 撮像装置、画像処理方法、プログラム、画像処理装置

Country Status (1)

Country Link
WO (1) WO2022172676A1 (ja)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006332908A (ja) * 2005-05-24 2006-12-07 Matsushita Electric Ind Co Ltd カラー画像表示装置、カラー画像表示方法、プログラム、および記録媒体
JP2012142755A (ja) * 2010-12-28 2012-07-26 Jvc Kenwood Corp 映像信号調整装置および映像信号調整方法
JP2013105452A (ja) * 2011-11-16 2013-05-30 Renesas Electronics Corp 画像処理装置、画像処理方法、及びプログラム
JP2013171433A (ja) * 2012-02-21 2013-09-02 Nikon Corp デジタルカメラおよび画像処理プログラム
JP2014146300A (ja) * 2013-01-30 2014-08-14 Fuji Xerox Co Ltd 画像処理装置及び画像処理プログラム

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006332908A (ja) * 2005-05-24 2006-12-07 Matsushita Electric Ind Co Ltd カラー画像表示装置、カラー画像表示方法、プログラム、および記録媒体
JP2012142755A (ja) * 2010-12-28 2012-07-26 Jvc Kenwood Corp 映像信号調整装置および映像信号調整方法
JP2013105452A (ja) * 2011-11-16 2013-05-30 Renesas Electronics Corp 画像処理装置、画像処理方法、及びプログラム
JP2013171433A (ja) * 2012-02-21 2013-09-02 Nikon Corp デジタルカメラおよび画像処理プログラム
JP2014146300A (ja) * 2013-01-30 2014-08-14 Fuji Xerox Co Ltd 画像処理装置及び画像処理プログラム

Similar Documents

Publication Publication Date Title
JP3892648B2 (ja) 画像入力装置、ホワイトバランス調整方法、およびその方法を実行するためのプログラムを格納したコンピュータが読取可能な記録媒体
US8334914B2 (en) Gradation correcting apparatus, and recording medium storing a program recorded therein
EP1592227A2 (en) Apparatus and method for determining an image processing parameter from image data at a user-selected image position
US20080129860A1 (en) Digital camera
US20090207264A1 (en) Image processing device, imaging device, and medium storing image processing program
JP5553230B2 (ja) 撮像装置および撮像処理方法
US6795115B1 (en) White-balance adjusting apparatus
JP5782311B2 (ja) 撮像装置及びその制御方法
US20100295977A1 (en) Image processor and recording medium
WO2005099356A2 (ja) 撮像装置
US8502882B2 (en) Image pick-up apparatus, white balance setting method and recording medium
US20070211165A1 (en) Imaging device, method for controlling imaging device, program of method for controlling imaging device, recording medium in which program of method for controlling imaging device is recorded
US8570407B2 (en) Imaging apparatus, image processing program, image processing apparatus, and image processing method
WO2022172676A1 (ja) 撮像装置、画像処理方法、プログラム、画像処理装置
JP4718113B2 (ja) ホワイトバランス調整方法および画像処理装置
JP5675391B2 (ja) 画像処理装置
JP3566845B2 (ja) 撮像システム
JP2011040975A (ja) 画像処理装置、撮像装置、画像処理方法、及びプログラム
JP4941424B2 (ja) 撮像装置および画像処理プログラム
WO2004114678A1 (ja) 画像処理システム及び画像処理方法
JP2007267170A (ja) 彩度調整機能を有する電子カメラ、および画像処理プログラム
US20230156309A1 (en) Image processing apparatus, image processing method, and image capturing apparatus
JP4048104B2 (ja) 撮像装置及び撮像方法
JP4458114B2 (ja) 撮像装置
JP2017135521A (ja) 撮影装置及びその制御方法

Legal Events

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

Ref document number: 22752509

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22752509

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP