Image processing device, control method, and program

The image processing apparatus balances blur and focus to ensure equivalent texture quality for multiple subjects in three-dimensional modeling, addressing the issue of varying image quality in existing techniques.

JP2026185178APending Publication Date: 2026-11-27CANON KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2025082123
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-15
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing three-dimensional modeling techniques fail to ensure equivalent texture quality for multiple subjects in an image, leading to blurred or lower-quality rear subjects when capturing images with varying focus and magnification.

Method used

An image processing apparatus that detects subjects, acquires distance information, and determines shooting conditions to balance blur amounts, ensuring equivalent texture quality by adjusting focus positions and other parameters based on depth information.

Benefits of technology

The apparatus effectively determines shooting conditions to achieve equivalent texture quality for all subjects in three-dimensional data, enhancing image quality and accuracy in three-dimensional modeling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026185178000001_ABST
    Figure 2026185178000001_ABST
Patent Text Reader

Abstract

Determine the shooting conditions such that the texture quality of the 3D data of each subject in the image is equivalent. [Solution] The image processing device includes a detection means for detecting a subject in an image, an acquisition means for acquiring distance information of the detected subject, and a determination means for determining the amount of blur of the detected subject based on the shooting conditions of the image and the distance information, and determining the focus position to be a position between a first subject and a second subject that is farther away from the first subject, where the amount of blur for the first subject is greater than the amount of blur for the second subject.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a technology for determining imaging conditions for images suitable for three-dimensional modeling.

Background Art

[0002] Three-dimensional modeling is known in which three-dimensional data representing an object in a three-dimensional space is generated based on a captured image. Also, a technique is known for generating a virtual viewpoint image from a viewpoint different from that of a captured image by drawing three-dimensional data at an arbitrary viewpoint (virtual viewpoint) in a three-dimensional space.

[0003] Patent Document 1 describes a method of generating an image focused on each subject in an image by setting a focus range in image data capable of generating a refocus image.

Prior Art Documents

Patent Documents

[0004]

Patent Document 1

Summary of the Invention

Problems to be Solved by the Invention

[0005] In three-dimensional modeling, when generating three-dimensional data of each subject in an image, it may be desired to capture images such that the texture quality of the three-dimensional data of each subject is equal. For example, in a commemorative photo taken with each subject in a front-back positional relationship, when one subject is focused, the other subject is greatly blurred, resulting in a decrease in texture quality. Further, even when images are captured so that the amounts of blur of the front and rear subjects are the same, the texture quality of the rear subject is lower than that of the front subject due to the imaging magnification. Since the texture quality depends on the image capturing conditions, it is important to determine the optimal image capturing conditions.

[0006] Patent Document 1 does not describe determining shooting conditions such that the texture of the three-dimensional data is equivalent for multiple subjects in order to generate an image from refocusable image data. [Means for solving the problem]

[0007] This invention has been made in view of the above problems, and its purpose is to realize a technique for determining shooting conditions such that the texture quality of the three-dimensional data of each subject in an image is equivalent.

[0008] To solve the above problems and achieve the objective, the image processing apparatus of the present invention includes: detection means for detecting a subject in an image; acquisition means for acquiring distance information of the detected subject; and determination means for determining the amount of blur of the detected subject based on the shooting conditions of the image and the distance information, and determining the focus position to be a position between a first subject and a second subject that is farther away from the first subject, where the amount of blur for the first subject is greater than the amount of blur for the second subject. [Effects of the Invention]

[0009] According to the present invention, it is possible to determine shooting conditions such that the texture quality of the three-dimensional data of each subject in the image is equivalent. [Brief explanation of the drawing]

[0010] [Figure 1] A block diagram illustrating the configuration of the apparatus in this embodiment. [Figure 2] A diagram illustrating the configuration of the imaging unit in this embodiment. [Figure 3] This figure illustrates the distance measurement method using the imaging plane phase difference detection method of this embodiment. [Figure 4] A flowchart illustrating the control process in the three-dimensional mode of this embodiment. [Figure 5] A diagram illustrating the user interface in the three-dimensional mode of this embodiment. [Modes for carrying out the invention]

[0011] The embodiments will be described in detail below with reference to the attached drawings. Note that the following embodiments do not limit the scope of the claims. While the embodiments describe multiple features, not all of these features are necessary, and the features may be combined in any way. Furthermore, in the attached drawings, identical or similar configurations are given the same reference numerals, and redundant descriptions are omitted.

[0012] In this embodiment, an example is described in which the image processing device and imaging device are applied to a digital camera, and the digital camera determines the focus position from the amount of blur of each subject based on depth information representing the distance distribution of each subject. Note that this embodiment is not limited to digital cameras and can be applied to various devices that acquire depth information of each subject in an image and determine the focus position from the amount of blur based on the depth information. Furthermore, in this embodiment, the imaging device and image processing device may be configured separately, for example, in a configuration where a digital camera as the imaging device and a smartphone or general-purpose computer (PC) as the image processing device are connected.

[0013] <Device configuration> Figure 1 is a block diagram illustrating the configuration of the digital camera 100 of this embodiment.

[0014] The imaging optical system 10 includes a lens group built into the digital camera 100 or an interchangeable lens that can be attached to the camera body, and forms an optical image of the subject on the imaging surface of the imaging unit 11. The imaging optical system 10 includes a plurality of lenses (not shown) arranged on the optical axis 102 and has an exit pupil 101 at a predetermined distance from the imaging unit 11. In this embodiment, the direction parallel to the optical axis 102 is defined as the z direction (depth direction). That is, the depth direction is the direction in which the subject is located with respect to the position of the digital camera 100. Furthermore, the direction perpendicular to the optical axis 102 and parallel to the horizontal direction of the imaging unit 11 is defined as the x direction, and the direction perpendicular to the optical axis 102 and parallel to the vertical direction of the imaging unit 11 is defined as the y direction.

[0015] The imaging unit 11 is, for example, a CCD (charge-coupled device) type image sensor or a CMOS (complementary metal-oxide-semiconductor) type image sensor. The imaging unit 11 performs photoelectric conversion on the subject image formed on the imaging surface via the imaging optical system 10 and outputs an image signal related to the subject image. As will be described later, the imaging unit 11 has an imaging surface phase-difference distance measuring function and can generate and output distance information indicating the distance from the front focal position of the digital camera 100 to the focused subject (subject distance) in addition to the captured image.

