Image mapping method, device, equipment and readable storage medium

By predetermining the target range in the infrared image and establishing different mapping tables, combined with switching modes, the problem of a single display effect of the infrared image is solved, the target is effectively highlighted and observed, and it is easy to apply to complex scenes.

CN116309013BActive Publication Date: 2024-09-03WUXI INFISENSE PERCEPTION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310087892.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-08
Publication Date
2024-09-03
Estimated Expiration
2043-02-08

AI Technical Summary

Technical Problem

The existing infrared image pseudo-color mapping method uses a fixed mapping table, resulting in a single image display effect, which cannot effectively distinguish targets and affects the perception.

Method used

Determine the target range in the infrared image in advance, establish different mapping tables, and set the switching mode so that the color difference in the target range is large and the color difference in the non-target range is small. The target is highlighted through mapping and switching.

Benefits of technology

It improves the display effect of infrared images, facilitates target observation, is suitable for complex scenes, and enhances the diversity of pseudo-color images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116309013B
    Figure CN116309013B
Patent Text Reader

Abstract

The present application discloses an image mapping method, device, equipment and readable storage medium, the method comprising: determining a target range, establishing different mapping tables corresponding to each target range; in any two mapping tables corresponding to the current target range, the difference of at least one color component among various color components corresponding to the current target range is greater than a threshold value, and the difference of various color components corresponding to the remaining ranges except the current target range is not greater than the threshold value; setting a switching mode of the mapping table corresponding to each target range; according to the mapping table corresponding to each target range and the switching mode of the mapping table, mapping the infrared image into a corresponding pseudo-color image and switching the pseudo-color image. The technical solution disclosed in the present application realizes the detection of whether a target exists, and effectively highlights the target by flashing the target when it exists, and can highlight the target position and size, thereby improving the display effect and perception. And through a variety of mapping tables, the diversity of pseudo-color image display can also be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and more specifically, to an image mapping method, device, equipment and readable storage medium. Background Art

[0002] An important difference between infrared images and visible light images is that infrared images are grayscale images, which only appear in black and white, while visible light images have a variety of rich colors.

[0003] At present, in order to improve the display effect of infrared images and make them look better, the most widely used method is to use pseudo-color mapping, which is to use the gray value of each pixel as the horizontal coordinate, find the color component corresponding to each gray value according to the mapping table, and obtain the final color image according to the color component. However, the current pseudo-color mapping generally uses a fixed mapping table, which results in a relatively single color image, which cannot effectively distinguish the target, has a poor display effect, and affects the viewing experience.

[0004] In summary, how to effectively distinguish targets in an image, improve display effects, and facilitate target observation is a technical problem that needs to be urgently solved by those skilled in the art. Summary of the invention

[0005] In view of this, the purpose of the present application is to provide an image mapping method, device, equipment and readable storage medium for effectively distinguishing targets in an image, improving display effects, and facilitating target observation.

[0006] In order to achieve the above objectives, this application provides the following technical solutions:

[0007] An image mapping method, comprising:

[0008] Predetermine the target range in the infrared image, and establish different mapping tables corresponding to each target range; in any two of the mapping tables corresponding to the current target range, the difference of at least one color component among the various color components corresponding to the current target range is greater than a threshold, and the difference of the various color components corresponding to the remaining ranges except the current target range is not greater than the threshold, and the current target range is any of the target ranges;

[0009] Setting a switching mode of the mapping table corresponding to each of the target ranges;

[0010] According to the mapping table corresponding to each target range and the switching mode of the mapping table, the infrared image is mapped into a corresponding pseudo-color image and the pseudo-color image is switched.

[0011] Preferably, in each of the mapping tables corresponding to the current target range, the values ​​of any color components corresponding to the remaining ranges except the current target range are the same.

[0012] Preferably, predetermining the target range in the infrared image includes:

[0013] The target range in the infrared image is determined according to the grayscale output range of the infrared image.

[0014] Preferably, predetermining the target range in the infrared image includes:

[0015] Acquire a target temperature range, and convert the target temperature range into a target grayscale range;

[0016] The target grayscale range is determined as the target range in the infrared image.

[0017] Preferably, setting the switching mode of the mapping table corresponding to each target range includes:

[0018] The switching frequency and / or switching order of the mapping table corresponding to each of the target ranges is set.

[0019] Preferably, before mapping the infrared image into a corresponding pseudo-color image and switching the pseudo-color image according to the mapping table corresponding to each target range and the switching mode of the mapping table, the method further includes:

[0020] receiving a target range selection instruction, and determining a selected target range corresponding to the target range selection instruction;

[0021] According to the mapping table corresponding to each target range and the switching mode of the mapping table, the infrared image is mapped into a corresponding pseudo-color image, including:

[0022] According to the mapping table corresponding to the selected target range and the switching mode of the mapping table, the infrared image is mapped into a corresponding pseudo-color image.

[0023] Preferably, the color components included in the mapping table are R color components, G color components and B color components;

[0024] Alternatively, the color components included in the mapping table are Y color component, U color component and V color component.

[0025] An image mapping device, comprising:

[0026] A predetermination module is used to predetermine a target range in an infrared image and establish different mapping tables corresponding to each target range; in any two mapping tables corresponding to a current target range, if a difference value of at least one color component among various color components corresponding to the current target range is greater than a threshold value, and a difference value of various color components corresponding to the remaining ranges except the current target range is not greater than the threshold value, the current target range is any of the target ranges;

[0027] A setting module, used for setting a switching mode of the mapping table corresponding to each target range;

[0028] A mapping module is used to map the infrared image into a corresponding pseudo-color image and switch the pseudo-color image according to the mapping table corresponding to each target range and the switching mode of the mapping table.

[0029] An image mapping device, comprising:

[0030] Memory for storing computer programs;

[0031] A processor is used to implement the steps of the image mapping method as described in any one of the above when executing the computer program.

[0032] A readable storage medium, characterized in that a computer program is stored in the readable storage medium, and when the computer program is executed by a processor, the steps of the image mapping method as described in any one of the above items are implemented.

[0033] The present application provides an image mapping method, apparatus, device and readable storage medium, wherein the method comprises: predetermining a target range in an infrared image, establishing different mapping tables corresponding to each target range; in any two mapping tables corresponding to a current target range, a difference of at least one color component among various color components corresponding to the current target range is greater than a threshold value, and a difference of various color components corresponding to the remaining ranges except the current target range is not greater than the threshold value, and the current target range is any target range; setting a switching mode of the mapping tables corresponding to each target range; mapping the infrared image into a corresponding pseudo-color image and switching the pseudo-color image according to the mapping tables corresponding to each target range and the switching mode of the mapping tables.

[0034] The above technical solution disclosed in the present application predetermines the target range and establishes different mapping tables for each target range. In any two mapping tables corresponding to each target range, the difference of at least one color component among the various color components corresponding to the target range is greater than a threshold value, so that the color difference corresponding to the target range in all corresponding mapping tables is relatively large, and the difference of the various color components corresponding to the remaining ranges except the target range is not greater than the threshold value, so that the color difference corresponding to the remaining ranges in all corresponding mapping tables of the target range is very small. In addition, the switching mode of the mapping table corresponding to each target range can also be set. Then, the infrared image can be mapped into a corresponding pseudo-color image and the pseudo-color image can be switched according to the mapping table corresponding to each target range and the switching mode of the set mapping table. Since the color difference corresponding to the target range in the corresponding mapping table is relatively large, and the color difference corresponding to the remaining range in the mapping table corresponding to the target range is very small, when the infrared image is mapped into a pseudo-color image and the pseudo-color image is switched and flashed, the color of the target range will change greatly, while the color of the remaining range will not change much. Therefore, the above method can be used to detect whether there is a target in the image, effectively highlight the target when there is a target, and highlight the location, size range and other information of the target, improve the display effect, and facilitate target observation. In addition, the method of performing image mapping through a variety of different mapping tables can also improve the diversity of pseudo-color image display, and make pseudo-color mapping applicable to various complex scenes. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0036] Figure 1 A flowchart of an image mapping method provided in an embodiment of the present application;

[0037] Figure 2 A flowchart of another image mapping method provided in an embodiment of the present application;

[0038] Figure 3 A schematic diagram of the structure of an image mapping device provided in an embodiment of the present application;

