IMAGE PROCESSING APPARATUS, IMAGING APPARATUS, IMAGE PROCESSING METHOD, AND PROGRAM

The image processing device addresses the challenge of capturing temporal changes by automatically detecting and aligning images for growth recording, ensuring easy observation of size changes.

JP7551302B2Active Publication Date: 2024-09-17CANON KK
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2020030774
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-02-26
Publication Date
2024-09-17
Estimated Expiration
2040-02-26

AI Technical Summary

Technical Problem

Existing image processing devices struggle to easily capture and record temporal changes in subjects, such as growth, due to the need for manual mode setting and difficulty in aligning images taken at different times, making it challenging to observe size changes over time.

Method used

An image processing device with a measurement mode that automatically detects the subject area, sets appropriate shooting conditions, and performs image deformation to align images based on depth information, allowing easy observation of temporal changes.

Benefits of technology

Facilitates easy and continuous photography of subjects for growth recording by automatically adjusting settings and aligning images, enabling effective comparison of size changes over time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007551302000005
    Figure 0007551302000005
  • Figure 0007551302000011
    Figure 0007551302000011
  • Figure 0007551302000016
    Figure 0007551302000016
Patent Text Reader

Abstract

To provide an image processing device which can easily image the temporal change such as the growth of a subject.SOLUTION: An imaging apparatus 1 can measure the length of a subject by using distance information associated with a photographed image of the subject. A storage unit 14 stores information about the subject being a measurement object. When a region of the subject stored in the storage unit 14 is detected in the photographed image, an imaging condition or image generation condition about the information on the subject is changed. A mode is changed to a measurement mode for measuring the length of the subject, and an image processing unit 13 generates an image for appreciation under the changed imaging condition or image generation condition. The image processing unit 13 performs image deformation processing by using the distance information of the subject being the measurement object. A display unit 16 displays the image of the subject subjected to the image deformation processing and the image of the subject stored in the storage unit 14.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image processing apparatus having a function of measuring the length of a subject using distance information related to an image of the subject. [Background technology]

[0002] Methods for non-contact measurement of the distance to a measurement target include a multi-lens imaging method, an imaging plane phase difference ranging method, and a TOF (Time of Flight) method. There is also a technology for fixed-point observation by capturing images at the same position and posture using an imaging device. Patent Document 1 discloses a fixed-point observation method at a civil engineering construction site. The imaging position and altitude are acquired using GPS (Global Positioning Satellite) information. The imaging azimuth and elevation angle are acquired using an elevation angle sensor, and the image is captured by an imaging device installed on a dedicated pan head. The imaging device disclosed in Patent Document 2 performs a process for determining the identity of the subject to be captured by using the time of capture, the displacement of the imaging position by the GPS unit, and the change in the elevation angle sensor output. If it is determined that the subject captured in the previous capture is likely to be the same as the subject captured in the current capture, the manually set and saved imaging conditions are made valid, and the imaging conditions are used for the current capture. For example, the size of the same subject (children, pets, animals, plants, etc.) is observed daily to record their growth. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2004-080359 A [Patent Document 2] JP 2013-016928 A Summary of the Invention [Problem to be solved by the invention]

[0004] Incidentally, when continuously photographing a subject and recording image data, it is necessary to simultaneously obtain and record the image and distance information of the subject. For this purpose, the imaging device is set to a dedicated imaging mode (hereinafter referred to as measurement mode) for obtaining and recording the captured image and distance information, and then photographs are taken. For example, while photographing the same subject for the purpose of recording its growth over a long period of time, the user may photograph another subject. If the user forgets to set the measurement mode after that, it will no longer be possible to continuously photograph the subject and record the images.

[0005] In addition, in the conventional technology, the imaging device must be installed or fixed in the same place as when the previous image was taken, so it is not easy to set up and take a picture. Also, if a user simply arranges images taken individually using the imaging device side by side, it is inconvenient because it is difficult to observe changes in the size of the subject. An object of the present invention is to provide an image processing device that can easily capture images of changes over time, such as the growth of a subject. [Means for solving the problem]

[0006] An image processing device according to an embodiment of the present invention includes: By imaging means A captured image and distance information of a subject related to the image Or depth information that indicates the depth of the subject Get In measurement mode An image processing device capable of measuring the length of the subject, Image information of a measurement object captured by the imaging means in the measurement mode and distance information or depth information of the measurement object A storage means for storing the By the imaging means A detection means for detecting a subject from a subject area in a captured image; a control for setting a photographing condition or an image generating condition for the imaging means in the measurement mode when a subject area in the image corresponds to the measurement subject; Means, In the measurement mode, an image of a subject to be measured is taken from the images acquired by the imaging means. An image generating means for generating an image; The image of the subject generated by the image generating means and an image transformation means for performing image transformation processing. The image transformation means performs a process of rotating the image of the measurement subject so that the orientation of the measurement subject in the image of the measurement subject stored in the memory means matches the orientation of the subject in the image of the subject generated by the image generation means. Effect of the Invention

[0007] According to the present invention, it is possible to provide an image processing device that can easily capture images of changes over time, such as the growth of a subject. [Brief description of the drawings]

[0008] [Figure 1] 1 is a block diagram showing a configuration of an image processing device according to an embodiment. [Diagram 2] 1 is a block diagram illustrating components of an image processing apparatus according to an embodiment. [Diagram 3] FIG. 2 is a schematic diagram showing a configuration of an imaging element. [Figure 4] FIG. 2 is a schematic diagram illustrating the principle of distance measurement using an image sensor. [Diagram 5] 4 is a flowchart illustrating a process of the image processing device according to the embodiment. [Figure 6] 11 is a flowchart illustrating a distance calculation and image transformation process. [Figure 7] FIG. 4 is a diagram showing a display example by a display unit. [Figure 8] FIG. 13 is a schematic diagram showing an example of an image of a growth record. [Figure 9] FIG. 11 is a schematic diagram illustrating an image transformation process according to a first modified example. [Figure 10] 13 is a flowchart illustrating an image transformation process according to a first modified example. [Figure 11] 13 is a flowchart illustrating processing of an imaging device according to a second modified example. [Figure 12] 11A and 11B are schematic diagrams illustrating an example of a method for inputting a dimension measurement position. [Figure 13] 11A and 11B are diagrams illustrating a data acquisition process in a recording mode. [Figure 14] 11A and 11B are diagrams illustrating a process of determining a non-recording period. [Figure 15] 11A and 11B are schematic diagrams showing examples of displaying a captured image and notifying a photographer. [Figure 16] 10A to 10C are diagrams illustrating another example of the data acquisition process in the recording mode. [Figure 17] FIG. 13 is a diagram illustrating a determination threshold for a non-recording period. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] An embodiment of the present invention will be described in detail with reference to the drawings. Fig. 1 is a system configuration diagram that shows a schematic configuration of an imaging device as an example of an image processing device of this embodiment. The imaging device 1 includes an imaging optical system (imaging optical system) 10, an imaging element 11, a control unit 12, an image processing unit 13, a storage unit 14, an input unit 15, a display unit 16, a communication unit 17, and a recording control unit 18.