[0016] The control unit 12 includes a CPU (Central Processing Unit) or microprocessor, a ROM for storing control programs, RAM which serves as main memory, and controls each component of the digital camera 100. In this embodiment, the control unit 12 includes a shooting mode determination unit 120, a focus control unit 121, an exposure control unit 122, a measurement accuracy estimation unit 123, a notification control unit 124, and an optical image stabilization drive determination unit 125. Optical image stabilization is also referred to as OIS (Optial Image Stabilizer). The control unit 12 also controls the image processing unit 13, storage unit 14, operation input unit 15, display unit 16, and communication unit 17 via a bus.

[0017] The shooting mode determination unit 120 determines the shooting mode of the digital camera 100. The shooting mode includes, for example, a mode for normal shooting (normal shooting mode) and a mode for shooting to generate three-dimensional data (three-dimensional mode). If the shooting mode determination unit 120 determines that the shooting mode is three-dimensional mode, it may further determine which of the multiple three-dimensional modes it is and perform processing such as restricting the shooting conditions according to the determination result.

[0018] The focus control unit 121 controls the focus on the target subject based on the subject's distance information. In focus control, the focus control unit 121 calculates the subject's distance information based on the focusing lens's position information and the imaging optical system 10's optical design information.

[0019] The exposure control unit 122 calculates optimal exposure conditions based on shooting conditions set according to the shooting mode, and sets shooting parameters such as sensitivity, aperture value, and exposure time.

[0020] The measurement accuracy estimation unit 123 estimates the error (measurement accuracy) that may occur in the distance measurement result based on the set or calculated focal length, subject distance, sensitivity, aperture value, and exposure time. Further, when the estimated error exceeds a preset error range, the measurement accuracy estimation unit 123 calculates recommended shooting conditions such that the error falls within a desired range.

[0021] The notification control unit 124 displays the distance estimation error, recommended shooting conditions, set values of shooting parameters, and the like on the display unit 16 to notify the user.

[0022] The optical image stabilization drive determination unit 125 confirms the position of the image stabilization lens driven by optical image stabilization in the shooting mode, and estimates the amount of field curvature according to the position of the image stabilization lens. Then, the optical image stabilization drive determination unit 125 determines whether or not the drive amount of the image stabilization lens has reached a drive amount at which the amount of field curvature becomes larger than a predetermined amount.

[0023] The optical image stabilization drive determination unit 125 acquires data recording a state in which the image stabilization lens is driven during exposure when optical image stabilization is executed in the shooting mode. In particular, the optical image stabilization drive determination unit 125 acquires information on the average drive position of the image stabilization lens during exposure. The optical image stabilization drive determination unit 125 records in advance information indicating a state in which field curvature changes depending on the drive position of the image stabilization lens, based on design values of the imaging optical system 10, and calculates the amount of field curvature corresponding to the acquired average drive position. Here, distance measurement error correction due to field curvature is executed when generating a depth image based on the calculated amount of field curvature.

[0024] Furthermore, if the amount of field curvature is greater than a predetermined amount, the correction effect may not be sufficient. Therefore, the optical image stabilization drive determination unit 125 sets a limit drive amount according to the imaging optical system 10 and the desired amount of measurement error. The optical image stabilization drive determination unit 125 then determines that the measurement error will be large if the image stabilization lens is driven beyond the limit drive amount. If the optical image stabilization drive amount is large and the impact on measurement accuracy cannot be ignored, the unit notifies the user of a decrease in measurement accuracy or recommends reshooting.

[0025] The image processing unit 13 performs various image processing operations on the image signal output from the imaging unit 11. The image processing unit 13 includes an image generation unit 130, a depth generation unit 131, a subject recognition unit 132, a movement estimation unit 134, and a three-dimensional data generation unit 135. The image processing unit 13 also has a volatile memory 133 used as a workspace for image processing. The functions of the image processing unit 13 may be configured by logic circuits, or by a CPU and memory for storing arithmetic processing programs.

[0026] The image generation unit 130 performs various signal processing operations on the image signal output from the imaging unit 11, such as noise reduction, demosaicing, luminance signal conversion, aberration correction, white balance adjustment, and color correction, to generate an image for viewing. The image data processed by the image generation unit 130 is stored in the memory 133.

[0027] The depth generation unit 131 generates a depth image (depth map) showing the depth distribution of subjects in an image based on the image signal obtained by the distance-measuring pixels of the imaging unit 11. In the depth image, the value indicated by each pixel represents the distance of a subject located in the image region corresponding to that pixel.

[0028] The subject recognition unit 132 recognizes the area of ​​the subject in the image. In this case, it may accept user input via the operation input unit 15 to recognize a subject that better matches the user's intentions.

[0029] The movement estimation unit 134 estimates the amount of movement of the subject recognized by the subject recognition unit 132 from the time-series image data. The amount of movement of the subject is estimated as the amount of movement relative to the digital camera 100 using an IMU (Inertial Measurement Unit) (not shown) built into the digital camera 100 or a known Visual SLAM, etc.

[0030] The three-dimensional data generation unit 135 performs three-dimensional modeling to generate three-dimensional data based on the image data generated by the image generation unit 130, the depth image generated by the depth generation unit 131, and the subject area recognized by the subject recognition unit 132.

[0031] The control unit 12, image processing unit 13, storage unit 14, operation input unit 15, display unit 16, and communication unit 17 are connected to a bus so that they can exchange data with each other.

[0032] The storage unit 14 is equipped with a non-volatile storage medium. For example, captured image data, intermediate data generated by the processing of each part of the digital camera 100, and parameters referenced in the operation of the image processing unit 13 and the digital camera 100 are stored in the storage unit 14. The storage unit 14 only needs to have functions that ensure the processing performance that is acceptable for the realization of the processing. It should be capable of high-speed reading and writing, and a large-capacity storage medium may be used, such as flash memory.

[0033] The operation input unit 15 is equipped with an input device that accepts user operations. The input device includes dials, buttons, switches, touch panels, etc., and detects operations such as inputting information or changing settings for the digital camera 100, and outputs a detection signal corresponding to the user operation to the control unit 12.

[0034] The display unit 16 is equipped with a display device such as a liquid crystal display or an organic EL (electro-luminescence) display. The display unit 16 displays live view images, allows confirmation of composition during shooting, displays various setting screens, and displays messages. Furthermore, the display unit 16 displays information output from the notification control unit 124 of the control unit 12. When using the touch panel, the display unit 16 can also have display and input functions.

[0035] The communication unit 17 is an interface for sending and receiving information between the digital camera 100 and an external device. The communication unit 17 can transmit acquired image data, depth images, coordinate information, etc., to the external device.