[0039] Figure 4 A schematic diagram of the structure of an image mapping device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0040] In order to improve the display effect of infrared images and make them look better, the currently widely used method is to use pseudo-color mapping, specifically, the gray value of each pixel is used as the horizontal coordinate, and the color component corresponding to each gray value is found out according to the gray value and color component mapping table stored therein (taking RGB format as an example, the R, G, and B components corresponding to each gray value are found out), and the final color image can be obtained according to the color component. However, this method of using a fixed mapping table results in only one color image being formed in the end, so that the formed color image is relatively single, the target cannot be effectively distinguished, the display effect is poor, it is not convenient for observation, and a single mapping table is difficult to apply to various complex scenes.

[0041] To this end, the present application provides an image mapping method, apparatus, device and readable storage medium for effectively distinguishing targets in an image, improving display effects, facilitating target observation, and being applicable to various complex scenarios.

[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0043] See also Figure 1 and Figure 2 ,in, Figure 1 A flowchart of an image mapping method provided by an embodiment of the present application is shown. Figure 2 A flowchart of another image mapping method provided by an embodiment of the present application is shown. An image mapping method provided by an embodiment of the present application may include:

[0044] S11: predetermine the target range in the infrared image and establish different mapping tables corresponding to each target range; in any two mapping tables corresponding to the current target range, the difference of at least one of the various color components corresponding to the current target range is greater than a threshold, and the difference of the various color components corresponding to the remaining ranges except the current target range is not greater than the threshold, and the current target range is any target range.

[0045] In the present application, first, the target range to be detected and highlighted in the infrared image can be pre-determined, and then, different pseudo-color mapping tables corresponding to each target range are established according to each target range. The number of target ranges is at least one, and the number of mapping tables corresponding to each target range is at least two, and each mapping table stores the corresponding relationship between the corresponding target range and the color component, and the corresponding relationship between the remaining ranges other than the target range and the color component.

[0046] Any determined target range is taken as the current target range. For the current target range, in any two mapping tables corresponding to the current target range, the difference of at least one color component among the various color components corresponding to the current target range is greater than a threshold value, wherein the threshold value is specifically a value that makes the difference between the two formed colors larger, so that the difference of at least one color component among the various color components corresponding to the current target range in any two mapping tables corresponding to the current target range is greater than the threshold value, so that the color difference corresponding to the current target range in any two mapping tables corresponding to the current target range is relatively large, so as to effectively highlight the target range. For example, taking the various color components as R (red) color component, G (green) color component, and B (blue) color component as an example (that is, the color format is RGB format), the above process is specifically that in any two mapping tables corresponding to the current target range, the difference of at least one color component among the R color component, G color component, and B color component corresponding to the current target range is greater than the threshold value.

[0047] For the remaining ranges except the current target range, in any two mapping tables corresponding to the current target range, the difference of various color components corresponding to the remaining ranges except the current target range is not greater than the threshold, so that the color differences corresponding to the remaining ranges except the current target range in all mapping tables corresponding to the current target range are very small, so as to avoid interference with the highlighting of the target range, so that the target range can be effectively highlighted.

[0048] For example, if the grayscale output range of an infrared image is m to n, three target ranges are divided from m to n for observing different targets, such as setting m to m1 as target range 1, m1 to m2 as target range 2, and m2 to n as target range 3. Several mapping tables can be established for each target range (at this time, the mapping table may store the correspondence between grayscale and various color components). For example, for target range 1, four mapping tables, mapping table 1 to mapping table 4, are established, and mapping table 1 is used as the original mapping table. In mapping table 1, the mapping color of target range 1 is color 1, the mapping color of target range 2 is color 2, and the mapping color of target range 3 is color 3. Mapping table 2 is relative to mapping table 1, and the mapping color of target range 1 is changed to color a1, and the mapping colors of other target ranges are the same as those in mapping table 1; mapping table 3 is relative to mapping table 1, and the mapping color of target range 1 is changed to color b1, and the mapping colors of other target ranges are the same as those in mapping table 1; mapping table 4 is relative to mapping table 1, and the mapping color of target range 1 is changed to color c1, and the mapping colors of other target ranges are the same as those in mapping table 1. Among them, the color difference between color 1, color a1, color b1, and color c1 is relatively large, that is, among the various color components corresponding to the colors, the difference between at least one color component of the various color components corresponding to any two colors is greater than the threshold, so that the difference between color 1, color a1, color b1, and color c1 is relatively large. For target range 2 and target range 3, several corresponding mapping tables can be established in the same way as above, so as to establish mapping tables that are partially different but mostly the same or similar. Of course, if a grayscale target range (for example, m to m1) is to be detected and highlighted, different mapping tables corresponding to the target range can be established only according to the target range in the above-mentioned manner.