[0010] The imaging optical system 10 focuses light from a subject and forms an image on the imaging element 11. The imaging optical system 10 is composed of optical components such as a lens group and an aperture, and has an exit pupil 101 at a position a predetermined distance away from the imaging element 11. In FIG. 1, an optical axis 102 of the imaging optical system 10 is shown by a dashed dotted line, and a three-dimensional Cartesian coordinate system is defined by a z-axis parallel to the optical axis 102, and x- and y-axes. The x- and y-axes are mutually perpendicular and are both orthogonal to the z-axis. In FIG. 1, the axis perpendicular to the paper surface is shown as the y-axis, and the two axes within the paper surface are shown as the x- and z-axes.

[0011] The imaging element 11 is an image sensor using a CCD (charge-coupled device) or a CMOS (complementary metal-oxide semiconductor), and has a distance measurement function using an imaging surface phase difference method. The imaging element 11 performs photoelectric conversion on the subject image formed via the imaging optical system 10, and outputs an image signal based on the subject image and distance information from the imaging device 1 to the subject.

[0012] The control unit 12 includes, for example, a CPU (Central Processing Unit), and controls each unit of the imaging device 1. The control unit 12 performs processes such as autofocus (AF) control, changing the focus position, changing the F-number (aperture value), and capturing image signals. The control unit 12 also controls the image processing unit 13, the storage unit 14, the input unit 15, the display unit 16, the communication unit 17, and the recording control unit 18.

[0013] The image processing unit 13 acquires the imaging signal output by the imaging element 11 and performs image processing. The configuration of the image processing unit 13 will be described later with reference to Fig. 2. The storage unit 14 has a non-volatile storage medium, and stores data acquired by the imaging device 1, image information related to a growth record of the subject, image generation conditions, parameter data used in the imaging device 1, and the like. Any storage medium may be used as long as it is capable of reading and writing information at high speed and has a large capacity, and examples of such storage medium include flash memory.

[0014] The input unit 15 includes an interface device for allowing the user to input information and change settings to the imaging device 1. For example, the user can operate the imaging device 1 using a dial, a button, a switch, a touch panel, etc. The display unit 16 includes a liquid crystal display, an organic EL (electroluminescence) element, etc. The display unit 16 is used to check the composition when shooting, and also displays various setting screens, message information, captured images related to the growth record of the subject, etc. The communication unit 17 transmits data of the captured image generated by the image processing unit 13, setting parameters at the time of shooting, image generation parameters, etc. to an external device. The recording control unit 18 controls recording of captured image data, distance information of the subject, etc. on a recording medium.

[0015] 2A is a block diagram showing the configuration of the image processing unit 13 of this embodiment. The image processing unit 13 includes an image generating unit 130, a distance generating unit 131, a detecting unit 132, a reading unit 133, an image transforming unit 134, a registering unit 135, a setting unit 136, and a memory 137.

[0016] The image generation unit 130 performs various signal processing on the signal output from the image sensor 11. For example, noise removal, demosaicing, luminance signal conversion, aberration correction, white balance adjustment, and color correction are performed. The image data output by the image generation unit 130 is stored in a memory 137 and used by the detection unit 132, the display unit 16, etc.

[0017] The distance generation unit 131 generates a distance image that represents the distribution of distance information of the subject in the captured image, using signals acquired by the ranging pixels of the image sensor 11. The distance image information is two-dimensional information in which the value indicated by each pixel represents distance information of the subject present in the region of the captured image corresponding to the pixel. Examples of distance information or depth information that represents the depth of the subject in the depth direction include an image shift amount map and a defocus amount map. The image shift amount map is calculated from a plurality of viewpoint images with different viewpoints, and the defocus amount map is calculated by multiplying the image shift amount by a predetermined conversion coefficient. The distance map or distance image in which the defocus amount is converted into distance information of the subject represents the distance distribution related to the captured image.

[0018] The detection unit 132 detects the subject to be photographed, that is, the subject to be recorded, based on the image data generated by the image generation unit 130. The detection unit 132 acquires position information and size information of the subject area in the captured image. The reading unit 133 reads out from the storage unit 14 image information, photographing conditions, image generation parameters, etc., when the subject to be recorded is photographed.

[0019] The image transformation unit 134 performs image transformation processing so that the user can easily observe the comparison result with the previously acquired captured image for growth record. The registration unit 135 stores the shooting conditions, image generation conditions, image data of the observation subject, etc. when new shooting for growth record is performed in the storage unit 14. The setting unit 136 performs a measurement mode setting process based on predetermined conditions. The memory 137 stores various data used by the image processing unit 13.

[0020] 2(B) and 2(C) are block diagrams showing another example of the image processing unit 13 and the configuration of the recording control unit 18. The dimension generating unit 138 included in the image processing unit 13 generates dimensional information of the subject in the captured image. The recording control unit 18 recognizes the subject and registers the information, and performs processing to present the subject image with the dimensional information added to the user. Specific processing will be described in a second modified example described later.

[0021] The image processing unit 13 or the recording control unit 18 may be configured in an embodiment in which each unit is configured using a logic circuit, or in an embodiment in which each unit is configured using a CPU and a memory that stores a calculation processing program.

[0022] Next, the configuration of the image sensor 11 will be described with reference to Fig. 3. As the image sensor 11, an example of an image sensor having a distance measurement function by an image plane phase difference method is shown. The image sensor 11 performs photoelectric conversion on the subject image formed on the image sensor 11 via the imaging optical system 10, and outputs an image signal. The image generating unit 130 and the distance generating unit 131 perform development processing on the acquired image signal, thereby generating an ornamental image and distance information. For example, the generated ornamental image is displayed on the screen of the display unit 16, or the image data is transmitted to an external device via the communication unit 17.

[0023] FIG. 3(A) is an xy cross-sectional view of the image sensor 11, and shows a schematic pixel arrangement when viewed from the z-axis direction (optical axis direction). The image sensor 11 is composed of a pixel group in which a large number of pixel sections 110 are arranged. Each pixel section 110 has a 2-row, 2-column arrangement to which different color filters are applied. As shown in the right diagram, red (R), green (G), and blue (B) color filters are arranged, and an image signal corresponding to any one of the colors R, G, and B is output from a photoelectric conversion element constituting the pixel section 110. Note that, although FIG. 3(A) shows an example in which R color filters are arranged at the top left, B at the bottom right, and G at the bottom left and top right, the arrangement of the color filters is not limited to the Bayer arrangement.

[0024] II in Figure 3(A) *A cross-sectional view of a unit pixel taken along the line is shown in FIG. 3(B). FIG. 3(B) is a diagram showing a schematic configuration of one pixel. The unit pixel is capable of distance measurement and outputs a distance measurement signal together with an image signal. The unit pixel is composed of a light guide layer 113 and a light receiving layer 114. The light guide layer 113 is provided with a microlens 111 for efficiently guiding an incident light beam to a photoelectric conversion section, a color filter 112 for passing light in a predetermined wavelength band, image readout wiring, and pixel drive wiring (not shown). The color filter 112 passes only light in a wavelength band corresponding to R, G, or B, and guides it to a first photoelectric conversion section 115 and a second photoelectric conversion section 116.

