The aspect of the embodiments relates to an electronic device, a control method of the electronic device, and a storage medium. The aspect of the embodiments especially relates to a technology of acquiring an evaluation value to be used at the time of executing predetermined processing based on image data acquired via filters having a plurality of different polarization angles.
In an imaging device such as a digital camera, various technologies for acquiring an image having appropriate brightness corresponding to a freely-selected subject have been conventionally known. Specifically, a technology that has been known is to perform exposure control, white balance adjustment, gamma adjustment, and the like at the time of capturing an image of a subject and acquiring image data based on brightness of the subject obtained by photometry. For example, an imaging device that has been known is configured to, in a case where the face of a person exists in an imaging area (imaging screen), determine a face area detected by face detection as a main subject, and automatically adjust a focus, white balance, and exposure so as to appropriately capture an image of the face area. Japanese Patent Laid-Open No. 2016-85248 discusses a technology of generating in a digital camera a photometric value for exposure control by assigning weights to a photometric value of a portion recognized as the face and a photometric value of the whole of a screen.
According to an aspect of the embodiments, there is provided an electronic device, comprising: at least one processor; and at least one memory coupled to the at least one processor storing instructions that, when executed by the at least processor, cause the at least processor to function as: an information acquisition unit configured to acquire polarization information of a subject based on a plurality of pieces of image data that are based on a first signal output from a first sensor, wherein the first sensor is capable of capturing an optical image of the subject acquired via a polarizing filter provided with areas having different polarization angles; a control unit configured to control brightness of an image at the time of acquiring image data by capturing the optical image of the subject; and an evaluation value acquisition unit configured to acquire an evaluation value to be used by the brightness control unit to control the brightness, based on at least one of the plurality of pieces of image data, wherein the plurality of pieces of image data have different polarization angles, by respectively being acquired via areas of the polarizing filter having the plurality of different polarization angles, and wherein the evaluation value acquisition unit is configured to set a degree of weighting to be assigned to the plurality of pieces of image data at the time of acquiring the evaluation value, based on the polarization information.
According to another aspect of the embodiments, there is provided a control method of an electronic device, comprising: acquiring polarization information of a subject based on a plurality of pieces of image data that are based on a first signal output from a first sensor, wherein the first sensor is capable of capturing an optical image of the subject acquired via a polarizing filter provided with areas having different polarization angles; and acquiring an evaluation value to be used to control brightness of an image at the time of capturing the image of the subject and acquiring image data based on at least one of the plurality of pieces of image data, wherein the plurality of pieces of image data have different polarization angles, by respectively being acquired via areas of the polarizing filter having the plurality of different polarization angles, and wherein the acquisition of the evaluation value includes setting a degree of weighting to be assigned to the plurality of pieces of image data at the time of acquiring the evaluation value based on the polarization information.
According to a further aspect of the embodiments, there is provided a non-transitory computer-readable storage medium storing a computer-executable program for executing a method of controlling an electronic device, the method comprising: acquiring polarization information of a subject based on a plurality of pieces of image data that are based on a first signal output from a first sensor, wherein the first sensor is capable of capturing an optical image of the subject acquired via a polarizing filter provided with areas having different polarization angles; and acquiring an evaluation value to be used to control brightness of an image at the time of capturing the image of the subject and acquiring image data based on at least one of the plurality of pieces of image data, wherein the plurality of pieces of image data have different polarization angles, by respectively being acquired via areas of the polarizing filter having the plurality of different polarization angles, and wherein the acquisition of the evaluation value includes setting a degree of weighting to be assigned to the plurality of pieces of image data at the time of acquiring the evaluation value based on the polarization information.
Further features of the disclosure will become apparent from the following description of exemplary embodiments (with reference to the attached drawings).
Exemplary embodiments of the disclosure will be described below with reference to the accompanying drawings.
An optical lens 101 is an imaging optical system to lead a light flux, which represents an optical image of a subject, to the inside of the imaging device 100, and can form an optical image on an imaging plane of a sensor 102, which will be described below.
The sensor 102 is an imaging unit that adopts a solid-state image sensor of a charge storage type, such as a complementary metal-oxide semiconductor (CMOS) sensor, which can receive the light flux of the subject led by the optical lens 101, and convert the light flux to an electric image signal. The imaging device 100 can change sensitivity (light receiving sensitivity) at the time of converting an optical image corresponding to the light flux of the subject to an electric signal. Adjusting the light receiving sensitivity and a digital gain after conversion into an image signal can adjust brightness of the image signal. In the present exemplary embodiment, such sensitivity is collectively referred to as imaging sensitivity. The imaging device 100 can adjust the imaging sensitivity by changing International Standards Organization (ISO) sensitivity.
The sensor 102 includes a polarizing filter on each pixel, and includes at least three or more different angles as polarization angles of the polarizing filters. Details of the sensor 102 provided with the polarizing filter will be exemplarily described with reference to
As illustrated in
As illustrated in
Thus, the sensor 102 is provided with the color filters in a so-called Bayer array in alignment with units of four pixels constituting the partial area 201. Thus, with the partial area 201 used as a reference, image signals of capturing images at the four polarization angles with respect to each color filter can be acquired, and an image signal at each polarization angle, which combines color components of R, Gr, Gb, and B, can be acquired. In the present exemplary embodiment, polarization information of the subject can be acquired based on signals acquired from four pixels having different polarization angles, as described below. The polarization information according to the present exemplary embodiment is represented as a difference value of pixel levels output from pixels corresponding to the respective polarization angles.
Back to
The polarization calculation unit 104 is a calculation unit (polarization information acquisition unit) that calculates a polarization angle corresponding to a subject included in an imaging range based on the image data output from the image acquisition unit 103, and can acquire polarization information of the subject. Specifically, assume that the four pixels corresponding to the respective polarization angles of 0°, 45°, 90°, and 135° are a set. Based on signals output from the pixels corresponding to the polarizing filters with the respective polarization angles, the polarization calculation unit 104 acquires a difference value by subtracting a minimum value from a maximum value out of signal levels of the pixels corresponding to the respective four polarization angles described above. An area in which an integral value of difference values is greater than a predetermined threshold can be determined to be an area in which reflection of light by the subject occurs. For example, in a case where a photometric frame for photometry preset to the imaging device 100 is a predetermined area, it is possible to detect whether reflection occurs in each photometric frame using the integral value of the difference values described above in this predetermined area.
A difference image illustrated in
Back to
For example, in a case where the polarization calculation unit 104 determines that the reflection of light occurs, the photometric value calculation unit 105 calculates the photometric value using the piece of image data having the minimum signal level of pixels included in the photometric frame, out of the plurality of pieces of image data acquired at the respective polarization angles. For example, in a case where the polarization calculation unit 104 determines that the reflection of light does not occur, the photometric value calculation unit 105 calculates the photometric value using image data of all pixels regardless of polarization angles. The image data of all the pixels are to be data acquired by cumulating signal levels of pixels in the pieces of image data of the respective polarization angles. Which of image data at a freely-selected polarization angle and image data of all the pixels is to be used for calculating the photometric value may be selectable depending on a condition (e.g., freely-selected by a user) other than the condition on which the polarization calculation unit 104 makes the determination. While a method of calculating the photometric value may be any known method, examples of the method include a method of dividing image data into a plurality of blocks and calculating an average value (a luminance value) of signal values of each block. The luminance value of each block is integrated to acquire a representative luminance value (a photometric value). For example, the imaging device 100 may be configured to set a degree of weighting assigned to an area included in the photometric frame higher than degrees of weighting assigned to the other areas, or calculate the photometric value based on a luminance value of the area included in the photometric frame. Another method of calculating the photometric value according to photometry can be set as appropriate.
An exposure control unit 106 is an exposure control unit that performs exposure control using the exposure values described above (the f-stop number, the shutter speed, and the ISO sensitivity), and performs control to make brightness of the subject appropriate (in an appropriate exposure state) based on the photometric value obtained by the photometric value calculation unit 105.
The image processing unit 107 is an image processing unit that performs various kinds of processing such as freely-selected combining processing using the pieces of image data corresponding to the respective polarization angles, deBayer processing, and gamma correction. Specifically, as an example of the combining processing, the image processing unit 107 can generate image data of one frame whose reflectance is freely adjusted by selecting the piece of image data at the freely-selected polarization angle based on a result of the determination made by the polarization calculation unit 104 and outputting the image data of one frame, or weighted-averaging the pieces of image data at the respective polarization angles based on a result of the determination made by the polarization calculation unit 104 and outputting the image data of one frame. The image processing unit 107 can perform, after performing the combining processing, predetermined image processing such as the deBayer processing and gamma correction described above, knee correction, and noise reduction. In the present exemplary embodiment, the various kinds of processing performed on image data output to a signal output unit 108 is not limited thereto, and the image processing unit 107 may be configured to perform another process. The image processing unit 107 can also output acquired pixel data as it is to each unit in a subsequent procedure.
The signal output unit 108 is a signal output unit that outputs an image signal input from the image processing unit 107 to a storage unit (including an external storage medium), which is not illustrated, and that outputs image data for display to a display unit, which is not illustrated.
A camera control unit 109 is a control unit that performs centralized control of each unit of the imaging device 100 and each unit of a camera accessory mounted on the imaging device 100, and is provided with a microprocessor (CPU), which is not illustrated. In the present exemplary embodiment, the imaging device 100 is configured such that the camera control unit 109 controls an operation of each unit described above, but may be configured such that units other than the camera control unit 109 control respective operations in a coordinated manner
Subsequently, details of the exposure control processing according to the present exemplary embodiment will be described with reference to
In step S401, the camera control unit 109 first acquires image data for photometry. The image data for photometry is to include information for acquiring the pieces of image data at the respective polarization angles as described above, and a data format may be any format.
Subsequently, in step S402, the camera control unit 109 sets a photometric frame. The imaging device 100 may be configured to set the photometric frame by automatically detecting a freely-selected subject and setting a frame according to the subject, or by setting a freely-selected frame to a predetermined area in an imaging range. Alternatively, the imaging device 100 may be configured such that a user freely sets a frame having a predetermined size to a predetermined position in the imaging range.
Subsequently, in step S403, based on pieces of image data at respective polarization angles based on the image data for photometry acquired before, the camera control unit 109 calculates, out of the respective pieces of image data at the polarization angles of 0°, 45°, 90°, and 135° , a difference value between a maximum pixel signal value and a minimum pixel signal value in corresponding pieces of image data. The method of calculating the difference value is as described above.
Subsequently, in step S404, the camera control unit 109 compares the difference value calculated in step S403 and a predetermined threshold stored in a storage area (not illustrated) of the imaging device 100, and determines whether the difference value is the predetermined threshold or greater.
If it is determined that the difference value is the threshold or greater (YES in step S404), the camera control unit 109 determines that there is an area having a high reflectance in image data (imaging range) and the processing proceeds to step S405. In step S405, the camera control unit 109 sets the piece of image data at a polarization angle to be used for calculating a photometric value. If it is determined that the difference value is less than the threshold (NO in step S404), the camera control unit 109 determines that there is no area having a high reflectance in the image data, and the processing proceeds to step S406. In step S406, the camera control unit 109 sets image data of all pixels as the image data to be used for calculating the photometric value. The image data of all the pixels is to be data including pixel signal levels at all of the polarization angles based on the pieces of image data at the respective polarization angles as described above, and may not be image data output from all the pixels of the sensor 102.
Subsequently, in step S407, the camera control unit 109 calculates a photometric value based on the image data to be used for calculating the photometric value set before. Subsequently, in step S408, the camera control unit 109 determines exposure (a combination of the exposure values) such that brightness of the subject becomes appropriate based on the photometric value calculated in the processing in step S407. Subsequently, in step S409, the camera control unit 109 controls each unit of the imaging device 100 to have the exposure values determined in step S408, and ends the exposure control processing. The method of determining the exposure values may be any known method. For example, in the present exemplary embodiment, the combination of the exposure values appropriate for brightness of the subject is determined based on a program diagram recorded in advance in the storage area (not illustrated) of the imaging device 100. This is the exposure control processing according to the present exemplary embodiment. The imaging device 100 may be configured to consecutively execute the exposure control processing, for example, in a case of continuously receiving an instruction for preparation for capturing an image. The imaging device 100 may be configured to execute the adjustment of the exposure values in step S409 in response to an instruction for capturing an image being given by the user.
As described above, the imaging device 100 according to the present exemplary embodiment can output the plurality of pieces of image data at the respective different polarization angles (pieces of information regarding the respective polarization angles) from the sensor 102, and perform appropriate exposure control after detecting the reflectance of the subject serving as an imaging target. This configuration eliminates the need for a cumbersome operation, such as mounting a polarizing filter of a predetermined polarization angle in the imaging device 100 based on the user's own judgment, and automatic exposure control by the imaging device can prevent acquisition of an image having unnatural brightness.
While the description has been given of the configuration in which the sensor 102 itself includes the polarizing filter in the present exemplary embodiment, the imaging device 100 may be configured to include a polarizing filter different from that of the sensor 102. In this case, a polarizing filter may be used in which a polarization angle is selected with respect to a freely-selected pixel group (including a case of one pixel) of the sensor 102. A method of arranging the polarizing filters and the color filters and presence/absence of the color filters are not limited to the configuration described above. The imaging device 100 is to be configured to be capable of detecting a reflectance of the subject based on pieces of image data acquired at at least three or more different polarization angles.
The imaging device 100 in the present exemplary embodiment is configured to perform photometry based on a piece of image data at a polarization angle with which the influence of reflection is suppressed most out of the plurality of pieces of image data having respective different polarization angles in a case where the reflectance is high, and calculate the photometric value. However, the configuration is not limited thereto. For example, in the configuration of performing photometry using all the pieces of image data at the plurality of polarization angles, the imaging device 100 is to be configured to set a higher degree of weighting for photometry assigned to the piece of image data at the polarization angle with which the influence of reflection on the subject is suppressed most than a degree of weighting assigned to pieces of image data at the other polarization angles. Specifically, in the present exemplary embodiment described above, the description has been given of the case where the degree of weighting for photometry assigned to the piece of image data at the polarization angle with which the influence of the reflection on the subject is suppressed most is assumed to be one, while the degree of weighting assigned to the pieces of image data at the other polarization angles is assumed to be zero. In contrast, the imaging device 100 may be configured such that the degree of weighting for photometry assigned to the piece of image data at the polarization angle with which the influence of the reflection on the subject is suppressed most is set to 0.7, while the degree of weighting assigned to the pieces of image data at the other polarization angles is set to 0.1.
In the first exemplary embodiment described above, the description has been given of the configuration in which the pieces of image data at the respective polarization angles are used as they are for calculating the photometric value. In contrast, in a second exemplary embodiment, a description will be given of a case of removing a reflection component of the subject more effectively by calculating an angle-dependent component of a polarization angle for each pixel based on information regarding a plurality of polarization angles. The same configuration and member of an imaging device 100 according to the present exemplary embodiment as the imaging device 100 according to the first exemplary embodiment are denoted by the same sign or part number, and a description thereof will be omitted.
As illustrated in
With this configuration, it is possible to accurately seek the angle-dependent component of the polarization angles of the subject in consideration of a case where a polarization angle different from the plurality of polarization angles of the pieces of image data causes a higher or lower luminance value (pixel signal level). Specifically, in the fitting curve illustrated in
If luminance values of pieces of image data regarding three or more polarization angles are found, it is possible to calculate the angle-dependent component Ip-p of the polarization angles of the subject by employing an optimization technology such as a least-square method. In one embodiment, polarization angles for sampling are to be separated from each other at a certain distance to seek a more accurate fitting curve. In the present exemplary embodiment, pieces of image data for sampling are acquired at polarization angles at intervals of 45°.
As described above, the imaging device 100 according to the present exemplary embodiment can seek the angle-dependent component of the polarization angles based on the plurality of pieces of image data at the respective different polarization angles, and calculate the photometric value based on the angle-dependent component, and thus can perform more appropriate exposure control. This configuration, for example, eliminates the need for a cumbersome user operation, and enables the imaging device to automatically perform exposure control with high accuracy, thereby enabling reduction of acquisition of an image having unnatural brightness.
In the first exemplary embodiment described above, the description has been given of the configuration of acquiring the plurality of image data at the respective polarization angles using the sensor 102 provided with the polarizing filter and the image data for recording (still images or moving images). In contrast, in a third exemplary embodiment, a description will be given in detail of a case where an image sensor that acquires a plurality of pieces of image data at respective polarization angles and an image sensor that acquires image data for recording are separately provided.
A second optical lens 601 is an imaging optical system to lead a light flux, which represents an optical image of a subject, to the inside of the imaging device 600 similarly to the (first) optical lens 101 according to the first exemplary embodiment described above, and can form an optical image on an imaging plane of a second sensor 602, which will be described below. The first optical lens 101 and the second optical lens 601 do not necessarily have the same configuration, and may have configurations different in focal length and/or aperture mechanism.
The second sensor 602 is an imaging unit that adopts a solid-state image sensor of a charge storage type similarly to the (first) sensor 102 described above, but is different from the first sensor 102 in that the second sensor 602 does not include the polarizing filter. The second sensor 602 includes a color filter (not illustrated), but does not necessarily include the color filter depending on usage. This is the difference in configuration between the imaging device 600 according to the present exemplary embodiment and the imaging device 100 according to the first exemplary embodiment described above.
The imaging device 600 according to the present exemplary embodiment is configured to acquire image data by the first sensor 102 and the second sensor 602 outputting signals to the identical image acquisition unit 103, but may be configured, for example, such that the first sensor 102 and the second sensor 602 output signals to respective acquisition units.
In the present exemplary embodiment, the imaging device 600 includes the two different sensors. One of the two sensors is the image sensor provided with the polarizing filter (or the imaging device that stores charges associated with an optical image of the subject acquired via the polarizing filter), and the other of the two sensors is the image sensor that stores charges without intervention of the polarizing filter. The polarizing filter can extract light in a specific vibration direction from non-polarized light (natural light). That is, the polarizing filter is a filter that removes light in signal directions other than a freely-selected polarization angle. Image data acquired via the filter having such a polarizing effect may be deteriorated due to a difference in spectral characteristics and the like in comparison with image data acquired without intervention of the polarizing filter.
Thus, the imaging device 600 in the present exemplary embodiment acquires image data for photometry using the first sensor 102 provided with the polarizing filter, and acquires still image data for recording using the second sensor 602 not provided with the polarizing filter. That is, based on which of outputs from the image sensors the imaging device 600 acquires an image differs depending on a type of acquired image data. With this configuration, the imaging device 600 can acquire image data for recording while preventing degradation of quality of image data due to the use of the polarizing filter.
As a modification, the imaging device 600 may be configured to acquire image data for photometry and image data for recording using the first sensor 102, for example, in a case where the subject has a high luminance area, or in a case where a reflectance is high, and using the second sensor 602 in other cases. In this case, the imaging device 600 is to be configured to determine whether a luminance value of the subject or an evaluation value indicating a reflectance is greater than a predetermined threshold.
As described above, the imaging device 600 according to the present exemplary embodiment can perform appropriate exposure control and acquire high-quality image data for recording by using different pieces of image data, i.e., image data acquired via the polarizing filter and image data acquired without intervention of the polarizing filter, depending on the situation. This configuration, for example, eliminates the need for a cumbersome user operation, and allows the imaging device to acquire high-quality image data while performing automatic exposure control.
While the exemplary embodiments of the disclosure have been described, the disclosure is not limited to the exemplary embodiments, and various modifications and changes can be made without departing from the gist of the disclosure. While the description has been given of the imaging device that integrates the optical lens in the exemplary embodiments, a configuration of adopting an interchangeable lens imaging device to which a lens is detachably mounted may be employed, for example.
In the exemplary embodiments, the description has been given of the shutter speed, the f-stop number, and the ISO sensitivity as the exposure values adjustable in the exposure control, a configuration capable of adjusting an exposure value associated with another element may be employed. For example, if the imaging device 100 according to the first exemplary embodiment described above is configured to include a light attenuation unit such as a neutral density (ND) filter that attenuates an amount of light incident on the sensor 102, the imaging device 100 may be configured to be capable of adjusting an exposure value associated with a density of the ND filter.
Furthermore, while the description has been given of the example of using a photometry result in the exposure control in the exemplary embodiments described above, the configuration is not limited thereto. For example, the imaging device may be configured to acquire a photometric value as an evaluation value indicating brightness of the subject and use the photometric value for white balance adjustment or gain adjustment of image data. That is, if the exposure control is control to acquire an evaluation value associated with adjustment of brightness at the time of capturing an image of the subject and acquiring image data, and actually change brightness of the image data based on the evaluation value, the exposure control can be applied to the setting of a degree of weighting according to the exemplary embodiments described above.
Furthermore, while the description has been given of the example of adopting the polarizing filters having different polarization angles for respective pixels or respective pixel groups constituting the image sensor, the configuration is not limited thereto. For example, the sensor 102 according to the first exemplary embodiment may be configured to have the polarizing filter arranged such that a plurality of different polarization angles corresponds to one pixel. In this case, since light can be polarized at different polarization angles with respect to one pixel signal, it is possible to acquire image data that removes light other than light in a plurality of vibration directions in pixel units.
While the description has been given of the exemplary embodiments assuming the digital camera as the example of the electronic device to implement the disclosure, the configuration is not limited thereto. A configuration adopting an imaging device other than the digital camera, such as a portable device such as a digital video camera or a smartphone, a wearable terminal, an on-vehicle camera, or a security camera, may be employed. The electronic device to implement the disclosure may be an electronic device such as an external device capable of controlling the imaging device provided with the sensor 102 described above. For example, the external device such as a personal computer (PC) capable of being connected to the imaging device including the sensor provided with the polarizing filter is to be configured to perform the photometry and exposure control according to the exemplary embodiments described above.
Embodiment(s) of the disclosure can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions (e.g., one or more programs) recorded on a storage medium (which may also be referred to more fully as a ‘non-transitory computer-readable storage medium’) to perform the functions of one or more of the above-described embodiment(s) and/or that includes one or more circuits (e.g., application specific integrated circuit (ASIC)) for performing the functions of one or more of the above-described embodiment(s), and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment(s) and/or controlling the one or more circuits to perform the functions of one or more of the above-described embodiment(s). The computer may comprise one or more processors (e.g., central processing unit (CPU), micro processing unit (MPU)) and may include a network of separate computers or separate processors to read out and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD™), a flash memory device, a memory card, and the like.
While the disclosure has been described with reference to exemplary embodiments, it is to be understood that the disclosure is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2019-228208, filed Dec. 18, 2019, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2019-228208 | Dec 2019 | JP | national |