[0036] The functions of the control unit 12 and the image processing unit 13 are implemented by the hardware and / or software of the digital camera 100.

[0037] <Configuration of the imaging unit 11> Next, the configuration of the imaging unit 11 will be described with reference to Figure 2.

[0038] Figure 2(a) is a schematic diagram illustrating the arrangement of a group of pixels. In Figure 2(a), the direction perpendicular to the plane of the paper is defined as the z direction, and the two mutually orthogonal directions within the plane of the paper are defined as the x and y directions. Figure 2(b) is a schematic diagram illustrating the configuration of a unit pixel. In Figure 2(b), the direction perpendicular to the plane of the paper is defined as the y direction, and the two mutually orthogonal directions within the plane of the paper are defined as the x and z directions.

[0039] In Figure 2(a), the imaging unit 11 includes a group of pixels arranged in two dimensions, with multiple pixel units 110 arranged in a two-dimensional manner. Each pixel unit 110 is a 2x2 configuration with different color filters arranged within it. As shown in the enlarged view in Figure 2(a), each pixel unit 110 has one of the following color filters: red (R), green (G), or blue (b). The photoelectric conversion elements constituting the pixel unit 110 output an image signal corresponding to one of the R, G, or B color information. Note that Figure 2(a) shows an example where the top-left pixel has an R color filter, the bottom-right pixel has a B color filter, and the bottom-left and top-right pixels have a G color filter, but the system is not limited to the example in Figure 2(a).

[0040] The imaging unit 11 has a phase-difference distance measurement function. Figure 2(b) illustrates a cross-sectional view of a unit pixel corresponding to the I-I' section in Figure 2(a).

[0041] Each unit pixel includes a light guide layer 113 containing a microlens 111 and a color filter 112, and a light receiving layer 114 containing a first photoelectric conversion unit 115 and a second photoelectric conversion unit 116. In the light guide layer 113, the microlens 111 efficiently guides incident light to the first photoelectric conversion unit 115 and the second photoelectric conversion unit 116. The color filter 112 allows light in a predetermined wavelength band to pass through. The color filter 112 allows only light in a wavelength band corresponding to R, G, or B to pass through and guide it to the subsequent first photoelectric conversion unit 115 and the second photoelectric conversion unit 116.

[0042] The light-receiving layer 114 is provided with a first photoelectric conversion unit 115 and a second photoelectric conversion unit 116. The first photoelectric conversion unit 115 and the second photoelectric conversion unit 116 convert the received light into analog image signals, respectively. The two types of signals output from the first photoelectric conversion unit 115 and the second photoelectric conversion unit 116 are used for distance measurement. In distance measurement, of the first photoelectric conversion unit 115 and the second photoelectric conversion unit 116, which are arranged in a predetermined direction (horizontal direction) in the imaging unit 11, the image signal composed of the signal output from the first photoelectric conversion unit 115 is used as the A image signal, and the image signal composed of the signal output from the second photoelectric conversion unit 116 is used as the B image signal. Depth information or distance information can be obtained from the phase difference between the A image signal and the B image signal. In other words, the first photoelectric conversion unit 115 and the second photoelectric conversion unit 116 each partially receive the light beam that enters through the microlens 111. The A image signal and the B image signal are signals of pupil-splitting images relating to the light beam that has passed through different pupil regions of the exit pupil 101 of the imaging optical system 10. In each pixel section 110, the image signal (so-called added image signal) obtained by photoelectric conversion by both the first photoelectric conversion section 115 and the second photoelectric conversion section 116 is used as the captured image. In other words, the signal obtained by combining the A image signal and the B image signal is equivalent to the viewing image signal output from a photoelectric conversion section that has only one unit pixel.

[0043] The imaging unit 11 of this embodiment is capable of outputting an image signal for viewing and A-image signals and B-image signals (pupil division images) for distance measurement. All pixels of the imaging unit 11 are equipped with multiple photoelectric conversion units, enabling the acquisition of high-density depth information. Although Figure 2(b) shows an example in which two photoelectric conversion units are arranged in one pixel, the configuration is not limited to the example in Figure 2(b), and a configuration in which three or more photoelectric conversion units are provided in one pixel is also possible.

[0044] <Distance measurement method> Next, with reference to Figure 3, a distance measurement method using the image plane phase difference method will be described.

[0045] In the imaging plane phase difference distance measurement method, it is possible to calculate the subject distance based on the A image signal and B image signal (a group of signals from the pupil division image) output from the first photoelectric conversion unit 115 and the second photoelectric conversion unit 116.

[0046] Figure 3(a) is a schematic diagram illustrating the relationship between the exit pupil 101 of the imaging optical system 10 and the light beam received by the first photoelectric conversion unit 115. Figure 3(b) is a schematic diagram illustrating the relationship between the exit pupil 101 of the imaging optical system 10 and the light beam received by the second photoelectric conversion unit 116. In Figures 3(a) and 3(b), the direction perpendicular to the plane of the paper is defined as the y-direction, and the two mutually orthogonal directions within the plane of the paper are defined as the x-direction and the z-direction.

[0047] The microlenses 111 illustrated in Figures 3(a) and 3(b) are arranged such that the exit pupil 101 and the light-receiving layer 114 are optically conjugate. The light beam that passes through the exit pupil 101 of the imaging optical system 10 is focused by the microlenses 111 and guided to the first photoelectric conversion unit 115 or the second photoelectric conversion unit 116. In this case, the first photoelectric conversion unit 115 and the second photoelectric conversion unit 116 mainly receive light that has passed through different pupil regions, as shown in Figures 3(a) and 3(b), respectively. The first photoelectric conversion unit 115 receives light that has passed through the first pupil region 310, and the second photoelectric conversion unit 116 receives light that has passed through the second pupil region 320.

[0048] Multiple first photoelectric conversion units 115 in the imaging unit 11 output a first image signal corresponding to the A image signal. Multiple second photoelectric conversion units 116 in the imaging unit 11 output a second image signal corresponding to the B image signal. From the first image signal, the intensity distribution of the image formed on the imaging surface of the imaging unit 11 by light passing through the first pupil region 310 can be obtained. From the second image signal, the intensity distribution of the image formed on the imaging surface of the imaging unit 11 by light passing through the second pupil region 320 can be obtained. The relative positional shift (parallax) between the first image signal and the second image signal has a magnitude corresponding to the defocus amount.

[0049] The relationship between disparity and defocus will be explained with reference to Figures 3(c), 3(d), and 3(e).

