The present invention is based upon and claims the benefit of priority from Japanese patent application No. 2020-172103, filed on Oct. 12, 2020, the disclosure of which is incorporated herein in its entirety by reference.
The present invention relates to an image correction device, an image correction method, and a program.
As a device for acquiring images of a ground surface from an aircraft or a satellite, a pushbroom-type image acquisition device has been widely adopted. A device of this type is configured so as to acquire a line-shaped image extending in the X axis direction by using a one-dimensional array sensor as an image sensor. Then, with translation of the entire image acquisition device in the perpendicular direction (Y axis direction) with respect to the line-shaped acquired image by the movement of the aircraft or the satellite, a two-dimensional image is formed. Further, in the case of acquiring images of a plurality of wavelength bands by using an image acquisition device of this type, the device is configured to image a subject with a plurality of filters, in each of which the band that is a wavelength band of light to be transmitted is different, attached to each of the one-dimensional array sensors. An image of each wavelength band is called a band image.
For example, Patent Literature 1 discloses a technology of reducing a color shift caused in an image acquisition device of this type, by means of a combination of band image shifting corresponding to the position shift quantity and general interpolation processing such as a linear interpolation method.
When distortion is caused by the characteristics of the optical system, a phase difference is generated between bands, and a color shift may be caused by the phase difference. A color shift caused by a phase difference in this context means that in the case of imaging the same subject by a plurality of bands such as RGB (red, green, blue) for example, the color of the same portion of the subject may be different from that of the subject depending on the position of the portion in the pixel of each band. Such a color shift caused by a phase shift is difficult to be reduced by a combination of band image shifting corresponding to the position shift quantity and general interpolation processing such as a linear interpolation method at the time of correcting the color shift.
An exemplary object of the present invention is to provide an image correction device that solves the above-described problem, that is, a problem that it is difficult to reduce a color shift, caused by a phase shift, by means of a combination of band image shifting and general interpolation processing such as a linear interpolation method.
An image correction device, according to one exemplary aspect of the present invention, is configured to include
a band image acquisition means for acquiring a plurality of band images obtained by imaging a subject;
a position difference acquisition means for, by using at least one of the band images as a reference band image and at least one of the rest of the band images as an object band image, acquiring a position difference between the object band image and the reference band image;
a corrected band image creation means for, by using a pixel of the object band image as an object pixel and using each of a plurality of pixels of the reference band image that overlap the object pixel when the object pixel is shifted by the position difference as a corresponding pixel, creating a corrected band image that holds a pixel value of light on the object band image at a pixel position of the reference band image, on the basis of a relationship between pixel values of a plurality of the corresponding pixels; and
a corrected band image output means for outputting the corrected band image.
Further, an image correction method, according to another exemplary aspect of the present invention, is configured to include
acquiring a plurality of band images obtained by imaging a subject;
by using at least one of the band images as a reference band image and at least one of the rest of the band images as an object band image, acquiring a position difference between the object band image and the reference band image;
by using a pixel of the object band image as an object pixel and using each of a plurality of pixels of the reference band image that overlap the object pixel when the object pixel is shifted by the position difference as a corresponding pixel, creating a corrected band image that holds a pixel value of light on the object band image at a pixel position of the reference band image, on a basis of a relationship between pixel values of a plurality of the corresponding pixels;
and outputting the corrected band image.
Further, a program, according to another exemplary aspect of the present invention, is configured to cause a computer to perform processing of:
acquiring a plurality of band images obtained by imaging a subject;
by using at least one of the band images as a reference band image and at least one of the rest of the band images as an object band image, acquiring a position difference between the object band image and the reference band image;
by using a pixel of the object band image as an object pixel and using each of a plurality of pixels of the reference band image that overlap the object pixel when the object pixel is shifted by the position difference as a corresponding pixel, creating a corrected band image that holds a pixel value of light on the object band image at a pixel position of the reference band image, on a basis of a relationship between pixel values of a plurality of the corresponding pixels;
and outputting the corrected band image.
With the configurations described above, the present invention enables reduction of a color shift caused by a phase shift.
Next, exemplary embodiments of the present invention will be described in detail with reference to the drawings.
Referring to
The one-dimensional array sensors 11 include, for example, a one-dimensional charge-coupled device (CCD) sensor, a one-dimensional complementary MOS (CMOS) sensor, or the like, and constitute a pushbroom-type image acquisition device that images a subject 18. The one-dimensional array sensors 11 are provided with a plurality of filters 19 whose bands that are wavelength bands of light to be transmitted are different. The number of band images and the wavelength bands are determined according to combinations and the number of sets of the one-dimensional array sensors and the filters 19 to be used. For example, in a multiband sensor mounted on ASNARO-1 that is a high-resolution optical satellite, the following six band images are acquires:
Band 1: wavelength band 400-450 nm (Ocean Blue)
Band 2: wavelength band 450-520 nm (Blue)
Band 3: wavelength band 520-600 nm (Green)
Band 4: wavelength band 630-690 nm (Red)
Band 5: wavelength band 705-745 nm (Red Edge)
Band 6: wavelength band 760-860 nm (NIR)
The communication I/F unit 12 is configured of, for example, a dedicated data communication circuit, and is configured to perform data communication with various devices connected via wired or wireless communication. The operation input unit 13 includes operation input devices such as a keyboard and a mouse, and is configured to detect an operation by an operator and output it to the arithmetic processing unit 16. The screen display unit 14 includes a screen display device such as a liquid crystal display (LCD) or a plasma display panel (PDP), and is configured to display, on the screen, a corrected band image and the like in accordance with an instruction from the arithmetic processing unit 16.
The storage unit 15 includes storage devices such as a hard disk and a memory, and is configured to store processing information and a program 151 necessary for various types of processing to be performed in the arithmetic processing unit 16. The program 151 is a program that is read and executed by the arithmetic processing unit 16 to thereby realize various processing units. The program 151 is read, in advance, from an external device (not illustrated) or a storage medium (not illustrated) via a data input and output function such as the communication I/F unit 12, and is stored in the storage unit 15.
The main processing information stored in the storage unit 15 includes a multiband image 152, position difference information 153, and a corrected multiband image 154.
The multiband image 152 is a set of a plurality of band images acquired by a pushbroom-type image acquisition device. The multiband image 152 may be a set of all band images acquired by a pushbroom-type image acquisition device, or a set of some band images. In the present embodiment, the multiband image 152 is assumed to be configured of three bands namely an R-band image 152-1, a G-band image 152-2, and a B-band image 152-3. For example, in the case of ASNARO-1 mentioned above, it is possible to assign a band 4 as the R-band image 152-1, assign a band 3 as the G-band image 152-2, and assign a band 2 as the B-band image 152-3.
In the case where one of the band images constituting the multiband image 152 is a reference band image and the rest of them are object band images, the position difference information 153 is information about the position difference between the reference band image and an object band image. In the present embodiment, it is assumed that the G-band image 152-2 is the reference band image, and the R-band image 152-1 and the B-band image 152-3 are object band images, respectively. Therefore, the position difference information 153 is configured of position difference information 153-1 in which the position difference of R-band image 152-1 relative to the G-band image 152-2 is recorded, and position difference information 153-2 in which the position difference of the B-band image 152-3 relative to the G-band image 152-2 is recorded.
In the case where distortion is caused by the characteristics or the like of the optical system in the pushbroom-type image acquisition device, when the subject 18 is imaged, a phenomenon that the same portion of the subject 18 is imaged at different locations in pixels of the respective bands occurs.
The corrected multiband image 154 is a multiband image obtained by applying correction to the multiband image 152 so as not to cause a color shift. The corrected multiband image 154 is configured of a corrected R-band image 154-1, a corrected G-band image 154-2, and a corrected B-band image 154-3.
The arithmetic processing unit 16 has a microprocessor such as an MPU and the peripheral circuits thereof, and is configured to read, from the storage unit 15, and execute the program 151 to allow the hardware and the program 151 to cooperate with each other to thereby realize the various processing units. Main processing units realized by the arithmetic processing unit 16 include a multiband image acquisition unit 161, a position difference acquisition unit 162, a corrected multiband image creation unit 163, and a corrected multiband image output unit 164.
The multiband image acquisition unit 161 is configured to acquire the multiband image 152 from the pushbroom-type image acquisition device configured of the one-dimensional array sensors 11, and store it in the storage unit 15. However, the multiband image acquisition unit 161 is not limited to have the configuration of acquiring the multiband image 152 from the multiband image acquisition unit 161. For example, when the multiband image 152 acquired from the image acquisition device is accumulated in an image server device not illustrated, the multiband image acquisition unit 161 may be configured to acquire the multiband image 152 from the image server device.
The position difference acquisition unit 162 is configured to acquire the position difference information 153 of the multiband image 152 acquired by the multiband image acquisition unit 161, and record it in the storage unit 15.
The corrected multiband image creation unit 163 is configured to read the multiband image 152 and the position difference information 153 from the storage unit 15, create the corrected multiband image 154 from the multiband image 152 and the position difference information 153, and record it in the storage unit 15.
The corrected multiband image output unit 164 is configured to read the corrected multiband image 154 from the storage unit 15, display the corrected multiband image 154 on the screen display unit 14, on/and output it to an external device via the communication I/F unit 12. The corrected multiband image output unit 164 may display or output each of the corrected R-band image 154-1, the corrected G-band image 154-2, and the corrected B-band image 154-3 independently, or display a color image obtained by synthesizing the corrected R-band image 154-1, the corrected G-band image 154-2, and the corrected B-band image 154-3 on the screen display unit 14, or/and output it to an external device via the communication I/F unit 12.
Next, main constituent elements of the image correction device 10 will be described in detail. First, the position difference acquisition unit 162 will be described in detail.
The position difference information creation unit 1621 is configured to read the multiband image 152 from the storage unit 15, create the position difference information 153-1 of the R band from the G-band image 152-2 and the R-band image 152-1, and create the position difference information 153-2 of the B band from the G-band image 152-2 and the B-band image 152-3.
Then, the position difference information creation unit 1621 focuses on one of the object bands (for example, R band) (step S12). Then, the position difference information creation unit 1621 initializes the position difference information of the focused object band (step S13). For example, when the position difference information of the object band has a format illustrated in
Then, the position difference information creation unit 1621 focuses on one small region of the focused object band (step S14). Then, the position difference information creation unit 1621 focuses on one small region of the reference band corresponding to the focused small region of the object band (step S15). In the present embodiment, it is assumed that the position difference of the object band is one pixel or smaller. Therefore, the one small region of the reference band corresponding to the focused small region of the object band is a small region located at the same position as that of the small region of the object band. That is, when the small region of the focused object band is a small region at the upper left corner in
Then, the position difference information creation unit 1621 calculates the shift quantity (s, t) in which the focused small region of the object band most closely matches the focused small region of the reference band (step S16). For example, in the case where the focused small region of the object band most closely matches the focused small region of the reference band when it is shifted by 0.2 pixels in the X axis direction and 0.7 pixels in the Y axis direction for example, the X-axial shift quantity s=0.2 pixels and the Y-axial shift quantity t=0.7 pixels are the obtained shift quantity. Such shift quantity may be calculated by using a subpixel matching method that enables calculation of shift quantity with the accuracy of less than 1 pixel, such as a phase limiting correlation method or an SSD parabola fitting method. Then, the position difference information creation unit 1621 updates the position difference information of the focused object band by using the calculated shift quantity (s, t) as the position difference of every pixel included in the focused small region of the object band (step S17).
Then, the position difference information creation unit 1621 moves the focus to another small region of the focused object band (step S18), and returns to the processing of step S15 to execute the processing similar to that described above on the newly focused small region of the object band. Then, upon completion of focusing on all small regions in the focused object band (YES at step S19), the position difference information creation unit 1621 moves the focus to one of the other object bands (for example, B band) (step S20), and returns to the processing of step S13 to execute the processing similar to that of the processing described above on the newly focused object band. Then, upon completion of focusing on all object bands (YES at step S21), the position difference information creation unit 1621 stores the created position difference information of the respective object bands in the storage unit (step S22). Then, the position difference information creation unit 1621 ends the processing illustrated in
When the shift quantity calculated for each small region is used as the position difference of all pixels in the small region as illustrated in
Further, in the method illustrated in
In the method illustrated in
The position difference information input unit 1622 is configured to input the position difference information 153 therein from an external device not illustrated via the communication OF unit 12, and store it in the storage unit 15. Alternatively, the position difference information input unit 1622 is configured to input therein the position difference information 153 from an operator of the image correction device 10 via the operation input unit 13, and store it in the storage unit 15. That is, the position difference information input unit 1622 is configured to input therein the position difference information 153 of the multiband image 152 calculated by a device other than the image correction device 10, and store it in the storage unit 15.
As described above, the position difference acquisition unit 162 is configured to create by itself the position difference information 153 of the multiband image 152, or input it therein from the outside, and store it in the storage unit 15.
Next, the corrected multiband image creation unit 163 will be described in detail.
Then, the corrected multiband image creation unit 163 focuses on a pixel at one pixel position of the focused object band (step S33). The pixel at the pixel position of the focused object band is referred to as an object pixel. Then, the corrected multiband image creation unit 163 extracts four pixels at maximum at the pixel position of the reference band that overlaps when the focused object pixel is shifted by the position difference (s, t) of the object pixel (step S34). The pixel of the reference band that overlaps this object pixel is referred to as a corresponding pixel. Here, “s” and “t” at the position difference (s, t) of each pixel of the object band is zero or larger and less than one pixel, and it is assumed that there is no position difference that is integral multiple of the pixel. Then, when both “s” and “t” are not zero, the object pixel at the pixel position (x, y) of the focused object band overlaps four pixels of the reference band, that is, four corresponding pixels at the pixel positions (x, y), (x−1, y), (x, y−1), and (x−1, y−1).
Then, the corrected multiband image creation unit 163 obtains the area in which the object pixel of the focused object band overlaps corresponding pixels of the reference band (step S35). Assuming that the areas where the object pixel at the pixel position (x, y) overlaps the corresponding pixels at the pixel positions (x, y), (x, y−1), (x−1, y), and (x−1, y−1) are u(0, 0), u(0, 1), u(1, 0), and u(1, 1), the areas thereof are given by Expression 1 shown in
Then, on the basis of the relationship between the pixel values of the corresponding pixels of the reference band and the area that each of the corresponding pixels overlaps the focused object pixel, from the pixel value of the focused object pixel, the corrected multiband image creation unit 163 obtains a value to be allocated to a plurality of pixels of the correction object band image corresponding to the corresponding pixels of the reference band (step S36). That is, by focusing on the fact that luminance values or brightness has a high correlation between bands, the corrected multiband image creation unit 163 allocates the pixel value of the object pixel of the focused object band to a plurality of pixels of the correction object band image corresponding to the corresponding pixels of the reference band so as to have the same relationship as that between the pixel values of the corresponding pixels of the reference band.
An example of a relationship between pixels that can be used in the present invention is a ratio of pixel values. Instead of a ratio of pixel values, a difference between pixel values can also be used. In the case of using a ratio of pixel values, at step S36, the corrected multiband image creation unit 163 calculates a value to be allocated to a plurality of pixels of the correction object band image according to Expression 2 of
As a relationship between pixel values, whether to use a ratio of the pixel values or use a difference between the pixel values may be determined arbitrarily. For example, in the environment where a condition that the brightness ratio is the same between the corresponding pixels of the object band and the reference band is established, the ratio of pixel values may be used. That is, in order to enable comparison of the brightness ratio, if the pixel value 0 serving as the reference is in a state of not applied with light so that it is in an environment where a pixel value is determined in comparison with the brightness entering each band, the ratio of pixel values may be used. However, in an image obtained by capturing the ground from an artificial satellite particularly, not only light reflected at the ground surface that is a desirable signal but also light scattered in the atmosphere also enters the sensor. Therefore, the pixel value becomes larger by the light scattered in the atmosphere. In the light scattered in the atmosphere, since a shorter wavelength has a larger value, how the pixel value becomes larger differs according to the band. Therefore, in an image capturing the ground from an artificial satellite, the ratio of pixel values may not show the brightness ratio. Accordingly, in such an environment, it is preferable to use a difference between pixel values as the relationship between the pixel values. This is because the difference between pixel values is not changed even if a certain quantity of pixel value of each band is added. By using the difference between pixel values, with respect to an image capturing the ground from an artificial satellite, it is possible to remove the effect of adding the output by the light scattered in the atmosphere or the like. Therefore, by using the difference between pixel values, even if the ratio of pixel values does not show the brightness ratio, it is possible to create a corrected image without any color shift.
Referring to
Then, the corrected multiband image creation unit 163 moves the focus to one object pixel at another pixel position of the focused object band (step S38), returns to step S34 through step S39 to repeat processing similar to the processing described above. Then, upon completion of focusing on all pixels in the focused object band (YES at step S39), the corrected multiband image creation unit 163 moves the focus to one of the other object bands (for example, B band) (step S40), and returns to step S32 through step S41 to repeat processing similar to the processing described above. Then, upon completion of focusing on all object bands (YES at step S41), the corrected multiband image creation unit 163 stores the correction object band image in the storage unit 15 (step S42). That is, the corrected multiband image creation unit 163 writes the corrected R-band image 154-1 and the corrected B-band image 154-3, created as described above, in the storage unit 15. The corrected multiband image creation unit 163 also writes the G-band image 152-2 that is the reference band in the storage unit 15 as it is as the corrected G-band image 154-2. Then, the corrected multiband image creation unit 163 ends the processing illustrated in
As described above, according to the image correction device 10 of the present embodiment, it is possible to reduce a color shift caused by a phase difference. This is because, by using one of a plurality of band images obtained by capturing a subject as a reference band and using at least one of the rest as an object band image, the image correction device 10 acquires a position difference between the object band image and the reference band image, and on the basis of the relationship between pixel values of a plurality of pixels of the reference band image overlapping the pixel of the object band image when the pixel of the object band image is shifted by the position difference, creates a corrected band image that holds the pixel value of light on the object band image at the pixel position of the reference band image. The effect described above will be explained below with a simple example.
Here, a rectangular whiteboard WB as illustrated in
In the case of the examples as described above, the pixel value of a pixel R33′ of the corrected R-band image corresponding to the pixel G33 is given as the sum of the pixel value allocated from the pixel R34 to the pixel R33, the pixel value allocated from the pixel R34 to the pixel R33′, the pixel value allocated from the pixel R44 to the pixel R33′, and the pixel value allocated from the pixel R43 to the pixel R33′.
According to Expression 2, the pixel value allocated from the pixel R34 to the pixel R33′ is 255/4. That is, the entire pixel value of the pixel R34 is assigned to the pixel R33′. This is because since the relationship among the pixel values of the four pixels G24, G34, G23, and G33 overlapping the pixel R34 is 0:0:0:254 in the case of a pixel value ratio, when the pixel R34 is allocated to pixels R24′, R34′, R23′ and R33′ so as to have a similar pixel value ratio, 0:0:0:254/4 is obtained. Similarly, the entire pixel value of the pixel R44 is allocated to the pixel R33′, the entire pixel value of the pixel R33 is allocated to the pixel R33′, and the entire pixel value of the pixel R43 is allocated to the pixel R33′. As a result, the pixel value of the of the pixel R33′ of the corrected R-band image becomes 255 as illustrated in
On the other hand, since the entire pixel values of the pixels R34, R44, R33, and R43 are allocated to the pixel R33′, the pixel value allocated from the pixels R34, R44, R33, and R43 to the pixels of the corrected R-band image other than the pixel R44′ is 0. As a result, the pixel value of the pixels other than the pixel R33′ of the corrected R-band image becomes 0, as illustrated in
On the other hand, in the case of obtaining the pixel value of each pixel of the corrected R-band image corresponding to each pixel position of the G-band image in
The color shift correction effect in the present embodiment has been described above using a corrected R-band image as an example. A color shift in a corrected B-band image can also be reduced similarly. Further, while an effect of correcting a color shift has been described using a whiteboard as an example, a similar effect can be achieved for a subject of another type, of course. Note that in the case of an oblique white line on the black background, in the color shift correction by a general interpolation method, if the position where the end of the oblique whit line is located in a pixel differs by the band, a color shift occurs in which red is emphasized at positions on both sides of the white line and blue or green in emphasized at another position. According to the present invention, such a color shift can also be reduced.
The configuration, operation, and effects of the image correction device 10 according to the first exemplary embodiment has been described above. Next, some modifications of the first exemplary embodiment will be described.
Using the ratio of pixel values as a relationship between the pixel values of the pixels of the corresponding pixels is based on the premise that the ratio of pixel values matches the brightness ratio. However, when a state of no light does not have a pixel value 0 due to entering of light caused by scattering of the atmosphere or the like and the offset of the scattering of the atmosphere is added for example, the ratio of pixel values in the reference band image and the object band images does not exactly match the brightness ratio. Therefore, when color shift correction is performed by using the original reference band image and object band images without being normalized, the pixel values of the corrected object band are not based on the ratio of pixel values of the reference band.
Therefore, the corrected multiband image creation unit 163 normalizes the pixel values in order to allow correction to be performed correctly by using the pixel value ratio, even if the offset is added to the multiband image acquired by the multiband image acquisition unit 161. In this example, the corrected multiband image creation unit 163 assumes that there is a pixel on which light is not made incident anywhere in the image, and performs normalization while considering the minimum value of each band image as an offset component of the case where no light is made incident.
First, the corrected multiband image creation unit 163 uses the minimum value of the pixel value of the object band to normalize the pixel value of the object band, as shown in Expression 4 of
Further, the corrected multiband image creation unit 163 uses the minimum value of the pixel value of the reference band to normalize the pixel value of the reference band, as shown in Expression 5 of
The corrected multiband image creation unit 163 performs processing of step S31 and after in
Using the difference between pixel values as a relationship between the pixel values of the pixels of the corresponding pixels is based on the premise that the difference in the pixel values matches the brightness difference. However, there is a case where a difference between the values may differ depending on the bands even through the brightness difference is the same, due to the face that sensitivity is different between bands or the like, for example. In that case, since the difference between pixel values does not exactly match the brightness difference, when color shift correction is performed by using the original reference band image and object band images without being normalized, the pixel values of the corrected object band are not based on the difference between pixel values of the reference band.
Therefore, the corrected multiband image creation unit 163 normalizes the pixel values in order to allow correction to be performed correctly using the difference of the pixel value, even when there is a difference in sensitivity between the bands of the multiband image acquired by the multiband image acquisition unit 161. At step S61, the corrected multiband image creation unit 163 calculates the normalized pixel value of the reference band by using Expression 6 of
According to Expression 6, since distribution (standard deviation) of the normalized pixel values of the reference band becomes the same as distribution (standard deviation) of the pixel values of the object band, contrast of the reference band and that of the object band can be matched. Since the contrasts are matched, sensitivity to a change in brightness can be matched between the reference band and the object band. The corrected multiband image creation unit 163 performs processing of step S32 and after in
In the above description, the pixel values of the reference band are corrected whereby the sensitivity to a change in the brightness is made the same between the reference band and the object band. However, it is possible to make the sensitivity to a change in the brightness the same between the reference band and the object band by correcting the pixel values of the object band.
In the example illustrated in
Moreover, the position difference information 153 may be recorded as a mathematical expression or a coefficient of a mathematical expression, instead of being recorded as numerical information. For example, when the position difference is caused by optical bending, the position difference is determined by the positional relationship between the object band and the reference band on the focus surface or optical characteristics. Therefore, a pixel difference for each pixel can be expressed by an expression defined by optical characteristics using the pixel position as an argument. Accordingly, such an expression or a coefficient thereof may be recorded as the position difference information 153. A position difference of each pixel can be calculated from the aforementioned expression.
Further, the position difference acquisition unit 162 may, for each object band, calculate an approximate plane from the calculated position difference of each pixel position, and record an expression representing the calculated approximate plane or a coefficient thereof as the position difference information 153. For example, when each pixel of the object band is three-dimensional point group data consisting of three-dimensional data (x, y, (s, t)) of a position difference (s, t), for example, the approximate plane may be a plane in which the sum of the square distance from the point group becomes minimum. For example, in the case of using a plane given by Expression 7 of
In the above description, three band images of RGB are used as the multiband image 152. However, the multiband image 152 may be one other than that. For example, the multiband image 152 may be a four band image including three bands of RGB and a near infrared band. As described above, the number of bands of the multiband image 152 is not limited, and any number of bands having any wavelength bands may be used.
In the above description, it is described that the position difference (s, t) between the pixel (x, y) of the object band and the pixel (x, y) of the reference band at the same pixel position is 0 or larger and less than 1. However, the position difference (s, t) may be less than 0 or 1 or larger. With respect to any position difference (s, t), it is assumed that s′=s−s0, t′=t−t0 are established, where s0 represents a maximum integer not exceeding s, and t0 represents a maximum integer not exceeding t. Then, with respect to the pixel (x, y) of the reference band, when x′=x−s0, y′=y−t0, the position difference between the pixel (x, y) of the object band and the pixel (x′, y′) of the reference band becomes (s′, t′) that is 0 or larger and less than 1. Therefore, by replacing the pixel (x, y) of the reference band with the pixel (x′, y′), and replacing the position difference (s, t) with the position difference (s′, t′), it is possible to obtain the pixel value of the corrected band image by the processing that is same as the above-described processing.
The band image acquisition means 21 is configured to acquire a plurality of band images obtained by capturing a subject. The band image acquisition means 21 may be configured similarly to the multiband image acquisition unit 161 of
The position difference acquisition means 22 is configured to, by using one of the plurality of band images acquired by the band image acquisition means 21 as a reference band image and using at least one of the rest as an object band image, acquire a position difference between the object band image and the reference band image acquired by the band image acquisition means 21. The position difference acquisition means 22 may be configured similarly to the position difference acquisition unit of
The corrected band image creation means 23 is configured to, by using a pixel of the object band image as an object pixel and using each of a plurality of pixels of the reference band image that overlap the object pixel when the object pixel is shifted by the position difference acquired by the position difference acquisition means 22 as a corresponding pixel, create a corrected band image that holds a pixel value of light on the object band image at the pixel position of the reference band image on the basis of the relationship between pixel values of the corresponding pixels. The corrected band image creation means 23 may be configured similarly to the corrected multiband image creation unit 163 of
The corrected band image output means 42 is configured to output a corrected band image created by the corrected band image creation means 23. The corrected band image output means 24 may be configured similarly to the corrected multiband image output unit 164 of
The image correction device 20 configured as described above operates as described below. First, the band image acquisition means 21 acquires a plurality of band images obtained by capturing a subject. Then, by using one of the plurality of band images acquired by the band image acquisition means 21 as a reference band image and using at least one of the rest as an object band image, the position difference acquisition means 22 acquires a position difference between the object band image and the reference band image acquired by the band image acquisition means 21. Then, by using a pixel of the object band image as an object pixel and each of a plurality of pixels of the reference band image that overlap the object pixel when the object pixel is shifted by the position difference acquired by the position difference acquisition means 22 as a corresponding pixel, the corrected band image creation means 23 creates a corrected band image that holds a pixel value of light on the object band image at the pixel position of the reference band image on the basis of the relationship between pixel values of the corresponding pixels. Then, the corrected band image output means 42 outputs the corrected band image created by the corrected band image creation means 23.
According to the image correction device 10 that is configured and operates as described above, it is possible to reduce a color shift caused by a phase difference. This is because, by using one of a plurality of band images obtained by capturing a subject as a reference band and using at least one of the rest as an object band image, the image correction device 20 acquires a position difference between the object band image and the reference band image, and by using a pixel of the object band image as an object pixel and each of a plurality of pixels of the reference band image overlapping the object image when the object pixel is shifted by the position difference, the image correction device 20 creates a corrected band image that holds the pixel value of light on the object band image at the pixel position of the reference band image, on the basis of the relationship between the pixel values of the plurality of corresponding pixels.
While the present invention has been described with reference to the exemplary embodiments described above, the present invention is not limited to the above-described embodiments. The form and details of the present invention can be changed within the scope of the present invention in various manners that can be understood by those skilled in the art.
The present invention can be used as an image correction device, an image correction method, and an image correction program that enable a multiband image (multispectral image) to be corrected to an image in which no color shift is generated. The present invention can also be used to correct a color shift caused in image geometric projection such as projection of an image obtained by imaging the ground from a satellite or an aircraft onto a map.
The whole or part of the exemplary embodiments disclosed above can be described as, but not limited to, the following supplementary notes.
An image correction device comprising:
a band image acquisition means for acquiring a plurality of band images obtained by imaging a subject;
a position difference acquisition means for, by using at least one of the band images as a reference band image and at least one of rest of the band images as an object band image, acquiring a position difference between the object band image and the reference band image;
a corrected band image creation means for, by using a pixel of the object band image as an object pixel and using each of a plurality of pixels of the reference band image that overlap the object pixel when the object pixel is shifted by the position difference as a corresponding pixel, creating a corrected band image that holds a pixel value of light on the object band image at a pixel position of the reference band image, on a basis of a relationship between pixel values of a plurality of the corresponding pixels;
and a corrected band image output means for outputting the corrected band image.
The image correction device according to supplementary note 1, wherein
the corrected band image creation means determines, for each of a plurality of the object pixels, a pixel value of light on the object band image to be allocated from a pixel value of the object pixel to each of positions of the corresponding pixels, on a basis of a relationship between pixel values of the corresponding pixels and an area in which the object pixel and the corresponding pixel overlap, and for each pixel position of the reference band image, calculates a total sum of the pixel values of light on the object band image allocated from a plurality of pixels of the object band image overlapping the pixel of the reference band image.
(Supplementary note 3)
The image correction device according to supplementary note 1, wherein
the corrected band image creation means uses a ratio of pixel values as the relationship between the pixel values.
(Supplementary note 4)
The image correction device according to supplementary note 3, wherein
the corrected band image creation means normalizes each pixel value of the reference band image by using a minimum pixel value of the reference band image.
(Supplementary note 5)
The image correction device according to supplementary note 1 or 2, wherein
the corrected band image creation means uses a difference between pixel values as the relationship between the pixel values.
(Supplementary note 6)
The image correction device according to supplementary note 5, wherein
the corrected band image creation means normalizes each pixel value of the reference band image by using a standard deviation of the pixel value of the reference band image and a standard deviation of the pixel value of the object band image.
(Supplementary note 7)
The image correction device according to any of supplementary notes 1 to 6, wherein
the position difference acquisition means calculates the position difference according to an image correlation between the reference band image and the object band image.
(Supplementary note 8)
The image correction device according to any of supplementary notes 1 to 7, wherein
the position difference acquisition means divides the reference band image and the object band image into a plurality of small regions, and for each of the small regions, calculates a shift quantity with which the small region of the object band image most closely matches the small region of the reference band image as the position difference of all pixels of the small region of the object band image.
(Supplementary note 9)
The image correction device according to any of supplementary notes 1 to 7, wherein
the position difference acquisition means divides the reference band image and the object band image into a plurality of small regions, and for each of the small regions, calculates a shift quantity with which the small region of the object band image most closely matches the small region of the reference band image as the position difference of a pixel at a center position in the small region of the object band image, and calculates the position difference of a pixel other than the pixel at the center position by interpolation processing from the position difference of the pixel at the center position.
(Supplementary note 10)
An image correction method comprising:
acquiring a plurality of band images obtained by imaging a subject;
by using at least one of the band images as a reference band image and at least one of rest of the band images as an object band image, acquiring a position difference between the object band image and the reference band image;
by using a pixel of the object band image as an object pixel and using each of a plurality of pixels of the reference band image that overlap the object pixel when the object pixel is shifted by the position difference as a corresponding pixel, creating a corrected band image that holds a pixel value of light on the object band image at a pixel position of the reference band image, on a basis of a relationship between pixel values of a plurality of the corresponding pixels;
and outputting the corrected band image.
(Supplementary note 11)
A program for causing a computer to perform processing of:
acquiring a plurality of band images obtained by imaging a subject;
by using at least one of the band images as a reference band image and at least one of rest of the band images as an object band image, acquiring a position difference between the object band image and the reference band image;
by using a pixel of the object band image as an object pixel and using each of a plurality of pixels of the reference band image that overlap the object pixel when the object pixel is shifted by the position difference as a corresponding pixel, creating a corrected band image that holds a pixel value of light on the object band image at a pixel position of the reference band image, on a basis of a relationship between pixel values of a plurality of the corresponding pixels;
and outputting the corrected band image.
Number | Date | Country | Kind |
---|---|---|---|
2020-172103 | Oct 2020 | JP | national |