Image processing device, image processing method, and program
The image processing device and method address output variations in imaging devices by using a multispectral camera with a multi-band pass filter and color filter to adjust output values, ensuring accurate vegetation index calculations and plant activity estimation.
Patent Information
- Application Number
- JP2021558250
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-11-19
- Filing Date
- 2020-10-28
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2040-10-28
AI Technical Summary
Existing imaging devices exhibit variations in output values due to individual differences in characteristics, leading to inaccurate calculations of vegetation indices like NDVI, which affects the estimation of plant activity.
An image processing device and method that calculates a gain or gain parameter to match the output of a multispectral camera with a reference camera, using a multi-band pass filter and color filter to selectively transmit specific bands of light, and performs signal processing to adjust output values and reduce variations.
The solution effectively reduces output variations, enabling accurate calculation of vegetation indices by aligning the output of different imaging devices, thereby improving the estimation of plant activity.
Smart Images

Figure 0007571732000002 
Figure 0007571732000003 
Figure 0007571732000004
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an image processing device, an image processing method, and a program, and more particularly to an image processing device, an image processing method, and a program that reduce variations in output values due to individual differences between imaging devices (cameras). [Background technology]
[0002] An imaging device (camera) inputs light through, for example, an RGB color filter to an imaging element (image sensor). Each pixel of the imaging element outputs a pixel value according to the input light intensity corresponding to each wavelength light (RGB) of the filter to a signal processing unit. The signal processing unit generates a color image using the output pixel value of the imaging element, i.e., the RGB pixel value signal.
[0003] An image sensor is made up of a large number of pixels, and the pixels that receive light that passes through the R (red) region of the RGB color filter are called R pixels, the pixels that receive light that passes through the G (green) region of the color filter are called G pixels, and the pixels that receive light that passes through the B (blue) region of the color filter are called B pixels.
[0004] However, the light passing through each color (RGB) area of the RGB color filter also contains wavelength (color) signals that should not be included. For example, most of the light that passes through the R (red) region of an RGB color filter is R (red) wavelength light, but it also contains small amounts of green (G), blue (B), and even infrared (IR) wavelength light.
[0005] The same is true for light that passes through the G (green) and B (blue) regions of the RGB color filter other than the R (red) region. Most of the light that passes through a G (green) filter is G (green) wavelength light, but it also contains other wavelengths. Most of the light that passes through a B (blue) filter is B (blue) wavelength light, but it also contains other wavelengths.
[0006] As a result, the pixel values of each RGB pixel of the imaging element that receives light through the RGB color filters are not pixel values consisting of only the RGB color signals, but also pixel values that include noise components, which are other color components. A color image generated based on pixel values containing such noise components contains the noise components, resulting in a decrease in image quality.
[0007] Furthermore, there is now a technology that uses a camera attached to a drone or the like to photograph various plants such as agricultural crops, flowers, and trees, and measures the activity of the plants by analyzing the photographed images. An example of a vegetation index that indicates the activity of plants is the Normalized Difference Vegetation Index (NDVI). By analyzing images captured by a camera and calculating the NDVI of the plants captured in the image, the activity of the plants in the image can be estimated.
[0008] This NDVI calculation process requires highly accurate analysis of the color components contained in the plants that are the subject of the image. However, if the above-mentioned noise components are contained in the RGB pixel values of the image captured by the imaging element, it becomes impossible to calculate the NDVI with high accuracy, and it becomes impossible to accurately estimate the activity of plants in the captured image.
[0009] Incidentally, a multispectral camera is available as a camera for performing color component analysis of a subject with high accuracy. A multispectral camera is a camera that uses a bandpass filter (BP filter) that passes only specific wavelengths of light in addition to a color filter.
[0010] By inputting light that has passed through a bandpass filter (BP filter) and a color filter to the image sensor, it is possible to selectively input specific wavelength light components that pass through the bandpass filter (BP filter) to the pixels of the image sensor.
[0011] Incidentally, for example, Patent Document 1 (US Pat. No. 7,375,803) discloses a conventional technique relating to a multispectral camera. The technology disclosed in Patent Document 1 discloses a configuration in which an image sensor having RGB and IR (infrared) pixels is used to extract and use an IR component value when detecting the distance to a subject.
[0012] However, a problem that arises here is the variation in output values due to individual differences in imaging devices (cameras). When manufacturing imaging devices in a factory, imaging elements (image sensors) and color filters are attached to each imaging device, but there are individual differences in these imaging elements and color filters, i.e., there is variation in characteristics. If there are individual differences in the characteristics of the image pickup elements and filters of the image pickup devices (cameras) in this way, the output values of the image pickup devices will vary.
[0013] If an imaging device with such variable output values is used to calculate, for example, the NDVI value, which is a vegetation index that indicates the activity of plants as mentioned above, a different value will be calculated for each imaging device, making it impossible to accurately calculate the activity of plants. [Prior art documents] [Patent documents]
[0014] [Patent Document 1] U.S. Patent No. 7,375,803 Summary of the Invention [Problem to be solved by the invention]
[0015] The present disclosure has been made in consideration of, for example, the above-mentioned problems, and aims to provide an image processing device, an image processing method, and a program that reduce variation in output values based on individual differences in the characteristics of imaging devices (cameras). [Means for solving the problem]
[0016] A first aspect of the present disclosure is a signal processing unit that calculates a gain or a gain calculation parameter for making an output of the adjustment camera, which is a multispectral camera, coincide with an output of the reference camera; The signal processing unit includes: a reference camera band corresponding pixel value which is a pixel value within a specific band acquired based on an output value of an image pickup element of the reference camera; The image processing device calculates a band-corresponding gain, or a parameter for calculating the band-corresponding gain, which causes the output of the adjustment camera to match the output of the reference camera, based on an adjustment device band-corresponding pixel value, which is a pixel value within a specific band obtained based on the output value of the image sensor of the adjustment camera.
[0017] Furthermore, a second aspect of the present disclosure is a multi-bandpass filter that selectively transmits light in a specific band; a color filter that transmits light of a specific band on a pixel-by-pixel basis of the image sensor; an image sensor that receives light transmitted through the multi-bandpass filter and the color filter; a signal processing unit that performs signal processing on an output of the imaging element, The signal processing unit includes: obtaining, from the memory, band-corresponding gain calculation parameters for calculating a band-corresponding gain, which is a gain for a specific band unit, and calculating the band-corresponding gain based on the obtained band-corresponding gain calculation parameters; The image processing device executes an output value adjustment process by multiplying the output of the imaging element by the calculated band-corresponding gain to make the output of the imaging element coincident with the output of a reference device.
[0018] Furthermore, a third aspect of the present disclosure is a multi-bandpass filter that selectively transmits light in a specific band; a color filter that transmits light of a specific band on a pixel-by-pixel basis of the image sensor; an image sensor that receives light transmitted through the multi-bandpass filter and the color filter; a signal processing unit that performs signal processing on an output of the imaging element, The signal processing unit includes: A band-corresponding gain, which is a gain for a specific band unit, is obtained from the memory; The image processing device executes an output value adjustment process by multiplying the output of the imaging element by the acquired band-compatible gain to make the output of the imaging element coincident with the output of a reference device.
[0019] Furthermore, a fourth aspect of the present disclosure is An image processing method executed in an image processing device, the image processing device has a signal processing unit that calculates a gain for making an output of the adjustment camera, which is a multispectral camera, coincide with an output of the reference camera; The signal processing unit, a reference camera band corresponding pixel value which is a pixel value within a specific band acquired based on an output value of an image pickup element of the reference camera; The image processing method calculates a band-corresponding gain, or a parameter for calculating the band-corresponding gain, that causes the output of the adjustment camera to match the output of the reference camera, based on an adjustment device band-corresponding pixel value, which is a pixel value within a specific band obtained based on the output value of the image sensor of the adjustment camera.
[0020] Furthermore, a fifth aspect of the present disclosure is An image processing method executed in an image processing device, The image processing device includes: a multi-bandpass filter that selectively transmits light in a specific band; a color filter that transmits light of a specific band on a pixel-by-pixel basis of the image sensor; an image sensor that receives light transmitted through the multi-bandpass filter and the color filter; a signal processing unit that performs signal processing on an output of the imaging element, The signal processing unit, obtaining, from the memory, band-corresponding gain calculation parameters for calculating a band-corresponding gain, which is a gain for a specific band unit, and calculating the band-corresponding gain based on the obtained band-corresponding gain calculation parameters; The image processing method includes performing an output value adjustment process in which the output of the imaging element is multiplied by the calculated band-corresponding gain to make the output of the imaging element coincide with the output of a reference device.
[0021] Furthermore, a sixth aspect of the present disclosure is A program for causing an image processing device to execute image processing, the image processing device has a signal processing unit that calculates a gain for making an output of the adjustment camera, which is a multispectral camera, coincide with an output of the reference camera; The program causes the signal processing unit to a reference camera band corresponding pixel value which is a pixel value within a specific band acquired based on an output value of an image pickup element of the reference camera; The program calculates a band-corresponding gain, or a parameter for calculating the band-corresponding gain, that matches the output of the adjustment camera to the output of the reference camera based on an adjustment device band-corresponding pixel value, which is a pixel value within a specific band obtained based on the output value of the image sensor of the adjustment camera.
[0022] Furthermore, a seventh aspect of the present disclosure is A program for causing an image processing device to execute image processing, The image processing device includes: a multi-bandpass filter that selectively transmits light in a specific band; a color filter that transmits light of a specific band on a pixel-by-pixel basis of the image sensor; an image sensor that receives light transmitted through the multi-bandpass filter and the color filter; a signal processing unit that performs signal processing on an output of the imaging element, The program causes the signal processing unit to obtaining, from the memory, band-corresponding gain calculation parameters for calculating a band-corresponding gain, which is a gain for a specific band unit, and calculating the band-corresponding gain based on the obtained band-corresponding gain calculation parameters; The program executes an output value adjustment process in which the output of the imaging element is multiplied by the calculated band-corresponding gain to make the output of the imaging element coincide with the output of a reference device.
[0023] The program of the present disclosure is, for example, a program that can be provided by a storage medium or a communication medium in a computer-readable format to an information processing device or a computer system capable of executing various program codes. By providing such a program in a computer-readable format, processing according to the program is realized on the information processing device or the computer system.
[0024] Further objects, features, and advantages of the present disclosure will become apparent from the following detailed description of the embodiments of the present disclosure and the accompanying drawings. In this specification, a system refers to a logical collective configuration of multiple devices, and each device is not necessarily located in the same housing.
[0025] According to a configuration of an embodiment of the present disclosure, an apparatus and method are realized that perform a gain calculation process and a gain adjustment process for matching the output of an imaging element of a multispectral camera with the output of a reference device. Specifically, for example, as a gain calculation process for matching the output of the adjustment camera to the output of the reference camera when manufacturing a multispectral camera, a band-compatible gain for matching the output of the adjustment camera to the output of the reference camera is calculated based on a reference machine band-compatible pixel value, which is a pixel value within a specific band acquired based on the output value of the image sensor of the reference camera, and an adjustment machine band-compatible pixel value, which is a pixel value within a specific band acquired based on the output value of the image sensor of the adjustment camera. Also, when the camera is used, an output value adjustment process is executed by acquiring the band-compatible gain from the memory and multiplying the output of the image sensor by the acquired band-compatible gain to match the output of the image sensor to the output of the reference machine. These configurations realize an apparatus and method for performing gain calculation processing and gain adjustment processing for matching the output of the imaging element of a multispectral camera with the output of a reference device. It should be noted that the effects described in this specification are merely examples and are not limiting, and additional effects may also be provided. [Brief description of the drawings]
[0026] [Figure 1] FIG. 1 is a diagram illustrating an example of the configuration of a multispectral camera. [Diagram 2] FIG. 2 is a diagram illustrating an example of the spectral characteristics of a filter of a multispectral camera. [Diagram 3] FIG. 2 is a diagram illustrating pixel values of a multispectral camera. [Figure 4] 1A and 1B are diagrams illustrating an example of a general adjustment for eliminating output variations in an imaging device. [Diagram 5] 11A to 11C are diagrams illustrating an example of adjusting output variation in an imaging device by processing according to the present disclosure. [Figure 6] 11A to 11C are diagrams illustrating an example of adjusting output variation in an imaging device by processing according to the present disclosure. [Figure 7] FIG. 1 is a diagram illustrating an example of the configuration of a multispectral camera. [Figure 8] 1 is a diagram illustrating the spectral characteristics of a multi-bandpass filter (MBP) and a color filter (RGBIR color filter). [Figure 9] 1 is a diagram illustrating an example of the configuration of an ABCD color filter that transmits four different wavelength signals A to D. FIG. [Figure 10] 10 is a diagram illustrating an example of the configuration of a multispectral camera, which is an example of the configuration of an image processing device of the present disclosure, using the ABCD color filters shown in FIG. 9. FIG. [Figure 11] 1 is a diagram illustrating the spectral characteristics of a multi-bandpass filter (MBP) and a color filter (ABCD color filter). [Figure 12] FIG. 4 is a diagram illustrating a process executed by a signal processing unit. [Figure 13] 11A and 11B are diagrams illustrating an example of convergence of calculated values by iterative calculation using a band-corresponding pixel value calculation formula. [Figure 14] FIG. 2 is a diagram showing a flowchart illustrating a sequence of processing executed by an image processing device of the present disclosure. [Figure 15] FIG. 2 is a diagram showing a flowchart illustrating a sequence of processing executed by an image processing device of the present disclosure. [Figure 16] 11A and 11B are diagrams illustrating a method of iterative calculation using a band-corresponding pixel value calculation formula. [Figure 17] 11A and 11B are diagrams illustrating a method of iterative calculation using a band-corresponding pixel value calculation formula. [Figure 18] 11A to 11C are diagrams illustrating an example of adjusting output variation in an imaging device by processing according to the present disclosure. [Figure 19] 11A to 11C are diagrams illustrating an example of adjusting output variation in an imaging device by processing according to the present disclosure. [Figure 20] FIG. 2 is a diagram showing a flowchart illustrating a sequence of processing executed by an image processing device of the present disclosure. [Figure 21] 11A and 11B are diagrams illustrating an example of a special light source (pattern box). [Figure 22] FIG. 1 is a diagram illustrating an example of the configuration of a multispectral camera. [Diagram 23] 1 is a diagram illustrating the spectral characteristics of a multi-bandpass filter (MBP) and a color filter (ABCD color filter). [Figure 24] FIG. 2 is a diagram illustrating pixel values of a multispectral camera. [Diagram 25] 11A and 11B are diagrams illustrating an example of output variation adjustment of an imaging device according to a second embodiment of the present disclosure. [Figure 26] 11A and 11B are diagrams illustrating an example of output variation adjustment of an imaging device according to a second embodiment of the present disclosure. [Figure 27] FIG. 11 is a flowchart illustrating an image processing sequence according to a second embodiment of the present disclosure. [Figure 28] FIG. 11 is a diagram for explaining a temperature characteristic compensation process executed in the second embodiment of the present disclosure. [Figure 29]11A and 11B are diagrams illustrating an example of output variation adjustment of an imaging device according to a second embodiment of the present disclosure. [Diagram 30] 11A and 11B are diagrams illustrating an example of output variation adjustment of an imaging device according to a second embodiment of the present disclosure. [Diagram 31] FIG. 11 is a flowchart illustrating an image processing sequence according to a second embodiment of the present disclosure. [Diagram 32] 13A to 13C are diagrams illustrating an example of output variation adjustment of an imaging device according to a third embodiment of the present disclosure. [Diagram 33] FIG. 11 is a diagram for explaining a special light source used in the third embodiment of the present disclosure. [Diagram 34] 13 is a diagram for explaining a special light source, characteristics of each filter, and pixel values of an imaging element used in a third embodiment of the present disclosure. FIG. [Diagram 35] FIG. 11 is a flowchart illustrating an image processing sequence according to a third embodiment of the present disclosure. [Diagram 36] FIG. 11 is a diagram for explaining a process of calculating and recording a spectroscopic characteristic parameter (separation coefficient) in the third embodiment of the present disclosure. [Figure 37] FIG. 13 is a diagram for explaining a special light source used in the fourth embodiment of the present disclosure. [Figure 38] 13 is a diagram for explaining a special light source, characteristics of each filter, and pixel values of an image sensor used in a fourth embodiment of the present disclosure. FIG. [Figure 39] FIG. 13 is a diagram illustrating an example of output variation adjustment of an imaging device according to a fourth embodiment of the present disclosure. [Diagram 40] FIG. 13 is a flowchart illustrating an image processing sequence according to a fourth embodiment of the present disclosure. [Diagram 41] FIG. 13 is a diagram illustrating a multispectral camera used in the embodiment 4b of the present disclosure. [Diagram 42] FIG. 4 is a diagram illustrating a special light source used in Example 4b of the present disclosure. [Diagram 43] FIG. 13 is a diagram for explaining an example of output variation adjustment of an imaging device according to an embodiment 4b of the present disclosure. [Diagram 44] FIG. 1 is a diagram for explaining the processes of Examples 1 to 4 collectively. [Diagram 45] 11 is a diagram for explaining the transfer and utilization process configuration of camera-specific adjustment data such as band-compatible gain. [Figure 46] 1 is a diagram illustrating an example of the configuration of an imaging device (multispectral camera) that is an example of an image processing device of the present disclosure. [Figure 47] 1 is a diagram illustrating an example of the configuration of an image processing device and an image processing system according to the present disclosure. [Figure 48] FIG. 2 is a diagram illustrating an example of a hardware configuration of an image processing device according to the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0027] The image processing device, image processing method, and program of the present disclosure will be described in detail below with reference to the drawings. The description will be made according to the following items. 1. Overview of multispectral cameras 2. General methods for adjusting individual variability in multispectral cameras 3. Overview of the processing performed by the imaging device and image processing device of the present disclosure 4. Calculation of pixel values corresponding to bands 5. Band-compatible gain calculation process and band-compatible gain adjustment process 6. Sequence of processes executed by the image processing device of the present disclosure 7. Configuration and processing example for performing band-compatible gain calculation processing when using a camera 8. Calculation process of the spectral characteristic parameters (separation factor) of multispectral cameras 9. Specific examples of the application of the processing of the present disclosure 9-1 (Example 1) Example using a multispectral camera using dual bandpass (DBP) 9-2 (Example 2) Example of performing temperature compensation to calculate band-compatible gain and adjust band-compatible gain 9-3 (Example 3) Example of performing calculation process of band-corresponding gain using special light source and calculation process of spectral characteristic parameter (separation factor) 9-4 (Example 4) An example in which the measured spectral characteristic parameters (separation factors) of the reference device and a special light source are used in combination to perform a calculation process of band-corresponding gains and spectral characteristic parameters (separation factors) 10. Summary of the treatments in Examples 1 to 4 11. Transfer of camera-specific adjustment data such as band-compatible gain, and usage processing configuration 12. Configuration examples of the image processing device and image processing system according to the present disclosure 13. Example of hardware configuration of image processing device 14. Summary of the Disclosure
[0028] [1. Overview of multispectral cameras] First, an overview of the multispectral camera will be described. As mentioned above, a multispectral camera is a camera that uses a bandpass filter (BP filter) that passes only light of a specific wavelength in addition to a color filter.
[0029] By inputting light that has passed through a bandpass filter (BP filter) and a color filter to the image sensor, it is possible to input specific wavelength light components that pass through the bandpass filter (BP filter) to the pixels of the image sensor with high precision.
[0030] FIG. 1 shows an example of the configuration of a multispectral camera 10. 1 is used to analyze, for example, the activity of plants. Specifically, the multispectral camera 10 is a camera that captures images for analyzing, for example, the R (red) component and the NIR (near-infrared) component contained in the captured image.
[0031] As mentioned above, NDVI (Normalized Difference Vegetation Index) is an index of plant activity. By analyzing images captured by a camera and calculating the NDVI of the plants captured in the image, the activity of the plants in the image can be estimated. This NDVI calculation process requires highly accurate analysis of the color components contained in the plants that are the subject of the image.
[0032] Photographing light of a subject input through a lens 11 of a multispectral camera 10 shown in FIG. 1 is input through a dual bandpass filter (DBP) 12 and a color filter (RGB color filter) 13 to an imaging element (image sensor) 14.
[0033] The dual bandpass filter (DBP) 12 is a filter that selectively transmits light of two different wavelength components. The dual bandpass filter (DBP) 12 described here is a filter that selectively transmits two different wavelength light components, an R (red) component and a NIR (near infrared) component.
[0034] The color filter (RGB color filter) 13 is a filter that transmits light of wavelengths of each RGB color component for each pixel, and is, for example, a Bayer array RGB filter.
[0035] Light that has passed through a dual bandpass filter (DBP) 12 and an R (red), G (green), or B (blue) filter of a color filter (RGB color filter) 13 is input to each pixel of an imaging element (image sensor) 14.
[0036] Light that has passed through a dual band-pass filter (DBP) 12 and an R (red) filter of a color filter (RGB color filter) 13 enters an R pixel of an imaging element (image sensor) 14. Light that has passed through a dual band-pass filter (DBP) 12 and a G (green) filter of a color filter (RGB color filter) 13 enters a G pixel of an imaging element (image sensor) 14. Light that has passed through a dual bandpass filter (DBP) 12 and a B (blue) filter of a color filter (RGB color filter) 13 enters a B pixel of an imaging element (image sensor) 14.
[0037] FIG. 2 is a graph illustrating the spectral characteristics of the dual bandpass filter (DBP) 12 and the color filter (RGB color filter) 13. As shown in FIG. The horizontal axis indicates the wavelength (400 to 1000 nm), and the vertical axis indicates the signal intensity (relative value) of the light transmitted through the filter.
[0038] It can be seen that the light transmitted through the color filter (B) constituting the color filter (RGB color filter) 13 is mostly B (blue) light with a wavelength of about 450 nm, but that light of other wavelength components also transmits in no small amount. Furthermore, most of the light transmitted through the color filter (G) is a G (green) component, which is light with a wavelength in the vicinity of 540 nm, but light of other wavelength components is also included. Similarly, most of the light transmitted through the color filter (R) is an R (red) component, which is light with a wavelength in the vicinity of 650 nm, but light of other wavelength components is also included.
[0039] The light transmitted through the dual bandpass filter (DBP) 12 is composed of two wavelength components: an R (red) component having a wavelength of about 650 nm, and an NIR (near infrared) component having a wavelength of about 900 nm.
[0040] Next, with reference to FIG. 3, a pixel value calculation example of each of R pixels and B pixels that are constituent pixels of an image sensor 14 when an image is captured using a dual bandpass filter (DBP) 12 having the spectral characteristics shown in FIG. 2 and a color filter (RGB color filter) 13 will be described.
[0041] FIG. 3 shows an example of calculating the pixel value of each pixel. (1) Pixel value of R pixel (2) Pixel value of B pixel
[0042] First, (1) an example of calculating the pixel value of an R pixel will be described. Light that has passed through a dual bandpass filter (DBP) 12 and an R (red) filter of a color filter (RGB color filter) 13 is input to an R pixel that is a constituent pixel of an image sensor 14.
[0043] As described above, most of the light transmitted through the color filter (R) is an R (red) component, which is light with a wavelength in the vicinity of 650 nm, but light of other wavelength components is also included. The light transmitted through the dual bandpass filter (DBP) 12 is composed of two wavelength components: an R (red) component having a wavelength of about 650 nm, and an NIR (near infrared) component having a wavelength of about 900 nm.
[0044] As a result, the pixel value of the R pixel that is a constituent pixel of the image sensor 14 becomes a pixel value that corresponds to the sum signal of the signals S1 and S2 shown in FIG. 3(1). That is, Pixel value of R pixel: Rraw = S1 + S2 It is. The “raw” in Rraw means a raw image (RAW image), that is, a pixel value on an image sensor that has not been subjected to signal processing.
[0045] Next, (2) an example of calculating the pixel value of the B pixel will be described. Light that has passed through a dual bandpass filter (DBP) 12 and a B (blue) filter of a color filter (RGB color filter) 13 is input to a B pixel that is a constituent pixel of an image sensor 14.
[0046] Most of the light transmitted through the color filter (B) is a B (blue) component with a wavelength of about 450 nm, but it also contains light of other wavelength components. The light transmitted through the dual bandpass filter (DBP) 12 is composed of two wavelength components: an R (red) component having a wavelength of about 650 nm, and an NIR (near infrared) component having a wavelength of about 900 nm.
[0047] As a result, the pixel value of the B pixel, which is a constituent pixel of the image sensor 14, becomes a pixel value corresponding to the sum signal of the signals S3 and S4 shown in FIG. That is, Pixel value of B pixel: Braw = S3 + S4 It is.
[0048] Using the pixel values of the R pixels and the B pixels, it is possible to calculate the R (red) signal, NIR (near-infrared) signal, and each wavelength light component as follows. Looking at Figures 3(1) and (2), we can see that S2≒S4 and S3≒0. From this relationship, the R (red) component signal, which is light with a wavelength in the vicinity of approximately 650 nm, can be calculated by the following formula. R = (S1 + S2) - (S3 + S4) =Rraw-Braw Using the above formula, it is possible to calculate with high accuracy the value of the R (red) component signal contained in the subject from the R pixel value (Rraw) and B pixel value (Braw) of the raw image (RAW image) of the imaging element.
[0049] Similarly, the NIR (near infrared) component signal, which is light with a wavelength of about 900 nm, is NIR=S4 ≒(S3+S4) =Braw It is. Using the above formula, it is possible to calculate with high accuracy the value of the NIR (near infrared) component signal contained in the subject from the B pixel value (Braw) of the imaging element.
[0050] In this way, it is possible to calculate highly accurate values of signals (R, NIR) in specific wavelength bands based on the pixel values (Rraw, Braw) of pixels input to the image sensor 14 via the dual bandpass filter (DBP) 12 and the color filter (RGB color filter) 13. By using this analytical value, for example, a plant activity index can be calculated with high accuracy.
[0051] In addition, when calculating true pixel values of a specific wavelength band from pixel values of a RAW image output from the imaging element (image sensor) 14 of the multispectral camera 10 as shown in Fig. 1, matrix calculation is generally used. For example, according to the following (Equation 11), highly accurate values of an R (red) component signal and an NIR (near-infrared) component signal can be calculated using the R pixel value (Rraw) and the B pixel value (Braw), which are RAW image pixel values obtained as the output of the imaging element.
[0052]
number
[0053] By appropriately selecting the values of the matrix elements G1, G2, G3, and G4 of the matrix in the above (Equation 11), it is possible to calculate the signals in the RED band and the NIR band efficiently and with high accuracy.
[0054] As the simplest example, the signal level of the R (red) band included in the B pixel value (Braw) (signal S3 in FIG. 3(2)) is considered to be small, and the matrix elements are expressed as follows: G1=1, G2=-1, G3=0, G4=1 By using such a matrix, the signal calculation formula similar to that described above, i.e., R=Rraw-Braw NIR=Braw The same calculation process as above can be performed.
[0055] However, the separation characteristics of the R (red) band signals and the NIR (near-infrared) band signals are insufficient, making it difficult to obtain highly accurate results.
[0056] Furthermore, when the light source or subject changes, the ratio of the “NIR (near infrared) band signal level (signal S4 in FIG. 3(2)) contained in the B pixel value (Braw)” to the “R (red) band signal level (signal S1 in FIG. 3(1)) contained in the R pixel value (Rraw)” changes. This creates the problem that it is difficult to obtain highly accurate values even if the pixel values of each band are calculated using the same values as the above matrix elements (G1 to G4).
[0057] [2. General methods for adjusting individual variability in multispectral cameras] Next, a general method for adjusting individual variations in multispectral cameras will be described.
[0058] As mentioned above, one example of the use of a multispectral camera is the analysis of plant activity, which is determined by analyzing the R (red) and NIR (near-infrared) components contained in the images captured by the multispectral camera. Specifically, for example, it is used to calculate the NDVI value, which is an index value of plant activity mentioned above. This NDVI calculation process requires highly accurate analysis of the color components contained in the plants that are the subject of the image.
[0059] However, the problem here is the individual differences between imaging devices (cameras). In particular, it is difficult to make the characteristics of color filters uniform, and the characteristics of the filters attached to each imaging device vary. As a result, there is a problem that the output values based on the captured images of the imaging devices also vary.
[0060] If an imaging device with such variable output values is used to calculate the NDVI value, which is a vegetation index that indicates the plant activity level described above, a different value will be calculated for each imaging device, making it impossible to accurately calculate the plant activity level.
[0061] First, with reference to FIG. 4 and subsequent figures, a typical example of adjustment for eliminating output variations in an imaging device will be described. Figure 4 shows the following two diagrams: (1) Processing during camera manufacturing (2) Processing when using the camera (when taking pictures)
[0062] (1) The process during camera manufacturing is a diagram that explains the process of calculating an adjustment value, specifically a gain, for uniformizing the output value of each camera when mass-producing multispectral cameras in a camera manufacturing factory, for example, and storing the adjustment value in the memory of each camera. (2) The processing when the camera is used (when taking a picture) is a diagram explaining the processing for adjusting and equalizing the output values using the gain value recorded in the memory in the camera when the camera was manufactured.
[0063] First, we will explain "(1) Processing during camera manufacturing." The reference camera X (reference machine) 21 is a single reference camera. The adjustment camera Y (adjustment machine) 22 is a camera that is manufactured and sold. An output adjustment parameter, that is, a gain, for making the output of adjustment camera Y (adjuster) 22 coincide with the output of reference camera X (reference machine) 21 is calculated and stored in memory 23 of adjustment camera Y (adjuster) 22.
[0064] The same subject is photographed by a reference camera X (reference machine) 21 and an adjustment camera Y (adjustment machine) 22, and the output values of the respective image sensors are obtained. Each camera is equipped with a filter and an image sensor, and the characteristics of these do not completely match, so there is a difference in the output values of each camera.
[0065] The image sensor output value Xout of the reference camera X (reference device) 21 is Let Xout = (Rx, Gx, Bx). Rx is the transmissive pixel value of the R filter, Gx is the transmissive pixel value of the G filter, and Bx is the transmissive pixel value of the B filter. The image sensor output value Yout of the adjustment camera Y (adjustment device) 22 is Let Yout = (Ry, Gy, By). The pixel values of Xout and Yout will differ due to individual differences between cameras, particularly differences in the characteristics of the color filters.
[0066] The image sensor output value Xout of the reference camera X (reference device) 21, Xout = (Rx, Gx, Bx), The image sensor output value Yout of the adjustment camera Y (adjustment device) 22, Yout = (Ry,Gy,By) These two output values are input to the color-corresponding gain calculation unit 31 .
[0067] The color-corresponding gain calculation unit 31 compares the output values of the two cameras 21 and 22 for each color (RGB), and calculates the image sensor output value Yout of the adjustment camera Y (adjuster) 22, Yout = (Ry,Gy,By) The image sensor output value Xout of the reference camera X (reference device) 21, Xout = (Rx, Gx, Bx) Calculate the gain to match it.
[0068] The gain corresponds to each of the following colors (RGB). Gain = (Rg,Gg,Bg) The specific values of the gains corresponding to the respective colors are as follows: Rg=Rx / Ry Gg = Gx.Gy Bg=Bx / Yb
[0069] The gains for each color calculated in this way, Gain = (Rg,Gg,Bg) This gain value is stored in the memory 23 of the adjustment camera Y (adjuster) 22.
[0070] Next, “(2) Processing when using the camera (when taking pictures)” will be described. The adjustment camera Y (adjustment machine) 22 stores in the memory 23 the gains corresponding to each color calculated in “(1) Processing at the time of manufacturing the camera”, that is, Gain = (Rg,Gg,Bg) =((Rx / Ry),(Gx / Gy),(Bx / By)) The gains corresponding to each color are stored.
[0071] First, an image of a subject, for example a plant, is captured by the adjustment camera Y (adjuster) 22. The image sensor output value Yout in this shooting process is Let Yout = (Ry, Gy, By).
[0072] Next, this image sensor output value Yout is input to a color-corresponding gain adjustment unit 33, and the output value of each color is adjusted by gain adjustment. Specifically, for an image sensor output value Yout=(Ry, Gy, By), the Gain stored in the memory 23 is (Rg, Gg, Bg)=((Rx / Ry), (Gx / Gy), (Bx / By)). The output value is adjusted by multiplying the gain corresponding to each color to calculate an adjusted output value Y2. The adjusted output value Y2 is as follows: Output adjustment value Y2 = (Ry2, Gy2, By2) =(Ry×Rg,Gy×Gg,By×Bg) =(Ry×(Rx / Ry),Gy×(Gx / Gy),By×(Bx / By)) =(Rx,Gx,Bx)
[0073] In this way, the output value Yout = (Ry, Gy, By) of the adjustment camera Y (adjustment machine) 22 is made to match the output value of the reference camera (reference machine) 21, and then input to the image processing unit 34, and calculations etc. described above with reference to Figures 2 and 3 are executed to calculate the signal values of the R (red) component signal and the NIR (near-infrared) component signal.
[0074] By following the process shown in Figure 4, it appears that the output value Yout = (Ry, Gy, By) of the adjustment camera Y (adjustment machine) 22 can be made to match the output value of the reference camera (reference machine) 21, and the adjustment camera Y (adjustment machine) 22 can obtain exactly the same analytical value as the reference camera (reference machine) 21.
[0075] However, in reality, even if output value adjustment is performed by applying each color-corresponding gain calculated by the process shown in FIG. 4, the signal values of the R (red) component signal and the NIR (near-infrared) component signal calculated based on the output value of the adjustment camera Y (adjustment machine) 22 may differ from the signal values of the R (red) component signal and the NIR (near-infrared) component signal calculated based on the output value of the reference camera (reference machine) 21.
[0076] The reason for this will be explained. When calculating the values of the R (red) component signal and the NIR (near-infrared) component signal from the output values of the imaging element of the multispectral camera, the calculations are performed, for example, by the matrix calculation described above, that is, the matrix calculation shown in (Equation 11). This matrix calculation uses R pixel values (Rraw) and B pixel values (Braw), which are RAW image pixel values obtained as the output of the image sensor.
[0077] However, the R pixel value (Rraw) and the B pixel value (Braw) of the imaging element of the multispectral camera are sum values of signals of different bands, as described above with reference to FIG. R = S1 + S2 B=S3+S4 The R pixel value (Rraw) and B pixel value (Braw) of the imaging element of a multispectral camera are thus the sum of signal values of multiple different bands.
[0078] S1 to S4 are signal values of two bands that pass through the dual bandpass filter (DBP) 12 of the multispectral camera shown in FIG. S1 and S3 are R (red) components of light having a wavelength in the vicinity of about 650 nm in the light transmitted through the dual bandpass filter (DBP) 12. S2 and S4 are NIR (near infrared) components, which are light with wavelengths in the vicinity of about 900 nm, among the light transmitted through the dual bandpass filter (DBP) 12.
[0079] In both the reference camera (reference machine) 21 and the adjustment camera Y (adjustment machine) 22 described with reference to FIG. 4, the R pixel value is acquired as R=S1+S2, and the B pixel value is acquired as S3+S4.
[0080] However, these signal ratios, i.e., the ratio of S1 and S2, which are the constituent signals of the R pixel value, and the ratio of S3 and S4, which are the constituent signals of the B pixel value, change when the light source or subject changes. Therefore, accurate adjustment cannot be achieved by applying a gain calculated under one set of conditions to an image captured under different conditions. In other words, even if the gain calculated when the camera was manufactured is applied to an image captured under conditions different from those at the time of manufacture, it will not be possible to make the output of the adjuster coincide with the output of the reference machine.
[0081] [3. Overview of Processing Executed by the Imaging Device and Image Processing Device of the Present Disclosure] Next, an overview of the processing executed by the imaging device and image processing device of the present disclosure will be described.
[0082] As described above, the output of the imaging element of the multispectral camera is a mixed signal of band signals corresponding to each of the transmission bands (bands) of the bandpass filter. In the imaging device and image processing device disclosed herein, each band signal included in the output of the imaging element of the multispectral camera is separated, and a gain is calculated and applied for each separated band signal. The gains calculated by this process are all gains corresponding to one band, and are not gains corresponding to a mixed signal of multiple bands.
[0083] As mentioned above, in a mixed signal containing multiple bands of signals, the ratio of each band signal contained in the pixel value changes when the shooting conditions change, making it difficult to perform accurate gain adjustment when a gain calculated under one set of conditions is applied to an image captured under different conditions. However, the gains calculated in the processing disclosed herein are all gains corresponding to one band, and can be used even if the shooting conditions change, making it possible to match the output of the adjuster with the reference machine.
[0084] An example of adjusting output variation in an imaging device using processing according to the present disclosure will be described with reference to FIGS. As previously described with reference to FIG. 4, FIG. 5 and FIG. 6 show the following two diagrams. (1) Processing during camera manufacturing (2) Processing when using the camera (when taking pictures)
[0085] In “(1) Processing at the time of manufacturing the camera” to which the processing of the present disclosure shown in FIG. 5 is applied, gain calculation is performed for each band included in each color, rather than the color-corresponding gain described with reference to FIG. 4, i.e., gain calculation for each RGB color. In addition, in "(2) Processing when using a camera (when taking a photo)" to which the processing of the present disclosure shown in Figure 6 is applied, output value adjustment processing is performed by gain application processing in band units contained in each color, rather than the color-corresponding gain application processing described with reference to Figure 4, i.e., gain application processing in RGB color units.
[0086] First, with reference to FIG. 5, “(1) Processing during camera manufacturing” of the present disclosure will be described. This process is a diagram that explains the process of calculating an adjustment value, specifically a gain, to uniformize the output value of each camera when mass-producing multispectral cameras, for example, in a camera manufacturing factory, and storing the value in the memory of each camera. In the process of the present disclosure, as described above, gain calculation is performed for each band included in each color, rather than for each RGB color alone.
[0087] The reference camera X (reference machine) 50 is a single reference camera. The adjustment camera Y (adjustment machine) 120 is a camera that is manufactured and sold. As output adjustment parameters for matching the output of adjustment camera Y (adjustment machine) 60 with the output of reference camera X (reference machine) 50, gains corresponding to the bands contained in each color are calculated and stored in memory 61 of adjustment camera Y (adjustment machine) 60.
[0088] The same subject is photographed by a reference camera X (reference device) 50 and an adjustment camera Y (adjustment device) 60, and the output values of the respective image sensors are obtained. Each camera is equipped with a filter and an image sensor, and the characteristics of these do not completely match, so there is a difference in the output values of each camera.
[0089] The image sensor output value Xout of the reference camera X (reference device) 50 is Let Xout = (Rx, Gx, Bx). Rx is the transmissive pixel value of the R filter, Gx is the transmissive pixel value of the G filter, and Bx is the transmissive pixel value of the B filter. The image sensor output value Yout of the adjustment camera Y (adjustment device) 60 is Let Yout = (Ry, Gy, By). The pixel values of Xout and Yout will differ due to individual differences between cameras, particularly differences in the characteristics of the color filters.
[0090] The image sensor output value Xout of the reference camera X (reference device) 50, Xout = (Rx, Gx, Bx), The image sensor output value Yout of the adjustment camera Y (adjustment device) 60, Yout = (Ry,Gy,By) These two output values are input to a reference device band corresponding pixel value calculation unit 71 and an adjustment device band corresponding pixel value calculation unit 72, respectively.
[0091] In addition, the reference machine band corresponding pixel value calculation unit 71, the adjustment machine band corresponding pixel value calculation unit 72, and the band corresponding gain calculation unit 73 shown in Figure 5, these processing units may be configured in an image processing device outside each camera 50, 60, or may be configured inside each camera 50, 60. For example, it is possible to configure the reference device band-compatible pixel value calculation unit 71 within the reference camera X (reference device) 50, and the adjustment device band-compatible pixel value calculation unit 72 and the band-compatible gain calculation unit 73 within the adjustment camera Y (adjustment device).
[0092] The reference device band corresponding pixel value calculation unit 71 inputs the image sensor output values Xout = (Rx, Gx, Bx) of the reference camera X (reference device) 50, and calculates the signal values for each band contained in these color corresponding pixel values, i.e., the reference device band corresponding pixel values (Xbandout). Specifically, for example, the signal value S1 etc. is calculated for each band as described above with reference to FIG. The calculation process of the band corresponding pixel values will be described later in detail.
[0093] Similarly, the adjuster band corresponding pixel value calculation unit 72 inputs the image sensor output value Yout = (Ry, Gy, By) of the adjustment camera Y (adjuster) 60, and calculates the signal value for each band contained in these color corresponding pixel values, i.e., the adjuster band corresponding pixel value (Ybandout).
[0094] The reference device band corresponding pixel value Xbandout of the reference camera X (reference device) 60 calculated by the reference device band corresponding pixel value calculation unit 71 and the adjuster band corresponding pixel value Ybandout of the adjuster camera Y (adjuster) calculated by the adjuster band corresponding pixel value calculation unit 72 are input to a band corresponding gain calculation unit 73.
[0095] The band-compatible gain calculation unit 73 compares the band-compatible pixel values of the two cameras 50, 60, and calculates a gain, i.e., a band-compatible gain (BandGain), for matching the adjuster band-compatible pixel value Ybandout of the adjustment camera Y (adjuster) 60 to the reference device band-compatible pixel value Xbandout of the reference camera X (reference device) 50. The band-adaptive gains calculated by the band-adaptive gain calculation unit 73 are stored in the memory 61 of the adjustment camera Y (adjustment machine) 60.
[0096] It should be noted that one reference camera X (reference device) 50 is used in the process of calculating band-corresponding gains of a number of adjustment cameras Y (adjustment devices) 60. In other words, the reference device band corresponding pixel values calculated by the reference device band corresponding pixel value calculation unit 71 based on the captured image of the reference camera X (reference device) 50 can be used in the calculation process of band corresponding gains of multiple adjustment cameras Y (adjustment devices) 60.
[0097] Therefore, the reference machine band corresponding pixel values calculated by the reference machine band corresponding pixel value calculation unit 71 based on the captured image of the reference camera X (reference machine) 50 can be stored, for example, in the memory of the reference camera X (reference machine) 50 or in the memory of an external device, and this memory stored data can be applied to the subsequent band corresponding gain calculation process of another adjustment camera Y (adjustment machine) 60. By transmitting the reference camera measurements as metadata, it is possible to improve the separation performance in the downstream processing. In this case, the gain adjustment is also performed in the downstream processing, and the calculation of the reference camera is performed every time.
[0098] Next, with reference to FIG. 6, “(2) Processing when using a camera (when taking pictures)” to which the processing of the present disclosure is applied will be described.
[0099] (2) When the camera is in use (when taking pictures), a process is executed to adjust the output value using the gain value recorded in the memory of the camera when it was manufactured, and to adjust the output value to the same value as that of the reference device.
[0100] The adjustment camera Y (adjustment machine) 60 has a memory 61 in which the band-corresponding gain (BandGain) calculated in “(1) Processing at the time of manufacturing the camera” is stored.
[0101] First, an image of a subject, for example a plant, is captured by the adjustment camera Y (adjuster) 60. The image sensor output value Yout in this shooting process is Let Yout = (Ry, Gy, By).
[0102] Next, this image sensor output value Yout is input to an adjuster band corresponding pixel value calculation unit 81 . In addition, the adjuster band-compatible pixel value calculation unit 81 and the band-compatible gain adjustment unit 82 shown in Figure 6, these processing units, may be configured in an image processing device outside the adjustment camera Y (adjuster) 60, or may be configured inside the adjustment camera Y (adjuster) 60.
[0103] The adjuster band corresponding pixel value calculation unit 81 inputs the image sensor output values Yout = (Ry, Gy, By) of the adjuster camera Y (adjuster) 60, and calculates the signal values for each band contained in these color corresponding pixel values. The adjuster band corresponding pixel value Ybandout shown in FIG. A specific example of the process of calculating signal values corresponding to each band contained in pixel values corresponding to each color of the image sensor will be described in detail later.
[0104] The adjuster band corresponding pixel value Ybandout calculated by the adjuster band corresponding pixel value calculation unit 81 is input to the band corresponding gain adjustment unit 82.
[0105] The band-compatible gain adjustment unit 82 adjusts the output value by applying the band-compatible gain (BandGain) stored in the memory 61 of the adjustment camera Y (adjuster) 60 to the adjuster band-compatible pixel value (Ybandout) input from the adjuster band-compatible pixel value calculation unit 81, and calculates the band-compatible gain adjustment output value Yout2.
[0106] By this processing, the band-compatible gain adjustment output value Yout2 becomes an output that matches the output value of the reference device regardless of the shooting conditions. The band-compatible gain adjustment output value Yout2 is input to the image processing unit 83, and processing such as calculating the signal values of the R (red) component signal and the NIR (near-infrared) component signal is performed by executing the calculations and the like described above with reference to Figures 2 and 3.
[0107] In the process described with reference to Figures 5 and 6, each color output value of the imaging element of each camera is further separated into each band signal, a gain corresponding to the band signal is calculated, and the output value of adjustment camera Y (adjuster) 60 is adjusted using the band-corresponding gain. By performing this type of processing, it is possible to eliminate the discrepancy in output values due to differences in the filter characteristics of each camera, and to make the output value Yout = (Ry, Gy, By) of the adjustment camera Y (adjustment machine) 60 match the output value of the reference camera (reference machine) 50.
[0108] [4. Calculation process of pixel values corresponding to bands] Next, the band-corresponding pixel value calculation process will be described. The reference device band corresponding pixel value calculation unit 71 and the adjusted device band corresponding pixel value calculation unit 72 in "(1) Processing during camera manufacturing" described with reference to Figure 5 calculate the band corresponding pixel values of the reference camera X (reference device) 50 and the adjusted camera Y (adjusted device) 60, respectively.
[0109] As described above, the reference device band corresponding pixel value calculation unit 71 inputs the image sensor output values Xout = (Rx, Gx, Bx) of the reference camera X (reference device) 50, and calculates the signal values for each band contained in these color corresponding pixel values, i.e., the reference device band corresponding pixel values (Xbandout). Specifically, as described above with reference to FIG. 3, for example, a signal value in units of a transmission light band (band) of a bandpass filter is calculated as a reference device band-corresponding pixel value (Xbandout).
[0110] Similarly, the adjuster band corresponding pixel value calculation unit 72 inputs the image sensor output value Yout = (Ry, Gy, By) of the adjustment camera Y (adjuster) 60, and calculates the signal value for each band contained in these color corresponding pixel values, i.e., the signal value for the transmitted light band of the bandpass filter, as the adjuster band corresponding pixel value (Ybandout).
[0111] In addition, the adjuster band corresponding pixel value calculation unit 81 in "(2) Processing when using the camera (when taking a picture)" described with reference to Figure 6 also inputs the image sensor output value Yout = (Ry, Gy, By) of the adjustment camera Y (adjuster) 60, and calculates the signal value for each band contained in these pixel values corresponding to each color, i.e., the signal value for the transmitted light band of the bandpass filter, as the adjuster band corresponding pixel value (Ybandout).
[0112] Hereinafter, the details of the process of calculating band-corresponding pixel values from output pixel values of an image sensor executed by the image capture device and image processing device of the present disclosure will be described. Note that the image capture device is one configuration example of the image processing device, and in the following description, the image processing device includes the image capture device.
[0113] The image processing device disclosed herein performs signal processing on a captured image based on light transmitted through a color filter and a multi-bandpass filter (MBP) to obtain low-noise narrowband signals in limited wavelength band units, for example, low-noise signals in specific bands for each of R, G, B, and IR, and calculates and applies a gain corresponding to the obtained band signal. The gain is an adjustment parameter for matching the output of the adjuster with the output of the reference machine.
[0114] FIG. 7 shows an example of the configuration of a multispectral camera 100 that is an example of an image processing device according to the present disclosure. The configuration of the multispectral camera 100 shown in FIG. 7 corresponds to the configuration of the reference camera X (reference machine) 50 shown in FIG. 5 and the configuration of the adjustment camera Y (adjustment machine) 60 shown in FIGS.
[0115] When executing "(1) Processing during camera manufacturing" described with reference to FIG. 5, the processing described with reference to FIG. 5 is executed using reference camera X (reference machine) 50 and adjustment camera Y (adjustment machine) 60 having the configuration shown in FIG. 7. In addition, when executing "(2) Processing when using the camera (when taking pictures)" described with reference to Figure 6, the processing described with reference to Figure 6 is executed using an adjustment camera Y (adjustment machine) 60 having the configuration shown in Figure 7.
[0116] The configuration and processing of the multispectral camera 100 shown in FIG. 7 will be described. In a multispectral camera 100 shown in FIG. 7, photographing light of a subject input via a lens 101 is input via a multi-bandpass filter (MBP) 102 and a color filter (RGBIR color filter) 103 to an imaging element (image sensor) 104.
[0117] Furthermore, pixel values (Rraw, Graw, Braw, IRraw) of the image sensor 104 are input to a signal processor 105, where signal processing is performed. The signal processing unit 105 removes noise components from the pixel values (Rraw, Graw, Braw, IRraw) of the image sensor 104, and calculates highly accurate values of each of the R, G, B, and IR signals, i.e., band-corresponding pixel values corresponding to each of the R, G, B, and IR bands.
[0118] The signal processing unit 105 may be configured within the multispectral camera 100 or may be configured in an external device. The signal processing unit 105 executes not only the band-corresponding pixel value calculation process described above, but also band-corresponding gain calculation process, band-corresponding gain adjustment process, and the like.
[0119] The band corresponding pixel value calculation process executed by the signal processing unit 105 corresponds to, for example, the process executed by the reference device band corresponding pixel value calculation unit 71 and the adjuster band corresponding pixel value calculation unit 72 shown in FIG. 5, and the adjuster band corresponding pixel value calculation unit 81 shown in FIG. 6. 5. The band-adaptive gain calculation process executed by the signal processing unit 105 corresponds to the process executed by the band-adaptive gain calculation unit 73 shown in FIG. 6. The band-adaptive gain adjustment process executed by the signal processing unit 105 corresponds to the process executed by the band-adaptive gain adjustment unit 82 shown in FIG.
[0120] The multi-bandpass filter (MBP) 102 is a filter that selectively transmits light of multiple bands.
[0121] In the configuration shown in FIG. 7, the color filter (RGBIR color filter) 103 has four types of filter regions, R, G, B, and IR, and the multi-bandpass filter (MBP) 102 is also an example configured as a filter that selectively transmits these four types of wavelengths, R, G, B, and IR.
[0122] An example of distribution data of light of each wavelength input to the RGBIR pixels of the image sensor 104 will be described with reference to FIG. FIG. 8 is a diagram showing the spectral characteristics of the multi-bandpass filter (MBP) 102 and the color filter (RGBIR color filter) 103. As shown in FIG. The horizontal axis indicates the wavelength (400 to 1000 nm), and the vertical axis indicates the signal intensity (relative value) of the light transmitted through the filter.
[0123] It can be seen that the light transmitted through the color filter (B) constituting the color filter (RGB color filter) 103 is mostly B (blue) light with a wavelength of about 450 nm, but that light of other wavelength components also passes through in no small amount. Furthermore, most of the light transmitted through the color filter (G) is a G (green) component, which is light with a wavelength in the vicinity of 540 nm, but light of other wavelength components is also included. Most of the light transmitted through the color filter (R) is the R (red) component, which is light with a wavelength in the vicinity of 650 nm, but light of other wavelength components is also included. Similarly, most of the light transmitted through a color filter (IR) is NIR (near infrared) light with a wavelength of about 950 nm, but it also contains light of other wavelength components.
[0124] Moreover, the multi-bandpass filter (MBP) 102 selectively transmits the following four types of wavelength components over the entire surface. (1) B (blue) component, which is light with a wavelength of about 450 nm; (2) G (green) component, which is light with a wavelength of approximately 540 nm; (3) The R (red) component, which is light with a wavelength of approximately 650 nm. (4) NIR (near infrared) component, which is light with a wavelength of approximately 900 nm;
[0125] Light that has passed through a multi-bandpass filter (MBP) 102 and an R (red) filter of a color filter (RGBIR color filter) 103 is input to an R pixel of an image sensor 104, that is, an R pixel that is an R region transmitted light receiving pixel of a color filter 103. The pixel value on the image sensor due to this input light, that is, the pixel value of the R pixel of the RAW image, is Rraw.
[0126] Light that has passed through a multi-bandpass filter (MBP) 102 and a G (green) filter of a color filter (RGBIR color filter) 103 is input to a G pixel of an image sensor 104. The pixel value on the image sensor due to this input light, that is, the pixel value of the G pixel of the RAW image, is assumed to be Graw.
[0127] Light that has passed through a multi-bandpass filter (MBP) 102 and a B (blue) filter of a color filter (RGBIR color filter) 103 is input to a B pixel of an image sensor 104. The pixel value on the image sensor due to this input light, that is, the pixel value of the B pixel of the RAW image, is denoted as Braw.
[0128] Light that has passed through a multi-band pass filter (MBP) 102 and a NIR (near infrared) filter of a color filter (RGBIR color filter) 103 is input to an IR pixel of an image sensor 104. The pixel value on the image sensor due to this input light, that is, the pixel value of the IR pixel of the RAW image, is defined as IRraw.
[0129] The raw image pixel values of the image sensor 104: Rraw, Graw, Braw, and IRraw. Each of these pixel values contains not only narrowband signals of RGBIR, but also noise of other wavelengths. The signal processing unit 105 inputs the RAW image pixel values (Rraw, Graw, Braw, IRraw) of the image sensor 104, removes noise components from these pixel values, and calculates highly accurate pixel values for each wavelength of RGBIR, i.e., band-corresponding pixel values.
[0130] A specific example of signal processing executed by the signal processing unit 105 will be described with reference to FIG. 9 and subsequent figures. In the following explanation, in order to generalize the configuration and processing of the present disclosure, the color filter 103 will be explained as being composed of an ABCD color filter that transmits four different types of wavelength signals A to D as shown in FIG. 9.
[0131] ABCD color filters are An A-band filter that mainly transmits wavelengths in band A. A B-band filter that mainly transmits wavelengths in band B. A C-band filter that mainly transmits C-band wavelength light. A D-band filter that mainly transmits wavelengths in band D. The color filter is composed of these four types of band filters.
[0132] In addition, the image processing device of the present disclosure can use various configurations of color filters, such as a three-color RGB filter, a four-color RGBIR filter, and various other different color filters. In the following, a configuration and processing example will be described in which a color filter made up of filters that transmit four different wavelength bands A to D as shown in FIG. 9 is used as a representative example.
[0133] FIG. 10 is a diagram showing a multispectral camera 100 that is an example configuration of an image processing device according to the present disclosure that uses the ABCD color filters shown in FIG. The multispectral camera 100 shown in FIG. 10 has a configuration in which the RGBIR color filters of the multispectral camera 100 previously described with reference to FIG. 7 are replaced with ABCD color filters consisting of ABCD band filters having the configuration shown in FIG. 9.
[0134] The multi-bandpass filter (MBP) 102 is a filter that selectively transmits signals in four different wavelength bands corresponding to the four types of filters A to D that constitute the ABCD color filter.
[0135] FIG. 11 is a diagram showing the spectral characteristics of the multi-bandpass filter (MBP) 102 and the color filter (ABCD color filter) 103, similar to FIG. 8 described above. The horizontal axis indicates the wavelength (400 to 1000 nm), and the vertical axis indicates the signal intensity (relative value) of the light transmitted through the filter.
[0136] Most of the light transmitted through the color filter (A) constituting the color filter (RGB color filter) 103 is light of wavelengths in the vicinity of band A, but not a small amount of light of other wavelength components also passes through. Furthermore, most of the light transmitted through the color filter (B) is light of wavelengths in the vicinity of band B, but not a small amount of light of other wavelength components also passes through. Further, most of the light transmitted through the color filter (C) is light of wavelengths in the vicinity of band C, but not a small amount of light of other wavelength components also passes through. Further, most of the light transmitted through the color filter (D) is light of wavelengths in the vicinity of band D, but not a small amount of light of other wavelength components also passes through.
[0137] Moreover, the multi-bandpass filter (MBP) 102 selectively transmits four types of wavelength components in bands A to D over the entire surface.
[0138] Light that has passed through a multi-bandpass filter (MBP) 102 and an A-band filter of a color filter (ABCD color filter) 103 is input to pixel A of an image sensor 104, that is, pixel A that receives transmitted light of region A of color filter 103. The RAW image pixel value of pixel A is denoted as Araw.
[0139] Light that has passed through a multi-band pass filter (MBP) 102 and a B band pass filter of a color filter (ABCD color filter) 103 is input to a B pixel of an image sensor 104. The RAW image pixel value of the B pixel is represented as Braw.
[0140] Light that has passed through a multi-band pass filter (MBP) 102 and a C band pass filter of a color filter (ABCD color filter) 103 is input to a C pixel of an image sensor 104. The RAW image pixel value of the C pixel is represented as Craw.
[0141] Light that has passed through a multi-band pass filter (MBP) 102 and a D band pass filter of a color filter (ABCD color filter) 103 is input to a D pixel of an image sensor 104. The RAW image pixel value of the D pixel is represented as Draw.
[0142] The RAW image pixel values of the image sensor 104: Araw, Braw, Craw, and Draw. Each of these pixel values contains not only the narrowband signals A, B, C, and D, but also noise of other wavelengths. A signal processing unit 105 receives raw image pixel values (Araw, Braw, Craw, Draw) from the image sensor 104, removes noise components from these pixel values, and calculates highly accurate pixel values for each of the bands ABCD.
[0143] 11 shows a calculation formula for each pixel value Araw, Braw, Craw, and Draw of the image sensor 104. Each RAW image pixel value Araw, Braw, Craw, and Draw of the image sensor 104 can be calculated by the following calculation formula. Araw=a1+a2+a3+a4 Braw=b1+b2+b3+b4 Craw=c1+c2+c3+c4 Draw=d1+d2+d3+d4
[0144] a1, b2, c3, and d4 correspond to the points shown in the graph of FIG. 11 and correspond to the following signals. a1 = signal component of band A contained in RAW image pixel value Araw, a2=signal component of band B contained in RAW image pixel value Araw, a3=signal component of band C contained in RAW image pixel value Araw, a4 = signal component of band D contained in RAW image pixel value Araw,
[0145] b1 = signal component of band A contained in raw image pixel value Braw, b2=signal component of band B contained in RAW image pixel value Braw, b3=signal component of band C contained in RAW image pixel value Braw, b4 = signal component of band D contained in raw image pixel value Braw,
[0146] c1 = signal component of band A contained in raw image pixel value Craw, c2 = signal component of band B contained in raw image pixel value Craw, c3 = signal component of band C contained in RAW image pixel value Craw, c4 = signal component of band D contained in raw image pixel value Craw,
[0147] d1=signal component of band A contained in RAW image pixel value Draw, d2=signal component of band B contained in RAW image pixel value Draw, d3=signal component of band C contained in RAW image pixel value Draw, d4=signal component of band D contained in RAW image pixel value Draw,
[0148] Of the signal components a1 to a4 contained in the RAW image pixel value Araw of pixel A of pixel A of the image sensor 104, only a1 corresponds to band A, and the remaining components a2, a3, and a4 correspond to noise signals. Similarly, of the signal components b1 to b4 contained in the RAW image pixel value Braw of the B pixel of the imaging element 104, only b2 corresponds to band B, and the remaining components b1, b3, and b4 correspond to noise signals. Similarly, of the signal components c1 to c4 contained in the RAW image pixel value Craw of the C pixel of the image sensor 104, only c3 corresponds to band C, and the remaining components c1, c2, and c4 correspond to noise signals. Similarly, of the signal components d1 to d4 contained in the RAW image pixel value Draw of D pixels of the image sensor 104, only d4 corresponds to band D, and the remaining components d1, d2, and d3 correspond to noise signals.
[0149] The signal processing unit 105 inputs the RAW image pixel values (Araw to Draw) including these noise components from the image sensor 104, and performs a process of calculating the true band corresponding pixel values (a1, b2, c3, d4) for each of bands A to D with the noise components removed. The processing executed by the signal processing unit 105 will be described with reference to FIG.
[0150] FIG. 12 is a diagram for explaining the band corresponding pixel value (a1, b2, c3, d4) calculation process executed by the signal processing unit 105. In FIG. The signal processing unit 105 executes the processes of steps S01 to S03 shown in FIG.
[0151] (Step S01) Step S01 shown in FIG. 12 is processing by the signal processing unit 105 to generate a calculation formula for a RAW image base pixel value (Araw to Draw) for each pixel based on an input pixel value from the imaging element 104.
[0152] FIG. 12 (S01) shows a calculation formula for a pixel-by-pixel RAW image base pixel value (Araw to Draw) generated based on a RAW image input from the image sensor 104, that is, the following RAW image base pixel value calculation formula (Formula 21). Araw=a1+a2+a3+a4 Braw=b1+b2+b3+b4 Craw=c1+c2+c3+c4 Draw=d1+d2+d3+d4 ·······(Formula 21)
[0153] These RAW image base pixel values (Araw to Draw) are generated for each pixel of the image sensor, and the processing of steps S01 to S03 is performed for each pixel. The signal processing unit 105 calculates true band corresponding pixel values (a1, b2, c3, d4) for each of bands A to D with noise components removed for each pixel.
[0154] The RAW image output from the imaging element 104 is a RAW image in which ABCD pixel values are set for each pixel according to the arrangement of the ABCD color filters, and the signal processing unit 105 performs demosaic processing on this RAW image to set each of the ABCD pixel values for each pixel of the imaging element 104. The RAW image base pixel values (Araw to Draw) shown in the above (Equation 21) are the pixel values of one identical pixel after this demosaic processing.
[0155] It should be noted that such demosaic processing may be omitted, and the processing of steps S01 to S03 may be performed in units of a predetermined pixel block. For example, it is possible to configure the 2x2 ABCD pixels of the image sensor, i.e., a block of 4 pixels, as one processing block, and process the four RAW image pixel values (Araw~Draw) of this one processing block as the RAW image base pixel values (Araw~Draw) of all four pixels. In this case, the resolution will decrease, but the same noise reduction effect can be obtained.
[0156] (Step S02) Next, in step S02, the signal processing unit 105 generates an equation for calculating true band corresponding pixel values (a1, b2, c3, d4) of each of bands A to D from the above RAW image base pixel values (Araw to Draw) with noise components removed.
[0157] As shown in FIG. 12 (S02), the formula for calculating the true band-corresponding pixel values (a1, b2, c3, d4) of each of the bands A to D is shown as the following (Formula 22). a1=Araw-a2-a3-a4 b2=Braw-b1-b3-b4 c3=Craw-c1-c2-a4 d4=Draw-d1-d2-d3 ·······(Formula 22)
[0158] This (Equation 22) is an equation obtained by expanding the RAW image base pixel value (Araw to Draw) calculation equation (Equation 21) shown above (Step S01).
[0159] (Step S03) Next, in step S03, the signal processing unit 105 replaces the noise component data included in the true band corresponding pixel value (a1, b2, c3, d4) calculation formula generated above (step S02) with the spectral characteristic parameters (Kan to Kdn) of the multispectral camera 100 to generate a band corresponding pixel value calculation formula for calculating the true band corresponding pixel values (a1, b2, c3, d4) of each of bands A to D shown as the following (Formula 23).
[0160] a1=Araw-Ka2×b2-Ka3×c3-Ka4×d4 b2=Braw-Kb1×a1-Kb3×c3-Kb4×d4 c3=Craw-Kc1×a1-Kc2×b2-Kc4×d4 d4=Draw-Kd1×a1-Kd2×b2-Kd3×c3 ·······(Formula 23)
[0161] The spectral characteristic parameters (Kan to Kdn) are camera-specific parameters and are also called separation coefficients. The spectral characteristic parameters (Kan to Kdn) are previously measured and stored in the memory. The spectral characteristic parameters (Kan to Kdn) can be measured based on image capture data using a special light source, for example, and the measured values may be stored in the memory. Details of the calculation process of the spectral characteristic parameters (Kan to Kdn) based on image capture data using a special light source will be described later.
[0162] The spectral characteristic parameters (Kan to Kdn) of the multispectral camera 100 used in the above (Equation 23) are the following parameters. Ka2=a2 / b2 Ka3=a3 / c3 Ka4=a4 / d4 Kb1=b1 / a1 Kb3=b3 / c3 Kb4=b4 / d4 Kc1=c1 / a1 Kc2=c2 / b2 Kc4=c4 / d4 Kd1=d1 / a1 Kd2=d2 / b2 Kd3=d3 / c3
[0163] For example, Ka2=a2 / b2 is the ratio (a2 / b2) of the transmitted signal a2 of filter A to the transmitted signal b2 of filter B in the band B region of the graph shown in FIG. Ka3=a3 / c3 is the ratio (a3 / c3) of the transmitted signal a3 of filter A in the band C region in the graph shown in FIG. 11 to the transmitted signal c3 of filter C. Ka4=a4 / cd is the ratio (a4 / d4) of the transmitted signal a4 of filter A in the band D region to the transmitted signal d4 of filter D in the graph shown in FIG. Kb1=b1 / a1 is the ratio (b1 / a1) of the transmitted signal b1 of filter B in the band A region in the graph shown in FIG. 11 to the transmitted signal a1 of filter A.
[0164] The same applies below, and the spectral characteristic parameters of the multispectral camera 100 are the intensity ratios in specific bands of transmitted light through a plurality of different color filters that make up the color filter, that is, in the transmitted light bands of the multi-bandpass filter. In this example, the spectral characteristic parameters (Kan to Kdn) of the multispectral camera 100 are ratio data of the transmission signals of the filters A to D constituting the color filters in the bands A to D. The spectral characteristic parameters (Kan to Kdn) are parameters specific to the camera and are values that can be measured in advance.
[0165] The multispectral camera 100, which is an image processing device of the present disclosure, stores the spectral characteristic parameters (Kan to Kdn) of the multispectral camera 100 in a memory, and uses the parameters acquired from the memory to calculate a1, b2, c3, and d4 by substituting them into the true band-corresponding pixel value (a1, b2, c3, d4) calculation formula shown in FIG. 12 (step S03), i.e., the band-corresponding pixel value calculation formula (Formula 23). a1=Araw-Ka2×b2-Ka3×c3-Ka4×d4 b2=Braw-Kb1×a1-Kb3×c3-Kb4×d4 c3=Craw-Kc1×a1-Kc2×b2-Kc4×d4 d4=Draw-Kd1×a1-Kd2×b2-Kd3×c3 ·······(Formula 23)
[0166] The spectral characteristic parameters (Kan to Kdn) of the multispectral camera 100 may be obtained from, for example, an external device or an external server.
[0167] The signal processing unit 105 first inputs the following RAW image base pixel values (Araw to Draw) as initial values of a1, b2, c3, and d4 on the right side of the equation (Equation 23) above. a1=Araw b2=Braw c3=Craw d4=Draw
[0168] By substituting these values, the initial setting equation (Equation 24) of the band corresponding pixel value calculation equation is generated. a1=Araw-Ka2×Braw-Ka3×Craw-Ka4×Draw b2=Braw-Kb1×Araw-Kb3×Craw-Kb4×Draw c3=Craw-Kc1×Araw-Kc2×Braw-Kc4×Draw d4=Draw-Kd1×Araw-Kd2×Braw-Kd3×Craw ·······(Formula 24)
[0169] The signal processing unit 105 further substitutes a1, b2, c3, and d4 calculated according to the above initial setting equation (equation 24) into the right-hand side part of the equation of the band-corresponding pixel value calculation equation (equation 23) described above to calculate new values of a1, b2, c3, and d4. Furthermore, the calculated value is substituted into the right-hand part of the band corresponding pixel value calculation formula (Formula 23) to calculate new values of a1, b2, c3, and d4. This calculation is repeated. In other words, the iterative calculation using the band-corresponding pixel value calculation formula (Formula 23) is repeated a number of times to execute "repeated calculation." When the iterative calculation using the band-corresponding pixel value calculation formula (Formula 23) is repeated multiple times, the values of a1, b2, c3, and d4 gradually converge. An example of convergence of a1, b2, c3, and d4 by actual iterative calculation is shown in Figure 13.
[0170] FIG. 13 is a graph showing the number of times calculation was performed using the band-corresponding pixel value calculation formula (Formula 23) on the horizontal axis, and the error (%) from the true value on the vertical axis. The graph shows the transitions of the values of a1, b2, c3, and d4 obtained by repeating the calculation according to the above (Equation 23). As can be seen from the graph, by performing the iterative calculation 6 to 7 times, the values of a1, b2, c3, and d4 almost converge.
[0171] The signal processing unit 105 determines the convergence values obtained by iterative calculation using the band-corresponding pixel value calculation formula (Formula 23) as the true band-corresponding pixel values (a1, b2, c3, d4) of each of the bands A to D.
[0172] In order to determine whether the pixel values (a1, b2, c3, d4) have converged by the iterative calculation using the band-corresponding pixel value calculation formula (Formula 23), for example, it is possible to determine that the pixel values have converged when the differences between the calculation results of the multiple pixel values by the nth iterative calculation and the calculation results by the immediately preceding (n-1)th iterative calculation are all equal to or less than a predetermined threshold value, for example, 5% or less. Alternatively, the number of times the iterative calculation is to be performed may be preset as a specified number, such as six or seven, and convergence may be determined when the specified number of iterative calculations have been completed.
[0173] The signal processing unit 105 sets the converged values of the iterative calculation results in step S103 as the true band-corresponding pixel values (a1, b2, c3, d4) of each of the bands A to D. The signal processing unit 105 executes the processes of steps S01 to S03 on a pixel-by-pixel basis to calculate true band-corresponding pixel values (a1, b2, c3, d4) of each of bands A to D on a pixel-by-pixel basis for all pixels constituting the imaging element.
[0174] As described above, the processing may be performed in units of a predetermined pixel block, and the band-corresponding pixel values (a1, b2, c3, d4) may be calculated in units of a block.
[0175] The signal processing unit 105 then uses the calculated true band-corresponding pixel values (a1, b2, c3, d4) for each of the bands A to D to perform band-corresponding gain calculation processing or band-corresponding gain adjustment processing. These processes will be described below.
[0176] [5. Band-compatible gain calculation process and band-compatible gain adjustment process] Next, the band-adaptive gain calculation process and the band-adaptive gain adjustment process will be described.
[0177] When executing "(1) Processing at the time of camera manufacture" described above with reference to Figure 5, The band-corresponding gain calculation unit 73 calculates true band-corresponding pixel values (a1, b2, c3, d4) for each of bands A to D for each of the reference camera X (reference machine) 50 and the adjustment camera Y (adjustment machine) 60, and calculates band-corresponding gains based on these two sets of band-corresponding pixel values (a1, b2, c3, d4).
[0178] Furthermore, when executing “(2) Processing when using the camera (when taking pictures)” which was previously described with reference to FIG. 6, the band-compatible gain adjustment unit 82 calculates the true band-compatible pixel values (a1, b2, c3, d4) of the adjustment camera Y (adjuster) 60, and performs gain adjustment using the band-compatible gains stored in the memory to calculate the band-compatible gain adjustment output values of the adjustment camera Y (adjuster) 60.
[0179] The processing of the band-adaptive gain calculation unit 73 shown in FIG. 5 and the band-adaptive gain adjustment unit 82 shown in FIG. 6 can be executed as processing of the signal processing unit 105 of the multispectral camera 100 shown in FIG. 10, for example.
[0180] As described above, the band-corresponding pixel value calculation process, the band-corresponding gain calculation process, and the band-corresponding gain adjustment process may be performed by a signal processing unit within the camera, or may be executed by an external device. Here, the description will be given assuming that the processing is executed in each of the signal processing units 105 of the multispectral camera 100 shown in FIG.
[0181] First, the process executed by the band-adaptive gain calculation unit 73 in "(1) Process at the time of manufacturing the camera" shown in FIG. 5 will be described. The signal processing unit 105 performs the process in the band-adaptive gain calculation unit 73 shown in FIG. 5, that is, the process of calculating the band-adaptive gain.
[0182] As described above, the signal processing unit 105 calculates true band-corresponding pixel values (a1, b2, c3, d4) for each of bands A to D for each of the reference camera X (reference machine) 50 and the adjustment camera Y (adjustment machine) 60, and calculates band-corresponding gains based on these two sets of band-corresponding pixel values (a1, b2, c3, d4).
[0183] The band-compatible gain calculated by the signal processing unit 105 is, for example, the following gain. The pixel values corresponding to each of the bands A to D of the reference camera X (reference device) 50 are (ax1, bx2, cx3, dx4), The pixel values corresponding to each of the bands A to D of the adjustment camera Y (adjustment device) 60 are (ay1, by2, cy3, dy4), In this case, the signal processing unit 105 calculates the following band-specific gain. Band A Gain = ax1 / ay1 Band B gain = bx2 / by2 Band C gain = cx3 / cy3 Gain for band D = dx4 / dy4
[0184] The band-adapted gains calculated by the signal processing unit 105 (=band-adapted gain calculation unit 73) are stored in the memory 61 of the adjustment camera Y (adjustment machine) 60, as described above with reference to FIG.
[0185] Next, the process executed by the band-adaptive gain adjustment unit 82 in "(2) Process when using the camera (when taking a picture)" described above with reference to FIG. 6 will be described. The signal processing unit 105 of the adjustment camera Y (adjuster) 60 performs the process in the band-adaptive gain adjustment unit 82 shown in FIG. 6, that is, the output value adjustment process based on the band-adaptive gain.
[0186] The signal processing unit 105 calculates the true band-corresponding pixel values (a1, b2, c3, d4) of the adjustment camera Y (adjuster) 60 through the band-corresponding pixel value calculation process described above, and performs gain adjustment using the band-corresponding gains stored in the memory 61 to calculate the band-corresponding gain adjustment output values of the adjustment camera Y (adjuster) 60.
[0187] The band-adaptive gain adjustment output value calculated by the signal processing unit 105 is, for example, the following output value. The pixel values corresponding to each of the bands A to D of the adjustment camera Y (adjustment device) 60 are (ay1, by2, cy3, dy4), The gains for each band A to D stored in memory are Band A Gain = ax1 / ay1 Band B gain = bx2 / by2 Band C gain = cx3 / cy3 Gain for band D = dx4 / dy4 In this case, the signal processing unit 105 calculates the following band-adjusted gain output value. Gain adjustment output value for band A = (ax1 / ay1) × ay1 = ax1 Band B gain adjustment output value = (bx2 / by2) × by2 = bx2 Band C corresponding gain adjustment output value = (cx3 / cy3) × cy3 = cx3 Gain adjustment output value for band D = (dx4 / dy4) × dy4 = dx4
[0188] By such band-corresponding gain adjustment output value calculation processing, the band-corresponding pixel value of the adjustment camera Y (adjustment device) 60 becomes an output value that matches the output value of the reference camera X (reference device) 50. The gain calculated by this process is a band-compatible gain, and is not a gain that corresponds to a mixed signal of a plurality of different band signals, so that it does not change significantly depending on the shooting conditions (light source and subject). Therefore, even if the shooting conditions when the camera is used (when taking pictures) differ from the shooting conditions when the camera was manufactured, it is possible to match the output of the adjustment machine to the reference machine by applying the gain calculated when the camera was manufactured.
[0189] For example, in “(2) Processing when using a camera (when taking a picture)” described above with reference to FIG. 6, the signal processing unit 105 further calculates a band-corresponding gain adjustment output value, and then generates a color image and analyzes the color components of the subject based on the calculated band-corresponding gain adjustment output value.
[0190] The analysis of the color components of the subject is, for example, the analysis process of the Normalized Difference Vegetation Index (NDVI), which is an index value of the vegetation activity level mentioned above. To calculate the NDVI of the plants captured in the image, the red (RED) and near infrared (NIR) values contained as color components of the subject plant are required.
[0191] Specifically, the NDVI can be calculated according to the following formula: NDVI=(NIR-RED) / (NIR+RED) In the above formula, RED,NIR are the intensities (pixel values) of the RED and NIR wavelengths at each pixel of the image.
[0192] Note that the generation of a color image and the analysis of the color components of the subject may be performed by the signal processing unit 105 itself, but the true band corresponding pixel values (a1, b2, c3, d4) of each of bands A to D calculated by the signal processing unit 105 may be output to a downstream data processing unit to execute the operations in the data processing unit.
[0193] [6. Sequence of processing executed by the image processing device of the present disclosure] Next, a processing sequence executed by the image processing device of the present disclosure will be described.
[0194] FIG. 14 shows the following two processing flows. (1) Process flow during camera manufacturing (2) Processing flow when using the camera (when taking a photo)
[0195] (1) Processing flow during camera manufacturing is a flow explaining a sequence of processing equivalent to "(1) Processing during camera manufacturing" explained above with reference to FIG. (2) Processing flow when using a camera (when taking pictures) is a flow explaining a processing sequence corresponding to “(2) Processing when using a camera (when taking pictures)” explained above with reference to FIG. The process of each step of these flows will be explained below.
[0196] The processing according to the flowcharts shown in Fig. 14 and subsequent figures can be executed according to a program stored in a storage unit in an image processing device such as an imaging device or a PC. The data processing unit of the imaging device or image processing device executes the processing according to the flowcharts shown in Fig. 14 and subsequent figures according to the program stored in the storage unit.
[0197] First, (1) the process flow during camera manufacturing will be described. (Step S101) First, in step S101, image capturing processing is performed using a reference camera X (reference machine) and an adjustment camera Y (adjustment machine). It is preferable that this image capturing is performed under the same conditions.
[0198] (Steps S102 and S103) The processes in the following steps S102 and S103 are executed in parallel. In step S102, the band-corresponding pixel values of the reference camera X (reference machine) are calculated, and in step S103, the band-corresponding pixel values of the adjustment camera Y (adjustment machine) are calculated. These processes correspond to the processes previously described with reference to FIGS.
[0199] These processes are executed by the reference device band corresponding pixel value calculation unit 71 and the adjustment device band corresponding pixel value calculation unit 72 shown in Fig. 5. As described above, these processing units may be provided, for example, in the signal processing unit 105 of the reference camera X (reference device) 50 or the adjustment camera Y (adjustment device) 60 having the same configuration as the multispectral camera 100 shown in Fig. 10, or may be provided in an image processing device such as a PC outside the camera.
[0200] It should be noted that the detailed flow of the band-corresponding pixel value calculation process executed in steps S102 and S103 will be described later with reference to FIG.
[0201] (Step S104) Next, in step S104, a band-corresponding pixel value of the reference camera X (reference device) and a band-corresponding pixel value of the adjustment camera Y (adjustment device) are used to calculate a band-corresponding gain.
[0202] This process is executed by the band-corresponding gain calculation unit 73 shown in Fig. 5. As described above, this processing unit may be provided, for example, in the signal processing unit 105 of the multispectral camera 100 shown in Fig. 10, or may be provided in an image processing device such as a PC outside the camera.
[0203] The band-corresponding gain to be calculated is, for example, the following gain. The pixel values corresponding to each of the bands A to D of the reference camera X (reference device) 50 are (ax1, bx2, cx3, dx4), The pixel values corresponding to each of the bands A to D of the adjustment camera Y (adjustment device) 60 are (ay1, by2, cy3, dy4), In this case, the signal processing unit 105 calculates the following band-specific gain. Band A Gain = ax1 / ay1 Band B gain = bx2 / by2 Band C gain = cx3 / cy3 Gain for band D = dx4 / dy4
[0204] (Step S105) Finally, in step S105, the band-compatible gain calculated in step S104 is stored in the memory of the adjustment camera Y (adjustment machine).
[0205] 5, the reference machine band-corresponding pixel value calculated based on the image captured by the reference camera X (reference machine) is used in the calculation process of band-corresponding gains of multiple adjustment cameras Y (adjusted machines). Therefore, the reference machine band-corresponding pixel value calculated in step S102 may be stored, for example, in the memory of the reference camera X (reference machine) or in the memory of an external device, and this memory-stored data may be applied to the subsequent band-corresponding gain calculation process of other adjustment cameras Y (adjusted machines).
[0206] With this setting, when processing is performed on the second or subsequent adjustment cameras (adjustment machines), in step S101, images are captured using only adjustment camera Y (adjustment machine), the processing of step S102 is omitted, and in step S104, the reference machine band-corresponding pixel values already stored in memory are read out and the band-corresponding gain of the adjustment machine is calculated.
[0207] Next, (2) the process flow when using the camera (when taking pictures) will be described. (Step S121) First, in step S121, an image capturing process is performed by the adjustment camera Y (adjustment machine).
[0208] (Step S122) Next, in step S122, the band-corresponding pixel values of the adjustment camera Y (adjustment machine) are calculated. This process corresponds to the process previously described with reference to FIGS.
[0209] This process is executed by the adjuster band corresponding pixel value calculation unit 81 shown in Fig. 6. As described above, this processing unit may be provided, for example, in the signal processing unit 105 of the adjustment camera Y (adjuster) 60 having the same configuration as the multispectral camera 100 shown in Fig. 10, or may be provided in an image processing device such as a PC outside the camera.
[0210] It should be noted that the detailed flow of the band-corresponding pixel value calculation process executed in step S122 will be described later with reference to FIG.
[0211] (Step S123) Next, in step S123, the band corresponding pixel value calculated in step S122 is multiplied by: The band-corresponding gain adjustment output value is calculated by multiplying the band-corresponding gain stored in the memory.
[0212] This process is executed by the band-compatible gain adjustment unit 82 shown in Fig. 6. As described above, this processing unit may be provided, for example, in the signal processing unit 105 of the multispectral camera 100 shown in Fig. 10, or may be provided in an image processing device such as a PC outside the camera.
[0213] The calculated band-compatible gain adjustment output value is, for example, the following output value. The pixel values corresponding to each of the bands A to D of the adjustment camera Y (adjustment device) 60 are (ay1, by2, cy3, dy4), The gains for each band A to D stored in memory are Band A Gain = ax1 / ay1 Band B gain = bx2 / by2 Band C gain = cx3 / cy3 Gain for band D = dx4 / dy4 In this case, the signal processing unit 105 calculates the following band-adjusted gain output value. Gain adjustment output value for band A = (ax1 / ay1) × ay1 = ax1 Band B gain adjustment output value = (bx2 / by2) × by2 = bx2 Band C corresponding gain adjustment output value = (cx3 / cy3) × cy3 = cx3 Gain adjustment output value for band D = (dx4 / dy4) × dy4 = dx4
[0214] By such band-corresponding gain adjustment output value calculation processing, the band-corresponding pixel value of the adjustment camera Y (adjustment device) 60 becomes an output value that matches the output value of the reference camera X (reference device) 50. The gain calculated by this process is a band-compatible gain, and is not a gain that corresponds to a mixed signal of a plurality of different band signals, so that it does not change significantly depending on the shooting conditions (light source and subject). Therefore, even if the shooting conditions when the camera is used (when taking pictures) differ from the shooting conditions when the camera was manufactured, it is possible to match the output of the adjustment machine to the reference machine by applying the gain calculated when the camera was manufactured.
[0215] (Step S124) Furthermore, in step S124, generation of a color image and analysis of the color components of the subject are performed based on the band-compatible gain adjustment output value calculated in step S123. Specifically, the calculation process of the plant activation index value and the like are executed.
[0216] Next, a detailed sequence of the band-corresponding pixel value calculation process executed in steps S102, S103, and S122 of the flow shown in FIG. 14 will be described with reference to the flow shown in FIG. The process of each step in the flow will be explained below in order.
[0217] (Step S201) The process of step S201 is executed after the processes of steps S101 and S121 in the flow of FIG. 14, that is, after the image capturing by the multispectral camera.
[0218] In step S201, the signal processing unit 105 of the image processing device generates a band-corresponding pixel value calculation formula for calculating true pixel values (a1, b2, c3, d4) corresponding to each band (wavelength) using RAW image base pixel values (Araw to Draw) for each pixel generated by demosaic processing based on the RAW image input from the imaging element (image sensor) 104 and the camera's spectral characteristic parameters (Kan to Kdn). The processes in steps S201 to S205 are executed on a pixel-by-pixel basis.
[0219] In step S201, the signal processing unit 105 of the image processing device generates a band-corresponding pixel value calculation formula for the pixel to be processed, that is, the band-corresponding pixel value calculation formula (Formula 23) shown below and described above. a1=Araw-Ka2×b2-Ka3×c3-Ka4×d4 b2=Braw-Kb1×a1-Kb3×c3-Kb4×d4 c3=Craw-Kc1×a1-Kc2×b2-Kc4×d4 d4=Draw-Kd1×a1-Kd2×b2-Kd3×c3 ·······(Formula 23)
[0220] (Step S202) Next, in step S202, the image processing apparatus executes an iterative calculation process using the band-corresponding pixel value calculation formula generated in step S201.
[0221] That is, first, the following RAW image base pixel values (Araw to Draw) are input as initial values of a1, b2, c3, and d4 on the right side of the equation (Formula 23) above. a1=Araw b2=Braw c3=Craw d4=Draw
[0222] By substituting these values, the initial setting equation (Equation 24) of the band corresponding pixel value calculation equation is generated. a1=Araw-Ka2×Braw-Ka3×Craw-Ka4×Draw b2=Braw-Kb1×Araw-Kb3×Craw-Kb4×Draw c3=Craw-Kc1×Araw-Kc2×Braw-Kc4×Draw d4=Draw-Kd1×Araw-Kd2×Braw-Kd3×Craw ·······(Formula 24)
[0223] The signal processing unit 105 further substitutes a1, b2, c3, and d4 calculated according to the above initial setting formula (Formula 24) into the right-hand part of the equality of the band-corresponding pixel value calculation formula (Formula 23) to calculate new values of a1, b2, c3, and d4. Furthermore, it substitutes the calculated values into the right-hand part of the band-corresponding pixel value calculation formula (Formula 23) to calculate new values of a1, b2, c3, and d4. This iterative calculation is repeated. As described above with reference to FIG. 13, when the iterative calculation using the band-corresponding pixel value calculation formula (Formula 23) is repeated multiple times, the values of a1, b2, c3, and d4 gradually converge.
[0224] (Step S203) In step S203, the image processing apparatus determines whether or not the band corresponding pixel values (a1, b2, c3, d4) calculated using the band corresponding pixel value calculation formula have converged.
[0225] In addition, as for determining whether the band-corresponding pixel values (a1, b2, c3, d4) have converged through the iterative calculation using the band-corresponding pixel value calculation formula (Formula 23), as described above, for example, it is possible to determine that the band-corresponding pixel values have converged when the differences between the calculation results of the multiple pixel values by the nth iterative calculation and the calculation results by the immediately preceding (n-1)th iterative calculation are all equal to or less than a predetermined threshold value, for example, 5% or less. Alternatively, the number of times that the iterative calculation is to be performed may be determined in advance as a specified number, such as six or seven times, and convergence may be determined when the specified number of iterative calculations have been completed.
[0226] In step S203, if it is determined that the band-corresponding pixel values (a1, b2, c3, d4) have not converged, the process returns to step S202 and repeats the iterative calculation. On the other hand, if it is determined that the band-corresponding pixel values (a1, b2, c3, d4) have converged, the process proceeds to step S204.
[0227] (Step S204) In step S203, if it is determined that the band-corresponding pixel values (a1, b2, c3, d4) have converged, the process proceeds to step S204. In step S204, the signal processing unit 105 of the image processing device sets the converged band-corresponding pixel values (a1, b2, c3, d4) as the pixel value of the processing target pixel.
[0228] (Step S205) Next, in step S205, the signal processing unit 105 of the image processing device determines whether or not calculation of the band-corresponding pixel values (a1, b2, c3, d4) of all pixels of the image sensor has been completed.
[0229] If there are any pixels for which calculation of band-associated pixel values (a1, b2, c3, d4) has not been completed, the process returns to step S201, and steps S201 to S205 are executed for the unprocessed pixels. If it is determined that calculation of the band-corresponding pixel values (a1, b2, c3, d4) for all pixels has been completed, the band-corresponding pixel value calculation process is terminated and the process proceeds to the next step, i.e., step S104 or step S123 of the flow shown in FIG. 14.
[0230] In the above description, the calculation process of the band-corresponding pixel values (a1, b2, c3, d4) by iterative calculation of the band-corresponding pixel value calculation formula is performed on a pixel-by-pixel basis. However, as described above, the calculation process may be performed on a predetermined pixel block basis.
[0231] As described with reference to the flow, the image processing device of the present disclosure, for example, the multispectral camera shown in FIG. 7 or FIG. 10 generates a band-corresponding pixel value calculation formula (Formula 23) that calculates true pixel values (a1, b2, c3, d4) corresponding to each band (wavelength) using RAW image base pixel values (Araw to Draw) that are set on a pixel-by-pixel basis based on the pixel values of a RAW image captured through a multi-bandpass filter and a color filter, and the camera's spectral characteristic parameters (Kan to Kdn), and calculates the band-corresponding true pixel values (a1, b2, c3, d4) by iterative calculation using this band-corresponding pixel value calculation formula.
[0232] There are a number of different methods for iterative calculation using the band-corresponding pixel value calculation formula. Two methods of iterative calculation will be described with reference to FIGS.
[0233] FIG. 16 shows the same process as that described according to the flow shown in FIG. FIG. 16 is a diagram for explaining in detail the iterative calculation of the band corresponding pixel value calculation formula executed in step S202 shown in FIG.
[0234] In step S202-1, the RAW image base pixel values (Araw to Draw) are input as initial values for a1, b2, c3, and d4 on the right side of the equation of the band-corresponding pixel value calculation formula (Equation 23) described earlier, to generate the following initial setting formula for the band-corresponding pixel value calculation formula (Equation 24). a1=Araw-Ka2×Braw-Ka3×Craw-Ka4×Draw b2=Braw-Kb1×Araw-Kb3×Craw-Kb4×Draw c3=Craw-Kc1×Araw-Kc2×Braw-Kc4×Draw d4=Draw-Kd1×Araw-Kd2×Braw-Kd3×Craw ·······(Formula 24)
[0235] Next, in step S202-2, a1, b2, c3, and d4 calculated according to the above initial setting formula (Formula 24) are converted into the band corresponding pixel value calculation formula (Formula 23), that is, a1=Araw-Ka2×b2-Ka3×c3-Ka4×d4 b2=Braw-Kb1×a1-Kb3×c3-Kb4×d4 c3=Craw-Kc1×a1-Kc2×b2-Kc4×d4 d4=Draw-Kd1×a1-Kd2×b2-Kd3×c3 ·······(Formula 23)
[0236] Substituting these values into the right-hand part of the equation of the above band-corresponding pixel value calculation formula (Formula 23), new values of a1, b2, c3, and d4 are calculated.Furthermore, substituting these calculated values into the right-hand part of the band-corresponding pixel value calculation formula (Formula 23), new values of a1, b2, c3, and d4 are calculated.This iterative calculation is repeated. By repeatedly performing the iterative calculation using the band-corresponding pixel value calculation formula (Formula 23) multiple times, the values of a1, b2, c3, and d4 gradually converge.
[0237] A method different from such an iterative calculation processing method will be described with reference to FIG. FIG. 17 is also a diagram for explaining in detail the iterative calculation of the band-corresponding pixel value calculation formula that can be executed in step S202 shown in FIG.
[0238] In step S202-1 shown in FIG. 17, first, the a1 calculation formula of the initial setting formula (Formula 24) of the above-mentioned band corresponding pixel value calculation formula, a1=Araw-Ka2×Braw-Ka3×Craw-Ka4×Draw ...(Formula 24-a) Calculate a1 using the above formula (Formula 24-1).
[0239] Next, the b2 calculation formula of the initial setting formula (Formula 24) of the band corresponding pixel value calculation formula, that is, b2=Braw-Kb1×Araw-Kb3×Craw-Kb4×Draw ...(Formula 24-2) The above formula (24-2) is replaced with a1 calculated by (24-1), that is, b2=Braw-Kb1×a1-Kb3×Craw-Kb4×Draw ...(Formula 24-3) Calculate b2 using the above formula (Formula 24-3).
[0240] Next, the c3 calculation formula of the initial setting formula (Formula 24) of the band corresponding pixel value calculation formula, that is, c3=Craw-Kc1×Araw-Kc2×Braw-Kc4×Draw ...(Formula 24-4) The above formula (24-4) is obtained by replacing Araw and Braw with a1 and b2 calculated by (24-1) and (24-3), i.e., c3=Craw-Kc1×a1-Kc2×b2-Kc4×Draw ...(Formula 24-5) Calculate c3 using the above formula (Formula 24-5).
[0241] Next, the d4 calculation formula of the initial setting formula (Formula 24) of the band corresponding pixel value calculation formula, that is, d4=Draw-Kd1×Araw-Kd2×Braw-Kd3×Craw ...(Formula 24-6) The above formula (24-6) is obtained by replacing Araw, Braw, and Craw with a1, b2, and c3 calculated by (24-1), (24-3), and (24-5), i.e., d4=Draw-Kd1×Aa1-Kd2×b2-Kd3×c3 ...(Formula 24-7) Calculate d4 using the above formula (Formula 24-7).
[0242] Next, in step S202-2, a1, b2, c3, and d4 calculated in step S202-1 are calculated using the band-corresponding pixel value calculation formula (Formula 23), that is, a1=Araw-Ka2×b2-Ka3×c3-Ka4×d4 b2=Braw-Kb1×a1-Kb3×c3-Kb4×d4 c3=Craw-Kc1×a1-Kc2×b2-Kc4×d4 d4=Draw-Kd1×a1-Kd2×b2-Kd3×c3 ·······(Formula 23)
[0243] Substituting these values into the right-hand part of the equation of the above band-corresponding pixel value calculation formula (Formula 23), new values of a1, b2, c3, and d4 are calculated.Furthermore, substituting these calculated values into the right-hand part of the band-corresponding pixel value calculation formula (Formula 23), new values of a1, b2, c3, and d4 are calculated.This iterative calculation is repeated. When the iterative calculation using the band-corresponding pixel value calculation formula (Formula 23) is repeated multiple times, the values of a1, b2, c3, and d4 gradually converge.
[0244] In the method shown in Fig. 17, a process is performed in which a value calculated using one of the multiple formulas constituting the initial setting formula (Formula 24) of the band-corresponding pixel value calculation formula is substituted into the other formulas of the initial setting formula. By performing such a process, it becomes possible to converge more quickly and reduce the number of calculations.
[0245] [7. Configuration and processing example for performing band-compatible gain calculation processing when using a camera] Next, a configuration and a processing example for performing the band-compatible gain calculation process when using a camera will be described.
[0246] In the description with reference to FIGS. 5 to 14, for example, as shown in the flows of FIGS. 5 and 14, the band-adaptive gain calculation process has been described as being configured to be executed when the camera is manufactured. However, this band-compatible gain calculation process may be configured to be executed when the camera is used. A configuration and a processing example for performing the band-compatible gain calculation process when using a camera will be described below.
[0247] 18 and 19 show the following two diagrams, as previously explained with reference to FIGS. 5 and 6. (1) Processing during camera manufacturing (2) Processing when using the camera (when taking pictures)
[0248] First, with reference to FIG. 18, “(1) Processing during camera manufacturing” of the present disclosure will be described. This process is a diagram that explains the process of storing the following values used to calculate gains to uniformize the output values of each camera in memory 61 of adjustment camera Y (adjustment machine) 60, for example, when mass-producing multispectral cameras in a camera manufacturing factory. (a) Average pixel value (Xoutave) corresponding to the band of the image sensor of the reference device calculated from the pixel values of the reference camera X (reference device) 50 (b) Average pixel value corresponding to the adjustment device image sensor band calculated from the pixel values of the adjustment camera Y (adjustment device) 60 (Youtave)
[0249] The reference camera X (reference machine) 50 is a single reference camera. The adjustment camera Y (adjustment machine) 120 is a camera that is manufactured and sold. The above values used to calculate the band-corresponding gains included in each color as output adjustment parameters for matching the output of the adjustment camera Y (adjuster) 60 with the output of the reference camera X (reference device) 50, i.e., (a) Average pixel value (Xoutave) corresponding to the band of the image sensor of the reference device calculated from the pixel values of the reference camera X (reference device) 50 (b) Average pixel value corresponding to the adjustment device image sensor band calculated from the pixel values of the adjustment camera Y (adjustment device) 60 (Youtave) These are calculated and stored in the memory 61 of the adjustment camera Y (adjustment machine) 60.
[0250] The same subject is photographed by a reference camera X (reference device) 50 and an adjustment camera Y (adjustment device) 60, and the output values of the respective image sensors are obtained. Each camera is equipped with a filter and an image sensor, and the characteristics of these do not completely match, so there is a difference in the output values of each camera.
[0251] The image sensor output value Xout of the reference camera X (reference device) 50 is Let Xout = (Rx, Gx, Bx). The image sensor output value Yout of the adjustment camera Y (adjustment device) 60 is Let Yout = (Ry, Gy, By). The pixel values of Xout and Yout will differ due to individual differences between cameras, particularly differences in the characteristics of the color filters.
[0252] The reference device band corresponding pixel value average calculation unit 75 shown in Figure 18 inputs the image sensor output value Xout = (Rx, Gx, Bx) of the reference camera X (reference device) 50, calculates the average value of the pixel values of all the same color (each band) of the constituent pixels of the image sensor, and stores it in the memory 61 of the adjustment camera Y (adjustment device) 60. That is, the reference device imaging element band corresponding pixel value average value (Xoutave)=(Rxave, Gxave, Bxave) shown in FIG.
[0253] 18 receives the image sensor output values Yout=(Ry, Gy, By) of the adjustment camera Y (adjuster) 60, and calculates the average value of all pixel values of the same color (each band) of the constituent pixels of the image sensor. That is, it calculates the adjuster image sensor band corresponding pixel value average value (Youtave) shown in FIG. 18 and stores it in the memory 61 of the adjustment camera Y (adjuster) 60. That is, the adjusted machine imaging element band corresponding pixel value average value (Youtave)=(Ryave, Gyave, Byave) shown in FIG. The image sensor band corresponding pixel value average calculation process is executed by applying the process previously described with reference to FIGS.
[0254] The reference device band corresponding pixel value average calculation unit 75 and the adjustment device band corresponding pixel value average calculation unit 76 shown in FIG. 18 may be provided, for example, in the signal processing unit 105 of the reference camera X (reference device) 50 or the adjustment camera Y (adjustment device) 60 having the same configuration as the multispectral camera 100 shown in FIG. 10, or may be provided in an image processing device such as a PC outside the camera.
[0255] Next, (2) Processing when using the camera (when taking pictures) will be described with reference to FIG. (2) When using the camera (taking a picture), the value recorded in the camera's memory when the camera was manufactured, i.e., (a) Average pixel value (Xoutave) corresponding to the band of the image sensor of the reference device calculated from the pixel values of the reference camera X (reference device) 50 (b) Average pixel value corresponding to the adjustment device image sensor band calculated from the pixel values of the adjustment camera Y (adjustment device) 60 (Youtave) These values are used to calculate the band-compatible gain (BandGain), and the calculated band-compatible gain (BandGain) value is used to adjust the output value of adjustment camera Y (adjustment machine) 60, thereby executing a process to adjust the output value to the same value as the reference machine.
[0256] First, an image of a subject, for example a plant, is captured by the adjustment camera Y (adjuster) 60. The image sensor output value Yout in this shooting process is Let Yout = (Ry, Gy, By). Next, this image sensor output value Yout is input to an adjuster band corresponding pixel value calculation unit 81 .
[0257] The adjuster band corresponding pixel value calculation unit 81 inputs the image sensor output values Yout = (Ry, Gy, By) of the adjuster camera Y (adjuster) 60, and calculates the signal values for each band contained in these color corresponding pixel values. The adjuster band corresponding pixel value Ybandout shown in FIG.
[0258] The adjuster band corresponding pixel value Ybandout calculated by the adjuster band corresponding pixel value calculation unit 81 is input to the band corresponding gain adjustment unit 82.
[0259] On the other hand, the band-compatible gain calculation unit 84 shown in FIG. 19 calculates the following value stored in the memory 81, that is, (a) Average pixel value (Xoutave) corresponding to the band of the image sensor of the reference device calculated from the pixel values of the reference camera X (reference device) 50 (b) Average pixel value corresponding to the adjustment device image sensor band calculated from the pixel values of the adjustment camera Y (adjustment device) 60 (Youtave) These values are used to calculate the band-specific gain (BandGain).
[0260] The band-compatible gain calculation unit 84 compares the average band-compatible pixel values of the same color (band) of the two cameras 50, 60 stored in memory 81, and calculates a gain, i.e., a band-compatible gain (BandGain), for matching the average adjuster band-compatible pixel value of the adjustment camera Y (adjuster) 60 with the average reference device band-compatible pixel value of the reference camera X (reference device) 50. The band-adapted gain calculated by the band-adapted gain calculation unit 84 is input to the band-adapted gain adjustment unit 82 .
[0261] The band-compatible gain adjustment unit 82 adjusts the output value by applying the band-compatible gain (BandGain) calculated by the band-compatible gain calculation unit 84 to the adjuster band-compatible pixel value (Ybandout) input from the adjuster band-compatible pixel value calculation unit 81, and calculates the band-compatible gain adjustment output value Yout2.
[0262] By this processing, the band-compatible gain adjustment output value Yout2 becomes an output that matches the output value of the reference device regardless of the shooting conditions. The band-compatible gain adjustment output value Yout2 is input to the image processing unit 83, and processing such as calculating the signal values of the R (red) component signal and the NIR (near-infrared) component signal is performed by executing the calculations and the like described above with reference to Figures 2 and 3.
[0263] In the process described with reference to Figures 18 and 19, similarly to the process previously described with reference to Figures 5 and 6, each color output value of the imaging element of each camera is further separated into each band signal, a gain corresponding to the band signal is calculated, and the output value of adjustment camera Y (adjuster) 60 is adjusted using the band-corresponding gain. By performing this type of processing, it is possible to eliminate the discrepancy in output values due to differences in the filter characteristics of each camera, and to make the output value Yout = (Ry, Gy, By) of the adjustment camera Y (adjustment machine) 60 match the output value of the reference camera (reference machine) 50.
[0264] In the description with reference to Figs. 18 and 19, (a) Average pixel value (Xoutave) corresponding to the band of the reference device image sensor of the reference camera X (reference device) 50 (b) Average pixel value corresponding to the adjustment device image sensor band of the adjustment camera Y (adjustment device) 60 (Youtave) The above description has been given of a configuration in which these average pixel values are stored in memory 61 of adjustment camera Y (adjuster) 60, and band-compatible gains are calculated using these average pixel values. Instead of the average pixel values, a representative value of each color (each band) of each camera may be stored in the memory 61, and the band-corresponding gain may be calculated using these representative pixel values.
[0265] Next, a processing sequence executed by the image processing device of the present disclosure when performing the processing described with reference to FIGS. 18 and 19 will be described with reference to FIG.
[0266] FIG. 20 shows the following two processing flows. (1) Process flow during camera manufacturing (2) Processing flow when using the camera (when taking a photo)
[0267] (1) Processing flow during camera manufacturing is a flow explaining a sequence of processing equivalent to "(1) Processing during camera manufacturing" explained above with reference to FIG. (2) Processing flow when using a camera (when taking pictures) is a flow explaining a processing sequence corresponding to “(2) Processing when using a camera (when taking pictures)” explained above with reference to FIG. The process of each step of these flows will be explained below.
[0268] The processing according to the flowcharts shown in Fig. 20 onwards can be executed according to a program stored in a storage unit in an image processing device such as an imaging device or a PC, etc. The data processing unit of the imaging device or image processing device executes the processing according to the flowcharts shown in Fig. 20 onwards according to the program stored in the storage unit.
[0269] First, (1) the process flow during camera manufacturing will be described. (Step S131) First, in step S131, image capturing processing is performed using the reference camera X (reference machine) and the adjustment camera Y (adjustment machine). It is preferable that this image capturing is performed under the same conditions.
[0270] (Steps S132 and S133) The processes in the following steps S132 and S133 are executed in parallel. In step S132, the average value of pixel values corresponding to the band of the reference camera X (reference machine) is calculated, and in step S133, the average value of pixel values corresponding to the band of the adjustment camera Y (adjustment machine) is calculated. These processes are executed by the reference device band corresponding pixel value average calculation unit 75 and the adjustment device band corresponding pixel value average calculation unit 76 shown in FIG. The image sensor band corresponding pixel value average calculation process is executed by applying the process previously described with reference to FIGS.
[0271] These processes are executed by the reference device band corresponding pixel value calculation unit 71 and the adjustment device band corresponding pixel value calculation unit 72 shown in Fig. 5. As described above, these processing units may be provided, for example, in the signal processing unit 105 of the reference camera X (reference device) 50 or the adjustment camera Y (adjustment device) 60 having the same configuration as the multispectral camera 100 shown in Fig. 10, or may be provided in an image processing device such as a PC outside the camera.
[0272] The band-corresponding pixel value average calculation process executed in steps S132 and S133 can be executed as a process of first calculating individual band-corresponding pixel values according to the flow shown in FIG. 15 described above, and then calculating the average value.
[0273] (Step S134) Next, in step S134, the following values calculated in steps S132 and S133 are stored in the memory 61 of the adjustment camera Y (adjustment machine) 60: (a) Average pixel value (Xoutave) corresponding to the band of the image sensor of the reference device calculated from the pixel values of the reference camera X (reference device) 50 (b) Average pixel value corresponding to the adjustment device image sensor band calculated from the pixel values of the adjustment camera Y (adjustment device) 60 (Youtave)
[0274] The reference device band-corresponding pixel value average value calculated based on the captured image of the reference camera X (reference device) is used in the calculation process of band-corresponding gains of multiple adjustment cameras Y (adjustment devices). Therefore, the reference device band-corresponding pixel value average value calculated in step S132 may be stored, for example, in the memory of the reference camera X (reference device) or in the memory of an external device, and this memory-stored data may be stored in the memory of another adjustment camera Y (adjustment device) thereafter.
[0275] In this setting, when processing is performed on the second or subsequent adjustment cameras (adjustment machines), in step S131, images are captured only by adjustment camera Y (adjustment machine), and the processing in step S132 can be omitted.
[0276] Next, (2) the process flow when using the camera (when taking pictures) will be described. (Step S141) First, in step S141, an image capturing process is performed by the adjustment camera Y (adjustment machine).
[0277] (Step S142) Next, in step S142, the band-corresponding pixel values of the adjustment camera Y (adjustment machine) are calculated. This process corresponds to the process previously described with reference to FIGS.
[0278] This process is executed by the adjuster band corresponding pixel value calculation unit 81 shown in FIG.
[0279] The band-corresponding pixel value calculation process executed in step S142 can be executed according to the flow shown in FIG. 15 described above.
[0280] (Step S143) Next, in step S143, the adjustment camera Y (adjustment machine) stores the following in its memory: (a) Average pixel value of the reference camera's image sensor band (Xoutave) (b) Average pixel value corresponding to the band of the image sensor of the adjustment machine (Youtave) These values are used to calculate the band-specific gain.
[0281] This process is executed by the band-compatible gain calculation unit 84 shown in FIG. The band-adaptive gain calculated by the band-adaptive gain calculation unit 84 is, for example, the following gain. The average pixel values of bands A to D of the reference camera X (reference device) 50 are (ax1ave, bx2ave, cx3ave, dx4ave), The average pixel values of the bands A to D of the adjustment camera Y (adjustment device) 60 are (ay1ave, by2ave, cy3ave, dy4ave), In this case, the signal processing unit 105 calculates the following band-specific gain. Band A Gain = ax1ave / ay1ave Band B gain = bx2ave / by2ave Band C Gain = cx3ave / cy3ave Band D corresponding gain = dx4ave / dy4ave
[0282] (Step S144) Next, in step S144, the band-corresponding pixel value calculated in step S142 is multiplied by the band-corresponding gain calculated in step S143 to calculate a band-corresponding gain adjustment output value. This process is executed by the band-adaptive gain adjustment unit 82 shown in FIG.
[0283] The calculated band-compatible gain adjustment output value is, for example, the following output value. The pixel values corresponding to each of the bands A to D of the adjustment camera Y (adjustment device) 60 are (ay1, by2, cy3, dy4), The band-corresponding gains for each of the bands A to D calculated in step S143 are expressed as follows: Band A Gain = ax1ave / ay1ave Band B gain = bx2ave / by2ave Band C Gain = cx3ave / cy3ave Band D corresponding gain = dx4ave / dy4ave Then, the following band-compatible gain adjustment output value is calculated. Gain adjustment output value for band A = (ax1ave / ay1ave) × ay1 = ax1 Band B gain adjustment output value = (bx2ave / by2ave) × by2 = bx2 Band C gain adjustment output value = (cx3ave / cy3ave) × cy3 = cx3 Gain adjustment output value for band D = (dx4ave / dy4ave) × dy4 = dx4
[0284] By such band-corresponding gain adjustment output value calculation processing, the band-corresponding pixel value of the adjustment camera Y (adjustment device) 60 becomes an output value that matches the output value of the reference camera X (reference device) 50. The gain calculated by this process is a band-compatible gain, and is not a gain that corresponds to a mixed signal of a plurality of different band signals, so that it does not change significantly depending on the shooting conditions (light source and subject). Therefore, even if the shooting conditions when the camera is used (when taking pictures) differ from the shooting conditions when the camera was manufactured, it is possible to match the output of the adjustment machine to the reference machine by applying the gain calculated when the camera was manufactured.
[0285] (Step S145) Furthermore, in step S145, generation of a color image and analysis of the color components of the subject are performed based on the band-compatible gain adjustment output value calculated in step S144. Specifically, the calculation process of the plant activation index value and the like are executed.
[0286] [8. Calculation process of the spectral characteristic parameters (separation factor) of multispectral cameras] Next, a calculation process of the spectral characteristic parameters (separation coefficients) of the multispectral camera will be described. For example, as described above with reference to FIG. 12, the spectral characteristic parameters (Kan to Kdn) of the multispectral camera 100 are parameters specific to the camera, and the previously measured values are stored in the memory.
[0287] The spectral characteristic parameters of the multispectral camera can also be measured by using the multispectral camera to capture the output light of a special light source that outputs light in a specific band. This process will be described below.
[0288] The configuration and processing for calculating the spectral characteristic parameters of a multispectral camera will be described with reference to FIG. FIG. 21 shows a special light source (pattern box) 200 and a multispectral camera 210 that captures the output light of the special light source (pattern box) 200 and calculates the spectral characteristic parameters.
[0289] The special light source (pattern box) 200 has a halogen light source 201, a diffusion plate 202, and a filter 203. The output light of the halogen light source 201 is output via the diffusion plate 202 and the filter 203, and the output light is photographed by a camera 210.
[0290] Halogen light source 201 has the characteristics shown in the lower left of the figure. The output light of this halogen light source 201 passes through diffusion plate 202, which has relatively flat characteristics, and is output via filter 203. Filter 203 has different filters attached to its four windows. The light transmission characteristics of each filter are shown in the lower right of the figure. That is, the following four types of filters are attached to the filter 203. A band 1 filter that transmits band 1 light, A band 2 filter that transmits light of band 2; A band 3 filter that transmits band 3 light; A band 4 filter that transmits band 4 light;
[0291] Three of these four types of filters are closed, and the light transmitted through one filter is captured by the multispectral camera 210. The filters that transmit light are switched in sequence, and the four different bands of light are sequentially captured by the multispectral camera 210. These captured images are input to a downstream data processing unit (spectral characteristic parameters) 220, and the spectral characteristic parameters of the multispectral camera 210 are calculated. Alternatively, the transmitted light of the four filters can be captured simultaneously, and the transmitted light portion of each filter can be cut out and input to a downstream data processing unit (spectral characteristic parameters) 220 to calculate the spectral characteristic parameters of the multispectral camera 210.
[0292] The data processing unit (spectral characteristic parameters) 220 may be an external device such as a PC, or may be configured within the multispectral camera 210. Hereinafter, the calculation process of the spectral characteristic parameters of the multispectral camera 210 executed by the data processing unit (spectral characteristic parameters) 220 will be described in detail.
[0293] The transmission light bands of the four types of filters of the filter 203 of the special light source (pattern box) 200 are respectively Band 1=band1Light, band2=band2Light, band 3=band3Light, band 4=band4Light, Let us assume that.
[0294] Also, it is assumed that the multispectral camera 200 is a camera having the configuration shown in FIG. 10, equipped with the color filters (ABCD filters) shown in FIG.
[0295] The raw outputs Araw, Braw, Craw, and Draw of 4 channels of each pixel ABCD when light in each of bands 1 to 4 (band1light to band4light) is received by the multispectral camera 200 are expressed as follows:
[0296] (1) Band 1 = Raw output of each pixel of ABCD when receiving band1 light Araw@band1Light Braw@ band1Light Craw@band1Light Draw@ band1Light
[0297] (2) Band 2 = Raw output of each pixel of ABCD when receiving band2 Light Araw@band2Light Braw@ band2Light Craw@ band2Light Draw@ band2Light
[0298] (3) Band 3 = Raw output of each pixel of ABCD when receiving band 3 light Araw@band3Light Braw@ band3Light Craw@band3Light Draw@ band3Light
[0299] (4) Band 4 = Raw output of each pixel of ABCD when receiving band 4 light Araw@band4Light Braw@ band4Light Craw@ band4Light Draw@ band4Light
[0300] Using these, the data processing unit (spectral characteristic parameter calculation unit) 220 calculates band corresponding pixel values of each of bands A, B, C, and D contained in each pixel value (raw pixel value) of ABCD, i.e., the following band corresponding pixel values shown in FIG. 11, as previously described with reference to FIG. 11. Pixel values a1, a2, a3, and a4 of band ABCD included in pixel value of pixel A, Pixel values b1, b2, b3, and b4 of band ABCD included in the pixel value of pixel B, Pixel values c1, c2, c3, and c4 of band ABCD included in pixel value of pixel C; Pixel values d1, d2, d3, and d4 of band ABCD included in pixel value of pixel D;
[0301] a1, a2, a3, a4, b1, b2, b3, b4, c1, c2, c3, c4, d1, d2, d3, d4 are shown as follows: a1=Araw@band1Light, b1=Braw@band1Light, c1=Craw@band1Light, d1=Draw@band1Light a2=Araw@band2Light, b2=Braw@band2Light, c2=Craw@band2Light, d2=Draw@band2Light a3=Araw@band3Light, b3=Braw@band3Light, c3=Craw@band3Light, d3=Draw@band3Light a4=Araw@band4Light, b4=Braw@band4Light, c4=Craw@band4Light, d4=Draw@band4Light
[0302] Using these a1 to d4, the spectroscopic characteristic parameters (separation coefficients) can be expressed by the following relational expression. Ka2=a2 / b2, Ka3=a3 / c3, Ka4=a4 / d4 Kb1=b1 / a1, Kb3=b3 / c3, Kb4=b4 / d4 Kc1=c1 / a1, Kc2=c2 / b2, Kc4=c4 / d4 Kd1=d1 / a1, Kd2=d2 / b2, Kd3=d3 / c3
[0303] This spectral characteristic parameter (separation coefficient) can be calculated for each of the reference camera X (reference device) 50 and the adjustment camera Y (adjustment device) 60.
[0304] When one camera is continuously used as the reference camera X (reference device) 50, the spectral characteristic parameters (separation coefficients) need only be calculated once.
[0305] The gains corresponding to bands 1 to 4, that is, band-corresponding gains 1 to 4 (Ga1 to Ga4) for matching the output of adjustment camera Y (adjuster) 60 with that of reference camera X (reference) 50, can be expressed as follows: Ga1 = a1(x) / a1(y) Gb2=b2(x) / b2(y) Gc3=c3(x) / c3(y) Gd4=d4(x) / d4(y)
[0306] Note that a1(x), b2(x), c3(x), and d4(x) are band-corresponding pixel values corresponding to bands 1 to 4 of reference camera X (reference machine) 50, and a1(y), b2(y), c3(y), and d4(y) are band-corresponding pixel values corresponding to bands 1 to 4 of adjustment camera Y (adjustment machine) 60.
[0307] [9. Specific examples of the processing of the present disclosure] Next, a specific example to which the above-described processing of the present disclosure is applied will be described. The following several examples will be described in turn. Example 1: Example using a multispectral camera with dual bandpass (DBP) (Example 2) Example of performing temperature compensation to calculate band-compatible gain and adjust band-compatible gain Example 3: An example in which a calculation process of band-corresponding gain using a special light source and a calculation process of a spectral characteristic parameter (separation factor) are executed (Example 4) An example in which a calculation process of band-corresponding gain and a calculation process of a spectral characteristic parameter (separation factor) are performed by using a measured spectral characteristic parameter (separation factor) of a reference device and a special light source in combination. Each of these embodiments will be described in turn below.
[0308] (9-1. (Example 1) Example using a multispectral camera using a dual bandpass (DBP)) First, as Example 1, an example using a multispectral camera using a dual band pass (DBP) will be described.
[0309] In the first embodiment, when the camera is manufactured, the process is performed according to the configuration of "(1) Processing when the camera is manufactured" in Fig. 5 described above. Also, when the camera is used (when taking pictures), the process is performed according to the configuration of "(2) Processing when the camera is used (when taking pictures)" described with reference to Fig. 6.
[0310] This embodiment uses the simplest multispectral cameras, that is, multispectral cameras using a DBP filter as a bandpass filter, as the reference camera X (reference machine) 50 shown in FIG. 5 and the adjustment camera Y (adjustment machine) 60 shown in FIGS. 5 and 6.
[0311] The reference camera X (reference machine) 50 and the adjustment camera Y (adjustment machine) 60 have the configuration shown in FIG. The multispectral camera 300 shown in FIG. 22 has a similar configuration to the multispectral camera 10 previously described with reference to FIG. Photographing light of a subject input through a lens 301 of a multispectral camera 300 shown in FIG. 22 is input through a dual bandpass filter (DBP) 302 and a color filter (RGB color filter) 303 to an imaging element (image sensor) 304.
[0312] The dual bandpass filter (DBP) 302 is a filter that selectively transmits light of two different wavelength components. The dual bandpass filter (DBP) 302 described here is a filter that selectively transmits two different wavelength light components, an R (red) component and a NIR (near infrared) component.
[0313] The color filter (RGB color filter) 303 is a filter that transmits light of wavelengths of each RGB color component for each pixel, and is, for example, a Bayer array RGB filter.
[0314] Light that has passed through a dual bandpass filter (DBP) 302 and an R (red), G (green), or B (blue) filter of a color filter (RGB color filter) 303 is input to each pixel of an imaging element (image sensor) 304.
[0315] Light that has passed through a dual bandpass filter (DBP) 302 and an R (red) filter of a color filter (RGB color filter) 303 enters an R pixel of an image sensor 304 . Light that has passed through a dual bandpass filter (DBP) 302 and a G (green) filter of a color filter (RGB color filter) 303 enters a G pixel of an image sensor 304 . Light that has passed through a dual bandpass filter (DBP) 302 and a B (blue) filter of a color filter (RGB color filter) 303 enters a B pixel of an image sensor 304 .
[0316] FIG. 23 is a graph illustrating the spectral characteristics of the dual bandpass filter (DBP) 302 and the color filter (RGB color filter) 303. As shown in FIG. The horizontal axis indicates the wavelength (400 to 1000 nm), and the vertical axis indicates the signal intensity (relative value) of the light transmitted through the filter.
[0317] It can be seen that the light transmitted through the color filter (B) constituting the color filter (RGB color filter) 303 is mostly B (blue) light with a wavelength of about 450 nm, but that not a small amount of light of other wavelength components also passes through. Furthermore, most of the light transmitted through the color filter (G) is a G (green) component, which is light with a wavelength in the vicinity of 540 nm, but light of other wavelength components is also included. Similarly, most of the light transmitted through the color filter (R) is an R (red) component, which is light with a wavelength in the vicinity of 650 nm, but light of other wavelength components is also included.
[0318] The light transmitted through the dual bandpass filter (DBP) 302 is composed of two wavelength light band components: band 1, which corresponds to the R (red) component, which is light with a wavelength of approximately 650 nm, and band 2, which corresponds to the NIR (near-infrared) component, which is light with a wavelength of approximately 900 nm.
[0319] Next, with reference to FIG. 24, a description will be given of the pixel values of each of the R pixels and B pixels constituting the image sensor 304 when an image is captured using a dual bandpass filter (DBP) 302 having the spectral characteristics shown in FIG. 23 and a color filter (RGB color filter) 303.
[0320] FIG. 24 shows examples of band components contained in the pixel values of the following pixels. (1) Pixel value of R pixel (Rraw) (2) Pixel value of B pixel (BRaw)
[0321] The pixel value (Rraw) of an R pixel contains a mixture of signals from the RED band in band 1 and the NIR band in band 2. Similarly, the pixel value of the B pixel (Braw) is output as a mixture of the signals in the RED band of band 1 (band1) and the NIR band of band 2 (band2). The RED band of band 1 and the NIR band of band 2 are the transmission light bands of the dual bandpass filter (DBP) 302.
[0322] In the first embodiment, when the camera is manufactured, processing is executed according to the configuration of "(1) Processing at the time of manufacturing the camera" in FIG. 5 described above. That is, the processing sequence is performed according to the flow shown in FIG. The process during the manufacture of the camera according to the first embodiment will be described with reference to FIG. 5 and the flow shown in FIG. 14(1). (Step S101) First, in step S101, image capturing processing is performed using a reference camera X (reference machine) and an adjustment camera Y (adjustment machine). It is preferable that this image capturing is performed under the same conditions.
[0323] (Steps S102 and S103) In the next step S102, the band-corresponding pixel values of the reference camera X (reference machine) are calculated, and in step S103, the band-corresponding pixel values of the adjustment camera Y (adjustment machine) are calculated. These processes correspond to the processes previously described with reference to FIGS. The band-corresponding pixel value calculation process executed in steps S102 and S103 is performed according to the flow previously described with reference to Fig. 15. That is, this is a process involving the process of calculating a convergent value by repeated calculation previously described with reference to Figs. 12 and 13.
[0324] In the first embodiment, the band corresponding pixel values to be calculated are the following band corresponding pixel values. The following band corresponding pixel values are calculated as band corresponding pixel values of the reference camera X (reference device) 50. A band-corresponding pixel value of band 1 (band1) included in the R pixel value (Rraw) of the reference camera X (reference device) 50: band1@Rraw(x), A band-corresponding pixel value of band 2 (band2) included in the B pixel value (Braw) of the reference camera X (reference device) 50: band2@Braw(x),
[0325] In addition, the following band corresponding pixel values are calculated as band corresponding pixel values of the adjustment camera Y (adjustment machine) 60. A band-corresponding pixel value of band 1 (band1) included in the R pixel value (Rraw) of the adjustment camera Y (adjustment device) 60: band1@Rraw(y); A band-corresponding pixel value of band 2 (band2) included in the B pixel value (Braw) of the adjustment camera Y (adjustment device) 60: band2@Braw(y);
[0326] (Step S104) Next, in step S104, a band-corresponding pixel value of the reference camera X (reference device) and a band-corresponding pixel value of the adjustment camera Y (adjustment device) are used to calculate a band-corresponding gain.
[0327] In the first embodiment, the band-corresponding gains to be calculated are as follows: Band1 band gain = band1@Rraw(x) / band1@Rraw(y) Band2 gain = band2@Braw(x) / band2@Braw(y) The band-corresponding gains of these two bands, that is, the two bands corresponding to the transmission light bands of the dual-band pass filter 302, are calculated.
[0328] (Step S105) Finally, in step S105, the band-compatible gain calculated in step S104 is stored in the memory of the adjustment camera Y (adjustment machine).
[0329] 5, the reference machine band-corresponding pixel value calculated based on the image captured by the reference camera X (reference machine) is used in the calculation process of band-corresponding gains of multiple adjustment cameras Y (adjusted machines). Therefore, the reference machine band-corresponding pixel value calculated in step S102 may be stored, for example, in the memory of the reference camera X (reference machine) or in the memory of an external device, and this memory-stored data may be applied to the subsequent band-corresponding gain calculation process of other adjustment cameras Y (adjusted machines).
[0330] With this setting, when processing is performed on the second or subsequent adjustment cameras (adjustment machines), in step S101, images are captured using only adjustment camera Y (adjustment machine), the processing of step S102 is omitted, and in step S104, the reference machine band-corresponding pixel values already stored in memory are read out and the band-corresponding gain of the adjustment machine is calculated.
[0331] Next, a process when using the camera (when taking pictures) in the first embodiment will be described. When the camera of the first embodiment is used, processing is executed according to the configuration of "(2) Processing when the camera is used (when taking pictures)" in FIG. 6 described above. That is, the processing sequence is performed according to the flow shown in FIG. The process when the camera is used (when taking a picture) in the first embodiment will be described with reference to FIG. 6 and the flow shown in FIG. 14(2).
[0332] (Step S121) First, in step S121, an image capturing process is performed by the adjustment camera Y (adjustment machine).
[0333] (Step S122) Next, in step S122, the band-corresponding pixel values of the adjustment camera Y (adjustment machine) are calculated. This process corresponds to the process previously described with reference to FIGS. The band-corresponding pixel value calculation process executed in step S122 is performed according to the flow previously described with reference to Fig. 15. That is, this is a process involving the process of calculating a convergent value by repeated calculation previously described with reference to Figs. 12 and 13.
[0334] In the present embodiment 1, the band corresponding pixel values of the adjustment camera Y (adjuster) 60 to be calculated are the following band corresponding pixel values. A band-corresponding pixel value of band 1 (band1) included in the R pixel value (Rraw) of the adjustment camera Y (adjustment device) 60: band1@Rraw(y); A band-corresponding pixel value of band 2 (band2) included in the B pixel value (Braw) of the adjustment camera Y (adjustment device) 60: band2@Braw(y);
[0335] (Step S123) Next, in step S123, the band-corresponding pixel value calculated in step S122 is multiplied by the band-corresponding gain stored in the memory to calculate a band-corresponding gain adjustment output value.
[0336] By this band-compatible gain adjustment output value calculation process, the band-compatible pixel value of the adjustment camera Y (adjustment device) 60 becomes an output value that matches the output value of the reference camera X (reference device) 50. The gain calculated by this process is a band-compatible gain, and is not a gain that corresponds to a mixed signal of a plurality of different band signals, so that it does not change significantly depending on the shooting conditions (light source and subject). Therefore, even if the shooting conditions when the camera is used (when taking pictures) differ from the shooting conditions when the camera was manufactured, it is possible to match the output of the adjustment machine to the reference machine by applying the gain calculated when the camera was manufactured.
[0337] (Step S124) Furthermore, in step S124, generation of a color image and analysis of the color components of the subject are performed based on the band-compatible gain adjustment output value calculated in step S123. Specifically, the calculation process of the plant activation index value such as the NDVI described above is executed.
[0338] As a modified example of this embodiment 1, when the camera is manufactured, processing may be performed in accordance with the configuration of "(1) Processing when the camera is manufactured" in FIG. 18 described above, and when the camera is used (when photographing), processing may be performed in accordance with the configuration of "(2) Processing when the camera is used (when photographing)" described with reference to FIG. 19.
[0339] That is, the band-compatible gain calculation process may be performed when the camera is used (when photographing) instead of when the camera is manufactured. When the camera is manufactured, the average pixel value or representative value is stored in memory 61 of adjustment camera Y (adjustment machine) 60, and when the camera is used (when taking pictures), the band-corresponding gain is calculated using the average pixel value or representative value stored in memory 61. The processing flow in this case is the same as that described above with reference to FIG.
[0340] (9-2 (Example 2) Example in which temperature compensation is performed to calculate band-compatible gain and adjust band-compatible gain) Next, as a second embodiment, an embodiment in which temperature compensation is performed to calculate a band-adaptive gain and adjust the band-adaptive gain will be described.
[0341] The characteristics of the image sensor and the filter change slightly due to temperature changes. In the second embodiment, the gain is calculated and adjusted in consideration of the change in the output value that accompanies the temperature change. In this embodiment 2, temperature characteristic compensation is performed on the band-corresponding pixel values calculated by the band-corresponding pixel value calculation unit using a band-based temperature characteristic coefficient, and then band-corresponding gain calculation and gain adjustment are performed using this temperature-compensated band-corresponding pixel value.
[0342] The second embodiment will be described as an embodiment using a multispectral camera using a dual band pass (DBP) similarly to the first embodiment described above. That is, the reference camera X (reference machine) 50 and the adjustment camera Y (adjustment machine) 60 have the configuration shown in FIG. The dual bandpass filter (DBP) 302 is a filter that selectively transmits two different wavelength light components, an R (red) component and a NIR (near infrared) component.
[0343] In the second embodiment, when the camera is manufactured, a process according to the configuration of "(1) Processing when the camera is manufactured" in Fig. 25 is executed. Also, when the camera is used (when taking pictures), a process according to the configuration of "(2) Processing when the camera is used (when taking pictures)" in Fig. 26 is executed.
[0344] The configuration shown in “(1) Processing during camera manufacture” in Figure 25 is a configuration in which a reference machine temperature characteristic assurance unit 321 and an adjuster temperature characteristic assurance unit 322 are added to the front stage of the band-compatible gain calculation unit 73 in the configuration shown in “(1) Processing during camera manufacture” in Figure 5 described above. The configuration shown in “(2) Processing when a camera is used (when photographing)” in Figure 26 is a configuration in which a reference device temperature characteristic assurance unit 331 is added to the front stage of the band-compatible gain adjustment unit 82 in the configuration shown in “(1) Processing when a camera is used (when photographing)” in Figure 6 described above.
[0345] The processing sequence during camera manufacturing follows the flow shown in FIG. The flow shown in FIG. 27(1) is a flow in which processing steps of steps S102b and S103b are added after steps S102 and S103 of the flow shown in FIG. 14(1) previously described as the processing flow of (Example 1). In steps S102b and S103b, temperature characteristic compensation is performed on the band-corresponding pixel values calculated by the band-corresponding pixel value calculation unit using a temperature characteristic coefficient for each band.
[0346] The processing sequence when using the camera (when taking a picture) is in accordance with the flow shown in FIG. 27(2). The flow shown in FIG. 27(2) is a flow in which the processing step of step S122b is added after step S122 of the flow shown in FIG. 14(2) previously explained as the processing flow of (Example 1). In step S122b, temperature characteristic compensation is performed on the band-corresponding pixel values calculated by the band-corresponding pixel value calculation unit using a temperature characteristic coefficient for each band.
[0347] First, the process during the manufacture of the camera according to the second embodiment will be described with reference to FIG. 25 and the flow shown in FIG. 27(1). (Step S101) First, in step S101, image capturing processing is performed using a reference camera X (reference machine) and an adjustment camera Y (adjustment machine). It is preferable that this image capturing is performed under the same conditions.
[0348] (Steps S102 and S103) In the next step S102, the band-corresponding pixel values of the reference camera X (reference machine) are calculated, and in step S103, the band-corresponding pixel values of the adjustment camera Y (adjustment machine) are calculated. These processes correspond to the processes previously described with reference to FIGS. The band-corresponding pixel value calculation process executed in steps S102 and S103 is performed according to the flow previously described with reference to Fig. 15. That is, this is a process involving the process of calculating a convergent value by repeated calculation previously described with reference to Figs. 12 and 13.
[0349] In the first embodiment, the band corresponding pixel values to be calculated are the following band corresponding pixel values. The following band corresponding pixel values are calculated as band corresponding pixel values of the reference camera X (reference device) 50. A band-corresponding pixel value of band 1 (band1) included in the R pixel value (Rraw) of the reference camera X (reference device) 50: band1@Rraw(x), A band-corresponding pixel value of band 2 (band2) included in the B pixel value (Braw) of the reference camera X (reference device) 50: band2@Braw(x),
[0350] In addition, the following band corresponding pixel values are calculated as band corresponding pixel values of the adjustment camera Y (adjustment machine) 60. A band-corresponding pixel value of band 1 (band1) included in the R pixel value (Rraw) of the adjustment camera Y (adjustment device) 60: band1@Rraw(y); A band-corresponding pixel value of band 2 (band2) included in the B pixel value (Braw) of the adjustment camera Y (adjustment device) 60: band2@Braw(y);
[0351] (Steps S102b, S103b) Next, in steps S102b and S103b, temperature characteristic compensation (temperature characteristic compensation process) is performed on the band-corresponding pixel values of the reference camera X (reference machine) and the band-corresponding pixel values of the adjustment camera Y (adjustment machine).
[0352] This temperature characteristic compensation process will be described with reference to FIG. The graph shown in FIG. 28 is a graph showing the temperature characteristics of pixel values corresponding to bands. The horizontal axis indicates temperature, and the vertical axis indicates band-corresponding pixel values (ratios). Band-corresponding pixel values (ratios (ppm)) on the vertical axis are expressed as ratios (ppm) with the output value of 0 degrees set to 1.0.
[0353] FIG. 28 shows the temperature characteristics of band 1 (band1), which is a red (R) light band, and the temperature characteristics of band 2 (band2), which is an infrared (NIR) light band. The slope of the temperature characteristic of band 1 (red light band) is Ared (ppm / degree), The slope of the temperature characteristic of band 2, which is the infrared (NIR) band, is Anir (ppm / degree), Let us assume that. The reference temperature is set to 25 degrees.
[0354] The temperature characteristic compensation process executed in steps S102b and S103b is a process of correcting the band-corresponding pixel values calculated based on the images captured by each camera to band-corresponding pixel values calculated based on the images captured at a reference temperature.
[0355] Here, it is assumed that the temperature during the shooting process in step S101 of the flow in FIG. 27 is as follows. The temperature at which the photographing process was performed by the reference camera X (reference device) 50 is Tx. The temperature at which the photographing process was performed by the adjustment camera Y (adjustment device) 60 is Ty.
[0356] It is assumed that the band-corresponding pixel values based on the images taken at each of these temperatures are as follows for the reference camera X (reference device) 50 and the reference camera X (reference device) 50. Reference camera X (reference device) 50 Pixel value corresponding to band 1 (band1), which is the red (R) light band, is X1 Pixel value corresponding to band 2 (band2), which is the infrared (NIR) band, = X2 Adjustment camera Y (adjustment machine) 60 Pixel value corresponding to band 1 (band1), which is the red (R) light band, is Y1 Pixel value corresponding to band 2 (band2), which is the infrared (NIR) band, is Y2
[0357] These band-corresponding pixel values are changed to band-corresponding pixel values assuming that the image was captured at a reference temperature, for example, 25° C. in this example. In temperature characteristic compensation, such pixel value correction processing is executed. That is, the band-corresponding pixel values that are estimated to be output when the image capture process by each camera is performed at the reference temperature are calculated.
[0358] The band-corresponding pixel value after temperature characteristic compensation is calculated as follows. The reference temperature is 25 degrees.
[0359] The band corresponding pixel value of band 1 (band1) contained in the R pixel value (Rraw) and the band corresponding pixel value of band 2 (band2) contained in the B pixel value (Braw) calculated based on the image captured by reference camera X (reference device) 50 taken at temperature Tx are shown below. band1@Rraw(x)(Tx), band2@Braw(x)(Tx),
[0360] Based on the above two band-corresponding pixel values calculated based on the images captured by the reference camera X (reference device) 50 at temperature Tx, the band-corresponding pixel values after temperature characteristic compensation, i.e., the band-corresponding pixel values after temperature characteristic compensation estimated to be calculated from the images captured at the reference temperature (25 degrees), are calculated as follows: band1@Rraw(x)(T25), band2@Braw(x)(T25), Let us assume that.
[0361] In addition, the band corresponding pixel value of band 1 (band1) contained in the R pixel value (Rraw) and the band corresponding pixel value of band 2 (band2) contained in the B pixel value (Braw) calculated based on the image captured by adjustment camera Y (adjustment machine) 60 taken at temperature Ty are respectively shown as follows. band1@Rraw(y)(Ty), band2@Braw(y)(Ty),
[0362] Based on the above two band-corresponding pixel values calculated based on the images captured by the adjustment camera Y (adjustment device) 60 at temperature Ty, the band-corresponding pixel values after temperature characteristic compensation, i.e., the band-corresponding pixel values after temperature characteristic compensation estimated to be calculated from the images captured at the reference temperature (25 degrees), are calculated as follows: band1@Rraw(y)(T25), band2@Braw(y)(T25), Let us assume that.
[0363] First, in step S102b, the post-temperature characteristic compensation band corresponding pixel value of the reference camera X (reference device) 50 is calculated according to the following formula. The temperature-compensated band-corresponding pixel value of band 1 (band1) included in the R pixel value (Rraw): band1@Rraw(x) (T25) =(band1@Rraw(x)(Tx))×((1+Ared×25) / (1+Ared×Tx))
[0364] The temperature characteristic compensated band corresponding pixel value of band 2 (band2) included in the B pixel value (Braw): band2@Braw(x) (T25), =(band2@Braw(x)(Tx))×((1+Anir×25) / (1+Anir×Tx))
[0365] In step S103b, the post-temperature characteristic compensation band-corresponding pixel value of the adjustment camera Y (adjuster) 60 is calculated according to the following formula. The temperature-compensated band-corresponding pixel value of band 1 (band1) included in the R pixel value (Rraw): band1@Rraw(y) (T25) =(band1@Rraw(y)(Ty))×((1+Ared×25) / (1+Ared×Ty))
[0366] B pixel value (Braw) of band 2 (band2) after temperature compensation: band2@Braw(y) (T25), =(band2@Braw(y)(Ty))×((1+Anir×25) / (1+Anir×Ty))
[0367] In this manner, in steps S102b and S103b, temperature characteristic compensation (temperature characteristic compensation process) is performed on the band-corresponding pixel values of the reference camera X (reference machine) and the band-corresponding pixel values of the adjustment camera Y (adjustment machine).
[0368] As a result, the temperature-compensated band-corresponding pixel value of the reference camera X (reference machine) and the temperature-compensated band-corresponding pixel value of the adjustment camera Y (adjustment machine) are calculated, and in the subsequent steps, processing is performed using these temperature-compensated band-corresponding pixel values, i.e., the band-corresponding gain calculation process is performed.
[0369] (Step S104) Next, in step S104, a band-corresponding pixel value of the reference camera X (reference device) and a band-corresponding pixel value of the adjustment camera Y (adjustment device) are used to calculate a band-corresponding gain. However, what is used in the gain calculation here are the temperature-compensated band-corresponding pixel values calculated in steps S102b and S103b.
[0370] In the second embodiment, the band-corresponding gains to be calculated are as follows: However, the reference temperature shall be 25 degrees. Band1 band gain = band1@Rraw(x)(T25) / band1@Rraw(y)(T25) Band 2 gain = band2@Braw(x)(T25) / band2@Braw(y)(T25) The band-corresponding gains after temperature characteristic compensation for these two bands, that is, the two bands corresponding to the transmission light bands of the dual-band pass filter 302, are calculated.
[0371] (Step S105) Finally, in step S105, the band-compatible gain calculated in step S104 is stored in the memory of the adjustment camera Y (adjustment machine).
[0372] 5, the reference machine band-corresponding pixel value calculated based on the image captured by the reference camera X (reference machine) is used in the calculation process of band-corresponding gains of a number of adjustment cameras Y (adjustment machines). Therefore, the reference machine band-corresponding pixel value after temperature characteristic compensation calculated in step S102b may be stored, for example, in the memory of the reference camera X (reference machine) or in the memory of an external device, and the data stored in the memory may be applied to the subsequent band-corresponding gain calculation process of other adjustment cameras Y (adjustment machines).
[0373] With this setting, when processing is performed on the second or subsequent adjustment cameras (adjustment machines), in step S101, images are captured using only adjustment camera Y (adjustment machine), the processing of steps S102 and S102b is omitted, and in step S104, the reference machine band-corresponding pixel values after temperature characteristic compensation that have already been stored in memory are read out and the band-corresponding gain of the adjustment machine is calculated.
[0374] Next, a process when using the camera (when taking pictures) in the second embodiment will be described. When the camera of the second embodiment is used, processing is performed according to the configuration of "(2) Processing when the camera is used (when taking a picture)" in Fig. 26. As a processing sequence, processing is performed according to the flow shown in Fig. 27(2). The process when the camera is used (when taking a picture) in the second embodiment will be described with reference to FIG. 26 and the flow shown in FIG. 27(2).
[0375] (Step S121) First, in step S121, an image capturing process is performed by the adjustment camera Y (adjustment machine).
[0376] (Step S122) Next, in step S122, the band-corresponding pixel values of the adjustment camera Y (adjustment machine) are calculated. This process corresponds to the process previously described with reference to FIGS. The band-corresponding pixel value calculation process executed in step S122 is performed according to the flow previously described with reference to Fig. 15. That is, this is a process involving the process of calculating a convergent value by repeated calculation previously described with reference to Figs. 12 and 13.
[0377] In the second embodiment, the band corresponding pixel values of the adjustment camera Y (adjuster) 60 to be calculated are the following band corresponding pixel values. A band-corresponding pixel value of band 1 (band1) included in the R pixel value (Rraw) of the adjustment camera Y (adjustment device) 60: band1@Rraw(y); A band-corresponding pixel value of band 2 (band2) included in the B pixel value (Braw) of the adjustment camera Y (adjustment device) 60: band2@Braw(y);
[0378] (Step S122b) Next, in step S122b, temperature characteristic compensation is performed on the band-corresponding pixel values of the adjustment camera Y (adjustment machine) to calculate the band-corresponding pixel values after temperature characteristic compensation.
[0379] This process is similar to the process in step S103b in the flow of FIG. 27(1) described above. If the temperature at the time of capturing the image in step S121 is Ty and the reference temperature is 25 degrees, the post-temperature characteristic compensated band-corresponding pixel value of the adjustment camera Y (adjuster) 60 is calculated according to the following formula.
[0380] The temperature-compensated band-corresponding pixel value of band 1 (band1) included in the R pixel value (Rraw): band1@Rraw(y) (T25) =(band1@Rraw(y)(Ty))×((1+Ared×25) / (1+Ared×Ty)) B pixel value (Braw) of band 2 (band2) after temperature compensation: band2@Braw(y) (T25), =(band2@Braw(y)(Ty))×((1+Anir×25) / (1+Anir×Ty)) The following processing is performed using these band-corresponding pixel values after temperature characteristic compensation.
[0381] (Step S123) Next, in step S123, the band-corresponding pixel value after temperature characteristic compensation calculated in step S122b is multiplied by the band-corresponding gain stored in the memory to calculate a band-corresponding gain adjustment output value.
[0382] By this band-compatible gain adjustment output value calculation process, the band-compatible pixel value of the adjustment camera Y (adjustment device) 60 becomes an output value that matches the output value of the reference camera X (reference device) 50. The gain calculated by this process is a band-compatible gain, and is not a gain that corresponds to a mixed signal of a plurality of different band signals, so that it does not change significantly depending on the shooting conditions (light source and subject).
[0383] In addition, since the gain is temperature-compensated and band-compatible, even if the photographing temperature is different, the output value can be the same as when photographing is performed at the reference temperature. Therefore, even if the shooting conditions when the camera is used (when taking pictures) differ from the shooting conditions when the camera was manufactured, it is possible to match the output of the adjustment machine to the reference machine by applying the gain calculated when the camera was manufactured.
[0384] (Step S124) Furthermore, in step S124, generation of a color image and analysis of the color components of the subject are performed based on the band-compatible gain adjustment output value calculated in step S123. Specifically, the calculation process of the plant activation index value such as the NDVI described above is executed.
[0385] In the second embodiment, similarly to the first embodiment described above, the band-adaptive gain calculation process may be performed when the camera is used (when photographing) instead of when the camera is manufactured.
[0386] 29 and 30 show a processing configuration in which the band-compatible gain calculation process is performed when the camera is used (when photographing) rather than when the camera is manufactured. FIG. 29 shows a configuration illustrating "(1) Processing during camera manufacturing." FIG. 30 shows a configuration illustrating "(2) Processing when using the camera (when taking a picture)". Moreover, the processing sequence when these processing configurations are used is shown in FIG.
[0387] As shown in FIG. 29, the following values are stored in memory 61 of adjustment camera Y (adjuster) 60 when the camera is manufactured. (a) Temperature-compensated reference device band-corresponding pixel value average value (Xoutave) calculated from pixel values of the reference camera X (reference device) 50 after temperature characteristic compensation (b) Average pixel value corresponding to the adjustment device band after temperature characteristic compensation, which is the value after temperature characteristic compensation of the average pixel value corresponding to the adjustment device image sensor band (Youtave) calculated from the pixel values of the adjustment camera Y (adjustment device) 60 These are calculated and stored in the memory 61 of the adjustment camera Y (adjustment machine) 60.
[0388] Also, as shown in FIG. 30, when the camera is used (when taking pictures), the following is read from the memory 61 of the adjustment camera Y (adjustment machine) 60: (a) Average pixel value of the reference camera X (reference device) 50 after temperature compensation (b) Average pixel value of the adjustment camera Y (adjustment device) 60 after temperature compensation These are acquired, and the band-compatible gain calculation unit calculates the band-compatible gain.
[0389] The processing sequence using the processing configurations of FIGS. 29 and 30 is the processing flow shown in FIG. The processing flow shown in FIG. 31 differs in that the band-compatible gain calculation processing of step S104 in the flow (1) when manufacturing the camera, which was previously described with reference to FIG. 27, is omitted, and this processing is added as step S143b in the flow (2) when the camera is used (when taking pictures).
[0390] In this manner, also in the second embodiment, similarly to the first embodiment described above, the band-compatible gain calculation process may be performed when the camera is used (when photographing) instead of when the camera is manufactured. When the camera is manufactured, the average pixel value or representative value that has been subjected to temperature characteristic compensation processing is stored in memory 61 of adjustment camera Y (adjustment machine) 60, and when the camera is used (when taking pictures), the band-compatible gain is calculated using the average pixel value or representative value that has been subjected to temperature characteristic compensation processing stored in memory 61.
[0391] (9-3 (Example 3) Example of Calculating Band-Compatible Gain Using Special Light Source and Calculating Spectral Characteristic Parameter (Separation Coefficient)) Next, as a third embodiment, an embodiment in which a calculation process of band-compatible gain using a special light source and a calculation process of a spectral characteristic parameter (separation coefficient) are executed will be described.
[0392] This third embodiment will also be described as an embodiment using a multispectral camera using a dual band pass (DBP), similarly to the first and second embodiments described above. That is, the reference camera X (reference machine) 50 and the adjustment camera Y (adjustment machine) 60 have the configuration shown in FIG. The dual bandpass filter (DBP) 302 is a filter that selectively transmits two different wavelength light components, an R (red) component and a NIR (near infrared) component.
[0393] In the third embodiment, a special light source is used to calculate band-compatible gains, and a calculation process of a spectral characteristic parameter (separation factor) is also executed. In the third embodiment, when the camera is manufactured, band-compatible gain calculation and memory storage processing of the adjustment camera Y (adjustment machine) 60 are executed according to the configuration of "(1) Processing at the time of camera manufacturing" in FIG. The process of the third embodiment will be described with reference to FIG.
[0394] In the third embodiment, first, the reference camera (reference machine) 50 and the adjustment camera Y (adjustment machine) 60 capture images of the output light of the special light source (pattern box (PTB)) 400, as shown in FIG.
[0395] As previously described with reference to Figure 21, the special light source (pattern box (PTB)) is a light source that has a halogen light source, a diffuser, and a filter, and is configured to selectively output light of a specific band through the filter.
[0396] However, the special light source (pattern box (PTB)) used in the third embodiment has a filter configuration different from that of the special light source (pattern box (PTB)) 200 previously described with reference to FIG.
[0397] The configuration of a special light source (pattern box (PTB)) 400 used in the third embodiment will be described with reference to FIG. As shown in FIG. 33, the special light source (pattern box) 400 has a halogen light source 401, a diffuser 402, and a filter 403. The output light of the halogen light source 401 is output through the diffuser 402 and the filter 403, and this output light is photographed by a multispectral camera, i.e., a reference camera (reference machine) 50 and an adjustment camera Y (adjustment machine) 60.
[0398] Halogen light source 401 has the characteristics shown in the lower left of the figure. The output light of this halogen light source 401 passes through diffuser plate 402, which has relatively flat characteristics, and is output via filter 403. Filter 403 has two windows equipped with different filters, an IRC filter and a VC filter.
[0399] The light transmission characteristics of the IRC filter and the VC filter are shown in the graph at the bottom right of Figure 33. That is, the IRC filter is an infrared (IR) cut filter, and has the property of blocking infrared light components and transmitting visible light components. On the other hand, a VC filter is a visible light cut filter, and unlike an IRC filter, it has the property of blocking visible light components and transmitting infrared light components.
[0400] One of the IRC filter and VC filter, which have such different light transmission characteristics, is closed, and the transmitted light of only one filter is photographed with a multispectral camera (reference camera (reference device) 50 and adjustment camera Y (adjustment device) 60). The filters that transmit light are switched in sequence, and the two different bands of light are photographed in sequence with the multispectral camera. The output values obtained from these photographed images are the output values shown in FIG. 32.
[0401] That is, the pixel values (output value Xout) (=Rraw, Braw) of the R pixel and the B pixel of the reference camera X (reference device) 50 are as follows: When shooting with light transmitted through an IRC filter, Rraw(x) = band1 @ Rraw(x) Braw(x)=band1@Braw(x) When shooting through a VC filter, Rraw(x) = band2 @ Rraw(x) Braw(x) = band2 @ Braw(x)
[0402] On the other hand, the pixel values (output value Xout) (=Rraw, Braw) of the R pixel and the B pixel of the adjustment camera Y (adjuster) 60 are as follows: When shooting with light transmitted through an IRC filter, Rraw(y)=band1@Rraw(y) Braw(y)=band1@Braw(y) When shooting through a VC filter, Rraw(y) = band2 @ Rraw(y) Braw(y)=band2@Braw(y)
[0403] The reason why these output values are obtained will be explained with reference to FIG. The graph shown in FIG. 34 has wavelength on the horizontal axis and signal intensity on the vertical axis. The graph shows the transmission characteristics of the IRC filter and the VC filter described above with reference to FIG.
[0404] Furthermore, the optical transmission characteristics of the color filters and dual bandpass filters of the multispectral (reference camera (reference device) 50 and adjustment camera Y (adjuster) 60) that capture images are shown. The multispectral camera (reference camera (reference device) 50 and adjustment camera Y (adjustment device) 60) used in this third embodiment has the configuration shown in FIG. 22, similar to the first embodiment described above. That is, the dual bandpass filter (DBP) 302 is a filter that selectively transmits two different wavelength light components, an R (red) component and a NIR (near infrared) component.
[0405] 34 shows the light transmission characteristics of the dual bandpass filter (DBP) 302. The DBP selectively transmits light of band 1 and band 2. (Rraw) and (Braw) shown in FIG. 34 are the R and B light transmission characteristics of the color filter 303.
[0406] The light input to the imaging element 304 of the multispectral (reference camera (reference device) 50 and adjustment camera Y (adjustment device) 60) that captures the image is (1) Special Light Source 400 IRC filter or VC filter (2) Dual bandpass filter (DBP) 302 that selectively transmits light of band 1 and band 2 (3) Color filters The light passes through these three filters.
[0407] As can be seen from Figure 34, when capturing an image using light transmitted through the IRC filter of the special light source 400, only the transmitted light of band 1 (Band 1) of the dual bandpass filter (DBP) 302 passes through each RB pixel of the color filter 303 and enters the image sensor 304. As a result, the pixel value (Rraw) of the R pixel of the image sensor 304 is, as shown in FIG. Rraw=band1@Rraw It becomes. Also, the pixel value (Braw) of the B pixel of the image sensor 304 is, as shown in FIG. Braw=band1@Braw It becomes.
[0408] On the other hand, when capturing an image using light transmitted through the VC filter of the special light source 400, only the transmitted light of Band 2 of the dual bandpass filter (DBP) 302 passes through each RB pixel of the color filter 303 and enters the image sensor 304. As a result, the pixel value (Rraw) of the R pixel of the image sensor 304 is, as shown in FIG. Rraw=band2@Rraw It becomes. Also, the pixel value (Braw) of the B pixel of the image sensor 304 is, as shown in FIG. Braw=band2@Braw It becomes.
[0409] In this way, by sequentially switching between the IRC filter and VC filter of the special light source 400 and taking images with the multispectral camera (reference camera (reference device) 50 and adjustment camera Y (adjustment device) 60), the following pixel values can be obtained as the output values shown in Figure 26, i.e., the pixel values (output value Xout) (=Rraw, Braw) of the R pixel and B pixel of the reference camera X (reference device) 50. Alternatively, the following pixel values can be obtained by simultaneously capturing images of the transmitted light through two filters and then extracting the transmitted light portions of each filter. When shooting with light transmitted through an IRC filter, Rraw(x) = band1 @ Rraw(x) Braw(x)=band1@Braw(x) When shooting through a VC filter, Rraw(x) = band2 @ Rraw(x) Braw(x) = band2 @ Braw(x)
[0410] On the other hand, the following pixel values can be obtained as the pixel values (output value Xout) (=Rraw, Braw) of the R and B pixels of the adjustment camera Y (adjuster) 60: When shooting with light transmitted through an IRC filter, Rraw(y)=band1@Rraw(y) Braw(y)=band1@Braw(y) When shooting through a VC filter, Rraw(y) = band2 @ Rraw(y) Braw(y)=band2@Braw(y)
[0411] A band-adaptive gain calculation unit 73 shown in FIG. 32 inputs the above-mentioned values from the reference camera (reference machine) 50 and the adjustment camera Y (adjustment machine) 60, and calculates the band-adaptive gain of the adjustment camera Y (adjustment machine) 60. The band-adaptive gains calculated by the band-adaptive gain calculation unit 73 are as follows: Band1 band gain = band1@Rraw(x) / band1@Rraw(y) Band2 gain = band2@Braw(x) / band2@Braw(y) The band-corresponding gains of these two bands, that is, the two bands corresponding to the transmitted light bands of the dual-band pass filter 302, can be calculated.
[0412] The processing sequence of the band-adaptive gain calculation process in the third embodiment will be described with reference to the flowchart shown in FIG.
[0413] (Step S301) First, in step S301, a photographing process of a special light source is executed by a reference camera X (reference machine) and an adjustment camera Y (adjustment machine). It is preferable that this image photographing is executed under the same conditions.
[0414] (Steps S302 and S303) In the next steps S302 and S303, the captured pixel values of the reference camera X (reference machine) and the adjustment camera Y (adjustment machine), that is, the R pixel value (Rraw) and the B pixel value (Braw), are obtained.
[0415] As described above with reference to FIG. 34, this obtained pixel value is a pixel that has band corresponding pixel values of band 1 and band 2. Therefore, in the third embodiment, it is not necessary to carry out the calculation process of band-corresponding pixel values that is executed in the first embodiment.
[0416] In steps S302 and S303, the following pixel values corresponding to each band can be obtained as pixel values of the captured image. That is, the following band-corresponding pixel values can be obtained from the pixel values of the reference camera X (reference device). When shooting with light transmitted through an IRC filter, Rraw(x) = band1 @ Rraw(x) Braw(x)=band1@Braw(x) When shooting through a VC filter, Rraw(x) = band2 @ Rraw(x) Braw(x) = band2 @ Braw(x)
[0417] On the other hand, the following band-corresponding pixel values can be obtained from the pixel values of the adjustment camera Y (adjustment machine). When shooting with light transmitted through an IRC filter, Rraw(y)=band1@Rraw(y) Braw(y)=band1@Braw(y) When shooting through a VC filter, Rraw(y) = band2 @ Rraw(y) Braw(y)=band2@Braw(y)
[0418] (Step S304) Next, in step S304, a band-corresponding pixel value of the reference camera X (reference device) and a band-corresponding pixel value of the adjustment camera Y (adjustment device) are used to calculate a band-corresponding gain.
[0419] In the third embodiment, the band-corresponding gains to be calculated are as follows: Band1 band gain = band1@Rraw(x) / band1@Rraw(y) Band2 gain = band2@Braw(x) / band2@Braw(y) The band-corresponding gains of these two bands, that is, the two bands corresponding to the transmission light bands of the dual-band pass filter 302, are calculated.
[0420] (Step S305) Finally, in step S305, the band-compatible gain calculated in step S304 is stored in the memory of the adjustment camera Y (adjustment machine).
[0421] 5, the reference device band-corresponding pixel values obtained from pixel values of an image captured by the reference camera X (reference device) are used in the calculation process of band-corresponding gains of a large number of adjustment cameras Y (adjustment devices). Therefore, the reference device band-corresponding pixel values acquired in step S302 may be stored, for example, in the memory of the reference camera X (reference device) or in the memory of an external device, and the data stored in this memory may be applied to the subsequent band-corresponding gain calculation process of other adjustment cameras Y (adjustment devices).
[0422] With this setting, when processing is performed on the second or subsequent adjustment cameras (adjustment machines), in step S301, images are captured using only adjustment camera Y (adjustment machine), the processing of step S302 is omitted, and in step S304, the reference machine band-corresponding pixel values already stored in memory are read out and the band-corresponding gain of the adjustment machine is calculated.
[0423] In the third embodiment, in addition to the calculation process of the band-corresponding gains to be stored in the adjustment camera Y (adjustment machine) described above, it is also possible to calculate the spectral characteristic parameters (separation coefficients) and store them in memory.
[0424] The spectral characteristic parameter (separation factor) is the intensity ratio in a specific band of transmitted light through a plurality of different color filters constituting the color filter of a multispectral camera, that is, in the transmitted light band of a multi-bandpass filter.
[0425] The intensity ratio of the transmitted light of each RB pixel of the color filters of band 1 and band 2 shown in Figure 34 can be directly calculated from the pixel values (Rraw, Braw) of the multispectral camera that captured the light of the special light source 400 in this Example 3.
[0426] The spectral characteristic parameters (separation coefficients) of each of bands 1 and 2 can be calculated as follows. Reference camera X (reference device) Spectral characteristic parameters (separation factor) corresponding to band 1 Kband1(x)=band1@Braw(x) / band1@Rraw(x) Spectral characteristic parameters (separation factor) corresponding to band 2 Kband2(x)=band2@Rraw(x) / band2@Braw(x)
[0427] Adjustment camera Y (adjustment machine) Spectral characteristic parameters (separation factor) corresponding to band 1 Kband1(y)=band1@Braw(y) / band1@Rraw(y) Spectral characteristic parameters (separation factor) corresponding to band 2 Kband2(y)=band2@Rraw(y) / band2@Braw(y)
[0428] In this way, in this embodiment 3, it is possible to calculate the intensity ratio of transmitted light of each RB pixel of the color filters of band 1 and band 2, i.e., the spectral characteristic parameter (separation coefficient), from the pixel values (Rraw, Braw) of the multispectral camera that captured the light of the special light source 400.
[0429] Therefore, for example, as shown in FIG. 36, a configuration may be provided in which a spectral characteristic parameter (separation coefficient) calculation unit 331 inputs an image captured by a reference camera X (reference machine) 50 and calculates a spectral characteristic parameter (separation coefficient) corresponding to the reference machine, and a spectral characteristic parameter (separation coefficient) calculation unit 332 inputs an image captured by an adjustment camera Y (adjustment machine) 60 and calculates a spectral characteristic parameter (separation coefficient) corresponding to the adjustment machine.
[0430] The spectral characteristic parameters (separation coefficients) calculated in each of these parts are stored in the memory of each camera or in the memory of an external device, and can be used when calculating band-corresponding gains by methods other than those of Example 3, such as Example 1 or Example 2.
[0431] In the third embodiment, similarly to the modified examples of the first and second embodiments described above, the band-adaptive gain calculation process may be executed when the camera is used (when photographing) instead of when the camera is manufactured. When the camera is manufactured, the average pixel value or representative value is stored in memory 61 of adjustment camera Y (adjustment machine) 60, and when the camera is used (when taking pictures), the band-corresponding gain is calculated using the average pixel value or representative value stored in memory 61.
[0432] (9-4 (Example 4) An example in which the measured spectral characteristic parameters (separation factors) of the reference device and a special light source are used in combination to perform a calculation process of band-corresponding gains and spectral characteristic parameters (separation factors)) Next, (Example 4) will be described in which the measured spectral characteristic parameters (separation coefficients) of the reference device and a special light source are used in combination to execute the calculation process of band-corresponding gains and spectral characteristic parameters (separation coefficients).
[0433] As described above with reference to FIG. 36, for example, the spectral characteristic parameters (separation coefficients) can be calculated based on the image capturing data of a light source using a special light source. A fourth embodiment described below is an embodiment in which a band-compatible gain calculation process is executed using the measured spectroscopic characteristic parameters (separation coefficients) of a reference device.
[0434] In the fourth embodiment, similarly to the third embodiment, the band-corresponding gain of the adjustment camera Y (adjuster) 60 is calculated using a captured image of the output light of a special light source (pattern box (PTB)).
[0435] In this fourth embodiment, as in the first to third embodiments described above, a multispectral camera using a dual bandpass (DBP) will be described. That is, the reference camera X (reference machine) 50 and the adjustment camera Y (adjustment machine) 60 have the configuration shown in FIG. The dual bandpass filter (DBP) 302 is a filter that selectively transmits two different wavelength light components, an R (red) component and a NIR (near infrared) component.
[0436] With reference to FIG. 37, a configuration example of the special light source (pattern box (PTB)) used in the fourth embodiment will be described. As shown in Figure 37, the special light source (pattern box) 420 has a halogen light source 421, a diffuser 422, and a filter 423, and the output light of the halogen light source 421 is output through the diffuser 422 and the filter 423, and this output light is photographed by a multispectral camera, i.e., a reference camera (reference machine) 50 and an adjustment camera Y (adjustment machine) 60.
[0437] Halogen light source 421 has characteristics as shown in the lower left of the figure. The output light of this halogen light source 421 passes through diffusion plate 422, which has relatively flat characteristics, and is output via filter 423. Filter 423 is configured with two windows, one of which is an all-band transmission window (ALL) and the other to which a VC filter is attached.
[0438] The all-band transmission window (ALL) is a window that transmits all light in the visible and infrared regions. The light transmission characteristics of a VC filter are shown in the graph on the bottom right of Figure 37. That is, the VC filter is a visible light cut filter, and has the property of not transmitting visible light components but transmitting infrared light components.
[0439] One of the all-band transmission window (ALL) and the VC filter, which have such different light transmission characteristics, is closed, and the transmitted light from only one of them is photographed by a multispectral camera (reference camera (reference machine) 50 and adjustment camera Y (adjustment machine) 60). The light transmission windows are switched in sequence, and the two different bands of light are photographed in sequence by the multispectral camera. The pixel values (output values) obtained from these photographed images will be described with reference to FIG. 38.
[0440] The graph shown in FIG. 38 has wavelength on the horizontal axis and signal intensity on the vertical axis. The graph shows the transmission characteristics of the VC filter described above with reference to FIG.
[0441] Furthermore, the optical transmission characteristics of the color filters and dual bandpass filters of the multispectral (reference camera (reference device) 50 and adjustment camera Y (adjuster) 60) that capture images are shown. The multispectral camera (reference camera (reference device) 50 and adjustment camera Y (adjustment device) 60) used in this fourth embodiment has the configuration shown in FIG. 22, similar to the first embodiment described above. That is, the dual bandpass filter (DBP) 302 is a filter that selectively transmits two different wavelength light components, an R (red) component and a NIR (near infrared) component.
[0442] 38 shows the light transmission characteristics of the dual bandpass filter (DBP) 302. The DBP selectively transmits light in band 1 and band 2. (Rraw) and (Braw) shown in FIG. 38 are the R and B light transmission characteristics of the color filter 303.
[0443] The light input to the imaging element 304 of the multispectral (reference camera (reference device) 50 and adjustment camera Y (adjustment device) 60) that captures the image is (1) All-band transmission window (ALL) or VC filter of special light source 420 (2) Dual bandpass filter (DBP) 302 that selectively transmits light of band 1 and band 2 (3) Color filters The light passes through these three filters.
[0444] When capturing an image using transmitted light through the all-band transmission window (ALL) of the special light source 420, transmitted light in band 1 (Band1) and band 2 (Band2) of the dual bandpass filter (DBP) 302 passes through each R and B pixel of the color filter 303 and enters the image sensor 304. As a result, the pixel value (Rraw) of the R pixel of the image sensor 304 is, as shown in FIG. Rraw=band1@Rraw+band2@Rraw =band(1+2)@Rraw It becomes. Also, the pixel value (Braw) of the B pixel of the image sensor 304 is, as shown in FIG. Braw=band1@Braw+band2@Braw =band(1+2)@Braw It becomes.
[0445] On the other hand, when capturing an image using light transmitted through the VC filter of the special light source 420, only the transmitted light of Band 2 of the dual bandpass filter (DBP) 302 passes through each RB pixel of the color filter 303 and enters the image sensor 304. As a result, the pixel value (Rraw) of the R pixel of the image sensor 304 is, as shown in FIG. Rraw=band2@Rraw It becomes. Also, the pixel value (Braw) of the B pixel of the image sensor 304 is, as shown in FIG. Braw=band2@Braw It becomes.
[0446] In this manner, in the fourth embodiment, the all-band transmission window (ALL) and the VC filter of the special light source 420 are switched in sequence to capture images with the multispectral camera (reference camera (reference device) 50 and adjustment camera Y (adjustment device) 60).
[0447] Using this photographic data, the band-compatible gain of the adjustment camera Y (adjustment device) 60 is calculated. In the fourth embodiment, the band-compatible gain calculation and memory storage process of the adjustment camera Y (adjustment machine) 60 are executed according to the configuration of "(1) Processing at the time of camera manufacturing" shown in FIG. The process of the fourth embodiment will be described with reference to FIG.
[0448] In the fourth embodiment, first, the reference camera (reference machine) 50 and the adjustment camera Y (adjustment machine) 60 capture the output light of the special light source (pattern box (PTB)) 420, as shown in FIG.
[0449] The special light source (pattern box (PTB)) 420 has the configuration described with reference to Fig. 37. That is, it has an all-pass window (ALL) or a VC filter. By photographing the output light of such a special light source (pattern box (PTB)) 420 by sequentially switching the transmission windows, the following pixel values can be obtained as the output values shown in Figure 39, i.e., the pixel values (output value Xout) (=Rraw, Braw) of the R pixel and B pixel of the reference camera X (reference device) 50. When shooting with light transmitted through the full-bandwidth window (ALL), Rraw(xALL)=band(1+2)@Rraw(xALL) Braw(xALL)=band(1+2)@Braw(xALL) When shooting through a VC filter, Rraw(xVC) = band2 @ Rraw(xVC) Braw(xVC)=band2@Braw(xVC)
[0450] It should be noted that (xALL) indicates a pixel value when the reference camera X (reference device) 50 captures light transmitted through the all-band transmission window (ALL). (xVC) indicates a pixel value when the reference camera X (reference device) 50 captures an image using light transmitted through a VC filter.
[0451] On the other hand, the following pixel values can be obtained as the pixel values (output value Xout) (=Rraw, Braw) of the R and B pixels of the adjustment camera Y (adjuster) 60: When shooting with light transmitted through the full-bandwidth window (ALL), Rraw(yALL)=band(1+2)@Rraw(yALL) Braw(yALL)=band(1+2)@Braw(yALL) When shooting through a VC filter, Rraw(yVC) = band2 @ Rraw(yVC) Braw(yVC)=band2@Braw(yVC)
[0452] It should be noted that (yALL) indicates a pixel value when the adjustment camera Y (adjuster) 60 captures light transmitted through the all-band transmission window (ALL). (yVC) indicates a pixel value when the adjustment camera Y (adjuster) 60 captures the image of light transmitted through the VC filter.
[0453] Furthermore, in this Example 4, pre-calculated spectral characteristic parameters (separation coefficients) are stored in the memory 51 of the reference camera X (reference device) 50. The spectral characteristic parameters (separation coefficients) stored in the memory 51 are output ratio data of each R and B pixel of band 1 and band 2, and are the following parameters. Kband1(x)=band1@Braw / band1@Rraw Kband2(x)=band2@Rraw / band2@Braw
[0454] The reference device band corresponding pixel value calculation unit 71 shown in FIG. 39 calculates the output of the reference camera X (reference device) 50 shown in FIG. 39, that is, When shooting with light transmitted through the full-bandwidth window (ALL), Rraw(xALL)=band(1+2)@Rraw(xALL) Braw(xALL)=band(1+2)@Braw(xALL) When shooting through a VC filter, Rraw(xVC) = band2 @ Rraw(xVC) Braw(xVC)=band2@Braw(xVC) These pixel values and the spectral characteristic parameters (separation coefficients) stored in the memory 51 of the reference camera X (reference device) 50, Kband1(x)=band1@Braw / band1@Rraw Kband2(x)=band2@Rraw / band2@Braw These are input and the reference device band corresponding pixel value is calculated.
[0455] On the other hand, the adjuster band corresponding pixel value calculation unit 72 calculates the output of the adjuster camera Y (adjuster) 60 shown in FIG. When shooting with light transmitted through the full-bandwidth window (ALL), Rraw(yALL)=band(1+2)@Rraw(yALL) Braw(yALL)=band(1+2)@Braw(yALL) When shooting through a VC filter, Rraw(yVC) = band2 @ Rraw(yVC) Braw(yVC)=band2@Braw(yVC) These pixel values and the values calculated by the reference device band corresponding pixel value calculation unit 71 are input to calculate the adjustment device band corresponding pixel value.
[0456] First, the reference device band corresponding pixel value calculation unit 71 shown in FIG. 39 calculates the output of the reference camera X (reference device) 50 shown in FIG. 39, that is, When shooting with light transmitted through the full-bandwidth window (ALL), Rraw(xALL)=band(1+2)@Rraw(xALL) Braw(xALL)=band(1+2)@Braw(xALL) The pixel values based on these captured images and the spectral characteristic parameters (separation coefficients) acquired from the memory 51, Kband1(x)=band1@Braw / band1@Rraw Kband2(x)=band2@Rraw / band2@Braw Using these values, the repetitive calculations described above with reference to FIGS. 12 and 13 are performed to calculate the following band-corresponding pixel values. band(1)@Rraw(xALL) band(2)@Braw(xALL)
[0457] First, an equation corresponding to the equation shown in step S01 of FIG. 12 is generated. In the fourth embodiment, it is sufficient to execute processing only on the signals of band 1 and band 2 for each RB pixel. Therefore, the equation in this embodiment, which corresponds to the equation shown in step S01 in FIG. Araw=a1+a2 Braw=b1+b2
[0458] When the output of each band of the reference camera X (reference device) 50 is substituted into this formula, the following (Formula 41) is obtained. Rraw(xALL)=band1@Rraw(xALL)+band2@Rraw(xALL) Braw(xALL)=band1@Braw(xALL)+band2@Braw(xALL) ...(Formula 41)
[0459] Furthermore, the above (Equation 41) is expanded into the equation shown in step S02 of FIG. 12 to generate the following (Equation 42). band1@Rraw(xALL)=Rraw(xALL)-band2@Rraw(xALL) band2@Braw(xALL)=Braw(xALL)-band1@Braw(xALL) ...(Formula 42)
[0460] Furthermore, the above (Equation 42) is expanded into the equation shown in step S02 of FIG. 12 to generate the following (Equation 43). band1@Rraw(xALL)=Rraw(xALL)-(Kband2(x))(band2@Braw(xALL)) band2@Braw(xALL)=Braw(xALL)-(Kband1(x))(band1@Rraw(xALL)) ...(Formula 43)
[0461] The above (Equation 43) corresponds to the equation in step S03 described above with reference to FIG. 12, that is, the band-corresponding pixel value calculation equation (Equation 23) described above.
[0462] Hereinafter, the following values calculated by this (Equation 43): band1@Rraw(xALL) band2@Braw(xALL) That is, the above values corresponding to a1 and b2 in the formula shown in step S03 of FIG. Again, by substituting the right hand side of the above formula (43), we get the new values of a1 and b2, i.e., band1@Rraw(xALL) band2@Braw(xALL) These new values are calculated.
[0463] This calculation is repeated thereafter. That is, the iterative calculation using the band-corresponding pixel value calculation formula (Formula 23) is repeated a number of times to execute "repeated calculation". By repeatedly performing the iterative calculation using the above band-corresponding pixel value calculation formula (Formula 23) multiple times, the values of a1 and b2, i.e., band1@Rraw(xALL) band2@Braw(xALL) These values gradually converge, i.e., as described above with reference to FIG.
[0464] In the fourth embodiment, as an example, the iterative calculation using the above (Equation 43) is executed five times. As a result, the following convergence values are calculated. band1@Rraw(xALL)(5) band2@Braw(xALL)(5) The (5) at the end indicates that this is the converged value obtained by repeating the calculation using the above (Equation 43) five times.
[0465] band1@Rraw(xALL) (5) is the pixel value of the R pixel when the reference camera X (reference device) 50 captures the light transmitted through the all-band transmission window (ALL), that is, Rraw(xALL)=band(1+2)@Rraw(xALL) This pixel value corresponds to the band-corresponding pixel value of band 1 (band1).
[0466] Furthermore, band2@Braw(xALL) (5) is the pixel value of the B pixel when the reference camera X (reference device) 50 captures the light transmitted through the all-band transmission window (ALL), that is, Braw(xALL)=band(1+2)@Braw(xALL) This pixel value corresponds to the band-corresponding pixel value of band 2 (band2).
[0467] Next, the reference device band corresponding pixel value calculation unit 71 shown in FIG. 39 calculates the band corresponding pixel values of band 1 (band1) acquired by the above repeated calculation, band1@Rraw(xALL)(5) The band-corresponding pixel values of this band 1 (band1), This is obtained as the output when photographing light transmitted through a VC filter. Braw(xVC)=band2@Braw(xVC) The band-corresponding pixel value of band 2 is output to the band-corresponding gain calculation unit 73.
[0468] Next, the process executed by the adjuster band corresponding pixel value calculation unit 72 will be described. The adjuster band corresponding pixel value calculation unit 72 is Pixel value when shooting through the full-band (ALL) transmission window, i.e., Rraw(yALL)=band(1+2)@Rraw(yALL) Braw(yALL)=band(1+2)@Braw(yALL) From these pixel values, the following adjuster band corresponding pixel values are calculated. band1@Rraw(yALL) band2@Braw(yALL) These band-corresponding pixel values are calculated.
[0469] The adjuster band corresponding pixel value calculation unit 72 calculates the above adjuster band corresponding pixel value using the following convergence value calculated as a result of the repeated calculation executed in the reference band corresponding pixel value calculation unit 71. band1@Rraw(xALL)(5) band2@Braw(xALL)(5)
[0470] In addition, Rraw(yALL) and Braw(yALL), which are the pixel values (output value Xout) of the R pixel and the B pixel when photographing light transmitted through the all-band transmission window (ALL) by the adjustment camera Y (adjuster) 60, can be expressed as the following (Equation 44). Rraw(yALL)=band1@Rraw(yALL)+band2@Rraw(yALL) Braw(yALL)=band1@Braw(yALL)+band2@Braw(yALL) ...(Formula 44)
[0471] In addition, if it is assumed that the bandwidth of band 1 and band 2 is sufficiently small relative to changes in the light source and changes in the spectral characteristics of the camera, the band gain between the reference machine and the adjustment machine for the band obtained from the light source output when photographing light transmitted through the VC filter of the special light source 420 can be regarded as approximately constant. Based on this assumption, the following (Equation 45) is derived. band2@Rraw(yALL)=((band1@Rraw(xALL)(5)) / (band2@Rraw(xVC)))×(band2@Rraw(yVC)) band2@Braw(yALL)=((band2@Braw(xALL)(5)) / (band2@Braw(xVC)))×band2@Braw(yVC)) ...(Formula 45)
[0472] Based on the above results, the adjuster band corresponding pixel value calculation unit 72 calculates the adjuster band corresponding pixel value shown in the following (Equation 46) by substituting the above (Equation 45) into the above (Equation 44). band1@Rraw(yALL)=Rraw(yALL)-band2@Rraw(yALL) band1@Braw(yALL)=Braw(yALL)-band2@Braw(yALL) ...(Formula 45)
[0473] In addition, the spectral characteristic parameter (separation factor) corresponding to the adjustment camera Y (adjustment device) 60, can be expressed by the following (Equation 46). Kband1(y)=band1@Braw(yALL) / band1@Rraw(yALL) Kband2(y)=band2@Rraw(yVC) / band2@Braw(yVC) ...(Formula 46)
[0474] The adjuster band corresponding pixel value calculation unit 72 calculates the band corresponding pixel value of band 1 (band1) of the adjuster camera Y (adjuster) 60, which is shown by the above (Equation 45), band1@Rraw(yALL)=Rraw(yALL)-band2@Rraw(yALL) The band-corresponding pixel values of this band 1 (band1), This is obtained as the output when photographing light transmitted through a VC filter. Braw(yVC)=band2@Braw(yVC) The band-corresponding pixel value of band 2 is output to the band-corresponding gain calculation unit 73.
[0475] The band-corresponding gain calculation unit 73 receives band-corresponding pixel values of each of bands 1 and 2 (band 1, 2) of the reference camera X (reference device) 50 from the reference device band-corresponding pixel value calculation unit 71 as follows. Band 1 corresponding pixel value: band1@Rraw(xALL)(5) Band 2 corresponding pixel value: Braw(xVC) = band2@Braw(xVC) Furthermore, from the adjustment camera Y (adjuster) 60, which is input from the adjuster band corresponding pixel value calculation unit 72, the band corresponding pixel values of each of the following bands 1 and 2 (band1, 2) are input. Band 1 corresponding pixel value: band1@Rraw(yALL)=Rraw(yALL)-band2@Rraw(yALL) Band 2 corresponding pixel value: Braw(yVC) = band2@Braw(yVC)
[0476] The band-adaptive gain calculation unit 73 calculates the band-adaptive gain shown in the following (Equation 47) based on these input values. Gain for band1 = (band1@Rraw(xALL)(5)) / (band1@Rraw(yALL)) Gain for band 2 = Braw(xVC) / Braw(yVC) ...(Formula 47)
[0477] The processing sequence of the band-adaptive gain calculation process in the fourth embodiment will be described with reference to the flowchart shown in FIG.
[0478] (Step S401) First, in step S401, a photographing process of the special light source is executed by the reference camera X (reference machine) and the adjustment camera Y (adjustment machine). It is preferable that this image photographing is executed under the same conditions.
[0479] (Steps S402 and S403) In the next steps S402 and S403, the captured pixel values of the reference camera X (reference machine) and the adjustment camera Y (adjustment machine), that is, the R pixel value (Rraw) and the B pixel value (Braw), are obtained.
[0480] The obtained pixel values are the following pixel values. When shooting with light transmitted through the full-bandwidth window (ALL), Rraw(ALL)=band(1+2)@Rraw(ALL) Braw(ALL)=band(1+2)@Braw(ALL) When shooting through a VC filter, Rraw(VC)=band2@Rraw(VC) Braw(VC)=band2@Braw(VC)
[0481] For band 2, a band corresponding pixel value can be acquired, but for band 1, a band corresponding pixel value cannot be acquired. As described above, in this embodiment, the spectral characteristic parameters (separation coefficients) corresponding to the reference camera (reference device) 50 are obtained from memory 51, and the spectral characteristic parameters (separation coefficients) are used to calculate pixel values corresponding to band 1 (band 1) of the reference camera (reference device) 50 by the repetitive calculations previously described with reference to Figure 12.
[0482] Thereafter, a pixel value corresponding to band 1 (band 1) of the adjustment camera (adjustment machine) 60 is calculated by a calculation process using the pixel value corresponding to band 1 (band 1) of the reference camera (reference machine) 50.
[0483] In steps S402 and S403, the following band-corresponding pixel values are calculated or obtained. The band-corresponding pixel value of the reference camera X (reference device) 50, Band 1 corresponding pixel value: band1@Rraw(xALL)(5) Band 2 corresponding pixel value: Braw(xVC) = band2@Braw(xVC) The band-corresponding pixel value of the adjustment camera Y (adjuster) 60, Band 1 corresponding pixel value: band1@Rraw(yALL)=Rraw(yALL)-band2@Rraw(yALL) Band 2 corresponding pixel value: Braw(yVC) = band2@Braw(yVC)
[0484] (Step S404) Next, in step S404, a band-corresponding pixel value of the reference camera X (reference device) and a band-corresponding pixel value of the adjustment camera Y (adjustment device) are used to calculate a band-corresponding gain.
[0485] In the fourth embodiment, the band corresponding gains to be calculated are the following band corresponding gains. Band 1 gain = (band1@Rraw(xALL)(5)) / band1@Rraw(yALL) Gain for band 2 = Braw(xVC) / Braw(yVC) The band-corresponding gains of these two bands, that is, the two bands corresponding to the transmission light bands of the dual-band pass filter 302, are calculated.
[0486] (Step S405) Finally, in step S405, the band-compatible gain calculated in step S404 is stored in the memory of the adjustment camera Y (adjustment machine).
[0487] 5, the reference device band-corresponding pixel values obtained from pixel values of an image captured by the reference camera X (reference device) are used in the calculation process of band-corresponding gains of a large number of adjustment cameras Y (adjustment devices). Therefore, the reference device band-corresponding pixel values acquired in step S402 may be stored, for example, in the memory of the reference camera X (reference device) or in the memory of an external device, and the data stored in this memory may be applied to the subsequent band-corresponding gain calculation process of other adjustment cameras Y (adjustment devices).
[0488] With this setting, when processing is performed on the second or subsequent adjustment cameras (adjustment machines), in step S401, images are captured using only adjustment camera Y (adjustment machine), the processing of step S402 is omitted, and in step S404, the reference machine band-corresponding pixel values already stored in memory are read out and the band-corresponding gain of the adjustment machine is calculated.
[0489] Next, an embodiment 4b will be described as another specific example of the embodiment 4. This embodiment 4b is an embodiment in which a multispectral camera having the configuration shown in FIG. 41 is used as a reference camera X (reference device) 50 and an adjustment camera Y (adjustment camera) 60.
[0490] The multispectral camera 430 shown in Fig. 41 has the same configuration as the multispectral camera previously described with reference to Fig. 10. This is a multispectral camera 430 using the ABCD color filters shown in Fig. 9.
[0491] 41, photographing light of a subject input via a lens 431 is input to an imaging element (image sensor) 434 via a multi-band pass filter (MBP) 432 and a color filter (RGBIR color filter) 433. The output of the imaging element (image sensor) 434 is input to a signal processing unit 435, which performs various signal processes.
[0492] The multi-bandpass filter (MBP) 432 is a filter that selectively transmits light of multiple bands. The color filter (ABCD color filter) 433 of the multispectral camera 430 shown in FIG. 41 has four types of filter areas, A, B, C, and D, and the multi-bandpass filter (MBP) 432 is also a filter that selectively transmits these four types of wavelengths, A, B, C, and D.
[0493] In this embodiment 4b, similarly to the above-described embodiment 4, the output light of a special light source is photographed. An example of the configuration of a special light source (pattern box (PTB)) 440 used in the fourth embodiment will be described with reference to FIG. As shown in FIG. 42, the special light source (pattern box) 440 has a halogen light source 441, a diffuser 442, and a filter 443, and the output light of the halogen light source 441 is output through the diffuser 442 and the filter 443, and this output light is photographed by a multispectral camera, i.e., a reference camera (reference machine) 50 and an adjustment camera Y (adjustment machine) 60.
[0494] Halogen light source 441 has characteristics as shown in the lower left of the figure. The output light of this halogen light source 441 passes through diffusion plate 442, which has relatively flat characteristics, and is output via filter 443. Filter 443 is configured with four windows, each equipped with an all-band transmission window (ALL) and a filter that selectively transmits light of each band, band 2, band 3, and band 4.
[0495] The all-band transmission window (ALL) is a window that transmits all light in the visible and infrared regions. The light transmission characteristics of the other three filters are as shown in the graph in the lower right of Figure 42. That is, it has the property of selectively transmitting light of each of bands 2, 3, and 4.
[0496] The light transmitted through only one of the four windows or filters having such different light transmission characteristics is captured by a multispectral camera (reference camera (reference device) 50 and adjustment camera Y (adjustment device) 60). The light transmission windows are switched in sequence, and the four different bands of light are captured in sequence by the multispectral camera. The pixel values obtained from these captured images and the spectral characteristic parameters (separation coefficients) stored in memory 51 of reference camera X (reference device) 50 are used to calculate band-corresponding pixel values for each camera, and band-corresponding gains are calculated based on the calculated band-corresponding pixel values.
[0497] The process for manufacturing the camera in this embodiment 4b is shown in FIG. The configuration shown in Fig. 43 is similar to the configuration in Fig. 39 described above as Example 4. However, the output values of each camera and the spectroscopic characteristic parameters (separation coefficients) stored in memory 51 of reference camera X (reference device) 50 are different.
[0498] In this embodiment 4b, the spectral characteristic parameters (separation coefficients) stored in the memory 51 of the reference camera X (reference device) 50 are the following parameters. Note that a1 to d4 shown below correspond to the respective points on the graph of FIG. 11 described above. Ka2(x)=a2(x) / b2(x) Ka3(x)=a3(x) / c3(x) Ka4(x)=a4(x) / d4(x) Kb1(x)=b1(x) / a1(x) Kb3(x)=b3(x) / c3(x) Kb4(x)=b4(x) / d4(x) Kc1(x)=c1(x) / a1(x) Kc2(x)=c2(x) / b2(x) Kc4(x)=c4(x) / d4(x) Kd1(x)=d1(x) / a1(x) Kd2(x)=d2(x) / b2(x) Kd3(x)=d3(x) / c3(x) Note that (x) indicates that the value corresponds to the reference machine.
[0499] For example, Ka2(x)=a2(x) / b2(x) is the ratio (a2(x) / b2(x)) of signal a2 and signal b2 in the band B region of the graph shown in FIG. Ka3(x)=a3(x) / c3(x) is the ratio (a3(x) / c3(x)) of signal a3 in the band C region of the graph shown in FIG. 11 to signal c3. Ka4(x)=a4(x) / cd(x) is the ratio (a4(x) / d4(x)) of signal a4 in the band D region of the graph shown in FIG. 11 to signal d4. Kb1(x)=b1(x) / a1(x) is the ratio (b1(x) / a1(x)) of signal b1 in the band A region of the graph shown in FIG. 11 to signal a1.
[0500] The spectral characteristic parameters of the multispectral camera 430 are the intensity ratios in specific bands of transmitted light through a plurality of different color filters that make up the color filter, that is, in the transmitted light bands of the multi-bandpass filter. In this embodiment 4b, it is assumed that the memory 51 of the reference camera X (reference device) 50 stores the above-mentioned spectral characteristic parameters (separation coefficients).
[0501] In the configuration shown in FIG. 43, filters of bands 2 to 4 of special light source (pattern box) 440 are switched to capture images with each camera (reference camera X (reference machine) 50 and adjustment camera Y (adjustment machine) 60). As shown in Fig. 41, four types of color filters, A, B, C, and D, are set for each camera. Therefore, pixel values Araw, Braw, Craw, and Draw of each of the pixels, A, B, C, and D, are obtained as pixel value outputs.
[0502] The pixel values of the pixels ABCD of the reference camera X (reference device) 50 when photographing the light transmitted through the band 2 filter of the special light source (pattern box) 440 are as follows. Araw@band2(x) Braw@band2(x) Craw@band2(x) Draw@band2(x) The pixel values of the pixels ABCD of the adjustment camera Y (adjuster) 60 are as follows: Araw@band2(y) Braw@band2(y) Craw@band2(y) Draw@band2(y)
[0503] The pixel values of the pixels ABCD of the reference camera X (reference device) 50 when photographing the light transmitted through the band 3 filter of the special light source (pattern box) 440 are as follows. Araw@band3(x) Braw@band3(x) Craw@band3(x) Draw@band3(x) The pixel values of the pixels ABCD of the adjustment camera Y (adjuster) 60 are as follows: Araw@band3(y) Braw@band3(y) Craw@band3(y) Draw@band3(y)
[0504] The pixel values of the pixels ABCD of the reference camera X (reference device) 50 when photographing the light transmitted through the band 4 (band 4) filter of the special light source (pattern box) 440 are as follows. Araw@band4(x) Braw@band4(x) Craw@band4(x) Draw@band4(x) The pixel values of the pixels ABCD of the adjustment camera Y (adjuster) 60 are as follows: Araw@band4(y) Braw@band4(y) Craw@band4(y) Draw@band4(y)
[0505] Using these pixel values, the signal values (a2, b2, c2, d2, a3, b3, c3, d3, a4, b4, c4, d4) of each of bands 2 to 4 (bands 2 to 4) contained in each pixel ABCD of adjustment camera Y (adjuster) 60 are expressed as follows (Equation 51).
[0506] a2(y) = Araw@band2(y), b2(y) = Braw@band2(y), c2(y) = Craw@band2(y), d2(y)=Draw@band2(y), a3(y) = Araw@band3(y), b3(y) = Braw@band3(y), c3(y) = Craw@band3(y), d3(y)=Draw@band3(y) a4(y) = Araw@band4(y), b4(y) = Braw@band4(y), c4(y) = Craw@band4(y), d4(y)=Draw@band4(y) ...(Formula 51)
[0507] Moreover, the spectral characteristic parameter (separation coefficient) of the adjustment camera Y (adjuster) 60 can be expressed as the following (Equation 52). Ka2(y)=a2(y) / b2(y), Ka3(y)=a3(y) / c3(y), Ka4(y)=a4(y) / d4(y), Kb3(y)=b3(y) / c3(y), Kb4(y)=b4(y) / d4(y), Kc2(y)=c2(y) / b2(y), Kc4(y)=c4(y) / d4(y) Kd2(y)=d2(y) / b2(y), Kd3(y)=d3(y) / c3(y) ...(Formula 52)
[0508] Also, for the reference camera (reference device) 50, the signal values (a2, b2, c2, d2, a3, b3, c3, d3, a4, b4, c4, d4) of each of bands 2 to 4 contained in each pixel ABCD are expressed as follows (Equation 53).
[0509] a2(x)=Araw@band2(x), b2(x) = Braw@band2(x), c2(x) = Craw@band2(x), d2(x)=Draw@band2(x), a3(x)=Araw@band3(x), b3(x) = Braw@band3(x), c3(x) = Craw@band3(x), d3(x)=Draw@band3(x) a4(x) = Araw@band4(x), b4(x) = Braw@band4(x), c4(x) = Craw@band4(x), d4(x)=Draw@band4(x) ...(Formula 53)
[0510] The pixel values when light passing through the full band transmission window (ALL) of the special light source 420 is captured are shown as follows. The ABCD pixel values of the reference camera X (reference device) 50 are expressed as follows: Araw(xAll) Braw(xAll) Crawl(xAll) Draw(xAll) The ABCD pixel values of the adjustment camera Y (adjuster) 60 are expressed as follows: Araw(yAll) Braw(yAll) Craw(yAll) Draw(yAll)
[0511] The ABCD pixel values of the adjustment camera Y (adjuster) 60 when capturing an image of light passing through the full band transmission window (ALL) of the special light source 420 can be expressed as in the following (Equation 54). Araw(yAll)=band1@Araw(yALL)+band2@Araw(yALL)+band3@Araw(yALL)+band4@Araw(yALL) Braw(yAll)=band1@Braw(yALL)+band2@Braw(yALL)+band3@Braw(yALL)+band4@Braw(yALL) Craw(yAll)=band1@Craw(yALL)+band2@Craw(yALL)+band3@Craw(yALL)+band4@Craw(yALL) Draw(yAll)=band1@Draw(yALL)+band2@Draw(yALL)+band3@Draw(yALL)+band4@Draw(yALL) ...(Formula 54)
[0512] Furthermore, the ABCD pixel value of the reference camera X (reference device) 50 when capturing an image of light passing through the full band transmission window (ALL) of the special light source 420 can be expressed as in the following (Equation 55). Araw(xAll)=band1@Araw(xALL)+band2@Araw(xALL)+band3@Araw(xALL)+band4@Araw(xALL) Braw(xAll)=band1@Braw(xALL)+band2@Braw(xALL)+band3@Braw(xALL)+band4@Braw(xALL) Craw(xAll)=band1@Craw(xALL)+band2@Craw(xALL)+band3@Craw(xALL)+band4@Craw(xALL) Draw(xAll)=band1@Draw(xALL)+band2@Draw(xALL)+band3@Draw(xALL)+band4@Draw(xALL) ...(Formula 55)
[0513] The reference device band corresponding pixel value calculation unit 71 shown in FIG. 43 executes the following process. Since the spectral characteristic parameters (separation coefficients) of the reference camera X (reference device) 50 can be acquired from the memory 51, the repetitive calculation described above with reference to FIG. 12 is performed on the above (Equation 55). Through this repetitive calculation, the convergent signal values (a1, b2, c3, d4) of each of bands 1 to 4 (bands 1 to 4) are calculated. That is, it is possible to calculate the pixel values corresponding to each band shown in the following (Equation 56). band1@Araw(xALL) band2@Braw(xALL) band3@Craw(xALL) band4@Draw(xALL) ...(Formula 56)
[0514] A reference device band corresponding pixel value calculation unit 71 shown in FIG. 43 outputs each band corresponding pixel value shown in (Equation 56) above to a band corresponding gain calculation unit 73.
[0515] Next, the process executed by the adjuster band corresponding pixel value calculation unit 72 will be described. As in the previously described fourth embodiment, if it is assumed that the bandwidth of bands 1 to 4 is sufficiently small relative to changes in the light source and changes in the spectral characteristics of the camera, the band gain between the reference machine and the adjustment machine for the band obtained from the light source output of the special light source 440 can be regarded as approximately constant.
[0516] Based on this assumption, the adjuster band corresponding pixel value calculation unit 72 generates the following (Equation 57). band2@Araw(yAll)=(band2@Braw(xAll)) / b2(x)×a2(y) band3@Araw(yAll)=(band3@Craw(xAll)) / c3(x)×a3(y) band4@Araw(yAll)=(band4@Draw(xAll)) / d4(x)×d4(y) band2@Braw(yAll)=(band2@Braw(xAll)) / b2(x)×b2(y) band3@Braw(yAll)=(band3@Craw(xAll)) / c3(x)×b3(y) band4@Braw(yAll)=(band4@Draw(xAll)) / d4(x)×b4(y) band2@Craw(yAll)=(band2@Braw(xAll)) / b2(x)×c2(y) band3@Craw(yAll)=(band3@Craw(xAll)) / c3(x)×c3(y) band4@Craw(yAll)=(band4@Draw(xAll)) / d4(x)×c4(y) band2@Draw(yAll)=(band2@Braw(xAll)) / b2(x)×d2(y) band3@Draw(yAll)=(band3@Craw(xAll)) / c3(x)×d3(y) band4@Draw(yAll)=(band4@Draw(xAll)) / d4(x)×d4(y) ···(Equation 57)
[0517] The above (Equation 57) is the equation of (Equation 54) described earlier, that is, Araw(yAll)=band1@Araw(yALL)+band2@Araw(yALL)+band3@Araw(yALL)+band4@Araw(yALL) Braw(yAll)=band1@Braw(yALL)+band2@Braw(yALL)+band3@Braw(yALL)+band4@Braw(yALL) Craw(yAll)=band1@Craw(yALL)+band2@Craw(yALL)+band3@Craw(yALL)+band4@Craw(yALL) Draw(yAll)=band1@Draw(yALL)+band2@Draw(yALL)+band3@Draw(yALL)+band4@Draw(yALL) ···(Equation 54)
[0518] By substituting into this (Equation 54), the band corresponding pixel value calculation formula for each of bands 1 to 4 (bands 1 to 4) shown in the following (Equation 58) is obtained as the band corresponding pixel value calculation formula for adjustment camera Y (adjuster) 60.
[0519] band1@Araw(yALL)=Araw(yALL)-band2@Araw(yALL)-band3@Araw(yALL)-band4@Araw(yALL) band2@Braw(yALL)=Braw(yALL)-band1@Braw(yALL)-band3@Braw(yALL)-band4@Braw(yALL) band3@Craw(yALL)=Craw(yALL)-band1@Craw(yALL)-band2@Craw(yALL)-band4@Craw(yALL) band4@Draw(yALL)=Draw(yALL)-band1@Draw(yALL)-band2@Craw(yALL)-band3@Craw(yALL) ...(Formula 58)
[0520] The adjuster band corresponding pixel value calculation unit 72 outputs the band corresponding pixel values of bands 1 to 4 (bands 1 to 4) of the adjustment camera Y (adjuster) 60 shown by the above (Equation 58) to the band corresponding gain calculation unit 73.
[0521] The band-corresponding gain calculation unit 73 receives band-corresponding pixel values of each of bands 1 to 4 (bands 1 to 4) of the reference camera X (reference device) 50 shown in (Equation 56) above from the reference device band-corresponding pixel value calculation unit 71. band1@Araw(xALL) band2@Braw(xALL) band3@Craw(xALL) band4@Draw(xALL)
[0522] Further, the band-corresponding gain calculation unit 73 receives the band-corresponding pixel values of each of bands 1 to 4 (bands 1 to 4) of the reference camera X (reference device) 50 shown in the above (Equation 58) from the adjuster band-corresponding pixel value calculation unit 72. band1@Araw(yALL)=Araw(yALL)-band2@Araw(yALL)-band3@Araw(yALL)-band4@Araw(yALL) band2@Braw(yALL)=Braw(yALL)-band1@Braw(yALL)-band3@Braw(yALL)-band4@Braw(yALL) band3@Craw(yALL)=Craw(yALL)-band1@Craw(yALL)-band2@Craw(yALL)-band4@Craw(yALL) band4@Draw(yALL)=Draw(yALL)-band1@Draw(yALL)-band2@Craw(yALL)-band3@Craw(yALL)
[0523] The band-adaptive gain calculation unit 73 calculates the band-adaptive gain shown in the following (Equation 59) based on these input values. Gain for band1 = (band1@Araw(xALL)) / (band1@Araw(yALL)) Gain for band 2 = (band2@Braw(xALL)) / (band2@Braw(yALL)) Gain for band 3 = (band3@Craw(xALL)) / (band3@Craw(yALL)) Gain for band 4 = (band4@Draw(xALL)) / band4@Draw(yALL)
[0524] The processing sequence of the band-corresponding gain calculation process of this embodiment 4b is basically the same as the processing flow of the embodiment 4 described above in the flowchart shown in Fig. 40. Only the number of bands used and the spectroscopic characteristic parameters (separation coefficients) are different, and the basic flow of the processing is the same.
[0525] In this embodiment 4 and embodiment 4b, similarly to the modified examples of embodiments 1 to 3 described above, the band-adaptive gain calculation process may be executed when the camera is used (when photographing) instead of when the camera is manufactured. When the camera is manufactured, the average pixel value or representative value may be stored in memory 61 of adjustment camera Y (adjustment machine) 60, and when the camera is used (when taking pictures), the band-compatible gain may be calculated using the average pixel value or representative value stored in memory 61.
[0526] [10. Summary of the treatments of Examples 1 to 4] Next, the processes of the above-mentioned embodiments 1 to 4 will be collectively described with reference to FIG.
[0527] In Figure 44, (1) Processing during camera manufacturing (2) Processing when using the camera (when taking pictures) These are shown separated into upper and lower parts. In addition, (1) camera manufacturing process includes two processes: (1a) design stage process (measurement process) and (1b) camera manufacturing stage process. (2) As processing when using the camera (when taking a picture), (2a) adjustment device Y's band-compatible gain calculation processing and (2b) captured image analysis processing are shown.
[0528] In any of the first to fourth embodiments, the final captured image analysis process calculates the following band-corresponding pixel values. A band-corresponding pixel value of band 1 (band1) included in the R pixel value (Rraw) of the adjustment camera Y (adjustment device) 60: band1@Rraw(y); A band-corresponding pixel value of band 2 (band2) included in the B pixel value (Braw) of the adjustment camera Y (adjustment device) 60: band2@Braw(y);
[0529] Moreover, all of Examples 1 to 4 shown in FIG. 44 are examples in which the band-adaptive gain calculation process of the adjuster Y is executed as a process when the camera is used (when taking a picture).
[0530] In the following, in each of Examples 1 to 4 (1) Processing during camera manufacturing: (1a) design stage processing (measurement processing), (1b) camera manufacturing stage processing, (2) Processing when using the camera (when taking a picture): (2a) band-compatible gain calculation processing of the adjuster Y, (2b) captured image analysis processing, These will be explained in turn. In addition, (2a) band-compatible gain calculation process of the adjustment device Y and (2b) captured image analysis process, which are processes performed when the camera is used (when taking pictures), may be performed inside the camera which is the adjustment device Y, or they can be performed by an external device that can acquire data from the camera which is the adjustment device Y, such as a PC or a server on the cloud.
[0531] As described above, Examples 1 to 4 are examples in which the following processing is carried out. Example 1: Example using a multispectral camera with dual bandpass (DBP) (Example 2) Example of performing temperature compensation to calculate band-compatible gain and adjust band-compatible gain Example 3: An example in which a calculation process of band-corresponding gain using a special light source and a calculation process of a spectral characteristic parameter (separation factor) are executed Example 4: An example in which the measured spectral characteristic parameters (separation factors) of a reference device and a special light source are used in combination to perform a calculation process of band-corresponding gains and spectral characteristic parameters (separation factors)
[0532] Example 1: Example using a multispectral camera with dual bandpass (DBP) In this first embodiment, the following process is executed.
[0533] (1) Processing during camera manufacturing (1a) Design stage processing (measurement processing) As a process (measurement process) at the design stage in the first embodiment, a measurement process of the separation factors (Kband1, Kband2) of the reference device X is executed.
[0534] In this example, the spectral characteristic parameters (separation factors) of band 1 and band 2 of the reference device X are measured, and these measured values are used as the spectral characteristic parameters (separation factors) of band 1 and band 2 of the adjustment device Y.
[0535] The spectral characteristic parameters (separation coefficients) of the reference camera X (reference device) can be calculated as follows. Reference camera X (reference device) Spectral characteristic parameters (separation factor) corresponding to band 1 Kband1(x)=band1@Braw(x) / band1@Rraw(x) Spectral characteristic parameters (separation factor) corresponding to band 2 Kband2(x)=band2@Rraw(x) / band2@Braw(x)
[0536] (1b) Camera manufacturing process; In the first embodiment, a process of storing parameters to be applied for calculating band-adaptive gains in the memory of the adjuster Y is executed as a camera manufacturing stage process. The example shown in FIG. 44 illustrates an example in which the following values are calculated and stored in memory:
[0537] The average value of Rraw(x) and Braw(x) for the band-corresponding output pixel value of the reference device X (Rrawave(x), Brawave(x)), and Adjuster Y band corresponding output pixel value: Average value of Rraw(y) and Braw(y) (Rraeave(y), Brawave(y)), These are calculated and stored in the memory of adjuster Y. Note that a representative value may be calculated instead of the average value and stored in the memory.
[0538] The data stored in the memory of the adjuster Y is used in (2a) band-compatible gain calculation processing of the adjuster Y, which is (2) processing when the camera is used (when taking pictures) described below.
[0539] Next, (2) the process when using the camera (when taking pictures) will be described. (2a) Band-compatible gain calculation process of adjuster Y; In the band-compatible gain calculation process of adjuster Y, a calculation process of the band-compatible gain of adjuster Y, which is an inherent value of adjuster Y, is performed using the data stored in the memory of adjuster Y in the above-mentioned (1b) camera manufacturing stage process.
[0540] That is, the following is stored in the memory of the regulator Y: The band-corresponding output pixel value of the reference device X: the average value (Rrawave(x), Brawave(x)) of Rraw(x), Braw(x) or the representative value, and Adjuster Y band corresponding output pixel value: Average value of Rraw(y) and Braw(y) (Rraeave(y),Brawave(y)), or representative value, Using these memory stored data, the band corresponding gain of the adjuster Y, for example, REDgain(y) NIRgain(y) These band-corresponding gains are calculated.
[0541] (2b) Image analysis and processing; In the final captured image analysis process, the band-compatible gain calculated in the above (2a) band-compatible gain calculation process of adjuster Y is applied to the image captured by adjuster Y to adjust the output value. As a result of this adjustment, the following band corresponding pixel values are calculated as the final adjusted band corresponding pixel values. A band-corresponding pixel value of band 1 (band1) included in the R pixel value (Rraw) of the adjustment camera Y (adjustment device) 60: band1@Rraw(y); A band-corresponding pixel value of band 2 (band2) included in the B pixel value (Braw) of the adjustment camera Y (adjustment device) 60: band2@Braw(y);
[0542] Next, a process in the second embodiment in which temperature compensation is performed to calculate band-adaptive gain and adjust band-adaptive gain will be described.
[0543] (1) Processing during camera manufacturing (1a) Design stage processing (measurement processing) In the design stage process (measurement process) in the second embodiment, similarly to the first embodiment, the measurement process of the separation factors (Kband1, Kband2) of the reference device X is executed. The spectral characteristic parameters (separation factors) of band 1 and band 2 of reference device X are measured, and these measured values are also used as the spectral characteristic parameters (separation factors) of band 1 and band 2 of adjustment device Y.
[0544] Furthermore, in the second embodiment, a temperature characteristic coefficient, which is a parameter to be applied to temperature characteristic compensation in the design stage, is measured using a reference machine X. The temperature characteristic coefficient measured using this reference machine X is also used as a common value between the reference machine X and the adjustment machine Y.
[0545] (1b) Camera manufacturing process; In the second embodiment, as in the first embodiment, a process of storing parameters to be applied for calculating band-adaptive gains in a memory of an adjuster Y is executed as a camera manufacturing process. However, in the second embodiment, the temperatures (T) of the reference machine X and the regulator machine Y at the time of data measurement are also measured, and the measurement data is recorded in memory together with the temperature information. The example shown in FIG. 44 illustrates an example in which the following values are calculated and stored in memory:
[0546] The average value of Rraw(x) and Braw(x) for the band-corresponding output pixel value of the reference device X at the measurement temperature = T (Rrawave(x), Brawave(x)), and The average value of Rraw(y) and Braw(y) for the band-corresponding output pixel value of regulator Y at the measurement temperature = T (Rraeave(y), Brawave(y)), These are calculated and stored in the memory of adjuster Y. Note that a representative value may be calculated instead of the average value and stored in the memory.
[0547] The data stored in the memory of the adjuster Y is used in (2a) band-compatible gain calculation processing of the adjuster Y, which is (2) processing when the camera is used (when taking pictures) described below.
[0548] Next, (2) the process when using the camera (when taking pictures) will be described. (2a) Band-compatible gain calculation process of adjuster Y; In the band-compatible gain calculation process of adjuster Y, a calculation process of the band-compatible gain of adjuster Y, which is an inherent value of adjuster Y, is performed using the data stored in the memory of adjuster Y in the above-mentioned (1b) camera manufacturing stage process.
[0549] That is, the following is stored in the memory of the regulator Y: The band-corresponding output pixel value of the reference device X: the average value (Rrawave(x), Brawave(x)) of Rraw(x), Braw(x) or the representative value, and Adjuster Y band corresponding output pixel value: Average value of Rraw(y) and Braw(y) (Rraeave(y),Brawave(y)), or representative value, And, by using the temperature information (T) at the time of calculating these values, temperature characteristic compensation is performed to obtain the band corresponding gain of the regulator Y, for example, REDgain(y) NIRgain(y) These band-corresponding gains are calculated.
[0550] (2b) Image analysis and processing; In the final captured image analysis process, the band-compatible gain calculated in the above (2a) band-compatible gain calculation process of adjuster Y is applied to the image captured by adjuster Y to adjust the output value. As a result of this adjustment, the following band corresponding pixel values are calculated as the final adjusted band corresponding pixel values. A band-corresponding pixel value of band 1 (band1) included in the R pixel value (Rraw) of the adjustment camera Y (adjustment device) 60: band1@Rraw(y); A band-corresponding pixel value of band 2 (band2) included in the B pixel value (Braw) of the adjustment camera Y (adjustment device) 60: band2@Braw(y);
[0551] Next, a process in a third embodiment in which a calculation process of band-compatible gain using a special light source and a calculation process of a spectral characteristic parameter (separation coefficient) are executed will be described.
[0552] (1) Processing during camera manufacturing (1a) Design stage processing (measurement processing) In the design stage process (measurement process) in the third embodiment, the measurement process of the separation coefficient (Kband1, Kband2) of the reference device X is not performed. In the third embodiment, the separation coefficients of the reference device X and the adjusted device Y are calculated from multiple light sources observed in the next (1b) camera manufacturing stage process.
[0553] Therefore, in the process (measurement process) at the design stage in the third embodiment, the temperature characteristic coefficient, which is a parameter to be applied to temperature characteristic compensation, is measured using the reference machine X. The temperature characteristic coefficient measured using this reference machine X is used as a common value for the reference machine X and the adjustment machine Y.
[0554] (1b) Camera manufacturing process; In the third embodiment, the separation coefficients of the reference device X and the adjustment device Y are calculated from the multiple light sources observed in the (1b) camera manufacturing stage process.
[0555] In the third embodiment, the special light source (pattern box (PTB)) 400 previously described with reference to Figure 33 is utilized, and the output light of this special light source (pattern box (PTB)) 400 is photographed by a multispectral camera, i.e., a reference camera (reference machine) 50 and an adjustment camera Y (adjustment machine) 60.
[0556] The special light source (pattern box (PTB)) 400 has an IRC filter which is an infrared light (IR) cut filter, and a VC filter which is a visible light (Visible) cut filter.
[0557] One of the IRC filter and the VC filter, which have such different light transmission characteristics, is closed, and the light transmitted through only one filter is photographed with a multispectral camera (reference camera (reference device) 50 and adjustment camera Y (adjustment device) 60). The filters that transmit light are switched in sequence, and the two different bands of light are photographed in sequence with the multispectral camera.
[0558] The average value of the band-corresponding pixel values (output values) obtained by this shooting process is calculated and stored in the memory of the adjuster Y. That is, as shown in FIG. 44, the following values are calculated and stored in the memory of the adjuster Y.
[0559] The band-corresponding pixel value (output value) of the reference device X, i.e., IRC-Rraw(x), IRC-Braw(x), VC-Rraw(x), VC-Braw(x) The average of these, i.e. IRC-Rrawave(x),IRC-Brawave(x), VC-Rrawave(x),VC-Brawave(x) These are calculated and stored in the memory of adjuster Y.
[0560] Furthermore, the band corresponding pixel value (output value) of the adjuster Y, i.e., IRC-Rraw(y), IRC-Braw(y) VC-Rraw(y), VC-Braw(y) The average of these, i.e. IRC-Rrawave(y),IRC-Brawave(y), VC-Rrawave(y),VC-Brawave(y) These are calculated and stored in the memory of adjuster Y. Note that a representative value may be calculated instead of the average value and stored in the memory.
[0561] The data stored in the memory of the adjuster Y is used in (2a) band-compatible gain calculation processing of the adjuster Y, which is (2) processing when the camera is used (when taking pictures) described below.
[0562] Next, (2) the process when using the camera (when taking pictures) will be described. (2a) Band-compatible gain calculation process of adjuster Y; In the band-compatible gain calculation process of adjuster Y, a calculation process of the band-compatible gain of adjuster Y, which is an inherent value of adjuster Y, is performed using the data stored in the memory of adjuster Y in the above-mentioned (1b) camera manufacturing stage process. Furthermore, in the third embodiment, the separation coefficients of the reference machine X and the adjustment machine Y are also calculated.
[0563] (2b) Image analysis and processing; In the final captured image analysis process, the band-compatible gain calculated in the above (2a) band-compatible gain calculation process of adjuster Y is applied to the image captured by adjuster Y to adjust the output value. As a result of this adjustment, the following band corresponding pixel values are calculated as the final adjusted band corresponding pixel values. A band-corresponding pixel value of band 1 (band1) included in the R pixel value (Rraw) of the adjustment camera Y (adjustment device) 60: band1@Rraw(y); A band-corresponding pixel value of band 2 (band2) included in the B pixel value (Braw) of the adjustment camera Y (adjustment device) 60: band2@Braw(y);
[0564] Next, a process in a fourth embodiment will be described in which the measured spectral characteristic parameters (separation coefficients) of the reference device and a special light source are used in combination to calculate band-corresponding gains and spectral characteristic parameters (separation coefficients).
[0565] In the fourth embodiment, as previously described with reference to FIG. 37, the output light from a special light source (pattern box (PTB)) having two light sources, one of which is a special light source and the other of which is unfiltered (i.e., all wavelengths of light pass through), is captured by a multispectral camera, i.e., a reference camera (reference machine) 50 and an adjustment camera Y (adjustment machine) 60.
[0566] The special light source (pattern box (PTB)) has an all-band transmission window (ALL) and a VC filter which is a visible light cut filter.
[0567] One of the all-band transmission window (ALL) and the VC filter, which have such different light transmission characteristics, is closed, and the light transmitted through only one filter is photographed by a multispectral camera (reference camera (reference device) 50 and adjustment camera Y (adjustment device) 60). The filters that transmit light are switched in sequence, and the light of the two different bands is photographed in sequence by the multispectral camera.
[0568] The average value of the band-corresponding pixel values (output values) obtained by this shooting process is calculated and stored in the memory of the adjuster Y. That is, as shown in FIG. 44, the following values are calculated and stored in the memory of the adjuster Y.
[0569] The band-corresponding pixel value (output value) of the reference device X, i.e., all-Rraw(x), all-Braw(x), VC-Rraw(x), VC-Braw(x) The average of these, i.e. all-Rrawave(x),all-Brawave(x), VC-Rrawave(x),VC-Brawave(x) These are calculated and stored in the memory of adjuster Y.
[0570] Furthermore, the band corresponding pixel value (output value) of the adjuster Y, i.e., all-Rraw(y), all-Braw(y) VC-Rraw(y), VC-Braw(y) The average of these, i.e. all-Rrawave(y),all-Brawave(y), VC-Rrawave(y),VC-Brawave(y) These are calculated and stored in the memory of adjuster Y. Note that a representative value may be calculated instead of the average value and stored in the memory.
[0571] The data stored in the memory of the adjuster Y is used in (2a) band-compatible gain calculation processing of the adjuster Y, which is (2) processing when the camera is used (when taking pictures) described below.
[0572] Next, (2) the process when using the camera (when taking pictures) will be described. (2a) Band-compatible gain calculation process of adjuster Y; In the band-compatible gain calculation process of adjuster Y, a calculation process of the band-compatible gain of adjuster Y, which is an inherent value of adjuster Y, is performed using the data stored in the memory of adjuster Y in the above-mentioned (1b) camera manufacturing stage process. Furthermore, in Example 4, the separation factor of conditioner Y is also calculated.
[0573] (2b) Image analysis and processing; In the final captured image analysis process, the band-compatible gain calculated in the above (2a) band-compatible gain calculation process of adjuster Y is applied to the image captured by adjuster Y to adjust the output value. As a result of this adjustment, the following band corresponding pixel values are calculated as the final adjusted band corresponding pixel values. A band-corresponding pixel value of band 1 (band1) included in the R pixel value (Rraw) of the adjustment camera Y (adjustment device) 60: band1@Rraw(y); A band-corresponding pixel value of band 2 (band2) included in the B pixel value (Braw) of the adjustment camera Y (adjustment device) 60: band2@Braw(y);
[0574] [11. Transfer of camera-specific adjustment data such as band-compatible gain, and usage processing configuration] Next, the transfer and utilization process configuration of camera-specific adjustment data such as band-compatible gain will be described.
[0575] Camera-specific data such as the band-compatible gain of the adjustment camera (adjuster) 60 can be transferred between devices, for example as camera-specific metadata or metadata to be attached to the image captured by the camera, and each device can perform processing based on the metadata, such as pixel value correction. In addition, for example, by applying various processing programs to the metadata, it is possible to improve separation performance and increase the accuracy of measuring plant activity.
[0576] When performing processing such as those in the above-described Examples 1 to 4, data such as the separation coefficient, which is the measurement value of the reference machine X and the adjustment machine Y, the temperature characteristic coefficient, the average value or representative value of each band-corresponding pixel value, and further the band-corresponding gain of the adjustment machine Y can be propagated as metadata between various devices in the order of "design ⇒ factory ⇒ camera ⇒ PC, cloud, etc." The later the stage, the more intelligent the processing that can be performed, making it possible to improve the accuracy of pixel value correction and the accuracy of measuring plant activity.
[0577] FIG. 45 is a diagram showing an example of transfer of metadata, which is data such as separation coefficients, which are measurement values of the reference machine X and the adjuster Y, average values and representative values of pixel values corresponding to each band, and band-corresponding gains of the adjuster Y.
[0578] FIG. 45 is a diagram showing an example of the following four stages of processing and the data flow between each process. (a) Design stage processing (b) Processing during camera manufacturing (c) Processing when using a camera (when taking a photo) (d) Post-processing of camera images (camera, PC, cloud server)
[0579] (a) In the design stage process, reference machine fixed data such as separation coefficients and temperature characteristic coefficients are obtained from a reference machine X. The reference machine fixed data such as separation coefficients and temperature characteristic coefficients obtained in this (a) design stage process are used in the next (b) camera manufacturing process.
[0580] For example, in the (b) camera manufacturing process at a camera factory, the band corresponding pixel values are acquired based on the image capture of the reference machine X and the adjustment machine Y, and the average value or representative value of the band corresponding pixel values is calculated based on the acquired pixel values. Furthermore, temperature measurement at the time of image capture is also performed. These data are recorded, for example, in the memory of adjuster Y (camera storage shown in the figure).
[0581] In addition, in the (b) camera manufacturing process at the camera factory, the measurement of the adjuster Y and the measurement of the reference device X are performed at the same time because it is not certain that the light source always maintains constant output and spectral characteristics. In this case, the measurement of the adjuster Y and the measurement of the reference device X are performed at the same time.
[0582] In the next process (c) when using the camera (when taking pictures), image taking is performed by the adjuster Y. In the example shown in FIG. 45, the calculation process of the band-compatible gain to be applied to the pixel values (output values) of the captured image is configured to be executed in the following (d) camera post-capture processing (camera, PC, cloud server).
[0583] In the (c) processing when using the camera (when taking a photo) shown in Figure 45, image capture is performed by adjuster Y, and the data recorded in the memory of adjuster Y (camera storage shown in the figure) is recorded as metadata corresponding to this captured image. For example, an average value or a representative value of the band-corresponding pixel values calculated based on the pixel values of the captured images of the reference device X and the adjustment device Y is recorded as metadata corresponding to the captured images. The metadata may be recorded in a dedicated metadata recording area separate from the image.
[0584] The captured image and metadata corresponding to the captured image are transferred to a device that performs the next (d) camera post-capture processing (camera, PC, cloud server), such as a camera, a PC, or a server on the cloud.
[0585] Here, for example, a camera, a PC, or a server on the cloud uses image-corresponding metadata to perform a calculation process of a band-corresponding gain, and then applies the calculated band-corresponding gain to perform a calculation process of a band-corresponding pixel value based on the pixel value of the captured image.
[0586] The program applied to the calculation process of band-corresponding pixel values here can be a variety of different processing programs, and it is possible to apply various programs to calculate more accurate analysis values, such as applying different programs depending on the conditions of the captured image.
[0587] [12. Configuration Examples of the Image Processing Device and Image Processing System of the Present Disclosure] Next, a configuration example of an image processing device and an image processing system according to the present disclosure will be described.
[0588] The image processing device of the present disclosure is, for example, an imaging device (multispectral camera) 450 having a configuration as shown in FIG. The imaging device (multispectral camera) 450 has a configuration in which photographing light of a subject input through a lens 451 is input to an imaging element (image sensor) 454 via a multi-bandpass filter (MBP) 452 and a color filter (such as an RGBIR color filter) 453.
[0589] Furthermore, the RAW image pixel values (Rraw, etc.) of the image sensor 454 are input to a signal processor 455, where signal processing is performed. The signal processing unit 455 calculates band-corresponding pixel values corresponding to each band (wavelength) using RAW image pixel values (Rraw, etc.) of the image sensor 454, and further calculates band-corresponding gains or performs output value adjustment based on the band-corresponding gains.
[0590] Furthermore, the signal processing unit 455 or a subsequent processing unit performs processing such as generating a high-precision color image with fewer noise components using high-precision pixel values corresponding to the band, and analyzing the color components of the subject. The signal processing unit 455 may be configured to execute data processing by a program (software), or may be configured using hardware such as an FPGA.
[0591] Note that the image processing device of the present disclosure is not limited to a single camera configuration as shown in FIG. 46, and may be configured using a system as shown in FIG. 47, for example. FIG. 47(1) shows a configuration in which an image (RAW image) captured by a multispectral camera 450 is input to an image processing device 460 such as a PC, and data processing is performed by the image processing device 460.
[0592] An image processing device 460 such as a PC uses the RAW image pixel values (Rraw, etc.) input from the multispectral camera 450 to calculate band-corresponding pixel values corresponding to each band (wavelength), calculate band-corresponding gains, or adjust output values based on the band-corresponding gains.
[0593] Furthermore, as shown in FIG. 47(2), an image (RAW image) captured by the multispectral camera 450 is input to an image processing execution server 470 via a network, and data processing is executed by the image processing execution server 470.
[0594] The image processing execution server 470 uses the RAW image pixel values (Rraw, etc.) input from the multispectral camera 450 to calculate band-corresponding pixel values corresponding to each band (wavelength), calculate band-corresponding gains, or adjust output values based on the band-corresponding gains. In this manner, the image processing device and system of the present disclosure can have various configurations.
[0595] [13. Example of hardware configuration of image processing device] Next, an example of the hardware configuration of the image processing device will be described with reference to FIG. FIG. 48 is a diagram illustrating an example of the hardware configuration of an image processing device that executes the processes of the present disclosure.
[0596] A CPU (Central Processing Unit) 501 functions as a control unit or data processing unit that executes various processes according to programs stored in a ROM (Read Only Memory) 502 or a storage unit 508. For example, it executes processes according to the sequences described in the above-mentioned embodiments. A RAM (Random Access Memory) 503 stores programs and data executed by the CPU 501. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504.
[0597] The CPU 501 is connected to an input / output interface 505 via a bus 504, and the input / output interface 505 is connected to an input unit 506 that inputs images captured by an imaging unit 521 and includes various switches, a keyboard, a mouse, a microphone, etc. that can be used by the user, and an output unit 507 that outputs data to a display unit 522, a speaker, etc. The CPU 501 executes various processes in response to commands input from the input unit 506, and outputs the results of the processes to, for example, the output unit 507.
[0598] A storage unit 508 connected to the input / output interface 505 is formed of, for example, a hard disk, and stores programs executed by the CPU 501 and various data. A communication unit 509 functions as a transmission / reception unit for Wi-Fi communication, Bluetooth (registered trademark) (BT) communication, and other data communication via a network such as the Internet or a local area network, and communicates with external devices.
[0599] A drive 510 connected to the input / output interface 505 drives removable media 511 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory such as a memory card, and executes recording or reading of data.
[0600] [14. Summary of the configuration of this disclosure] The embodiments of the present disclosure have been described in detail above with reference to specific embodiments. However, it is obvious that a person skilled in the art can modify or substitute the embodiments without departing from the gist of the present disclosure. In other words, the present invention has been disclosed in the form of an example, and should not be interpreted as being limited. In order to judge the gist of the present disclosure, the claims should be taken into consideration.
[0601] The technology disclosed in this specification can have the following configurations. (1) A signal processing unit that calculates a gain or a gain calculation parameter for matching an output of the adjustment camera, which is a multispectral camera, with an output of the reference camera, The signal processing unit includes: a reference camera band corresponding pixel value which is a pixel value within a specific band acquired based on an output value of an image pickup element of the reference camera; An image processing device that calculates a band-corresponding gain, or a parameter for calculating a band-corresponding gain, for matching the output of the adjustment camera to the output of the reference camera based on an adjustment device band-corresponding pixel value, which is a pixel value within a specific band obtained based on the output value of the image sensor of the adjustment camera.
[0602] (2) The signal processing unit a reference camera band corresponding pixel value average calculation unit that calculates an average value of band corresponding pixel values, which are pixel values within a specific band, based on an output value of an image pickup element of the reference camera; a band corresponding pixel value average calculation unit that calculates an average value of band corresponding pixel values based on an output value of an image pickup element of the adjustment camera; The image processing device according to (1) calculates the average pixel value corresponding to the reference device band and the average pixel value corresponding to the adjustment device band as parameters for calculating the band-corresponding gain, and stores them in the memory of the adjustment camera.
[0603] (3) The signal processing unit A representative value of a reference device band corresponding pixel value calculated based on an output value of an image pickup element of the reference camera; The image processing device according to (1) or (2) calculates a representative value of the adjustment device band-corresponding pixel value calculated based on the output value of the image sensor of the adjustment camera as a parameter for calculating the band-corresponding gain, and stores the calculated value in the memory of the adjustment camera.
[0604] (4) The signal processing unit a reference camera band corresponding pixel value calculation unit that calculates a band corresponding pixel value, which is a pixel value within a specific band, based on an output value of an image pickup element of the reference camera; A band corresponding pixel value calculation unit that calculates a band corresponding pixel value based on an output value of an image pickup element of the adjustment camera; The image processing device according to any one of (1) to (3), further comprising a band-compatible gain calculation unit that calculates a band-compatible gain for matching an output of the adjustment camera with an output of the reference camera, based on a comparison result between a reference device band-compatible pixel value calculated by the reference device band-compatible pixel value calculation unit and an adjustment device band-compatible pixel value calculated by the adjustment device band-compatible pixel value calculation unit.
[0605] (5) The reference camera and the adjustment camera are a multi-bandpass filter that selectively transmits light in a specific band; a color filter that transmits light of a specific band on a pixel-by-pixel basis of the image sensor; The image processing device according to any one of (1) to (4), which is a multispectral camera having the multi-bandpass filter and an imaging element that receives light transmitted through the color filter.
[0606] (6) The signal processing unit An image processing device according to any one of (1) to (5), which calculates band-corresponding pixel values using a pixel-by-pixel RAW image base pixel value signal based on an output value of an image sensor of a camera for which band-corresponding pixel values are to be calculated, and spectral characteristic parameters of the camera for which band-corresponding pixel values are to be calculated.
[0607] (7) The signal processing unit The image processing device according to (6) performs an iterative calculation of a band-corresponding pixel value calculation formula using a pixel-by-pixel RAW image base pixel value signal based on an output value of an image sensor of a camera for which band-corresponding pixel values are to be calculated, and a spectral characteristic parameter of the camera for which the band-corresponding pixel values are to be calculated, and calculates a convergent value obtained by the iterative calculation as the band-corresponding pixel value.
[0608] (8) The spectral characteristic parameters are The image processing device according to (7), wherein the intensity ratio in a specific band of transmitted light of a plurality of different color filters constituting the color filter is used.
[0609] (9) The specific band is: The image processing device according to (8), wherein the transmitted light band is a multi-bandpass filter attached to the reference camera and the adjustment camera.
[0610] (10) The signal processing unit includes: a reference device temperature characteristic compensation unit that executes a temperature characteristic compensation process for the reference device band corresponding pixel value; A regulator temperature characteristic compensation unit that executes a temperature characteristic compensation process for regulator band corresponding pixel values, An image processing device according to any one of (1) to (9), which calculates the band-corresponding gain or a parameter for calculating the band-corresponding gain by using a reference machine band-corresponding pixel value after temperature characteristic compensation generated by the reference machine temperature characteristic compensation unit and a regulator band-corresponding pixel value after temperature characteristic compensation generated by the regulator temperature characteristic compensation unit.
[0611] (11) The signal processing unit includes: An image processing device according to any one of (1) to (10), wherein pixel values obtained by photographing output light of a special light source that outputs light within a specific band using the reference camera and the adjustment camera are directly used as the reference device band corresponding pixel value and the adjustment device band corresponding pixel value.
[0612] (12) A multi-bandpass filter that selectively transmits light of a specific band; a color filter that transmits light of a specific band on a pixel-by-pixel basis of the image sensor; an image sensor that receives light transmitted through the multi-bandpass filter and the color filter; a signal processing unit that performs signal processing on an output of the imaging element, The signal processing unit includes: obtaining, from the memory, band-corresponding gain calculation parameters for calculating a band-corresponding gain, which is a gain for a specific band unit, and calculating the band-corresponding gain based on the obtained band-corresponding gain calculation parameters; An image processing device that executes an output value adjustment process by multiplying the output of the imaging element by the calculated band-corresponding gain to make the output of the imaging element coincident with the output of a reference device.
[0613] (13) The band-corresponding gain calculation parameters stored in the memory include an average value or a representative value of pixel values corresponding to a reference camera band, which are pixel values within a specific band acquired based on the output value of the image sensor of the reference camera; The image processing device according to (12), wherein the average or representative value of adjustment device band corresponding pixel values is a pixel value within a specific band obtained based on the output value of an imaging element of an adjustment camera corresponding to the image processing device.
[0614] (14) The image processing device comprises: a band corresponding pixel value calculation unit that calculates a band corresponding pixel value based on an output value of the imaging element; The signal processing unit includes: With respect to the band corresponding pixel value calculated by the band corresponding pixel value calculation unit, The image processing device according to (12) or (13), wherein the output value adjustment process is performed by multiplying the output value by a band-compatible gain calculated based on a band-compatible gain calculation parameter acquired from the memory.
[0615] (15) The image processing device comprises: a band corresponding pixel value calculation unit that calculates a band corresponding pixel value based on an output value of the imaging element; a temperature characteristic compensation unit that performs a temperature characteristic compensation process on the band corresponding pixel value calculated by the band corresponding pixel value calculation unit, The signal processing unit includes: The image processing device according to any one of (12) to (14), wherein the output value adjustment process is performed by multiplying a band-corresponding gain calculated based on a band-corresponding gain calculation parameter acquired from the memory to a band-corresponding pixel value after temperature characteristic compensation generated by the temperature characteristic compensation unit.
[0616] (16) A multi-bandpass filter that selectively transmits light of a specific band; a color filter that transmits light of a specific band on a pixel-by-pixel basis of the image sensor; an image sensor that receives light transmitted through the multi-bandpass filter and the color filter; a signal processing unit that performs signal processing on an output of the imaging element, The signal processing unit includes: A band-corresponding gain, which is a gain for a specific band unit, is obtained from the memory; An image processing device that executes an output value adjustment process by multiplying the output of the imaging element by the acquired band-corresponding gain to make the output of the imaging element coincident with the output of a reference device.
[0617] (17) An image processing method executed in an image processing device, comprising: the image processing device has a signal processing unit that calculates a gain for making an output of the adjustment camera, which is a multispectral camera, coincide with an output of the reference camera; The signal processing unit, a reference camera band corresponding pixel value which is a pixel value within a specific band acquired based on an output value of an image pickup element of the reference camera; An image processing method for calculating a band-corresponding gain, or a parameter for calculating a band-corresponding gain, that matches the output of the adjustment camera to the output of the reference camera, based on an adjustment device band-corresponding pixel value, which is a pixel value within a specific band obtained based on the output value of the image sensor of the adjustment camera.
[0618] (18) An image processing method executed in an image processing device, comprising: The image processing device includes: a multi-bandpass filter that selectively transmits light in a specific band; a color filter that transmits light of a specific band on a pixel-by-pixel basis of the image sensor; an image sensor that receives light transmitted through the multi-bandpass filter and the color filter; a signal processing unit that performs signal processing on an output of the imaging element, The signal processing unit, obtaining, from the memory, band-corresponding gain calculation parameters for calculating a band-corresponding gain, which is a gain for a specific band unit, and calculating the band-corresponding gain based on the obtained band-corresponding gain calculation parameters; An image processing method that executes an output value adjustment process in which the output of the imaging element is multiplied by the calculated band-corresponding gain to make the output of the imaging element coincide with the output of a reference device.
[0619] (19) A program for causing an image processing device to execute image processing, the image processing device has a signal processing unit that calculates a gain for making an output of the adjustment camera, which is a multispectral camera, coincide with an output of the reference camera; The program causes the signal processing unit to a reference camera band corresponding pixel value which is a pixel value within a specific band acquired based on an output value of an image pickup element of the reference camera; A program that calculates a band-corresponding gain, or a parameter for calculating a band-corresponding gain, that matches the output of the adjustment camera to the output of the reference camera based on an adjustment device band-corresponding pixel value, which is a pixel value within a specific band obtained based on the output value of the image sensor of the adjustment camera.
[0620] (20) A program for causing an image processing device to execute image processing, The image processing device includes: a multi-bandpass filter that selectively transmits light in a specific band; a color filter that transmits light of a specific band on a pixel-by-pixel basis of the image sensor; an image sensor that receives light transmitted through the multi-bandpass filter and the color filter; a signal processing unit that performs signal processing on an output of the imaging element, The program causes the signal processing unit to obtaining, from the memory, band-corresponding gain calculation parameters for calculating a band-corresponding gain, which is a gain for a specific band unit, and calculating the band-corresponding gain based on the obtained band-corresponding gain calculation parameters; A program for executing an output value adjustment process in which the calculated band-corresponding gain is multiplied by the output of the imaging element to make the output of the imaging element match the output of a reference machine.
[0621] In addition, the series of processes described in the specification can be executed by hardware, software, or a combination of both. When executing processes by software, a program recording the processing sequence can be installed and executed in a memory in a computer built into dedicated hardware, or the program can be installed and executed in a general-purpose computer capable of executing various processes. For example, the program can be pre-recorded on a recording medium. In addition to installing the program from the recording medium to the computer, the program can be received via a network such as a LAN (Local Area Network) or the Internet, and installed on a recording medium such as a built-in hard disk.
[0622] In addition, the various processes described in the specification may not only be executed in chronological order as described, but may also be executed in parallel or individually depending on the processing capacity of the device executing the processes or as necessary. Furthermore, in this specification, a system refers to a logical collective configuration of multiple devices, and is not limited to devices in the same housing. [Industrial Applicability]
[0623] As described above, according to the configuration of one embodiment of the present disclosure, an apparatus and method are realized that perform gain calculation processing and gain adjustment processing to match the output of the image sensor of a multispectral camera with the output of a reference device. Specifically, for example, as a gain calculation process for matching the output of the adjustment camera to the output of the reference camera when manufacturing a multispectral camera, a band-compatible gain for matching the output of the adjustment camera to the output of the reference camera is calculated based on a reference machine band-compatible pixel value, which is a pixel value within a specific band acquired based on the output value of the image sensor of the reference camera, and an adjustment machine band-compatible pixel value, which is a pixel value within a specific band acquired based on the output value of the image sensor of the adjustment camera. Also, when the camera is used, an output value adjustment process is executed by acquiring the band-compatible gain from the memory and multiplying the output of the image sensor by the acquired band-compatible gain to match the output of the image sensor to the output of the reference machine. These configurations realize an apparatus and method for performing gain calculation processing and gain adjustment processing for matching the output of the imaging element of a multispectral camera with the output of a reference device. [Explanation of symbols]
[0624] 10 Multispectral Camera 11 Lens 12 Dual Bandpass Filters 13 Color Filter 14 Image sensor 21 Reference camera X (reference device) 22 Adjustment camera Y (adjustment machine) 31 Gain calculation section for each color 33 Gain adjustment section for each color 34 Image processing section 50 Reference camera X (reference device) 60 Adjustment Camera Y (Adjustment Machine) 71 Reference device band corresponding pixel value calculation unit 72 Adjustment band corresponding pixel value calculation unit 73 Bandwidth-compatible gain calculation section 81 Adjustment band corresponding pixel value calculation unit 82 band compatible gain adjustment section 83 Image Processing Unit 100 Multispectral Camera 101 Lens 102 Multi-bandpass filter 103 Color Filter 104 Image sensor 105 Signal Processing Section 200 Special light source (pattern box) 201 Halogen light source 202 Diffuser 203 Filter 300 Multispectral Camera 301 Lens 302 Multi-bandpass filter 303 Color Filter 304 Image sensor 321 Reference machine temperature characteristic compensation section 322 Regulator temperature characteristic compensation section 331,332 Spectral characteristic parameter (separation factor) calculation section 400 Special light source (pattern box) 401 Halogen light source 402 Diffuser 403 Filter 420 Special light source (pattern box) 421 Halogen light source 422 Diffuser 423 Filter 430 Multispectral Camera 431 Lens 432 Multi-bandpass filter 433 Color Filter 434 Image sensor 435 Signal Processing Unit 440 Special light source (pattern box) 441 Halogen light source 442 Diffuser 443 Filter 450 Imaging device (multispectral camera) 451 Lens 452 Multi-bandpass filter 453 Color Filter 454 Image sensor 455 Signal Processing Unit 460 Image Processing Device 470 Image Processing Execution Server 501 CPU 502 ROM 503 RAM 504 Bus 505 Input / Output Interface 506 Input section 507 Output section 508 Storage section 509 Communications Department 510 Drive 511 Removable Media 521 Imaging unit 522 Display section
Claims
1. a signal processing unit that calculates a gain or a gain calculation parameter for making an output of the adjustment camera, which is a multispectral camera, coincide with an output of the reference camera; The signal processing unit includes: a reference camera band corresponding pixel value which is a pixel value within a specific band acquired based on an output value of an image pickup element of the reference camera; Execute a process of calculating a band-corresponding gain or a band-corresponding gain calculation parameter for matching the output of the adjustment camera to the output of the reference camera based on an adjustment device band-corresponding pixel value, which is a pixel value within a specific band acquired based on an output value of an image sensor of the adjustment camera; The signal processing unit, in the calculation process of the band corresponding pixel value, An image processing device that executes a band corresponding pixel value calculation process using a pixel-by-pixel RAW image base pixel value signal based on an output value of an image sensor of a target camera for calculating band corresponding pixel values, and spectral characteristic parameters of the target camera for calculating band corresponding pixel values.
2. The signal processing unit includes: a reference camera band corresponding pixel value average calculation unit that calculates an average value of band corresponding pixel values, which are pixel values within a specific band, based on an output value of an image pickup element of the reference camera; a band corresponding pixel value average calculation unit that calculates an average value of band corresponding pixel values based on an output value of an image pickup element of the adjustment camera; The image processing device according to claim 1 , wherein the calculated average value of the reference device's band corresponding pixel values and the average value of the adjustment device's band corresponding pixel values are calculated as the band corresponding gain calculation parameters and stored in a memory of the adjustment camera.
3. The signal processing unit includes: A representative value of a reference device band corresponding pixel value calculated based on an output value of an image pickup element of the reference camera; 2 . The image processing device according to claim 1 , wherein a representative value of an adjustment device's band-corresponding pixel value calculated based on an output value of an image sensor of the adjustment camera is calculated as the band-corresponding gain calculation parameter and stored in a memory of the adjustment camera.
4. The signal processing unit includes: a reference camera band corresponding pixel value calculation unit that calculates a band corresponding pixel value, which is a pixel value within a specific band, based on an output value of an image pickup element of the reference camera; A band corresponding pixel value calculation unit that calculates a band corresponding pixel value based on an output value of an image pickup element of the adjustment camera; 2. The image processing device according to claim 1, further comprising a band-corresponding gain calculation unit that calculates a band-corresponding gain for matching an output of the adjustment camera with an output of the reference camera based on a comparison result between the reference device band-corresponding pixel value calculated by the reference device band-corresponding pixel value calculation unit and the adjustment device band-corresponding pixel value calculated by the adjustment device band-corresponding pixel value calculation unit.
5. The reference camera and the adjustment camera are A multi-bandpass filter that selectively transmits light in a specific band; a color filter that transmits light of a specific band on a pixel-by-pixel basis of the image sensor; 2. The image processing device according to claim 1, wherein the image processing device is a multispectral camera having the multi-bandpass filter and an image sensor that receives light transmitted through the color filter.
6. The signal processing unit includes:
2. The image processing device according to claim 1, wherein an iterative calculation is performed on a band-corresponding pixel value calculation formula using a pixel-by-pixel RAW image base pixel value signal based on an image sensor output value of a camera to be used for band-corresponding pixel value calculation and a spectral characteristic parameter of the camera to be used for band-corresponding pixel value calculation, and a convergent value obtained by the iterative calculation is calculated as the band-corresponding pixel value.
7. The spectral characteristic parameters are 7. The image processing device according to claim 6, wherein the band corresponding pixel value is an intensity ratio in a specific band of transmitted light of a plurality of different color filters constituting a color filter that transmits band light of a specific band on a pixel-by-pixel basis of an imaging element of a camera to be calculated.
8. The specific band is 8. The image processing apparatus according to claim 7, wherein the transmitted light band is a multi-bandpass filter attached to the reference camera and the adjustment camera.
9. The signal processing unit includes: a reference device temperature characteristic compensation unit that executes a temperature characteristic compensation process for the reference device band corresponding pixel value; A regulator temperature characteristic compensation unit that executes a temperature characteristic compensation process for regulator band corresponding pixel values, The image processing device according to claim 1, wherein the band corresponding gain or a parameter for calculating the band corresponding gain is calculated using a reference machine band corresponding pixel value after temperature characteristic compensation generated by the reference machine temperature characteristic compensation unit and a regulator band corresponding pixel value after temperature characteristic compensation generated by the regulator temperature characteristic compensation unit.
10. The signal processing unit includes: The image processing device according to claim 1 , wherein pixel values obtained by photographing the output light of a special light source that outputs light within a specific band using the reference camera and the adjustment camera are directly used as the reference device band corresponding pixel values and the adjustment device band corresponding pixel values.
11. An image processing method executed in an image processing device, the image processing device has a signal processing unit that calculates a gain for making an output of the adjustment camera, which is a multispectral camera, coincide with an output of the reference camera; The signal processing unit, a reference camera band corresponding pixel value which is a pixel value within a specific band acquired based on an output value of an image pickup element of the reference camera; Execute a process of calculating a band-corresponding gain or a band-corresponding gain calculation parameter for matching the output of the adjustment camera to the output of the reference camera based on an adjustment device band-corresponding pixel value, which is a pixel value within a specific band acquired based on an output value of an image sensor of the adjustment camera; The signal processing unit, in the calculation process of the band corresponding pixel value, An image processing method for performing band-corresponding pixel value calculation processing using a pixel-by-pixel RAW image base pixel value signal based on an output value of an image sensor of a camera for which band-corresponding pixel values are to be calculated, and spectral characteristic parameters of the camera for which band-corresponding pixel values are to be calculated.
12. A program for causing an image processing device to execute image processing, the image processing device has a signal processing unit that calculates a gain for making an output of the adjustment camera, which is a multispectral camera, coincide with an output of the reference camera; The program causes the signal processing unit to a reference camera band corresponding pixel value which is a pixel value within a specific band acquired based on an output value of an image pickup element of the reference camera; Calculating a band-corresponding gain or a band-corresponding gain calculation parameter for matching the output of the adjustment camera to the output of the reference camera based on an adjustment device band-corresponding pixel value, which is a pixel value within a specific band acquired based on an output value of the image sensor of the adjustment camera; and The program, in the calculation process of band corresponding pixel values in the signal processing unit, A program for executing a band corresponding pixel value calculation process using a pixel-by-pixel RAW image base pixel value signal based on an output value of an image sensor of a target camera for band corresponding pixel value calculation and a spectral characteristic parameter of the target camera for band corresponding pixel value calculation.
Citation Information
Patent Citations
Photographing apparatus and photographing system
JP2008206090A
Color characteristic correction device, and camera
JP2011146936A
Image processing device, method and program
JP2013092885A
Imaging apparatus
JP2016152445A
RGBZ (red, green, blue, z-depth) filter system usable with sensor systems, including sensor systems with synthetic mirror enhanced three-dimensional imaging
US7375803B1