[0050] Figures 3(c), 3(d), and 3(e) illustrate a first light beam 311 passing through the first pupil region 310 and a second light beam 321 passing through the second pupil region 320. Figure 3(c) shows the state when in focus, where the first light beam 311 and the second light beam 321 converge on the light-receiving surface of the imaging unit 11. In this case, the amount of parallax between the first image signal and the second image signal is zero.

[0051] Figure 3(d) shows a defocused state where the image is focused in the negative direction (leftward) of the z-axis (optical axis). The parallax between the first and second image signals is a negative value. Figure 3(e) shows a defocused state where the image is focused in the positive direction of the z-axis. The parallax between the first and second image signals is a positive value. Comparing Figure 3(d) and Figure 3(e), it can be seen that the direction of the positional shift (defocus direction) is reversed depending on whether the amount of defocus is positive or negative. It can also be seen that the positional shift occurs according to the imaging relationship (geometric optical relationship) of the imaging optical system 10, depending on the amount of defocus. The amount of parallax corresponding to the positional shift between the first and second image signals can be detected by a region-based matching method.

[0052] Here, we will explain the relationship between shooting conditions and distance measurement resolution.

[0053] In the image plane phase-detection method, the baseline length W corresponds to the distance between the centroids of the light intensity distribution in the exit pupil, which is equivalent to the baseline length W in triangulation. The baseline length W changes depending on the aperture value, being longest when the aperture is wide open and decreasing when the aperture is stopped down. If the aperture size is smaller than a predetermined size, the two images cannot be distinguished, and distance measurement cannot be performed. The aperture value (limit value) corresponding to this smallest aperture size for distance measurement is a value that depends on the characteristics of the imaging optical system 10 and the imaging unit 11, and the parallax calculation method, but for example, F11 can be set as the limit value in F-number.

[0054] Let F' = f / W be the aperture value (baseline-equivalent F-number) obtained according to the baseline length W. Here, f is the focal length. If the parallax amount on the image plane is r and the focal distance on the image side is s', the image-side defocus amount def can be calculated from Equation 1. (Formula 1) def=rs' / (Wr) Since the baseline length W is in millimeters and the parallax amount r is in micrometers, W >> r. (Formula 2) def≒rs' / W This can be considered as follows. Here, since s' ≈ f can be approximated when macro photography is excluded, (Equation 3) def≒rf / W=rF' It can be expressed as follows.

[0055] The distance measurement resolution depends on the detectable defocus resolution, which in turn depends on the aperture value F' (baseline-length equivalent F-number) determined according to the resolution Δr of the parallax r and the baseline length W. (Formula 4) Δdef≒ΔrF' Therefore, the larger the aperture size (the smaller the baseline length equivalent F-number), the better the distance measurement resolution.

[0056] Let's consider the conversion from the image-side distance resolution Δdef to the object-side distance resolution Δd. If the distance to the object is s, the distance measurement resolution Δd can be obtained from Equation 5. (Formula 5) Δd = Δrs(sf) / {fW + r(sf)} If we assume a magnification β = 1 / m and exclude macro photography, equation 5 can be approximated by equation 6. (Formula 6) Δd≒ΔrF'm2 The smaller the magnification β, that is, the greater the subject distance s when the focal length f is constant, the lower the distance measurement resolution Δd becomes.