[0025] The first photoelectric conversion unit 115 and the second photoelectric conversion unit 116 arranged on the light receiving layer 114 perform photoelectric conversion on the incident light and output analog image signals, respectively. The two types of signals output from the two photoelectric conversion units are used for distance measurement. That is, of the two photoelectric conversion units arranged in a predetermined direction (horizontal direction) in the image sensor 11, an image signal composed of a signal output from the first photoelectric conversion unit 115 is defined as an A image signal, and an image signal composed of a signal output from the second photoelectric conversion unit 116 is defined as a B image signal. The A image signal and the B image signal are signals of pupil division images related to light beams that have passed through different pupil partial regions of the exit pupil 101 of the imaging optical system 10. Distance information (or depth information) can be obtained from the phase difference between the A image signal and the B image signal. A signal obtained by adding the A image signal and the B image signal (so-called added image signal) is used as an ornamental image signal.

[0026] The structure shown in FIG. 3 allows one pixel unit to output both an ornamental image signal and a distance measurement signal. It is not necessary for all pixel units to have two photoelectric conversion units. It is also possible to obtain an ornamental image signal from a pixel group having a non-divided photoelectric conversion unit. In order to obtain high-density distance information, it is desirable that all pixel units constituting the image sensor 11 have a configuration including multiple photoelectric conversion units. Although an example of a configuration in which two photoelectric conversion units are arranged in one pixel unit has been shown, this is not limiting, and one pixel unit may have three or more photoelectric conversion units.

[0027] The principle of distance measurement using the image-surface phase difference method will be described with reference to Fig. 4. Based on the outputs of the first photoelectric conversion unit 115 and the second photoelectric conversion unit 116 that form the pupil division pixel group, it is possible to derive distance information of a subject. Figs. 4(A) and (B) are explanatory diagrams of the optical relationship between the exit pupil 101 of the imaging optical system 10 and the first photoelectric conversion unit 115 and the second photoelectric conversion unit 116 provided in the imaging element 11.

[0028] Fig. 4(A) is a schematic diagram showing the exit pupil 101 of the imaging optical system 10 and a light beam received by the first photoelectric conversion unit 115. Fig. 4(B) is a schematic diagram showing the exit pupil 101 and a light beam received by the second photoelectric conversion unit 116. In Figs. 4(A) and (B), the direction perpendicular to the paper surface is defined as the y direction, and two directions perpendicular to each other within the paper surface are defined as the x direction and the z direction.

[0029] The microlens 111 shown in Fig. 4(A) and (B) is disposed so that the exit pupil 101 and the light receiving layer 114 are in an optically conjugate relationship. A light beam passing through the exit pupil 101 of the imaging optical system 10 is collected by the microlens 111 and guided to the first photoelectric conversion unit 115 or the second photoelectric conversion unit 116. At this time, the first photoelectric conversion unit 115 and the second photoelectric conversion unit 116 mainly receive light passing through different pupil partial regions 210 and 220, respectively, as shown in Fig. 4(A) and (B). The first photoelectric conversion unit 115 receives light passing through the first pupil partial region 210, and the second photoelectric conversion unit 116 receives light passing through the second pupil partial region 220.

[0030] The first photoelectric conversion units 115 included in the image sensor 11 output a first image signal corresponding to the A image signal. The second photoelectric conversion units 116 included in the image sensor 11 output a second image signal corresponding to the B image signal. From the first image signal, it is possible to obtain the intensity distribution of an image formed on the image sensor 11 by light passing through the first pupil partial region 210. From the second image signal, it is possible to obtain the intensity distribution of an image formed on the image sensor 11 by light passing through the second pupil partial region 220. The relative positional deviation amount between the first image signal and the second image signal (so-called parallax amount) is a value according to the defocus amount. The relationship between the parallax amount and the defocus amount will be described with reference to FIGS. 4(C), (D), and (E).

[0031] 4(C), (D), and (E) show a first light beam 211 passing through the first pupil partial region 210 and a second light beam 221 passing through the second pupil partial region 220. Fig. 4(C) shows a state at the time of focusing, in which the first light beam 211 and the second light beam 221 converge on the light receiving surface of the image sensor 11. At this time, the amount of parallax between the first image signal and the second image signal is zero.

[0032] FIG. 4(D) shows a defocused state in which the image is focused in the negative direction (left direction) of the z-axis (optical axis). The amount of parallax between the first image signal and the second image signal is a negative value. FIG. 4(E) shows a defocused state in which the image is focused in the positive direction of the z-axis. The amount of parallax between the first image signal and the second image signal is a positive value. Comparing FIG. 4(D) and FIG. 4(E) shows that the direction of the positional shift 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 depending on the amount of defocus. The amount of parallax corresponding to the amount of positional shift between the first image signal and the second image signal can be detected by a region-based matching method.

[0033] As described above, by using an image sensor having a distance measuring function based on an image plane phase difference method, it is possible to obtain information about the distance from the image pickup optical system to the subject by using video information.

[0034] Next, a processing example in the imaging device 1 will be described with reference to the flowcharts of Fig. 5 and Fig. 6. An example of photography for the purpose of recording the growth of a subject is shown. The following processing starts when the imaging device 1 is initialized after startup, becomes ready for photography in normal photography mode, and photography is performed. The normal photography mode is a photography mode other than the measurement mode. The photography operation starts after the user looks into the viewfinder, or after AF control starts by half-pressing a photography switch (not shown).

[0035] In S301 of FIG. 5, the reading unit 133 reads from the storage unit 14 image information of the subject photographed in the measurement mode, which has been photographed as a growth record of the subject and stored in the storage unit 14. When there are multiple pieces of image information of the same subject, the latest image information is read. The image information is coordinate information (for example, the coordinates of four points surrounded by a rectangular frame) indicating the area in which the subject that is the subject of the growth record is captured, and information on the image of that area or the entire image, and there is no particular limitation. In addition, a distance image of the subject to be measured (measurement subject) is also read. The distance image is coordinate information indicating the subject area in the distance image corresponding to the measurement subject, and information on the distance image of that area or the entire distance image, and there is no particular limitation.

[0036] Next, in S302, the detection unit 132 detects a subject area based on the information read in S301 from the live view image displayed on the screen of the display unit 16. Specifically, there is a method of performing template matching on a partial image including the measurement subject, and a matching method using a feature descriptor of a local area of ​​the image. There is also a method of comparing the distribution of luminance or color, or the distribution in frequency space by frequency transformation such as FFT (Fast Fourier Transform), as the feature of the entire image or a local area. There is also a method of comparing the similarity of images using PSNR (Peak Signal-to-Noise Ratio) or SSIM (Structural Similarity). Furthermore, a judgment method based on a combination of comparison between images and shooting conditions such as focal length may be adopted.

[0037] If it is determined in S302 that the subject area of ​​the measurement subject does not exist in the image, the process proceeds to S303. After shooting in normal shooting mode in S303, the process returns to the initial process. If it is determined in S302 that the subject area of ​​the measurement subject exists in the image, the process proceeds to S304.

[0038] In S304, the control unit 12 and the setting unit 136 determine whether or not to shoot in the measurement mode. In this step, as shown in FIG. 7A, for example, a message is displayed on the screen of the display unit 16 indicating that a subject acquired in the measurement mode has been detected and asking whether or not to shoot in the measurement mode. In this case, the operator can give an instruction for shooting in the measurement mode by operating a button "Yes" or "No" displayed on the screen. Alternatively, a process of automatically transitioning to the measurement mode according to a predetermined condition may be performed. The predetermined condition is that the mode is a still image shooting mode, or that the mode is not a continuous shooting mode or a video shooting mode. If it is determined in S304 that the mode is not to be transitioned to the measurement mode, the process proceeds to S303, and if it is determined that the mode is to be transitioned to the measurement mode, the process proceeds to S305.