[0049] Through the above method, each determined target range corresponds to a different mapping table, and the color difference of each target range in all the corresponding mapping tables is relatively large, while the color difference of the remaining ranges in all the mapping tables corresponding to the target range is very small, so that the target range can be distinguished by the different mapping tables corresponding to the target range, thereby facilitating the observation of the target range in the infrared image.

[0050] S12: Setting a switching mode of the mapping table corresponding to each target range.

[0051] Furthermore, in order to highlight the targets in the infrared image, after establishing different mapping tables corresponding to each target range, the switching mode of the mapping tables corresponding to each target range (i.e., the mutual switching method between the mapping tables) can be set so that the color of the target range in the image can be switched, that is, different colors can flash at the target range in the image, thereby effectively highlighting the target range in the image, improving the display effect, and making it easier for the human eye to distinguish and observe the target range, and to clearly and accurately determine the location, size range and other information of the target range.

[0052] Among them, when performing step S12, all mapping tables corresponding to the target range can be involved in the setting of the switching mode, or some mapping tables can be involved in the setting of the switching mode, which can be specifically set according to user needs, image quality, etc.

[0053] It should be noted that step S11 and step S12 may be processes performed in advance before image mapping, so that when each infrared image is subsequently mapped, image mapping can be performed directly according to the different mapping tables corresponding to each target range established in step S11 and the switching mode of the mapping tables corresponding to each target range, thereby improving the image mapping efficiency. Of course, step S11 and step S12 may also be processes performed during image mapping.

[0054] S13: According to the mapping table corresponding to each target range and the switching mode of the mapping table, the infrared image is mapped into a corresponding pseudo-color image and the pseudo-color image is switched.

[0055] When it is necessary to map the infrared image, the infrared image can be mapped into a corresponding pseudo-color image according to the mapping table corresponding to each target range established in step S11 and the switching mode of the mapping table corresponding to each target range set in step S12, and the mapped pseudo-color image can be switched (specifically, the output can be switched and / or the display can be switched) to achieve the conversion between pseudo-color images. Since the color difference at the target range is relatively large and the color difference at the other ranges is very small, the target within the target range can flash when the pseudo-color image is converted.

[0056] Wherein, when the number of target ranges is one, the above process may specifically be: first, according to all mapping tables corresponding to the target range, the infrared image is mapped into pseudo-color images corresponding to each mapping table, and then, each pseudo-color image is switched according to the switching mode of the mapping table. Alternatively, first, a first mapping table is determined according to the switching mode of the mapping table, and the infrared image is mapped into a corresponding first pseudo-color image according to the first mapping table, and then, a second mapping table is determined according to the switching mode of the mapping table, and the infrared image is mapped into a corresponding second pseudo-color image according to the second mapping table, and the first pseudo-color image is switched to the second pseudo-color image... until the last pseudo-color image is switched.

[0057] When there are multiple target ranges, the above process can be specifically as follows: process each target range in turn, and the specific processing process can refer to the processing process when there is only one target range, that is, one pseudo-color image only maps one target range; or, each target range in the infrared image can be simultaneously mapped to the color corresponding to each target range in the mapping table according to the mapping table of each target range, and the remaining ranges except the target ranges can be color mapped according to the mapping tables corresponding to any target range, that is, one pseudo-color image can map multiple target ranges at the same time.