[0057] If the distance measurement resolution Δd is set to the desired error range, the measurement error Δh can be calculated and approximated by Equation 7. (Formula 7) Δh(%)≒±mΔrF' / (f±mΔrF')×100 From Equation 7, it can be seen that the measurement error Δh decreases when the reciprocal of the magnification β (m) is small, the aperture value (F' value) is small, and the focal length f is long, assuming that the parallax resolution Δr is constant. In other words, the longer the focal length f and the closer the subject distance s, the higher the accuracy of measurement.

[0058] Alternatively, the resolution of the object may be used as an indicator of measurement accuracy instead of the shooting distance or magnification. The resolution R of the object can be calculated from Equation 8 using the shooting magnification β and the size c of the unit pixel of the pixel section 110. (Formula 8) R=c / β From Equation 8, the resolution R can be obtained by dividing the size c of the unit pixel of the imaging unit 11 by the imaging magnification β.

[0059] The parallax resolution Δr depends on the parallax calculation method and the window size during calculation. However, if the parallax calculation method is the same, it depends on the image's SNR, so the parallax resolution Δr decreases as the ISO sensitivity increases. The parallax resolution Δr can be expressed as a function of ISO sensitivity, but it is also possible to set an ISO sensitivity that satisfies a predetermined parallax resolution Δr and treat it as a constant value to perform the error calculation in Equation 7. As mentioned above, the parallax resolution Δr depends on the parallax calculation method and window size, but good results can be obtained by shooting at ISO 1600 or lower, for example. It should also be noted that although it depends on the desired measurement accuracy, measurement is possible even when the sensitivity is increased up to around ISO 6400.

[0060] As explained above, measurement errors are related to both focal length and magnification, and magnification is determined by the focal length and subject distance. In the case of zoom lenses, the focal length can also be set as a variable parameter.

[0061] Next, we will explain the relationship between shooting conditions and the distance measurement range.

[0062] If the image used to calculate the parallax between two images becomes blurred, it becomes difficult to distinguish between the two images, reducing the accuracy of the parallax calculation. Therefore, the measurable distance range is related to the depth of field of the image. The depth of field is expressed on the image side by the minimum circle of confusion δ and the aperture value F, and the measurable range is within the range of ±αFδ. Here, α is a coefficient determined by the parallax calculation method, etc.

[0063] As mentioned above, the distance measurement accuracy decreases when the focus is lost, so the distance measurement range may be determined in the form of ±αFδ. Alternatively, the distance measurement range may be determined based on the desired distance measurement resolution from Equation 7.

[0064] Next, the depth image generation method of the depth generation unit 131 will be described.

[0065] The depth generation unit 131 performs light intensity correction processing on the A image signal and the B image signal to correct the light intensity balance between the two images. Subsequently, the depth generation unit 131 performs band limiting using a bandpass filter to remove components with low SNR. Then, the depth generation unit 131 derives the parallax amount at each pixel between the two images using correlation calculation. NCC, SSD, SAD, etc., are used as methods for deriving the correlation. NCC is an abbreviation for "Normalized Cross-Correlation". SSD is an abbreviation for "Sum of Squared Difference", and SAD is an abbreviation for "Sum of Absolute Difference". The calculated parallax amount d is converted to a defocus amount using a predetermined conversion coefficient. The defocus amount corresponds to the distance from the imaging unit 11 to the focal point of the imaging optical system 10. If the predetermined conversion coefficient is K and the defocus amount is ΔL, the parallax amount d is converted to a defocus amount ΔL by equation 9. (Equation 9: Variation of Equation 4) ΔL = K × d Furthermore, using the lens formula in geometrical optics shown in Equation 10, the defocus amount ΔL can be converted to the subject distance. (Formula 10) 1 / A + 1 / B = 1 / f In Equation 10, A is the distance from the object surface to the principal point of the imaging optical system 10 (subject distance), B is the distance from the principal point of the imaging optical system 10 to the image plane, and f is the focal length of the imaging optical system 10. In Equation 10, the value of B can be derived from the defocus amount ΔL, so the distance A can be derived based on the setting of the focal length f during shooting.

[0066] The exposure control unit 122 automatically sets the settings to balance the distance measurement resolution, distance measurement range, shutter speed (exposure time), and ISO sensitivity based on the focal length and subject distance during shooting. Considering the distance measurement resolution and range, for example, the aperture value is set to around F4, the ISO sensitivity is set to around 400, and finally the shutter speed is set to achieve proper exposure. The lower limit of the shutter speed is set to, for example, (1 / focal length) plus the number of correction stops from the image stabilization function. If the shutter speed is longer than the set limit, the exposure control unit 122 adjusts the ISO sensitivity setting to 1600 to achieve proper exposure. If the exposure is still low, the exposure control unit 122 adjusts the aperture value if it can be set to F4 or lower. However, depending on the focal length, subject distance, and ambient light level, the measurement accuracy may not meet the desired accuracy, but the exposure control unit 122 adopts the optimal settings within these constraints.

[0067] Next, the method for estimating measurement accuracy by the measurement accuracy estimation unit 123 will be explained.

[0068] The measurement accuracy estimation unit 123 uses the shooting parameters set by the above-described process, the estimated subject distance, and the set focal length to estimate the measurement accuracy using Equation 7. If the measurement accuracy does not meet the required accuracy (a predetermined standard), the measurement accuracy estimation unit 123 selects parameters that can be changed according to the distance measurement mode and determines whether there is a setting in which the measurement accuracy will meet the desired accuracy (above a predetermined threshold) when the parameters are changed. If there is a setting in which the measurement accuracy will meet the desired accuracy, the measurement accuracy estimation unit 123 changes the shooting parameters to a setting in which the measurement accuracy will meet the desired accuracy. Here, individual settings such as aperture value, ISO sensitivity, and shutter speed are set to achieve optimal exposure within the range of limits suitable for measurement. When using settings within the limits of each parameter, it may not be possible to achieve optimal exposure conditions, so the measurement accuracy estimation unit 123 also determines whether or not the optimal exposure conditions are met. In addition, it is possible to adopt a configuration in which the system can select, in a separate setting, whether to prioritize settings for achieving optimal exposure conditions for viewing images or settings for distance measurement, and calculate recommended values ​​according to this setting. Furthermore, the measurement accuracy estimation unit 123 determines the optimal aperture value, ISO sensitivity, and shutter speed for distance measurement, and then calculates combinations of focal length and subject distance that satisfy the desired measurement accuracy. The measurement accuracy estimation unit 123 performs calculations for two cases: when the focal length is fixed and when the subject distance is fixed. In other words, the measurement accuracy estimation unit 123 calculates what subject distance satisfies the desired measurement accuracy at the focal length set by the user, and how many focal lengths satisfy the desired measurement accuracy when the subject distance is fixed.

[0069] <Control Processing> Next, with reference to Figure 4, we will explain the process for determining the optimal shooting conditions in three-dimensional mode.

[0070] Figure 4 is a flowchart illustrating the process for determining the optimal shooting conditions in three-dimensional mode.

[0071] The process shown in Figure 4 is achieved, for example, by the control unit 12 reading a control program stored in ROM into RAM and executing it, thereby controlling each component of the digital camera 100.

[0072] The process shown in Figure 4 begins when the control unit 12 receives a user input to the operation input unit 15 and the shooting mode determination unit 120 detects that the mode has been set to three-dimensional mode.

[0073] In step S401, the control unit 12 starts live view. The control unit 12 repeatedly processes the image signal acquired from the imaging unit 11 in the image generation unit 130 to generate an image for viewing and displays it on the display unit 16, thereby displaying a live view image at a predetermined frame rate on the display unit 16.

[0074] In step S402, the control unit 12 acquires an image signal from the imaging unit 11. In this embodiment, the image signal acquired in the live view in step S401 is used, but an image signal acquired by separately capturing images may also be used. Image acquisition during live view is performed with the aperture open, but the measurable range may be expanded by stopping down the aperture during imaging. This makes it possible to recognize and measure the distance of a wider range of subjects. In addition, in this embodiment, the shooting conditions can be narrowed down by repeating the processing from steps S403 to S407, which will be described later. This makes it possible to narrow down the shooting conditions with higher precision compared to the shooting conditions determined in the previous processing.

[0075] In step S403, the control unit 12 generates a depth image from the image signal acquired in step S402 by the image processing unit 13 and detects the subject distance. The depth generation unit 131 generates two-dimensional information with the subject distance as the pixel value and stores the depth image based on the two-dimensional information in the memory 133. The depth image generation process may be performed on the entire image acquired in step S402, or step S404, described later, may be performed first to limit the target area based on the recognized subject area and speed up the depth image generation process.

[0076] In step S404, the control unit 12 performs subject recognition on the image signal acquired in step S402 using the image processing unit 13. The image generation unit 130 generates a Bayer array image by adding the pixel values ​​of each pixel in the A image signal and B image signal of the image signal acquired in step S402, and performs demosaicing processing on the generated Bayer array image for each of the R, G, and B colors to generate an image suitable for subject recognition. In the generated image, the subject recognition unit 132 identifies the region of the subject in the image. For subject recognition, face detection using well-known feature quantities may be used, or machine learning-based face detection, object detection, segmentation, or Saliency Map estimation methods may be used. Furthermore, the depth image generated in step S403 may be used to improve the accuracy of subject recognition.

[0077] Furthermore, by accepting user input via the operation input unit 15, the system may be configured to more optimally select the subject intended by the user. For example, in three-dimensional mode, the system may accept the selection of multiple distance measurement modes and recognize the subject intended by the user by specifying the preferred subject (human, object, animal, etc.).

[0078] Now, let's refer to Figure 5 to explain the user interface (UI) during live view.

[0079] In this embodiment, an example of a situation in which persons 501, 502, and 503 appear in the live view image will be described.

[0080] The notification control unit 124 notifies the user of the subject area recognized by the subject recognition unit 132 in step S403 via the display unit 16. In the example in Figure 5, when person 501 and person 502 are recognized as subjects, the subject area is notified to the user by superimposing rectangular subject recognition results 511 and 512 onto person 501 and person 502, respectively, in the live view image. The notification method is just one example; other methods such as displaying a semi-transparent superimposition on other shapes, the subject area, or areas outside the subject area are also acceptable.

[0081] Here, the subject recognition unit 132 may accept user input via the operation input unit 15 and use it as auxiliary information for subject recognition. For example, if a person 503 is not recognized as a subject, the user may specify the area of ​​the person 503 with a touch operation or the like to receive an instruction to include the person 503 as a subject in the distance measurement range. Alternatively, if the person 503 is recognized as a subject, the user may specify the area of ​​the person 503 with a touch operation or the like to receive an instruction to exclude the person 503 from the distance measurement range. By providing such a UI, the user can select a more intended subject area and contribute to determining the optimal shooting conditions. As an example of the UI, a touch panel is shown, but user operation may also be done by pressing buttons on the operation input unit 15. By allowing the user to select the subject, it becomes easier for the user to determine the shooting conditions they intend.

[0082] As described above, the distance information for each subject in the image acquired in step S402 can be determined from the correspondence between the subject area recognized in step S404 and the depth image generated in step S403.

[0083] In step S405, the control unit 12 determines the shooting conditions. The control unit 12 determines shooting conditions such that the distance measurement range is the range in which the subjects are located and the texture quality of each subject is the same.

[0084] First, based on the distance information of each subject obtained in steps S403 and S404, the distance range including both nearby and distant subjects is defined as the distance measurement range, and the shooting conditions are determined so that the measurement accuracy of the distance measurement range meets the desired accuracy. This makes it possible to determine the optimal shooting conditions so that the measurement accuracy of the three-dimensional shape of each subject is above a predetermined threshold.

[0085] Next, based on the distance information of each subject obtained in steps S403 and S404, the focus position is determined to be between the closest and furthest subjects, where the amount of blur for the closer subjects is greater than the amount of blur for the furthest subjects. This prevents the texture quality of the furthest subjects from being inferior.

[0086] In particular, by determining the focus position so that the amount of blur for close-range and distant subjects corresponds to the magnification of each subject, it becomes possible to achieve the same texture quality when all subjects are displayed at the same size.

[0087] Here, we will explain the relationship between the amount of blur and the focus point for each subject.

[0088] If we denote the distance between each subject and the front principal point as dist, the distance between the focus point and the front principal point as s1, the aperture value as F, and the focal length as f, then the amount of defocus def can be expressed by equation 11. (Formula 11) def=dist / (dist / f-1)-1 / (1 / f-1 / s1) Furthermore, the relationship between the amount of blur δ and the amount of defocus def for each subject can be expressed using the coefficient α in Equation 12. (Formula 12) δ = def / αF From equations 11 and 12, the relationship between the amount of blur and the focus position for each subject can be expressed by equation 13. (Formula 13) δ=(dist / (dist / f-1)-1 / (1 / f-1 / s1)) / αF From Equation 13, the focus position can be determined at a point where the amount of blur for close subjects is greater than the amount of blur for distant subjects. This prevents the texture quality of distant subjects from degrading at low magnification.

[0089] Furthermore, more preferably, if we let the amount of blur for a close subject be δ1 and the magnification be β1, and the amount of blur for a far subject be δ2 and the magnification be β2, then by finding s1 such that equation 14 holds, it becomes possible to determine the focus position so that the amount of blur for both close and far subjects corresponds to the magnification of each subject. (Formula 14) δ1 + δ2 × β2 / β1 = 0 Furthermore, if the imaging optical system 10 has a characteristic called focus breathing, which causes a change in the magnification depending on the focal position, the magnification β is calculated as a function β(s1) determined by the distance s1 between the focal position and the front principal point by measuring or calculating this characteristic in advance. As described above, the digital camera 100 can determine the shooting conditions even with an imaging optical system 10 that has focus breathing characteristics by determining the focal position based on the magnification change due to focus breathing.

[0090] Furthermore, if three or more subject areas are recognized in step S404, the shooting conditions are determined so that the amount of blur for the farthest subject and the amount of blur for the closest subject are corresponding to the magnification of each subject. This makes it possible to make the textures of the furthest subject and the closest subject equivalent when multiple subjects are present, as the latter would otherwise have the inferior texture.

[0091] Other shooting conditions besides the focus position may be corrected by the measurement accuracy estimation unit 123 and the exposure control unit 122 based on subject information and distance information. For example, the shooting conditions may be determined so that the subject is within a measurement range that results in the desired distance measurement performance, based on the subject recognition result and distance information. In that case, the distance measurement range may also be determined by estimating the thickness of the subject based on the subject recognition result.

[0092] For example, in the case of objects with a somewhat fixed shape, such as a human face, it becomes possible to estimate the position of the eyes and mouth in the image or the thickness of the spherical face. For other objects with a fixed shape, it becomes possible to estimate the overall thickness of the object from the parts that can be accurately recognized and distance-measured. By determining the distance measurement range based on the estimated thickness, it becomes possible to determine the distance measurement range with high accuracy, even for areas that are difficult to see or measure distance from, such as the sides of an object.

[0093] In this embodiment, two subjects were used, but the focus position could also be determined by treating the nose and ear areas of a single person's face as the closer and farther subjects, respectively.

[0094] In step S406, the control unit 12 determines the shooting conditions. The control unit 12 compares the current shooting conditions with the shooting conditions calculated in step S405 and determines whether the difference in shooting conditions is less than or equal to a predetermined threshold. If the difference is less than or equal to the threshold, the notification control unit 124 notifies the user and proceeds to step S408. If the difference is greater than the threshold, proceeds to step S407.

[0095] In step S407, the control unit 12 changes the shooting conditions. The control unit 12 notifies the focus control unit 121 of the shooting conditions determined in step S405 and changes the focus position. Then, by returning to the process in step S402, the control is repeatedly performed until the appropriate focus position is achieved. If the control does not end with a single focus position determination, the movement amount estimation unit 134 may calculate the relative movement amount of the subject with respect to the digital camera 100 by using past live view images. If the movement amount of the subject can be calculated, in step S405, the digital camera 100 can determine the focus position more quickly by calculating the focus position for the expected future position of the subject based on the control cycle and the movement amount of the subject.

[0096] In step S408, the control unit 12 takes a picture. The control unit 12 stops the live view, converts the image signal acquired from the imaging unit 11 into an image for viewing using the image generation unit 130, and displays it on the display unit 16. For processing in the subsequent step S409, the generated image for viewing and depth image are stored in the memory 133 or storage unit 14.

[0097] In step S409, the control unit 12 generates three-dimensional data using the three-dimensional data generation unit 135 based on the depth image generated in step S403, the subject area recognized in step S404, and the viewing image generated in step S408. The three-dimensional data generation unit 135 may, for example, generate three-dimensional data in point cloud format from the xyz data of the depth image and the corresponding viewing image, or it may convert it into polygons to make it easier to handle as three-dimensional data. Polygonization is performed, for example, by defining a surface using the coordinate information of any three adjacent points in the depth image and calculating the texture information of the polygon from the viewing image.

[0098] In this case, the three-dimensional data generation unit 135 may determine the parameters for generating three-dimensional data based on the shooting conditions. By creating a model that retains the necessary and sufficient model information based on the shooting conditions, it becomes possible to generate lighter and easier-to-handle three-dimensional data.

[0099] In particular, by determining the density of the model's shape information and texture information according to the amount of blur of each subject calculated in step S407, it becomes possible to create a model of a sufficient size. For example, a lightweight texture may be generated based on the area with the greatest amount of blur, or the data size may be reduced to the extent that the texture does not degrade, based on the area with the least amount of blur. Of course, the data may also be stored with a variable amount of information according to the amount of blur. Similarly, for shape information, by determining the density of the shape information based on the amount of blur, it becomes possible to reduce the data to the optimal level according to the purpose. In this case, the density of the shape information may be determined by considering the measurement accuracy of the shape information by referring to the measurement accuracy of the shape information.

[0100] In this embodiment, an example of an RGBD camera using pupil-splitting is described, but the invention is not limited to this example, and various other RGBD cameras such as stereo cameras and time-of-flight cameras may be used.

[0101] Furthermore, although this embodiment describes an example of an image processing device that performs three-dimensional modeling, this embodiment may also be applied to an imaging device that takes still images based on shooting conditions, or each subject area may be displayed at 1:1 scale by directly applying deformation processing to the still image.

[0102] As described above, according to this embodiment, it is possible to determine shooting conditions such that the texture quality of the three-dimensional data of each subject in the image is equivalent.

[0103] [Other embodiments] The present invention can also be realized by supplying a program that implements one or more of the functions of the above-described embodiments to a system or device via a network or storage medium, and by having one or more processors in the computer of that system or device read and execute the program. It can also be realized by a circuit (e.g., an ASIC) that implements one or more functions.

[0104] The technical ideas derived from this disclosure are not limited to the exemplary embodiments disclosed, but are intended to encompass various modifications of the exemplary embodiments, or substitutions with equivalent structures or functions. The scope of the following claims should be interpreted in the broadest way to encompass all such modifications and equivalent structures and functions.

[0105] The disclosures herein include the following image processing apparatus, control methods, and programs. [Item 1] A detection means for detecting a subject in an image, An acquisition means for acquiring distance information of the detected subject, An image processing apparatus characterized by having: a determination means for determining the amount of blur of the detected subject based on the shooting conditions of the image and the distance information, and determining the focal position to be a position between the first subject and a second subject that is farther away from the first subject, where the amount of blur for the first subject is greater than the amount of blur for the second subject. [Item 2] The image processing apparatus according to item 1, characterized in that the determination means determines the focus position such that the amount of blur of the first subject and the amount of blur of the second subject are corresponding to the shooting magnification of each subject. [Item 3] If we let δ be the amount of blur for each subject, dist be the distance between each subject and the front principal point, s1 be the distance between the focus position and the front principal point, F be the aperture value, f be the focal length, and α be the coefficient, then the relationship between the amount of blur for each subject and the focus position is: δ=(dist / (dist / f-1)-1 / (1 / f-1 / s1)) / αF The image processing apparatus according to item 2, characterized by being represented as such. [Item 4] If the amount of blur of the first subject is δ1, the shooting magnification of the first subject is β1, the amount of blur of the second subject is δ2, and the shooting magnification of the second subject is β2, then the determination means is: δ1 + δ2 × β2 / β1 = 0 The image processing apparatus according to item 3, characterized in that it determines the focal position such that the amount of blur of the first subject and the amount of blur of the second subject are corresponding to the shooting magnification of each subject, by determining the distance s1 between the focal position and the front principal point such that the following conditions are met. [Item 5] The detection means recognizes the region of the subject in the image, The image processing apparatus according to any one of items 1 to 4, characterized in that the acquisition means acquires distance information of the recognized subject. [Item 6] The image processing apparatus according to any one of items 1 to 5, characterized in that the acquisition means calculates distance information of the detected subject based on an image signal having parallax. [Item 7] The image processing apparatus according to item 6, characterized in that the acquisition means calculates distance information of the detected subject based on the amount of defocus obtained from the image signal having parallax. [Item 8] If the amount of blur of the subject is δ, the distance between the subject and the front principal point is dist, the distance between the focus position and the front principal point is s1, the aperture value is F, the focal length is f, and the amount of defocus is def, then the amount of defocus is, def=dist / (dist / f-1)-1 / (1 / f-1 / s1) It is represented as, The relationship between the amount of blur of the subject and the amount of defocus is given by a coefficient α, δ = def / αF The image processing apparatus according to item 7, characterized by being represented as such. [Item 9] The image processing apparatus according to any one of items 1 to 8, characterized in that the determination means determines the shooting conditions based on the magnification change due to focus breathing. [Item 10] The image processing apparatus according to any one of items 1 to 9, characterized in that, when three or more subjects are detected, the acquisition means selects the subject closest in distance as the first subject and the subject furthest in distance as the second subject. [Item 11] The image processing apparatus according to any one of items 1 to 10, characterized in that the determination means determines the focus position based on the amount of movement of the detected subject. [Item 12] The image processing apparatus according to any one of items 1 to 11, characterized in that the determination means determines the distance measurement range based on the detected subject and determines the shooting conditions so that the measurement accuracy of the distance measurement range satisfies a predetermined accuracy. [Item 13] The image processing apparatus according to item 12, characterized in that the acquisition means sets the distance measurement range by estimating the thickness of the detected subject and determines the shooting conditions. [Item 14] An image processing apparatus according to any one of items 1 to 13, characterized by having a user interface means for receiving user operations to select the first subject and the second subject. [Item 15] The image processing apparatus according to any one of items 1 to 14, characterized by having a three-dimensional data generation means for generating three-dimensional data based on the distance information of the detected subject. [Item 16] The image processing apparatus according to item 15, characterized in that the three-dimensional data generation means determines parameters for generating three-dimensional data based on the shooting conditions. [Item 17] The image processing apparatus according to item 15, characterized in that the three-dimensional data generation means creates a model for generating three-dimensional data based on the shooting conditions. [Item 18] The image processing apparatus according to item 17, characterized in that the three-dimensional data generation means determines the density of the shape information of the model according to the amount of blur of the subject. [Item 19] The image processing apparatus according to item 17 or 18, characterized in that the three-dimensional data generation means determines the density of the texture information of the model according to the amount of blur of the subject. [Item 20] An imaging means for capturing an image via an optical system, An image processing apparatus according to any one of items 1 to 19, characterized by having a control means for controlling the optical system and the imaging means under shooting conditions including the determined focus position. [Item 21] A method for controlling an image processing device, The steps include detecting a subject in the image, The steps include: obtaining distance information of the detected subject, A step of determining the amount of blur of the detected subject based on the shooting conditions of the image and the distance information, A control method characterized by comprising the step of determining a focal position between a first subject and a second subject that is further away from the first subject, such that the amount of blur for the first subject is greater than the amount of blur for the second subject. [Item 22] A program to cause a computer to function as an image processing device as described in any of items 1 through 20. [Explanation of symbols]

[0106] 100...Digital camera, 11...Imaging unit, 12...Control unit, 13...Image processing unit, 15...Operation input unit, 16...Display unit, 130...Image generation unit, 131...Depth generation unit, 132...Subject recognition unit, 135...Three-dimensional data generation unit

Claims

1. A detection means for detecting a subject in an image, An acquisition means for acquiring distance information of the detected subject, An image processing apparatus characterized by having: a determination means for determining the amount of blur of the detected subject based on the shooting conditions of the image and the distance information, and determining the focal position to be a position between the first subject and a second subject that is farther away from the first subject, where the amount of blur for the first subject is greater than the amount of blur for the second subject.

2. The image processing apparatus according to claim 1, characterized in that the determination means determines the focus position such that the amount of blur of the first subject and the amount of blur of the second subject are corresponding to the shooting magnification of each subject.

3. If the amount of blur for each subject is δ, the distance between each subject and the front principal point is dist, the distance between the focus position and the front principal point is s1, the aperture value is F, the focal length is f, and the coefficient is α, then the relationship between the amount of blur for each subject and the focus position is: δ=(dist / (dist / f-1)-1 / (1 / f-1 / s1)) / αF The image processing apparatus according to claim 2, characterized by being represented as follows.

4. If the amount of blur of the first subject is δ1, the shooting magnification of the first subject is β1, the amount of blur of the second subject is δ2, and the shooting magnification of the second subject is β2, then the determination means is: δ1+δ2×β2 / β1=0 The image processing apparatus according to claim 3, characterized in that the focus position is determined by finding the distance s1 between the focal position and the front principal point such that the amount of blur of the first subject and the amount of blur of the second subject are corresponding to the shooting magnification of each subject.

5. The detection means recognizes the region of the subject in the image, The image processing apparatus according to claim 1, characterized in that the acquisition means acquires distance information of the recognized subject.

6. The image processing apparatus according to claim 1, characterized in that the acquisition means calculates distance information of the detected subject based on an image signal having parallax.

7. The image processing apparatus according to claim 6, characterized in that the acquisition means calculates distance information of the detected subject based on the amount of defocus obtained from the image signal having parallax.

8. If the amount of blur of the subject is δ, the distance between the subject and the front principal point is dist, the distance between the focus position and the front principal point is s1, the aperture value is F, the focal length is f, and the amount of defocus is def, then the amount of defocus is, def=dist / (dist / f-1)-1 / (1 / f-1 / s1) It is represented as, The relationship between the amount of blur of the subject and the amount of defocus is given by a coefficient α, δ = def / αF The image processing apparatus according to claim 7, characterized by being represented as such.

9. The image processing apparatus according to claim 1, characterized in that the determination means determines the shooting conditions based on the magnification change due to focus breathing.

10. The image processing apparatus according to claim 1, characterized in that, when three or more subjects are detected, the acquisition means selects the subject closest in distance as the first subject and the subject furthest in distance as the second subject.

11. The image processing apparatus according to claim 1, characterized in that the determination means determines the focus position based on the amount of movement of the detected subject.

12. The image processing apparatus according to claim 1, characterized in that the determination means determines the distance measurement range based on the detected subject and determines the shooting conditions so that the measurement accuracy of the distance measurement range satisfies a predetermined accuracy.

13. The image processing apparatus according to claim 12, characterized in that the acquisition means sets the distance measurement range by estimating the thickness of the detected subject and determines the shooting conditions.

14. The image processing apparatus according to claim 1, characterized by having a user interface means for receiving user operations to select the first subject and the second subject.

15. The image processing apparatus according to claim 1, further comprising a three-dimensional data generation means for generating three-dimensional data based on the distance information of the detected subject.

16. The image processing apparatus according to claim 15, wherein the three-dimensional data generation means determines parameters for generating three-dimensional data based on the shooting conditions.

17. The image processing apparatus according to claim 15, wherein the three-dimensional data generation means creates a model for generating three-dimensional data based on the shooting conditions.

18. The image processing apparatus according to claim 17, wherein the three-dimensional data generation means determines the density of the shape information of the model according to the amount of blur of the subject.

19. The image processing apparatus according to claim 17, wherein the three-dimensional data generation means determines the density of the texture information of the model according to the amount of blur of the subject.

20. An imaging means for capturing an image via an optical system, The image processing apparatus according to claim 1, further comprising control means for controlling the optical system and the imaging means under shooting conditions including the determined focal position.

21. A method for controlling an image processing device, The steps include detecting a subject in the image, The steps include: obtaining distance information of the detected subject, A step of determining the amount of blur of the detected subject based on the shooting conditions of the image and the distance information, A control method characterized by comprising the step of determining a focal position between a first subject and a second subject that is further away from the first subject, such that the amount of blur for the first subject is greater than the amount of blur for the second subject.

22. A program for causing a computer to function as an image processing device according to any one of claims 1 to 20.

Citation Information

Patent Citations

  • Image processing device, imaging device, control method, and program

    JP2017157239A