[0039] In S305, the control unit 12 sets, to the image processing unit 13, the parameters of the photographing conditions and the image generation conditions when the measurement subject detected in S302 was photographed. First, the information of the photographing conditions and the image generation parameters related to the image information photographed to record the growth of the subject are read from the storage unit 14. From among them, various parameters such as the focal length and the white balance adjustment are read, and the control unit 12 sets the parameters used for the focal length, the white balance adjustment, and the like. Also, as described later, in S307, when the image is transformed to a size when the subject is photographed at the same distance using the subject distance, the current subject distance and the previous subject distance are compared. If the current subject distance is significantly different from the previous subject distance (if the distance difference is equal to or greater than a threshold value), a process is performed to notify the user of this and prompt the user to move the photographing position.

[0040] In S306, shooting is performed with the shooting parameters set in S305. The image generating unit 130 and the distance generating unit 131 generate an ornamental image and a distance image, respectively. In the imaging element 11 configured as shown in FIG. 3, each pixel unit has two photoelectric conversion units 115, 116, and two image signals S1 and S2 are output. In image generation, the image signals S1 and S2 of each pixel unit are added to form one image signal, and a process is performed to output an image signal of a Bayer array. For the image signal of the Bayer array, demosaicing is performed on the image signal components of each color of R (red), G (green), and B (blue) to generate an ornamental image. Demosaicing is variable depending on the color filter arranged on the imaging element 11, and there is no particular restriction on the demosaicing method. In addition, processes such as noise reduction, luminance signal conversion, aberration correction, white balance adjustment, and color correction are executed. Furthermore, histogram averaging processing and color conversion are executed. The histogram averaging process is a process for adjusting the luminance distribution of the photographed image to that of the image of the measurement subject region stored in the storage unit 14. The color conversion process is a process for adjusting the color distribution of the photographed image to that of the image of the measurement subject region stored in the storage unit 14. The final data of the ornamental image is stored in the memory 137.

[0041] In S306, distance generation unit 131 generates a distance image. Image sensor 11 having the configuration shown in Fig. 3 outputs image signals S1 and S2 for each pixel, and distance information is generated from S1 and S2. The distance generation process will be described later with reference to Fig. 6(A). In S307, image transformation unit 134 performs image transformation process on the image captured in the measurement mode set by setting unit 136. The image transformation process will be described later with reference to Fig. 6(B).

[0042] In S308, the display unit 16 displays the image processed in S307 on the screen. For example, a plurality of images for growth recording stored in the storage unit 14 are switched and displayed at regular intervals. Alternatively, the display of a plurality of images is switched in accordance with an operation instruction given by the user using the input unit 15.

[0043] In S309, the control unit 12 executes a determination process as to whether or not to perform re-shooting. If the user who has determined the display result in S308 does not give an instruction to perform re-shooting, the process proceeds to S310, and if the user gives an instruction to perform re-shooting, the process returns to S306 to continue shooting.

[0044] In S310, the registration unit 135 performs registration processing, and the information on the measurement target (subject) area in the captured image acquired in S306, the distance information, the shooting conditions, and the image processing conditions is stored in the storage unit 14. In this step, as shown in FIG. 7B, for example, a query message is displayed on the screen of the display unit 16 asking whether or not to register the subject data acquired in the measurement mode. In this case, the operator can give an instruction by operating the "Yes" or "No" button displayed on the screen. After S310, the series of processes ends.

[0045] FIG. 6A is a flowchart for explaining the process performed by the distance generating unit 131 in S306 shown in FIG. 5. In S3061, the light amount correction is performed on the first image signal S1 and the second image signal S2 output from the image sensor 11. At the peripheral angle of view of the imaging optical system 10, the shapes of the first pupil partial region and the second pupil partial region in the exit pupil are different due to vignetting. Therefore, the light amount correction is performed to suppress the loss of the light amount balance between the first image signal S1 and the second image signal S2. The distance generating unit 131 performs the light amount correction on the image signals S1 and S2 using the light amount correction value stored in the memory 137. Regarding the manufacturing error of the optical members constituting the imaging optical system 10, a bandpass filter that blocks DC components and has a low pass rate for high frequency components is used.

[0046] In S3062, noise reduction processing is performed on the image signals S1 and S2. Specifically, the distance generating unit 131 performs filter processing on the first image signal S1 and the second image signal S2. In general, the higher the spatial frequency is, the lower the S / N ratio (signal-to-noise ratio) is, and the more noise components there are relatively. Therefore, a low-pass filter with a lower pass rate is used for higher frequencies.

[0047] In S3063, the distance generating unit 131 calculates the amount of parallax between the first image signal S1 and the second image signal S2. Specifically, a point of interest corresponding to the representative pixel information is set in the image related to the first image signal S1, and a matching area with the point of interest as the center is set. The matching area is, for example, a rectangular area with one side of a predetermined size centered on the point of interest. Next, a reference point is set in the image related to the second image signal S2, and a reference area with the reference point as the center is set. The reference area has the same size and shape as the matching area. While the reference point is moved sequentially, the degree of correlation between the first image signal S1 included in the matching area and the second image signal S2 included in the reference area is calculated, and the point with the highest degree of correlation is determined as the corresponding point corresponding to the point of interest. The relative positional deviation amount between the point of interest and the corresponding point corresponds to the amount of parallax at the point of interest. By calculating the amount of parallax while sequentially changing the point of interest according to the representative pixel information, the amount of parallax at a plurality of pixel positions can be calculated. Methods such as NCC, SSD, and SAD can be used as a method of calculating the degree of correlation. NCC stands for "Normalized Cross-Correlation," SSD stands for "Sum of Squared Difference," and SAD stands for "Sum of Absolute Difference." By setting the position for calculating the amount of parallax to be the corresponding position in the image, distance information at each position can be obtained.

[0048] Also, the parallax amount can be converted into the defocus amount using a predetermined conversion coefficient. The defocus amount corresponds to the distance from the imaging element 11 to the focal point of the imaging optical system 10. The predetermined conversion coefficient is represented as K, the defocus amount as ΔL, and the parallax amount as d. The parallax amount d can be converted into the defocus amount ΔL by the following formula (1). ΔL=K×d...Equation (1)

[0049] Furthermore, the defocus amount ΔL can be converted into an object distance using the lens formula in geometric optics. 1 / A + 1 / B=1 / F...Equation (2) In equation (2), A represents the distance from the object surface to the principal point of the imaging optical system 10. B represents the distance from the principal point of the imaging optical system 10 to the image surface, and F represents the focal length of the imaging optical system 10. In equation (2), the value of B can be calculated from the defocus amount ΔL, and the focal length F is obtained by the imaging optical system 10, so that the distance A can be calculated.

[0050] Next, the image transformation process shown in S307 in Fig. 5 will be described with reference to Fig. 6(B) and Fig. 8. Fig. 6(B) is a flowchart of the image transformation process. Fig. 8 is a schematic diagram showing an example of a growth record of a plant that is a measurement subject. Image transformation process is performed on a plurality of captured images so that a user can easily compare the relative sizes of the subjects in the images.