[0058] Since the color difference corresponding to the target range in the corresponding mapping table is relatively large, and the color difference corresponding to the remaining ranges in the mapping table corresponding to the target range is very small, therefore, the color at the target range in the image of the mapped pseudo-color image can be significantly changed when switching according to the switching mode, and the color at the remaining ranges will not change too much, therefore, it is possible to detect whether there is a target in the image, and effectively highlight the target when there is a target, so as to facilitate target observation. Moreover, the highlighting of the position and size range of the target can be achieved by switching and flickering the target color in the target range. In addition, since a variety of different mapping tables are set in the present application and these various different mapping tables are used for image mapping, therefore, the diversity of pseudo-color image display can also be improved, and the pseudo-color mapping can be well applied to various complex scenes, thereby improving the scope of application of pseudo-color mapping.

[0059] The above technical solution disclosed in the present application predetermines the target range and establishes different mapping tables for each target range. In any two mapping tables corresponding to each target range, the difference of at least one color component among the various color components corresponding to the target range is greater than a threshold value, so that the color difference corresponding to the target range in all corresponding mapping tables is relatively large, and the difference of the various color components corresponding to the remaining ranges except the target range is not greater than the threshold value, so that the color difference corresponding to the remaining ranges in all corresponding mapping tables of the target range is very small. In addition, the switching mode of the mapping table corresponding to each target range can also be set. Then, the infrared image can be mapped into a corresponding pseudo-color image and the pseudo-color image can be switched according to the mapping table corresponding to each target range and the switching mode of the set mapping table. Since the color difference corresponding to the target range in the corresponding mapping table is relatively large, and the color difference corresponding to the remaining range in the mapping table corresponding to the target range is very small, when the infrared image is mapped into a pseudo-color image and the pseudo-color image is switched and flashed, the color of the target range will change greatly, while the color of the remaining range will not change much. Therefore, the above method can be used to detect whether there is a target in the image, effectively highlight the target when there is a target, and highlight the location, size range and other information of the target, improve the display effect, and facilitate target observation. In addition, the method of performing image mapping through a variety of different mapping tables can also improve the diversity of pseudo-color image display, and make pseudo-color mapping applicable to various complex scenes.

[0060] An image mapping method provided by an embodiment of the present application, in each mapping table corresponding to a current target range, the value of any color component corresponding to the remaining ranges except the current target range is the same.

[0061] In the present application, in each mapping table corresponding to the target range, the value of any color component corresponding to the remaining ranges except the current target range is the same, so that the colors of the remaining ranges except the target range in the mapping tables corresponding to the target range are the same, so that when the pseudo-color image is switched, only the color at the target range will change, while the color at the remaining ranges will not change, so that the target range can be more prominent, which makes it easier for users to observe the target.

[0062] For example: the target range corresponds to mapping table 1 and mapping table 2, and the color components in the mapping table are specifically R color component, G color component, and B color component. Then, in mapping table 1 and mapping table 2 corresponding to the target range, for the remaining ranges except the target range, the value of the R color component in mapping table 1 is the same as that in mapping table 2, the value of the G color component in mapping table 1 is the same as that in mapping table 2, and the value of the B color component in mapping table 1 is the same as that in mapping table 2.

[0063] An image mapping method provided in an embodiment of the present application predetermines a target range in an infrared image and may include:

[0064] According to the grayscale output range of the infrared image, the target range in the infrared image is determined.

[0065] In the present application, when the target range in the infrared image is predetermined, the target range in the infrared image can be determined according to the grayscale output range of the infrared image, wherein, in this case, the mapping table stores the correspondence between the grayscale and various color components.

[0066] For example, if the grayscale output range of an image is 0 to 255, the image can be divided into three target ranges according to the grayscale, with the grayscale of 0 to 100 set as target range 1, the grayscale of 100 to 200 set as target range 2, and the grayscale of 200 to 255 set as target range 3. Mapping table 1 is established according to the target range, so that it maps red between 0-100, yellow between 100-200, and blue between 200-255. Mapping table 2 is established so that it maps purple between 0-100, yellow between 100-200, and blue between 200-255. Mapping table 3 is established so that it maps white between 0-100, yellow between 100-200, and blue between 200-255. When the mapping table switches between 1, 2, and 3, the target in the image with a grayscale range of 0-100 will flash back and forth between red, purple, and white. The human eye can clearly observe the location and range of the target. Compared with a single mapping table, the target is more prominent and observation of the target is clearer and more convenient.

[0067] An image mapping method provided in an embodiment of the present application predetermines a target range in an infrared image and may include:

[0068] Obtain a target temperature range, and convert the target temperature range into a target grayscale range;

[0069] The target grayscale range is determined as the target range in the infrared image.

[0070] Considering that there is a certain relationship between the temperature of the object captured by the infrared image and the grayscale in the infrared image, specifically, the temperature of the object detected by the infrared device will become a response to obtain a response map, and the infrared image is obtained according to the response map. Therefore, when predetermining the target range in the infrared image, the target range in the infrared image can also be divided and determined by temperature to achieve detection of objects within a certain temperature range.

[0071] In addition, considering that what can be directly obtained in the infrared image is grayscale, for the convenience of mapping, the temperature can be converted into grayscale to determine the target range. Specifically, the target temperature range can be obtained, and then, according to the relationship between the temperature and the grayscale in the infrared image, the target temperature range is converted into a target grayscale range, and the target grayscale range is determined as the target range in the infrared image, and then different mapping tables corresponding to the target range are established according to the target range. In this case, the mapping table stores the corresponding relationship between the grayscale and various color components.

[0072] The above method can realize the detection and highlighting of the target temperature range. For example, the temperature range between 20℃-30℃ is set as the target temperature range, and then 20℃-30℃ can be converted into the corresponding target grayscale range, and the target grayscale range is used as the target range. After that, the object with a temperature between 20℃-30℃ in the image can be highlighted by switching the mapping table, so that the user can easily observe the object with a temperature between 20℃-30℃ in the scene, and obtain the position, size and other information of the object with a temperature between 20℃-30℃. For another example, if you want to detect whether there is a problem of temperature exceeding 40℃ in the scene, if a single mapping table is used, it is difficult to highlight and observe smaller targets. If the image mapping method provided by the present application is used, it can be realized that the object with a temperature exceeding 40℃ is clearly and accurately displayed in the image by flashing, so that the human eye can clearly observe whether there is an object with a temperature exceeding 40℃ in the scene, and if there is a problem of temperature exceeding 40℃, the position, size range and other information of the object with a temperature exceeding 40℃ can be clearly obtained.

[0073] An image mapping method provided by an embodiment of the present application, setting a switching mode of a mapping table corresponding to each target range, may include:

[0074] The switching frequency and / or switching order of the mapping tables corresponding to each target range is set.

[0075] In the present application, when setting the switching mode of the mapping table corresponding to each target range, the switching frequency and / or switching order of the mapping table corresponding to each target range can be set specifically, so as to switch a plurality of mapping tables by setting the switching frequency and / or switching order, thereby switching the mapped pseudo-color image, and then making the corresponding area of ​​the image flicker to make it easier for the human eye to distinguish the target range. Among them, the switching frequency and switching order can be specifically determined according to the image instruction and the viewing effect, so as to improve the viewing experience.

[0076] In the above example, the grayscale output range of the infrared image is from m to n, and the target range 1 m-m1, the target range 2 m1-m2, and the target range 3 m2-n are divided from m to n. The target range 1 corresponds to four mapping tables, namely mapping table 1-mapping table 4. If you want to flash the target range 1, you can switch between mapping tables 1-4 at will, and you can switch between any two, or switch between three or four mapping tables. The switching frequency depends on the image quality and the perception effect, and you can switch at any time. Since the colors of mapping tables 1-4 are the same in the remaining ranges except target range 1, taking the arbitrary switching between mapping tables 1-4 as an example, when the pseudo-color image is switched back and forth, only the target in target range 1 in the image will flash back and forth between color 1, color a1, color b1, and color c1, and the colors of other areas will not change. By controlling the switching frequency, the image perception can be improved, and the number and order of the mapping tables involved in the switching can be adjusted by controlling the switching order. If you want to flash the image target range 2, you can switch between the mapping tables corresponding to target range 2.

[0077] An image mapping method provided by an embodiment of the present application may further include, before mapping an infrared image into a corresponding pseudo-color image and switching the pseudo-color image according to a mapping table corresponding to each target range and a switching mode of the mapping table:

[0078] receiving a target range selection instruction, and determining a selected target range corresponding to the target range selection instruction;

[0079] According to the mapping table corresponding to each target range and the switching mode of the mapping table, the infrared image is mapped into the corresponding pseudo-color image, which may include:

[0080] According to the mapping table corresponding to the selected target range and the switching mode of the mapping table, the infrared image is mapped into a corresponding pseudo-color image.

[0081] In the present application, if the number of determined target ranges is multiple, and the user only wants to observe one or two target ranges, but does not want to observe all target ranges, then before mapping the infrared image into the corresponding pseudo-color image and switching the pseudo-color image according to the mapping table corresponding to each target range and the switching mode of the mapping table, the user can send a target range selection instruction. Correspondingly, the image mapping device can receive the target range selection instruction and can determine the selected target range corresponding to the target range selection instruction. Then, the image mapping device can map the infrared image into the corresponding pseudo-color image according to the mapping table corresponding to the selected target range and the switching mode of the mapping table, so as to achieve the flashing and highlighting of the target in the selected target range, so as to facilitate the user to observe the target range that he wants to observe accurately, so as to improve the user experience.

[0082] An image mapping method provided by an embodiment of the present application, the color components included in the mapping table are R color component, G color component and B color component;

[0083] Alternatively, the color components included in the mapping table are a Y color component, a U color component, and a V color component.

[0084] In the present application, the various color components included in the mapping table may specifically be an R color component, a G color component, and a B color component (in this case, the color format is an RGB format).

[0085] Alternatively, the various color components included in the mapping table may specifically be a Y (brightness) color component, a U (chroma) color component, and a V (density) color component (in this case, the color format is the YUV format).

[0086] The present application also provides an image mapping device. Figure 3 , which shows a schematic diagram of the structure of an image mapping device provided in an embodiment of the present application, which may include:

[0087] The pre-determination module 31 is used to pre-determine the target range in the infrared image and establish different mapping tables corresponding to each target range; in any two mapping tables corresponding to the current target range, if the difference of at least one color component among the various color components corresponding to the current target range is greater than a threshold value, and the difference of various color components corresponding to the remaining ranges except the current target range is not greater than the threshold value, the current target range is any target range;

[0088] A setting module 32, used to set a switching mode of the mapping table corresponding to each target range;

[0089] The mapping module 33 is used to map the infrared image into a corresponding pseudo-color image and switch the pseudo-color image according to the mapping table corresponding to each target range and the switching mode of the mapping table.

[0090] An image mapping device provided by an embodiment of the present application, in each mapping table corresponding to a current target range, the value of any color component corresponding to the remaining ranges except the current target range is the same.

[0091] An image mapping device provided in an embodiment of the present application, the pre-determining module 31 may include:

[0092] The first determining unit is used to determine the target range in the infrared image according to the grayscale output range of the infrared image.

[0093] An image mapping device provided in an embodiment of the present application, the pre-determining module 31 may include:

[0094] An acquisition unit, used for acquiring a target temperature range and converting the target temperature range into a target grayscale range;

[0095] The second determining unit is used to determine the target grayscale range as the target range in the infrared image.

[0096] An image mapping device provided in an embodiment of the present application, the setting module 32 may include:

[0097] The setting unit is used to set the switching frequency and / or switching order of the mapping tables corresponding to each target range.

[0098] An image mapping device provided in an embodiment of the present application may further include:

[0099] A receiving module, used for receiving a target range selection instruction and determining a selected target range corresponding to the target range selection instruction before mapping the infrared image into a corresponding pseudo-color image and switching the pseudo-color image according to the mapping table corresponding to each target range and the switching mode of the mapping table;

[0100] The mapping module 33 may include:

[0101] The mapping unit is used to map the infrared image into a corresponding pseudo-color image according to the mapping table corresponding to the selected target range and the switching mode of the mapping table.

[0102] An image mapping device provided by an embodiment of the present application, the color components included in the mapping table are R color component, G color component and B color component;

[0103] Alternatively, the color components included in the mapping table are a Y color component, a U color component, and a V color component.

[0104] The present application also provides an image mapping device, see Figure 4 , which shows a schematic diagram of the structure of an image mapping device provided in an embodiment of the present application, which may include:

[0105] A memory 41, used for storing computer programs;

[0106] The processor 42, when used to execute the computer program stored in the memory 41, can implement the following steps:

[0107] Predetermine the target range in the infrared image, and establish different mapping tables corresponding to each target range; in any two mapping tables corresponding to the current target range, the difference of at least one color component among various color components corresponding to the current target range is greater than a threshold, and the difference of various color components corresponding to the remaining ranges except the current target range is not greater than the threshold, and the current target range is any target range; set a switching mode of the mapping tables corresponding to each target range; map the infrared image into a corresponding pseudo-color image and switch the pseudo-color image according to the mapping tables corresponding to each target range and the switching mode of the mapping tables.

[0108] The present application also provides a readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0109] Predetermine the target range in the infrared image, and establish different mapping tables corresponding to each target range; in any two mapping tables corresponding to the current target range, the difference of at least one color component among various color components corresponding to the current target range is greater than a threshold, and the difference of various color components corresponding to the remaining ranges except the current target range is not greater than the threshold, and the current target range is any target range; set a switching mode of the mapping tables corresponding to each target range; map the infrared image into a corresponding pseudo-color image and switch the pseudo-color image according to the mapping tables corresponding to each target range and the switching mode of the mapping tables.

[0110] The readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0111] The description of the relevant parts of an image mapping device, equipment and readable storage medium provided in the present application can refer to the detailed description of the corresponding parts of an image mapping method provided in an embodiment of the present application, and will not be repeated here.

[0112] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment that includes a series of elements are inherent to the elements. In the absence of more restrictions, the elements limited by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or equipment that includes the elements. In addition, the above-mentioned technical solution provided in the embodiment of the present application is consistent with the corresponding technical solution in the prior art in principle, and the part is not described in detail, so as not to repeat too much.

[0113] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An image mapping method, characterized in that: include: Predetermine the target range in the infrared image, and establish different mapping tables corresponding to each of the target ranges; In any two of the mapping tables corresponding to the current target range, the difference of at least one color component among the various color components corresponding to the current target range is greater than a threshold, and the difference of the various color components corresponding to the remaining ranges except the current target range is not greater than the threshold, and the current target range is any of the target ranges; Setting a switching mode of the mapping table corresponding to each of the target ranges; receiving a target range selection instruction, and determining a selected target range corresponding to the target range selection instruction; According to the mapping table corresponding to the selected target range and the switching mode of the mapping table, the infrared image is mapped into a corresponding pseudo-color image.

2. The image mapping method according to claim 1, characterized in that: In each of the mapping tables corresponding to the current target range, the values ​​of any color components corresponding to the remaining ranges except the current target range are the same.

3. The image mapping method according to claim 1, characterized in that: Predetermine the target range in the infrared image, including: The target range in the infrared image is determined according to the grayscale output range of the infrared image.

4. The image mapping method according to claim 1, characterized in that: Predetermine the target range in the infrared image, including: Acquire a target temperature range, and convert the target temperature range into a target grayscale range; The target grayscale range is determined as the target range in the infrared image.

5. The image mapping method according to claim 1, characterized in that: Setting a switching mode of the mapping table corresponding to each target range includes: The switching frequency and / or switching order of the mapping table corresponding to each of the target ranges is set.

6. The image mapping method according to claim 1, characterized in that: The color components included in the mapping table are R color component, G color component and B color component; Alternatively, the color components included in the mapping table are Y color component, U color component and V color component.

7. An image mapping device, characterized in that: include: A pre-determination module, used to pre-determine the target range in the infrared image and establish different mapping tables corresponding to each of the target ranges; In any two of the mapping tables corresponding to the current target range, the difference of at least one color component among the various color components corresponding to the current target range is greater than a threshold, and the difference of the various color components corresponding to the remaining ranges except the current target range is not greater than the threshold, and the current target range is any of the target ranges; A setting module, used for setting a switching mode of the mapping table corresponding to each target range; A receiving module, configured to receive a target range selection instruction and determine a selected target range corresponding to the target range selection instruction; A mapping module is used to map the infrared image into a corresponding pseudo-color image according to a mapping table corresponding to the selected target range and a switching mode of the mapping table.

8. An image mapping device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the image mapping method according to any one of claims 1 to 6 when executing the computer program.

9. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the image mapping method according to any one of claims 1 to 6 are implemented.