Image generation method, apparatus and computer storage medium
By obtaining the observation value of the remote sensing imager and using the preset function to calculate the response value of the primary color channel, the problem of poor imaging quality of the remote sensing imager is solved, and the image is improved in line with the human eye's visual effect.
Patent Information
- Application Number
- CN202210290102.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-23
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2042-03-23
AI Technical Summary
The band of the remote sensing imager's response is inconsistent with the human eye, resulting in poor imaging quality and the image does not conform to the visual effect of the human eye.
By obtaining the observation value of the light in the observation band reflected by the remote sensing imager in response to the target object, the response value of the primary color channel is calculated using a preset function, and an image is generated based on the response value of the primary color channel. The preset function indicates the relationship between the observation value and the response value of the primary color channel.
The observations output by the remote sensing imager that do not conform to the visual effects of the human eye are converted into the response values of the primary color channel that conform to the visual effects of the human eye are improved imaging quality.
Smart Images

Figure CN114637028B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of electronic information technology, and in particular, to an image generation method, apparatus, electronic device, and computer storage medium. Background Art
[0002] Based on the principle of light reflection, a remote sensing imager can image by receiving the light reflected by an object. During the imaging process, the remote sensing imager responds to waves of different bands, thereby determining the corresponding colors for imaging. However, the bands to which the remote sensing imager responds are inconsistent with those of the human eye, resulting in an image that does not conform to the visual effect of the human eye and has poor imaging quality. Summary of the Invention
[0003] In view of this, embodiments of the present application provide an image generation method, apparatus, electronic device, and computer storage medium to solve some or all of the above problems.
[0004] According to a first aspect of the embodiments of the present application, an image generation method is provided, including: acquiring at least one observation value corresponding to the light of at least one observation band reflected by a target object based on a remote sensing imager; calculating a response value of a base color channel based on the at least one observation value according to a preset function, where the preset function is used to indicate the relationship between the at least one observation value and the response value of the base color channel, and the at least one observation band includes a band different from the imaging band corresponding to the base color channel; determining a pixel value of the target object according to the response value of the base color channel; and generating an image to be output according to the pixel values of at least one object in the observation area of the remote sensing imager.
[0005] According to a second aspect of the embodiments of the present application, an image generation apparatus is provided, including: an acquisition module, configured to acquire at least one observation value corresponding to the light of at least one observation band reflected by a target object based on a remote sensing imager; a function module, configured to calculate a response value of a base color channel based on the at least one observation value according to a preset function, where the preset function is used to indicate the relationship between the at least one observation value and the response value of the base color channel, and the at least one observation band includes a band different from the imaging band corresponding to the base color channel; a pixel module, configured to determine a pixel value of the target object according to the response value of the base color channel; and an image module, configured to generate an image to be output according to the pixel values of at least one object in the observation area of the remote sensing imager.
[0006] According to a third aspect of the embodiments of the present application, an electronic device is provided, including: a processor, a memory, a communication interface, and a communication bus, where the processor, the memory, and the communication interface complete communication with each other through the communication bus; the memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform operations corresponding to the image generation method in the first aspect.
[0007] According to a fourth aspect of the embodiments of the present application, a computer storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, it implements the image generation method as in the first aspect.
[0008] According to the image generation method, device, electronic device and computer storage medium provided by the embodiments of the present application, based on a remote sensing imager responding to light in at least one observation band reflected by a target object, at least one observation value corresponding to the light in at least one observation band is obtained; at least one observation value is operated according to a preset function to obtain a response value of a base color channel, and the preset function is used to indicate the relationship between at least one observation value and the response value of the base color channel, and at least one observation band includes a band different from the imaging band corresponding to the base color channel; a pixel value of the target object is determined according to the response value of the base color channel; a to-be-output image is generated according to the pixel values of at least one object in the observation area of the remote sensing imager. Because the preset function is set, the relationship between the observation value of the observation band and the response value of the base color channel can be reflected. Therefore, the observation value that does not conform to the human eye visual effect output by the remote sensing imager can be converted into the response value of the base color channel that conforms to the human eye visual effect, and further, the finally formed to-be-output image conforms to the human eye visual effect, improving the imaging quality of the remote sensing imager. Description of the Drawings
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments recorded in the embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings.
[0010] Figure 1 It is a step flowchart of an image generation method provided by an embodiment of the present application;
[0011] Figure 2 It is a band schematic diagram provided by an embodiment of the present application;
[0012] Figure 3 It is a reflectance schematic diagram provided by an embodiment of the present application;
[0013] Figure 4 It is a scene schematic diagram of an image generation method provided by an embodiment of the present application;
[0014] Figure 5 It is a flow block diagram of an image generation method provided by an embodiment of the present application;
[0015] Figure 6 It is a structural block diagram of an image generation device provided by an embodiment of the present application;
[0016] Figure 7 A structural schematic diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0017] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art shall fall within the protection scope of the embodiments of the present application.
[0018] The following further illustrates the specific implementation of the embodiments of the present application with reference to the accompanying drawings of the embodiments of the present application.
[0019] The embodiment of the present application provides an image generation method, which is applied to an image generation device, that is, a device that executes the image generation method. The present application is based on the principle of light reflection and uses a remote sensing imager for imaging. When observing with the remote sensing imager, the remote sensing imager receives the light of each band reflected by the object, outputs an observation value according to the energy magnitude of the light of each received band, and forms an image according to the observation values of each band.
[0020] Referring to Figure 1 , a step flowchart of an image generation method provided by an embodiment of the present application is shown. The image generation method of the embodiment of the present application includes the following steps:
[0021] Step 101: Based on the remote sensing imager responding to the light of at least one observation band reflected by the target object, obtain at least one observation value corresponding to the light of the at least one observation band.
[0022] Among them, the number of observation bands can be one or more. Exemplarily, the remote sensing imager can be a multi-channel remote sensing imager, which can receive the light of multiple observation bands and obtain the observation value of each observation band, that is, one observation band corresponds to one observation value. The target object can be any object. Exemplarily, taking the remote sensing imager observing the ground surface as an example, the target object can include snow fields, wheat, deserts, wetlands, etc.
[0023] Optionally, in one example, the at least one observation band includes a first observation band, a second observation band, and a third observation band; wherein, the wavelength of the first observation band is [0.45, 0.49] micrometers, the wavelength of the second observation band is [0.55, 0.75] micrometers, and the wavelength of the third observation band is (0.75, 0.90] micrometers.
[0024] This is only an exemplary illustration. The observation band can be set according to specific circumstances. Optionally, in a specific implementation manner, the observation bands of the multi-channel scanning imager are described. The number of observation bands is 14, as shown in Table 1:
[0025] Table 1
[0026]
[0027]
[0028] Step 102: Calculate the response value of the base color channel by operating on at least one observation value according to a preset function.
[0029] Among them, the preset function is used to indicate the relationship between at least one observation value and the response value of the base color channel. At least one observation band includes a band different from the imaging band corresponding to the base color channel. It should be noted that in this application, one observation band corresponds to one observation value, one base color channel corresponds to one imaging band, and one imaging band corresponds to one response value, that is, one base color channel corresponds to one response value. The number of base color channels can be at least one. If the number of base color channels is multiple, each base color channel corresponds to a preset function. If the imaging band corresponding to base color channel A is close to or the same as observation band B, the observation value of this observation band B can also be directly used as the response value of base color channel A. It should also be noted that if the proportion of the overlapping part between the imaging band of base color channel A and observation band B exceeds a preset ratio, it is determined that the imaging band corresponding to base color channel A is close to observation band B, and the observation value of observation band B is used as the response value of base color channel A. Of course, this is only an exemplary illustration here.
[0030] Optionally, in a specific example, the base color channels can include three, namely the red channel, the blue channel, and the green channel, as Figure 2 shown Figure 2 is a schematic diagram of bands provided by an embodiment of this application. Combining the example in Table 1, it can be seen that the three observation bands of the remote sensing imager are inconsistent with the three imaging bands corresponding to the red channel, the blue channel, and the green channel. This results in that after imaging using the observation values of the three observation bands of the remote sensing imager, the obtained image does not conform to the human eye visual effect, and it is necessary to calculate the imaging values of the imaging bands that conform to the human eye visual effect according to the observation values of the observation bands.
[0031] Optionally, in an application scenario, the preset function is a linear function. Calculating the response value of the base color channel according to the preset function for at least one observation value includes: determining the imaging parameters of each observation band based on the reflectivity of the target object to light of different bands; using the imaging parameters as the weights of the observation values corresponding to the respective observation bands, and performing a linear combination on at least one observation value to obtain the response value of the base color channel. Performing a linear combination on the observation values to determine the response value of the base color channel can make the response value conform to the human eye visual effect.
[0032] Combined with the above application scenario, three specific implementation manners are listed here to illustrate the imaging parameters and the preset function respectively:
[0033] Optionally, in the first implementation manner, determining the imaging parameters of each observation band based on the reflectivity of the target object to light of different bands includes: according to the target object, looking up the imaging parameters of each observation band corresponding to the target object in a pre-set imaging parameter table, where the imaging parameter table is used to indicate the imaging parameters of each observation band corresponding to at least one object. Exemplarily, taking the observation of the ground surface as an example, the objects on the ground surface can be preset with imaging parameters in advance, and the imaging parameters can be directly obtained by looking up the table when observing the ground surface. As shown in Table 2:
[0034] Table 2
[0035]
[0036] In Table 2, the objects on the ground surface include non-vegetation areas, as well as trees, shrubs, farmlands, and swamps in vegetation areas. Table 2 exemplarily shows the imaging parameters of the preset function corresponding to the green channel and the imaging parameters of the preset function corresponding to the red channel. Of course, this is only an exemplary illustration here and does not represent that this application is limited thereto.
[0037] Optionally, in the second implementation manner, determining the imaging parameters of each observation band based on the reflectivity of the target object to light of different bands includes: determining the reflectivity of the imaging band corresponding to the base color channel and the reflectivity of at least one observation band based on the reflectivity of the target object to light of different bands; determining the imaging parameters of each observation band according to the reflectivity of the imaging band corresponding to the base color channel and the reflectivity of at least one observation band, and determining the preset function according to the imaging parameters. Exemplarily, as Figure 3 shown, Figure 3 is a schematic diagram of reflectivity provided by an embodiment of the present application. Figure 3The reflectance changes of four types of objects, namely snow, wheat, desert, and wetland, for light of different bands are shown. Taking the number of observation bands as one example, the observation band is 0.45 - 0.49 μm, and taking the red channel as an example for the base color channel, the corresponding imaging band is the red light band, 0.6 - 0.7 μm. Taking snow as an example, for the wave of the band 0.45 - 0.49 μm, the reflectance is 90%, and for the red light of 0.6 - 0.7 μm, the reflectance is 70%. Therefore, multiplying the observed value of the observation band by 7 / 9 can obtain the response value of the red channel. Of course, this is just a simple example here. When there are multiple observation bands, it is necessary to set corresponding imaging parameters for each observation band according to the magnitude difference between the reflectance of the target object for the light of the observation band and the light of the imaging band, or experiments can also be conducted on the imaging parameters based on the human eye visual effect to determine the imaging parameters that conform to the human eye visual effect.
[0038] Optionally, in the third implementation manner, the number of at least one observation band is 3, and the response value of the base color channel is obtained by performing an operation on at least one observed value according to a preset function, including:
[0039] Calculating the response value of the base color channel according to the preset formula T = a×V1 + b×V2 + c×V3; where T is the response value of the base color channel, V1, V2, and V3 respectively represent the observed values of the three observation bands, and a, b, and c respectively represent the imaging parameters of the three bands.
[0040] It should be noted that the response value corresponding to each base color channel can be calculated based on the preset formula, but in the preset formulas corresponding to different base color channels, the values of the imaging parameters are different. Taking the base color channels including the red channel, blue channel, and green channel as an example, combining with the example in step 101, the imaging band corresponding to the blue channel, that is, the band of blue light is 0.45 - 0.48 μm, which is basically the same as the wavelength of the first band. Therefore, the observed value of the first band can be used as the response value of the blue channel, that is, T b = V1, where T b represents the response value of the blue channel; for the green channel and the red channel, the response value of the green channel can be calculated using the formula T g = a1×V1 + b1×V2 + c1×V3, T g represents the response value of the green channel, and a1, b1, c1 respectively represent the imaging parameters for the three bands of the green channel; the response value of the red channel is calculated using the formula T r = a2×V1 + b2×V2 + c2×V3, T r represents the response value of the red channel, and a2, b2, c3 respectively represent the imaging parameters for the three bands of the red channel.
[0041] Step 103: Determine the pixel values of the target object according to the response values of the primary color channels.
[0042] It should be noted that the response values of the primary color channels are normalized to obtain the pixel values of each primary color, and the pixel values of all primary colors are fused to obtain the final pixel values.
[0043] The pixel values of the target object are multiple, respectively representing the pixel values of different regions of the target object. Exemplarily, taking the observation of the earth's surface by a remote sensing imager on a satellite as an example, a 1km×1km area on the earth's surface is taken as an imaging unit, that is, a region, and the pixels of each imaging unit are calculated. Of course, this is only an exemplary illustration. A 2km×2km area can also be taken as an imaging unit. The size of the imaging unit can be set according to the size of the observation area. If the observation area is large, the imaging unit can also be set relatively large; if the observation area is small, the imaging unit is correspondingly set small.
[0044] Exemplarily, if the maximum value of the response value is T max , and the maximum value of the pixel value is R, then the ratio R / T of the maximum value of the pixel value to the maximum value of the response value max is used as the normalization parameter. For the response value of each primary color channel, multiply it by this normalization parameter R / T max , and the pixel value of this primary color channel can be obtained. Then, the pixel values of multiple primary color channels are fused to obtain the pixel value of each imaging unit of the target object.
[0045] Step 104: Generate an image to be output according to the pixel values of at least one object in the observation area of the remote sensing imager.
[0046] It should also be noted that in this application, the observation area of the remote sensing imager can be divided into at least one imaging unit, and each imaging unit corresponds to a determined pixel value. According to the pixel values of all imaging units, the image to be output can be obtained. The target object can include at least one imaging unit.
[0047] Optionally, in one example, the primary color channels include a red channel, a blue channel, and a green channel. Determining the pixel values of the target object according to the response values of the primary color channels includes: fusing the response values of the red channel, the blue channel, and the green channel to obtain the pixel values of the target object.
[0048] Combined with the image generation method described in the above steps 101-104, here, a specific application scenario is listed to further illustrate the above method. Refer to Figure 4 as shown Figure 4 This is a schematic diagram of the scenario of an image generation method provided by an embodiment of the present application. Figure 4The figure shows the Earth 40 and a satellite 41 carrying a remote sensing imager 42. It should be noted that in this application, the remote sensing imager refers to an instrument that senses the electromagnetic waves reflected by an object through a non-contact detection method and performs imaging. The electromagnetic waves can be light waves. Figure 4 In the shown scenario, the remote sensing imager can image the Earth, that is, observe the Earth's surface. After obtaining an observation image by imaging according to the light reflected by the Earth, the observation image can be transmitted to the receiving end 43 on the Earth through the satellite. Combining Figure 5 , Figure 5 is a flowchart of an image generation method provided by an embodiment of this application. When observing the Earth's surface using a remote sensing imager, the observation value of the Earth's surface for each observation band is obtained. It should be noted that for each observation band, there is an observation value in each imaging unit. Cloud detection is performed based on the observation value to determine whether the observation object belongs to a cloud-covered area. If it is a cloud-covered area, the Earth's surface is blocked by clouds, and the cloud-covered area can be directly filled with a white cloud map. For a cloud-free area, the Earth's surface can be classified based on the underlying surface information. Exemplarily, the Earth's surface is segmented into areas of types such as sand, vegetation, and ice and snow. Combining the description in step 101, each type of area can be considered as an independent object. For different types of areas (i.e., for different objects), using the imaging parameters of the green channel and the imaging parameters of the red channel corresponding to this type of area, the preset function of the green channel and the preset function of the red channel are determined. Since the imaging band corresponding to the blue channel is the same as the wavelength of the first observation band in Table 1, therefore, the observation value of the first observation band is used as the response value of the blue channel. The response value of the green channel is calculated according to the preset function of the green channel, the response value of the red channel is calculated according to the preset function of the red channel, and the pixel value of each imaging unit is calculated according to the response values of each primary color channel. Figure 5 This is RGB fusion, where the response values of the three primary colors of red, green, and blue are fused. An image of the cloud-free area is obtained according to the pixel value of each imaging unit, and the image of the cloud-free area and the image of the cloud-covered area are fused to obtain the observation image of the Earth's surface, that is, the image to be output.
[0049] For the image generation method provided by the embodiment of this application, because a preset function is set, the relationship between the observation value of the observation band and the response value of the primary color channel can be reflected. Therefore, the observation value output by the remote sensing imager that does not conform to the human eye's visual effect can be converted into the response value of the primary color channel that conforms to the human eye's visual effect, and further, the finally formed image to be output conforms to the human eye's visual effect, improving the imaging quality of the remote sensing imager.
[0050] Based on the above Figure 1 corresponding to the image generation method described in the embodiment, an embodiment of this application provides an image generation device for executing the image generation method provided by the embodiment of this application. Referring to Figure 6, showing a structural block diagram of an image generation device provided by an embodiment of the present application. The image generation device 60 includes:
[0051] An acquisition module 601, configured to obtain at least one observation value corresponding to the light of at least one observation band based on the remote sensing imager's response to the light of at least one observation band reflected by the target object;
[0052] A function module 602, configured to perform an operation on at least one observation value according to a preset function to obtain a response value of the primary color channel, where the preset function is used to indicate the relationship between at least one observation value and the response value of the primary color channel, and at least one observation band includes a band different from the imaging band corresponding to the primary color channel;
[0053] A pixel module 603, configured to determine the pixel value of the target object according to the response value of the primary color channel;
[0054] An image module 604, configured to generate an image to be output according to the pixel values of at least one object in the observation area of the remote sensing imager.
[0055] Optionally, in one example, the preset function is a linear function, and the function module 602 is configured to determine the imaging parameter of each observation band based on the reflectivity of the target object to the light of different bands; use the imaging parameter as the weight of the observation value of the corresponding observation band, and perform a linear combination on at least one observation value to obtain the response value of the primary color channel.
[0056] Optionally, in one example, the function module 602 is configured to look up the imaging parameter of each observation band corresponding to the target object in a pre-set imaging parameter table according to the target object, and the imaging parameter table is used to indicate the imaging parameters of each observation band corresponding to at least one object.
[0057] Optionally, in one example, the function module 602 is configured to determine the reflectivity of the imaging band corresponding to the primary color channel and the reflectivity of at least one observation band based on the reflectivity of the target object to the light of different bands; determine the imaging parameter of each observation band according to the reflectivity of the imaging band corresponding to the primary color channel and the reflectivity of at least one observation band, and determine the preset function according to the imaging parameter.
[0058] Optionally, in one example, the number of at least one observation band is 3, and the function module 602 is configured to calculate the response value of the primary color channel according to the preset formula T = a×V1 + b×V2 + c×V3; where T is the response value of the primary color channel, V1, V2, and V3 respectively represent the observation values of the three observation bands, and a, b, and c respectively represent the imaging parameters of the three bands.
[0059] Optionally, in one example, the primary color channels include a red channel, a blue channel, and a green channel. The pixel module 603 is configured to fuse the response values of the red channel, the response values of the blue channel, and the response values of the green channel to obtain the pixel values of the target object.
[0060] Optionally, in one example, at least one observation band includes a first observation band, a second observation band, and a third observation band; wherein, the wavelength of the first observation band is [0.45, 0.49] microns, the wavelength of the second observation band is [0.55, 0.75] microns, and the wavelength of the third observation band is (0.75, 0.90] microns.
[0061] Since the image generation device provided by the embodiments of the present application sets a preset function, which can reflect the relationship between the observation values of the observation bands and the response values of the primary color channels, it is possible to convert the observation values output by the remote sensing imager that do not conform to the human eye visual effect into the response values of the primary color channels that conform to the human eye visual effect. Furthermore, the finally formed image to be output conforms to the human eye visual effect, improving the imaging quality of the remote sensing imager.
[0062] Based on the above Figure 1 and Figure 6 corresponding embodiments, the embodiments of the present application provide an electronic device for executing the image generation method described in the above Figure 1 corresponding embodiments. As shown in Figure 7 shown, Figure 7 FIG. is a schematic structural diagram of an electronic device provided by the embodiments of the present application. The specific implementation of the electronic device is not limited in the specific embodiments of the present application. Exemplarily, the electronic device may be a device including a remote sensing imager or a device independent of the remote sensing imager.
[0063] As Figure 7 shown, the electronic device may include: a processor 702, a communication interface 704, a memory 706, and a communication bus 708.
[0064] Wherein:
[0065] The processor 702, the communication interface 704, and the memory 706 communicate with each other through the communication bus 708.
[0066] The communication interface 704 is configured to communicate with other electronic devices such as terminal devices or servers.
[0067] The processor 702 is configured to execute the program 710, and specifically may execute the relevant steps in the above embodiments of the image generation method.
[0068] Specifically, the program 710 may include program code, which includes computer operation instructions.
[0069] The processor 702 may be a central processing unit (CPU), or a specific application integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. One or more processors included in the electronic device may be of the same type of processor, such as one or more CPUs; or may be of different types of processors, such as one or more CPUs and one or more ASICs.
[0070] The memory 706 is used to store the program 710. The memory 706 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk memory.
[0071] The program 710 may specifically be used to cause the processor 702 to execute any of the image generation methods in the foregoing Embodiment 1.
[0072] For the specific implementation of each step in the program 710, reference may be made to the corresponding steps and descriptions in the corresponding units in the foregoing image generation method embodiments, which will not be elaborated herein. Those skilled in the art can clearly understand that, for the sake of convenience and brevity of description, the specific working processes of the devices and modules described above may refer to the corresponding process descriptions in the foregoing method embodiments, which will not be elaborated herein.
[0073] The electronic device provided by the embodiments of the present application, because a preset function is set, can reflect the relationship between the observed value of the observation band and the response value of the primary color channel. Therefore, the observed value that does not conform to the human eye visual effect output by the remote sensing imager can be converted into the response value of the primary color channel that conforms to the human eye visual effect, so that the finally formed image to be output conforms to the human eye visual effect, and the imaging quality of the remote sensing imager is improved.
[0074] It should be noted that, according to the needs of implementation, each component / step described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of the components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.
[0075] The method according to the embodiments of the present application can be implemented in hardware, firmware, or be implemented as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or be implemented as computer code originally stored in a remote recording medium or a non-transitory machine-readable medium and downloaded through a network and to be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component (such as RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by the computer, the processor, or the hardware, the image generation method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the image generation method shown herein, the execution of the code converts the general-purpose computer into a dedicated computer for executing the image generation method shown herein.
[0076] Those of ordinary skill in the art can realize that the units and method steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. A professional technician can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application.
[0077] The above embodiments are only used to illustrate the embodiments of the present application, rather than to limit the embodiments of the present application. Those of ordinary skill in the relevant technical field can also make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The patent protection scope of the embodiments of the present application shall be defined by the claims.
Claims
1. An image generation method, characterized in that, Including: Based on the remote sensing imager responding to the light of at least one observation band reflected by the target object, obtaining at least one observation value corresponding to the light of the at least one observation band; Performing an operation on the at least one observation value according to a preset function to obtain the response value of the primary color channel, where the preset function is used to indicate the relationship between the at least one observation value and the response value of the primary color channel, and the at least one observation band includes a band different from the imaging band corresponding to the primary color channel; Determining the pixel value of the target object according to the response value of the primary color channel; Generating an image to be output according to the pixel values of at least one object within the observation area of the remote sensing imager; The preset function is a linear function, and the performing an operation on the at least one observation value according to the preset function to obtain the response value of the primary color channel includes: Based on the reflectivity of the target object for light of different bands, determining the imaging parameters of each observation band, including: based on the reflectivity of the target object for light of different bands, determining the reflectivity of the imaging band corresponding to the primary color channel and the reflectivity of the at least one observation band; determining the imaging parameters of each observation band according to the reflectivity of the imaging band corresponding to the primary color channel and the reflectivity of the at least one observation band, and determining the preset function according to the imaging parameters; Using the imaging parameters as the weights of the observation values of the corresponding observation bands, and performing a linear combination on the at least one observation value to obtain the response value of the primary color channel.
2. The method according to claim 1, characterized in that The number of the at least one observation band is 3, and the performing an operation on the at least one observation value according to the preset function to obtain the response value of the primary color channel includes: Calculating the response value of the primary color channel according to the preset formula T = a×V1 + b×V2 + c×V3; Wherein, T is the response value of the primary color channel, V1, V2, and V3 respectively represent the observation values of the three observation bands, and a, b, and c respectively represent the imaging parameters of the three bands.
3. The method according to claim 1, wherein The primary color channel includes a red channel, a blue channel, and a green channel, and the determining the pixel value of the target object according to the response value of the primary color channel includes: Fusing the response value of the red channel, the response value of the blue channel, and the response value of the green channel to obtain the pixel value of the target object.
4. The method according to any one of claims 1 to 3, characterized in that, The at least one observation band includes a first observation band, a second observation band, and a third observation band; Wherein, the wavelength of the first observation band is [0.45, 0.49] micrometers, the wavelength of the second observation band is [0.55, 0.75] micrometers, and the wavelength of the third observation band is (0.75, 0.90] micrometers.
5. An image generation device, characterized in that, Including: An acquisition module, configured to obtain at least one observation value corresponding to the light of at least one observation band based on the remote sensing imager responding to the light of at least one observation band reflected by the target object; A function module for calculating the response value of the primary color channel based on at least one observation value according to a preset function, where the preset function is used to indicate the relationship between the at least one observation value and the response value of the primary color channel, and the at least one observation band includes a band different from the imaging band corresponding to the primary color channel; the preset function is a linear function; A pixel module for determining the pixel value of the target object according to the response value of the primary color channel; An image module for generating an image to be output according to the pixel values of at least one object in the observation area of the remote sensor; Among them, the function module for calculating the response value of the primary color channel based on at least one observation value according to a preset function includes: determining the reflectance of the imaging band corresponding to the primary color channel and the reflectance of the at least one observation band based on the reflectance of the target object to light of different bands; determining the imaging parameter of each observation band according to the reflectance of the imaging band corresponding to the primary color channel and the reflectance of the at least one observation band, and determining the preset function according to the imaging parameter; using the imaging parameter as the weight of the observation value of the corresponding observation band, and performing a linear combination of the at least one observation value to obtain the response value of the primary color channel.
6. An electronic device, comprising: A processor, a memory, a communication interface and a communication bus, where the processor, the memory and the communication interface complete communication with each other through the communication bus; The memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operations corresponding to the image generation method according to any one of claims 1-4.
7. A computer storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the image generation method according to any one of claims 1-4.
Citation Information
Patent Citations
Light source spectrum and multi-spectral reflectivity image obtaining methods and devices and electronic equipment
CN113340817A