[0051] First, in S3071, the image transformation unit 134 extracts the subject area in the image. Information on the circumscribing rectangle including the measurement subject detected in S302 in Fig. 5(A) is used. Fig. 8(A) shows images (a) and (b) of the same subject captured at different times. For example, image (a) is the image previously captured in measurement mode, and image (b) is the image currently captured in measurement mode.

[0052] Next, in S3072, a feature point extraction process is performed. Feature points of the image of the measurement subject area extracted in S3071 are detected by the FAST method, Harris corner detector, or the like. Image (c) shown in FIG. 8B corresponds to image (a), and image (d) corresponds to image (b). Black dots in images (c) and (d) indicate extracted feature points. Information on the feature points is stored in memory unit 14.

[0053] In S3073, two-dimensional rotation and magnification (enlargement or reduction) of the image are performed, and the image captured in the measurement mode is transformed. First, the image transformation unit 134 compares the feature points of the image (d) with the feature points of the image (c) acquired from the storage unit 14, and calculates the two-dimensional rotation amount (R 2 Specifically, for each feature point extracted in S3072, the correspondence between the feature points is found, and the rotation amount R 2Next, in order to relatively compare the images, the image transformation unit 134 calculates a magnification (denoted as M) for transforming the currently captured image by the following formula (3). M=D(t) / D(t-1)...Equation (3) In equation (3), D(t) and D(t-1) respectively represent the distance of the current object image and the distance of the comparison source (e.g., the previous object image). t is a parameter corresponding to the shooting time.

[0054] There are the following methods for selecting the subject distance used to calculate the magnification M. A method that uses the average distance calculated from the distance information of all feature points related to the same subject in an image. A method of using distance information of a specific feature point or distance information of a predetermined number of feature points among a pair of feature points that correspond to each other and relate to the same subject in an image.

[0055] Finally, the image transformation unit 134 calculates the rotation amount R 2 and magnification M to perform image deformation processing (geometric transformation) of the subject image. Image (e) shown in FIG. 8C corresponds to image (a), and image (f) corresponds to image (b). The amount of rotation R 2 Image (f) is generated by performing image transformation processing using the magnification M. In other words, it is possible to generate an image that is easy to observe by aligning the subject's direction and distance between multiple images taken in measurement mode.

[0056] In this embodiment, even if a user simply photographs the subject using an imaging device, it is possible to obtain images that allow comparison of a measurement subject that changes over time. Measurement subjects that change over time include animals, plants, moving objects, etc., and are subjects to be recorded. When the same measurement subject is photographed multiple times, images are obtained that are observed from the same or similar direction and that allow the change in size of the measurement subject to be understood.

[0057] Although an example of acquiring distance information using the imaging plane phase difference method has been described, distance information may be acquired using other methods such as a multi-lens imaging method or a TOF method, and is not limited to a specific acquisition method. This also applies to the following modified examples.

[0058] [First Modification] Next, a first modified example will be described with reference to Figs. 9 and 10. An example of image deformation processing that takes into account the three-dimensional distribution of distance information of a measurement subject will be shown. When a user compares recorded images of the subject's growth, it is possible to provide an image that is easier to observe. Detailed explanations of matters that have already been explained in the above embodiment will be omitted, and differences will be mainly explained. The method of omitting such explanations will be the same in the modified examples described later.

[0059] Fig. 9 is a schematic diagram for explaining the image transformation process. Fig. 10 is a flowchart for explaining the process performed by the image transformation unit 134. The process from S701 to S703, which is different from Fig. 6(B), will be explained. After S3072, the process proceeds to S701.

[0060] In S701, a three-dimensional point group of feature points is generated using the coordinate values ​​of the feature points calculated in S3072 and the distance image generated in S306 of Fig. 5. Next, in S702, a generation process of projection parameters for image deformation is performed. Specifically, an approximate plane in the three-dimensional point group is calculated, and the normal line is transformed so as to be perpendicular to the optical axis of the imaging device, thereby calculating a projection transformation matrix. An overview of this process will be described with reference to Fig. 9.

[0061] 9 shows the position 601 of the image capture device with respect to the measurement object, indicated by a solid line, and the position 602 of the image capture device with a dotted line. A plurality of feature points 603 are feature points extracted from an image of the measurement object 600 captured at the image capture device position 601. The plurality of feature points 603 indicate a three-dimensional point group that is drawn on the object side using distance information, and a three-dimensional plane 604 is shown in which the three-dimensional point group is approximated by a plane. The three-dimensional plane 604 is expressed by the formula "ax+by+cz+d=0", and the normal vector 605 is expressed by n p =[a,b,c] T(T represents transposition). x, y, and z represent the coordinate values ​​of a three-dimensional orthogonal coordinate system, and a, b, c, and d are all constants. The position of the imaging device directly facing the normal vector 605 is position 602 indicated by the dotted line. In other words, even if the imaging device is not actually placed at position 602, if an image that would be captured if the imaging device were placed at position 602 can be generated, the size of the measurement subject 600 can be observed more clearly.

[0062] The image transformation unit 134 calculates projection parameters for performing image transformation so as to obtain an image captured at a position where the measurement object 600 is more easily observed. Specifically, a vector in the optical axis direction of the imaging device assumed at the position 602 is calculated as n c =[0,0,-1] T The vector n in the optical axis direction is written as c , the normal vector n of the three-dimensional plane 604 p The rotation vector for orienting the object is denoted as r. The rotation vector r is expressed by the following formula (4). r=cos -1 (n p T *n c )*(n p ×n c ) / |nt×nz|...Equation (4) In formula (4), cos -1 represents the arc cosine function, * represents the product of each element (scalar product), × represents the cross product (vector product), and || represents the norm. By using Rodrigues' formula from the rotation vector r, the rotation matrix (R 3 The rotation matrix R 3 By using the camera matrix (denoted as K) of the imaging device at position 601, it is possible to project a point on a three-dimensional plane 604 so that it is perpendicular to the optical axis when photographed by the imaging device at position 602.

[0063] In S703 of FIG. 10, the image transformation unit 134 performs projective transformation. 3By using the camera matrix K for projecting the three-dimensional coordinates onto the camera coordinate system, an image can be generated in which the imaging device is positioned directly opposite the subject 600.

[0064] In this modified example, the magnification M may be changed to generate an image in which the subject is observed from a shooting position at the same distance. Also, the three-dimensional position assumed as the installation position of the imaging device may be changed to perform image deformation processing by projective transformation. By performing the above image deformation, it is possible to obtain an image equivalent to an image captured at a shooting position directly facing the measurement subject, that is, an image in which the user can more easily observe the change in size of the measurement subject. It is possible to realize shooting suitable for recording the growth of the same measurement subject.

[0065] [Second modified example] A second modified example will be described with reference to Figures 1 to 3 and Figures 11 to 17. This shows an example in which image data is generated by adding dimensional information of a measurement subject to a captured image, and data loss due to forgetting to capture or record data in recording the growth of a subject is prevented. Differences from the configuration shown in Figure 2(A) will be mainly described.

[0066] 2(B) is a block diagram showing the configuration of image processing unit 13 in this modified example. Image processing unit 13 includes image generation unit 130, distance generation unit 131, memory 137, and dimension generation unit 138. Ornamental image data corresponding to the signals processed by image generation unit 130 is stored in memory 137. Furthermore, distance generation unit 131 generates a distance image representing the distribution of distance information using a plurality of distance measurement signals acquired from image sensor 11, and the distance image data is stored in memory 137. Dimension generation unit 138 estimates the dimensions of the subject to be photographed (measured object) based on the ornamental image and the distance image.

[0067] Fig. 2(C) is a block diagram showing the configuration of the recording control unit 18. The recording control unit 18 includes a registration unit 180, a recognition unit 181, a determination unit 182, a notification unit 183, and a mode change unit 184. The registration unit 180 registers growth record data of the subject acquired by the length measurement function of the imaging device 1 in a photographing subject database (hereinafter also referred to as DB) 140 shown in the storage unit 14 in Fig. 1. The subject's name, birthday, type, recognition image, growth record data, etc. are registered in the photographing subject DB 140 as identification information.

[0068] The recognition unit 181 searches for information on the subject registered in the photographing subject DB 140, and recognizes whether or not an image of the subject for growth recording is present in the image (e.g., preview image) generated by the image generating unit 130. The judgment unit 182 searches for data on the subject recognized by the recognition unit 181 from the photographing subject DB 140, and compares the unrecorded period with a judgment threshold to judge whether or not to prompt the photographer to take a picture using the length measurement function. The judgment threshold is acquired from the judgment threshold DB 141 shown in the storage unit 14 in FIG. 1.

[0069] The notification unit 183 performs notification processing to encourage the photographer to take a growth record. There are a visual notification method using a message or mark on the screen of the display unit 16, and a notification method generating a notification sound or vibration. The mode change unit 184 performs processing to switch the shooting mode of the imaging device 1.

[0070] Next, with reference to Fig. 11, photographing for recording the growth of a subject using the length measurement function of the imaging device 1 will be described. Fig. 11 is a flow chart for explaining the process of outputting dimensional information together with an image of the subject. First, in S401, the imaging device 1 performs photographing based on the set focal position, aperture, exposure time, etc. The output signal of the imaging element 11 is transferred to the image processing unit 13 and stored in the memory 137.

[0071] In the next step S402, an ornamental image and a distance image are generated. Each pixel unit constituting the image sensor 11 shown in FIG. 3 has two photoelectric conversion units, and two image signals S1 and S2 are output. In the ornamental image generation process, the image signals S1 and S2 output from each pixel unit are added to generate one image signal, and a Bayer array image is output. Demosaicing is performed on the images of each color R, G, and B, and ornamental image data is generated and stored in the memory 137. The distance image generation process is performed by the distance generation unit 131. Distance information is generated using the image signals S1 and S2 from the image sensor 11. The distance information generation process has been described in FIG. 6(A).

[0072] In S403, the dimension generating unit 138 estimates the dimension information of the measurement object. In estimating the dimension information, the captured image is displayed on the screen of the display unit 16, and the user specifies a desired measurement position in the region of the photographed object in the displayed image using the input unit 15. FIG. 12 is a schematic diagram showing an example of a method for specifying a measurement position. FIG. 12 shows a case where the user specifies two points P1 and P2 and measures the vertical length between the two points. The method for specifying the measurement position includes a method of linearly connecting each of the specified multiple points, a method of connecting using a polynomial, and a method of using a curve corresponding to the operation of the user tracing the part to be measured with a finger or the like. An appropriate method can be selected according to the photographed object.

[0073] After multiple measurement positions are specified, the dimension generation unit 138 counts the number of pixels between the measurement positions and obtains a measurement value in pixel or sub-pixel units in the image. The measurement value corresponds to a length in image space. The actual length in object space can be calculated from the measured length in pixel units. To convert to a length in object space, the size of one pixel on the imaging element is first converted to the length of the international system of units in image space.

[0074] Next, the dimension generating unit 138 uses the shooting parameters to obtain the shooting magnification (denoted as m) and calculates the product of the measured length in the image space and the shooting magnification m. This allows the actual length in the object space to be calculated. The shooting magnification m can be calculated by the following formula (5) using the focal length F of the imaging optical system 10 and the target object distance (denoted as Z), which are parameters during shooting. m=Z / F (Formula 5) The position of the focus lens of the imaging optical system 10 and the corresponding focus distance are measured in advance, and the position of the focus lens during shooting is detected and the corresponding focus distance can be obtained as the target object distance Z. Based on the target object distance Z, dimensional information corresponding to a plurality of measurement positions is calculated.

[0075] In S404, the dimensional information estimated and calculated in S403 is displayed on the display unit 16 and stored in the storage unit 14. The estimated dimensional information is preferably saved together with the distance image data as metadata of the ornamental image generated in S402.

[0076] In the processing example of Fig. 11, in S403, estimation of dimension information is performed following shooting in the recording mode. This is not the only example, and estimation of dimension information can be performed even after time has passed since shooting. In that case, RAW data corresponding to the image signals S1 and S2 from the image sensor 11 are stored in the storage unit 14 and used in the subsequent estimation process.

[0077] The processing in the imaging device 1 will be described with reference to Fig. 13. The recording mode is taken as an example of a shooting mode (measurement mode) that uses the length measurement function of the imaging device 1, and the standard mode is a shooting mode that does not use the length measurement function. Fig. 13(A) is a flowchart that explains the control of mode switching up to shooting. It is assumed that the photographer intends to shoot in the standard mode. Fig. 13(B) is a schematic diagram showing the state before shooting, in which a live view image of the subject 60 is displayed on the screen of the display unit 16.

[0078] First, in S601, the recording control unit 18 checks whether the image of the subject 60 displayed based on the signal from the imaging element 11 matches (coincides with or approximates) with the image of the subject (measurement subject) registered in the subject DB 140. The recognition unit 181 searches for data in the subject DB 140 registered in advance by the registration unit 180, and judges the identity with the registered data by comparing the features of the image signal of the subject 60. Methods for judging the identity include the eigenface method, the LFA (Local Feature Analysis) method, the graph matching method, the neural network method, the constrained mutual subspace method, the perturbation space method, and the frequency analysis method. If it is judged in S601 that the subject registered in the subject DB 140 matches the displayed subject 60, the process proceeds to S602, and if they do not match, the process ends.

[0079] In S602, the determination unit 182 performs a determination on the subject recognized in S601 by comparing the unrecorded period up to now with a determination threshold. Details of the determination process will be described later with reference to FIG. 14. If it is determined in S602 that the unrecorded period up to now is longer than the determination threshold, the process proceeds to S603. On the other hand, if it is determined that the length of the unrecorded period up to now is equal to or shorter than the determination threshold, the process ends.

[0080] In S603, the photographer is notified that the mode will be changed to the recording mode. In S604, the mode change unit 184 switches the shooting mode to the recording mode. When shooting in the recording mode, an ornamental image is acquired simultaneously with a distance image used for dimension measurement, so that the photographer can continue shooting without feeling uncomfortable even when the shooting mode is changed. After S604, the series of processes ends.

[0081] Fig. 14(A) is a flowchart for explaining in detail the determination process shown in S602 of Fig. 13(A). In S610, data on the type and age of the subject to be photographed is acquired from the subject to be photographed DB 140. The type is information set when the subject is registered in the subject to be photographed DB 140, and is selected from the types of subjects to be photographed that are set in advance. For example, the type is a person, an animal, a plant, etc., and corresponds to the determination threshold value to be referred to in the next step.

[0082] Next, in S611, a judgment threshold is acquired. A judgment threshold corresponding to the type and age of the subject acquired in S610 is acquired from the judgment threshold DB141. FIG. 14B shows an example of the relationship between the judgment threshold and age registered in the judgment threshold DB141. The horizontal axis represents age, and the vertical axis represents the judgment threshold (time). A judgment threshold is registered in the judgment threshold DB141 for each type of subject. The judgment threshold is set in consideration of the growth rate of the subject, and the example of FIG. 14B shows the case where the subject is a human and a dog. When comparing humans and dogs, dogs generally grow faster than humans. Therefore, the judgment threshold for dogs of the same age is set smaller than the judgment threshold for humans. Therefore, in the case of dogs, the user can be prompted to take pictures and record frequently. Also, when comparing children and adults, the younger the age, the greater the change in appearance during the same period. Therefore, the younger the age, the smaller the judgment threshold is set. Therefore, in the case of humans, the user can be prompted to take pictures and record at an appropriate time.

[0083] In S612, the unrecorded period from the previous recording time to the present is acquired. The unrecorded period is acquired by referring to the shooting object DB 140. The judgment unit 182 searches for the recording acquisition date and time by referring to the latest recording data of the shooting object, and calculates the unrecorded period from the difference between the previous recording date and time and the current date and time. Next, in S613, the judgment unit 182 compares the unrecorded period with the judgment threshold. Note that if multiple subjects are recognized in S601 of FIG. 13(A), the judgment unit 182 repeats the judgment process of S602 for the multiple subjects. If the length of the unrecorded period for any subject exceeds the judgment threshold even once, the process proceeds to S603 of FIG. 13(A).

[0084] 15A is a schematic diagram showing an example of notification to the photographer in S603. The display unit 16 displays a message to notify the photographer that a measurement subject has been detected and that the shooting mode will be changed (to measurement mode). Notification methods are not limited to displaying text on the display unit 16, but may include displaying an image, or using sound or vibration.

[0085] With reference to Fig. 15(B), the process performed by the recording control unit 18 after photographing the measurement subject for growth record will be described. The notification unit 183 performs a process of displaying on the screen of the display unit 16 that the growth record information has been saved and the deadline for the next photographing. The dimensional information of the measurement subject calculated by the dimension generation unit 138 is displayed on the screen. The photographing deadline to be notified can be calculated from the current recording date and time and the judgment threshold value using the same method as that described in S602 of Fig. 13(A) and S612 of Fig. 14. After photographing the measurement subject, notifying the photographer of the next photographing date can prevent forgetting to record.

[0086] 11 is registered in the photographing subject DB 140 as the latest image for recognition, and the data in the photographing subject DB 140 is updated. By updating the image data every time an image for recognition is recorded, the photographing subject can be recognized by the recognition unit 181 without a decrease in recognition accuracy even if the appearance of the photographing subject changes with growth.

[0087] In the above explanation, a case where a previously registered subject is recognized is taken as an example, but when the photographer captures a photograph in the recording mode (measurement mode), the recognition unit 181 performs subject recognition processing. If the recognized subject is not registered in the photographic subject DB 140, the necessary data is automatically registered as a new photographic subject.

[0088] In a growth record in which the dimensional information of the subject is added to the photographed image, the imaging device automatically switches the photographing mode to the measurement mode when it recognizes the subject (measurement subject). This makes it possible to prevent data loss in the growth record due to forgetting to take a photograph.

[0089] Next, an example in which the determination unit 182 determines the determination threshold value from the dimensional information of the object to be photographed will be described with reference to Fig. 16 and Fig. 17. Fig. 16(A) is a flowchart for explaining the control of the photographing mode. The difference from Fig. 13(A) is the determination process of S802, and the processes of S801, S803, and S804 are the same as S601, S603, and S604, so detailed description thereof will be omitted.

[0090] In S802, the determination unit 182 compares the length of the non-recording period (the time elapsed from the previous shooting and recording time to the present time) with the determination threshold. The process of acquiring the determination threshold will be described in detail with reference to Figs. 16(B) and 17. Fig. 16(B) is a flowchart explaining an example of the determination process of the non-recording period. Fig. 17(A) shows an example of data of a measurement subject, and Fig. 17(B) is an explanatory diagram of the determination threshold.

[0091] 16B, in S810, dimensional data of the photographing subject (measurement subject) recognized by the recognition unit 181 and registered in the photographing subject DB 140 is acquired. A process is performed to determine whether there are two or more pieces of growth record data of the same subject recorded at different dates and times in the photographing subject DB 140. If it is determined that there are two or more pieces of growth record data, the process proceeds to S811, and if it is determined that there is only one piece of growth record data, the process proceeds to S813.

[0092] In S811, the determination unit 182 calculates the temporal change rate of the dimensional information of the imaging target. FIG. 17(A) shows an example of data of a child's growth record registered in the imaging target DB140. DATA1 has a shooting date (data acquisition date) of T1 and dimensional information of L1, and DATA2 has a shooting date of T2 and dimensional information of L2. The growth data of the child is recorded as "T1 < T2" and "L1 < L2". When the registered minimum number of points is two-point data as in this example, the temporal change rate of the dimensional information (denoted as R) can be expressed by the following formula (6). R = (L2 - L1) / L1 / (T2 - T1) ··· Formula (6)

[0093] Formula (6) shows an example of calculating the temporal change rate of the dimensional information from two-point data, but three or more points of data can be used. In that case, by applying a statistical method or a fitting method, the temporal change rate of the dimensional information can be accurately calculated.

[0094] Next, in S812 of FIG. 16(B), the determination unit 182 acquires a determination threshold corresponding to the temporal change rate R of the dimensional information from the determination threshold DB141. FIG. 17(B) is a graph showing an example of a determination threshold table, where the horizontal axis represents the temporal change rate R of the dimensional information and the vertical axis represents the determination threshold (time). A determination threshold corresponding to the temporal change rate R of the dimensional information calculated in S811 is calculated. The graph curve illustrated in FIG. 17(B) is a monotonically decreasing curve with respect to the temporal change rate R of the dimensional information, and the larger the temporal change rate R, the smaller the determination threshold.

[0095] On the other hand, in S813 in FIG. 16B, the judgment threshold is set to zero or less. After S812 and S813, the process proceeds to S814. In S814, the judgment unit 182 calculates the elapsed time, which is the length of the unrecorded period from the previous recording time to the present, and in S815, compares the elapsed time with the judgment threshold. The recording acquisition date and time is acquired by referring to the latest recorded data of the subject from the shooting subject DB 140, and the length of the unrecorded period (elapsed time) is calculated from the difference between the recording acquisition date and time and the current date and time. The judgment threshold is the value acquired in S812, or is zero or less in S813. If the judgment threshold is zero or less, regardless of the elapsed time, it is determined in the judgment process of S802 that the elapsed time is certainly equal to or greater than the judgment threshold.

[0096] By the above process, the present invention can be applied even if the type of the subject (photographed object) is not registered in the photographed object DB. Even if the type of the subject is unknown, the photographer can be prompted to record the growth at an appropriate time by calculating the time change rate R of the dimensional information and determining the judgment threshold.

[0097] In the conventional technology, it is cumbersome for a user who takes pictures for the purpose of recording the growth of a subject to set shooting conditions and image processing conditions. It is difficult to observe images taken at different times simply by arranging them side by side. According to the embodiment, it is possible to provide an imaging device that takes pictures for the purpose of recording the growth of a subject and makes it easy to observe changes in the subject over time.

[0098] Although the preferred embodiment of the present invention has been described, the present invention is not limited to the above-mentioned examples, and various modifications and changes are possible within the scope of the gist of the present invention. A plurality of items shown in the examples and modifications may be appropriately combined.

[0099] [Other Examples] The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions. [Explanation of symbols]

[0100] 1. Imaging device 11 Image sensor 12 Control section 13 Image processing section 14 Storage section 18 Recording control section

Claims

1. An image processing device capable of acquiring an image captured by an imaging means and distance information or depth information representing a depth direction of a subject related to the image, and measuring a length of the subject in a measurement mode, comprising: a storage means for storing image information of a measurement object captured by the imaging means in the measurement mode and distance information or depth information of the measurement object; a detection means for detecting a subject from a subject area in an image captured by the imaging means; a control means for controlling setting of a photographing condition or an image generating condition for the imaging means in the measurement mode when the subject area in the image detected by the detection means is a subject area corresponding to the measurement subject; an image generating means for generating an image of a subject to be measured from an image acquired by the imaging means in the measurement mode; an image transformation means for performing an image transformation process on the image of the subject generated by the image generation means, The image transformation means performs a process of rotating the image of the subject so that the orientation of the subject in the image of the subject generated by the image generation means matches the orientation of the subject in the image of the subject stored in the storage means.

13. An image processing device comprising:

2. The image transformation means performs a process of enlarging or reducing the image of the subject so that the distance of the subject in the image of the subject generated by the image generation means matches the distance of the subject in the image of the subject stored in the storage means.

2. The image processing device according to claim 1,

3. the storage means stores first image data of the measurement subject captured by the imaging means in the measurement mode, The image processing device includes an output unit for outputting the second image data that has been subjected to the image transformation processing and the first image data.

3. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing apparatus.

4. a setting unit that performs a measurement mode setting process when the subject area in the image detected by the detection unit is a subject area corresponding to the measurement subject; 4. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing apparatus.

5. The setting means sets the measurement mode when the detection means detects a subject area corresponding to the measurement subject in the image captured by the imaging means and the mode is a still image capture mode.

5. The image processing device according to claim 4.

6. The detection means detects the subject region by comparing a feature amount or a similarity between the image captured by the imaging means and an image of the measurement subject.

6. The image processing device according to claim 5,

7. an instruction means for instructing the setting of the measurement mode, When the object region is detected by the detection means, the setting means sets the measurement mode in accordance with the instruction means.

7. The image processing device according to claim 6,

8. The storage means stores information on the focal length of the imaging optical system.

8. The image processing device according to claim 1,

9. The image generating means changes a luminance distribution or a color distribution of an image of a subject area in the image captured by the imaging means in accordance with image information of the subject area corresponding to the measurement subject.

9. The image processing device according to claim 1,

10. The image deformation means determines parameters of the image deformation by comparing feature points of the image information of the object detected by the detection means with feature points of the image information of the measurement object.

10. The image processing device according to claim 1,

11. The image transformation means performs a process of rotating the image of the subject generated by the image generation means using the determined parameters, thereby aligning the orientation of the subject in the image of the subject region within the image to the orientation of the measurement subject in the image of the measurement subject. The image processing device according to claim 10 .

12. The image transformation means performs a process of changing a magnification of the image of the subject generated by the image generation means using the determined parameters to match a distance in imaging of the subject corresponding to a subject area in the image with a distance in imaging of the measurement subject.

12. The image processing device according to claim 10 or 11.

13. The image transformation means performs image transformation processing on an image of a subject region in the image generated by the image generation means, thereby generating an image in a case where the image is captured in a positional relationship facing the subject to be measured at a second position different from a first position where the image processing device is located.

13. The image processing device according to claim 1,

14. a registration means for registering image information of a subject to be measured and the distance information or depth information in the storage means; a determination means for determining whether or not to perform imaging in the measurement mode by comparing an elapsed time from a previous photographing point with a threshold value when a subject area is detected in the image by the detection means and the subject area corresponds to the measurement subject registered in the storage means by the registration means; and a notification means for notifying the user that imaging will be performed in the measurement mode when the determination means determines that imaging will be performed in the measurement mode.

14. The image processing device according to claim 1,

15. The determination means determines whether or not to perform imaging in the measurement mode using the threshold value corresponding to the type of the measurement subject registered in the storage means by the registration means, and performs processing to change to the measurement mode when the elapsed time is longer than the threshold value.

15. The image processing device according to claim 14.

16. When the type of the measurement subject is a human or an animal, the determination means sets a first threshold value when the age is a first age, and sets a second threshold value smaller than the first threshold value when the age is a second age smaller than the first age.

16. The image processing device according to claim 15,

17. The determination means sets the threshold value corresponding to a rate of change over time of the length of the measurement object, and the greater the rate of change over time, the smaller the threshold value.

16. The image processing device according to claim 15,

18. The determination means determines that the imaging means should perform imaging in the measurement mode when the measurement subject registered in the storage means by the registration means is a single measurement subject.

16. The image processing device according to claim 15,

19. When a plurality of subjects to be measured are detected by the detection means, the determination means performs a determination for each of the subjects, and the notification means performs a notification for each of the detected subjects.

19. The image processing device according to claim 14,

20. The registration means stores image information of a subject to be measured in the storage means, and performs processing to update the image information of the subject after the subject is imaged in the measurement mode by the imaging means.

20. The image processing device according to claim 14,

21. When a subject area is detected in the image by the detection means and the subject to be measured is recognized by the registration means as a subject not registered in the storage means, the registration means performs a process of registering image information of the subject to be measured in the storage means.

21. The image processing device according to claim 14,

22. The notification means notifies a time limit for the next imaging to be performed in the measurement mode.

22. The image processing device according to claim 14,

23. An image processing device according to any one of claims 1 to 22; An imaging device comprising: an imaging optical system; and an imaging means having an imaging element including a plurality of microlenses and a plurality of photoelectric conversion units corresponding to each microlens, The distance information or depth information is obtained from a plurality of image signals from the plurality of photoelectric conversion units.

1. An imaging device comprising:

24. An image processing method for acquiring an image captured by an imaging means and distance information of a subject related to the image or depth information representing a depth direction of the subject, and measuring a length of the subject in a measurement mode, comprising: storing image information of a measurement object captured by the imaging means in the measurement mode and distance information or depth information of the measurement object in a storage means; a detection step of detecting a subject from a subject area in an image captured by the imaging means; a control step of controlling to set a photographing condition or an image generating condition for the imaging means in the measurement mode when the subject area in the image detected by the detection step is a subject area corresponding to the measurement subject; an image generating step of generating an image of a subject to be measured from an image acquired by the imaging means in the measurement mode; an image transformation step of performing an image transformation process on the image of the subject generated by the image generation step, In the image transformation step, a process of rotating the image of the subject is performed so that the orientation of the subject in the image of the subject generated in the image generation step matches the orientation of the subject in the image of the subject stored in the storage means.

13. An image processing method comprising:

25. A method for causing a computer to execute each step of claim 24. A program characterized by:

Citation Information

Patent Citations

  • Digital camera and photographing system

    JP2004080359A

  • Electronic camera, control program

    JP2005142938A

  • Photographing device, photographic condition control method, and program

    JP2013016928A

  • Imaging device and reproduction program

    JP2015043496A