WO2021217642A1 - Infrared image processing method and apparatus, and movable platform - Google Patents

Infrared image processing method and apparatus, and movable platform Download PDF

Info

Publication number
WO2021217642A1
WO2021217642A1 PCT/CN2020/088469 CN2020088469W WO2021217642A1 WO 2021217642 A1 WO2021217642 A1 WO 2021217642A1 CN 2020088469 W CN2020088469 W CN 2020088469W WO 2021217642 A1 WO2021217642 A1 WO 2021217642A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel
infrared image
frequency component
gray
extraction direction
Prior art date
Application number
PCT/CN2020/088469
Other languages
French (fr)
Chinese (zh)
Inventor
张青涛
庹伟
陈星�
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2020/088469 priority Critical patent/WO2021217642A1/en
Publication of WO2021217642A1 publication Critical patent/WO2021217642A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction

Definitions

  • This application relates to the field of image processing technology, and in particular, to an infrared image processing method, device, and movable platform.
  • Infrared images collected by infrared sensors usually have relatively low resolution, narrow grayscale distribution, and contain a lot of noise, which cannot well reflect the details and contours of the imaged object.
  • the infrared image can be enhanced to make the contrast of the infrared image higher and the details and outline of the object clearer.
  • the noise of the enhanced infrared image it is easy to make the noise of the enhanced infrared image more obvious, for example, it is easy to introduce noise such as isolated points, or make the noise at the edge of the object more obvious, which affects the effect of the infrared image.
  • this application provides an infrared image processing method, device and movable platform.
  • an infrared image processing method including:
  • the low-frequency components after the stretching process and the high-frequency components after the enhancement process are combined to obtain a processed infrared image.
  • an infrared image processing device including a processor, a memory, and a computer program stored in the memory that can be executed by the processor, and the processor executes the computer The following steps are implemented during the program:
  • the low-frequency components after the stretching process and the high-frequency components after the enhancement process are combined to obtain a processed infrared image.
  • a movable platform is provided, and the movable platform includes the infrared image processing device described in the second aspect.
  • a computer-readable storage medium characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the above-mentioned first aspect is implemented.
  • the infrared image processing method is provided.
  • the low-frequency components of the infrared image and the high-frequency components in one or more extraction directions can be extracted.
  • the stretching and enhancement processing can be carried out, and for each extraction
  • the high-frequency components corresponding to the directions the corresponding gray-scale gains can be determined respectively.
  • the high-frequency components are enhanced by the determined gray-scale gains, and then the low-frequency components after stretching and the enhanced high-frequency components are merged to obtain enhancement processing After the infrared image.
  • the enhancement of the high-frequency components can be made more flexible and controllable, avoiding the tangent direction of the object edge during the infrared image enhancement process The noise is more obvious, thereby enhancing the effect of infrared image processing.
  • FIG. 1 is a schematic diagram of the normal direction and the tangent direction of the edge of an object according to an embodiment of the present application.
  • Fig. 2 is a flowchart of an infrared image processing method according to an embodiment of the present application.
  • Fig. 3 is a schematic diagram of an infrared image processing method according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of the extraction direction of high-frequency components according to an embodiment of the present application.
  • Fig. 5 is a schematic diagram of determining the extraction direction of a pixel according to an embodiment of the present application.
  • Fig. 6 is a schematic diagram of an infrared image processing method according to an embodiment of the present application.
  • Fig. 7 is a schematic diagram of the logical structure of an infrared image processing device according to an embodiment of the present application.
  • the infrared image collected by the infrared sensor has a low resolution, a narrow grayscale distribution and a large amount of noise, which cannot well reflect the details and contours of the imaged object. Therefore, it is necessary to perform enhancement processing on the collected original infrared image, improve the contrast of the infrared image, and enhance the gray scale of the edges and details of the object in the infrared image, so that the details and outline of the object are clearer.
  • the infrared image when the infrared image is enhanced, various noises are easily enhanced, making the noise of the enhanced infrared image more obvious, and in the process of enhancement processing, it is easy to introduce noise such as isolated points, or make
  • the noise in the tangential direction of the edge of the object is enhanced, which affects the effect of the infrared image.
  • the black line in the image is the edge of the object
  • the tangent direction of the edge (the dotted line in the figure is the normal direction of the line, and the tangent direction is the direction of the line Coincidence) is easy to introduce noise, making the noise in the tangent direction of the edge too obvious.
  • FIG. 2 it is a flowchart of the infrared image processing method, and the method includes the following steps:
  • S202 Extract low-frequency components of the infrared image to be processed and high-frequency components corresponding to the infrared image to be processed in one or more extraction directions;
  • S204 Determine the gray-scale gain of the high-frequency component corresponding to each of the extraction directions, and perform enhancement processing on the high-frequency component according to the gray-scale gain;
  • Fig. 3 is a schematic diagram of the infrared image processing method, in which multiple extraction directions are taken as an example. Since noise, edges or details of objects are parts of the image where the gray level changes more drastically, they are mostly concentrated in the high-frequency components of the infrared image, while the background area and flat area in the infrared image are the parts where the gray level changes relatively smoothly. Therefore, it is mostly concentrated on the low-frequency components of the infrared image. Therefore, the low-frequency component and high-frequency component of the infrared image to be processed can be extracted, and processed according to the characteristics of the low-frequency component and the high-frequency component respectively.
  • the extraction of high-frequency components and low-frequency components in infrared images can use general image high-low-frequency component extraction methods, for example, the infrared image can be Fourier transformed to obtain the spectrogram of the infrared image, and the high frequency can be determined based on the spectrogram. Frequency components and low frequency components.
  • a high-pass filter can also be used to extract the high-frequency part, and a low-pass filter can be used to extract the low-frequency part.
  • the filter can be a general-purpose filter or can be designed by itself.
  • the low-frequency components since they are the parts that change smoothly in the image, the extraction direction can be ignored and the omnidirectional extraction can be directly performed when extracting.
  • the low-frequency components in order to perform more precise and detailed processing on the infrared image, when extracting low-frequency components, it is also possible to extract from multiple extraction directions.
  • the low-frequency components can be subjected to contrast stretching processing to enhance the contrast of the low-frequency components and make the infrared image more vivid.
  • the low-frequency component can be improved by adaptive contrast stretching or histogram equalization to achieve the stretching and enhancement of the low-frequency component.
  • the high-frequency components mainly correspond to the parts that change drastically in the image, mainly noise, the edges of objects, and so on.
  • the process of sharpening and enhancing the edge of the object it is easy to enhance the noise in the tangent direction of the object edge, or generate noise such as isolated points. Therefore, when extracting the high-frequency components of the infrared image, you can extract the corresponding high in one or more extraction directions.
  • Frequency components and then determine the respective gray gains for the high-frequency components of each extraction direction.
  • Figure 3 shows an example of multiple extraction directions. Different directions can be extracted, such as direction 1, direction 2, and direction 3.
  • the gray gain can be flexibly adjusted. For example, the gray gain in the edge tangent direction can be smaller, and the normal gray gain can be larger to avoid noise in the edge tangent direction.
  • the gray-scale gain can be controlled in combination with various factors, so that the enhancement of the high-frequency component is more flexible and controllable, and a better enhancement effect can be achieved.
  • the low-frequency and high-frequency components of the infrared image can be extracted separately, and the low-frequency components can be subjected to contrast stretching processing.
  • the high-frequency components one or more Extract the high-frequency components in the extraction direction, and determine the corresponding gray-scale gain for the high-frequency components in each extraction direction, so that the gray-scale gain in each extraction direction is more flexible and controllable, and can avoid the infrared image noise after the enhancement process For more obvious problems, improve the treatment effect.
  • the infrared image in order to avoid increasing the noise during the infrared image enhancement process, making the noise more obvious, therefore, before the infrared image is enhanced, the infrared image can be denoised first to remove the noise.
  • the infrared image can be denoised first to remove the noise.
  • the part with sharp gray changes in the infrared image may be noise, or it may be the edge of the object
  • noise is often the most drastically changed part of the image, followed by the edges and details of the object in the image, and then the image in the image. Background and flat area.
  • two different high-pass components can be used when extracting high-frequency components.
  • the filter extracts the high-frequency components in the infrared image to obtain the first high-frequency component and the second high-frequency component.
  • the gray scale change degree of the image corresponding to the first high-frequency component is greater than that of the image corresponding to the second high-frequency component.
  • the degree of grayscale change that is to say, the first high-frequency component corresponds to the most severely changed part of the image, this part is likely to be noise, and the second high-frequency component corresponds to the more severely changed part of the image , This part is basically the edge or detail of the object.
  • the first high-frequency component and the second high-frequency component can be processed separately, and the gain of the first high-frequency component can be determined separately, which will be referred to as Is the first gray-scale gain and the gain of the second high-frequency component, hereinafter referred to as the second gray-scale gain, where the first gray-scale gain is smaller than the second gray-scale gain.
  • the extraction direction of the high-frequency components of the infrared image may be one or more preset directions, for example, it may be omnidirectional extraction, or it may be preset 2, 4, 8 or more. Multi-direction, taking 4 directions as an example, it can be horizontal direction, vertical direction, 45 angle direction and 135° angle direction. Then the template corresponding to each direction is used to extract the high-frequency components.
  • the extraction direction can also be determined in combination with the grayscale characteristics of each pixel of the infrared image, and the direction with a sharper grayscale change is selected as the extraction direction.
  • the degree of grayscale change corresponding to each pixel of the infrared image in multiple directions can be determined separately, and then the extraction direction can be selected from the multiple directions according to the degree of grayscale change corresponding to each pixel in these multiple directions.
  • the gray scale change degree of the pixel point P0 in the eight directions from direction 1 to direction 8 can be determined, and then the gray scale change degree in these eight directions can be changed from The extraction direction is determined among these 8 directions.
  • the directions shown in FIG. 4 are only illustrative examples. In practical applications, the number and angles of the multiple directions can be flexibly set according to requirements.
  • the degree of grayscale change can be characterized by the gradient of each pixel in these multiple directions, or the grayscale of each pixel and the pixel's neighboring pixels in these multiple directions. Characterization of the variance of the grayscale. Of course, it can also be other parameters that can indicate the degree of change in the gray level of the pixel, which is not limited here.
  • the direction with the largest degree of grayscale change among the multiple directions can be selected as the extraction direction of the pixel, or One or more directions in which the gray level change degree is greater than a preset threshold value are selected as the extraction direction.
  • the degree determines the extraction direction of the pixel.
  • the extraction direction of adjacent pixels of P0 (the gray pixel in the figure, the arrow indicates the extraction direction) can be determined first, and then combined with P0 in all directions
  • the degree of gray level change and the extraction direction of adjacent pixels determine the extraction direction of P0. Assuming that among the 8 adjacent pixels, the extraction direction of 6 pixels is the horizontal direction, and the other two are 45° angle directions. The probability that the extraction direction of P0 is the horizontal direction is also relatively high. Therefore, the adjacent pixels can be considered comprehensively.
  • the extraction direction of the pixel and the degree of gray change of P0 in each direction are combined with the above two factors to determine the extraction direction.
  • the degree of grayscale change corresponding to the pixel point P0 in the direction 1 to the direction 8 assuming that they are R1-R8, and then determine the difference between R1 and R2-R7. If the difference is relatively large, indicate the direction 1. The probability of a direction that changes more drastically is greater, so the confidence of direction 1 is higher.
  • the difference is small, it means that the probability of direction 1 being a more drastically changing direction is small, so the confidence of direction 1 is small, and then the direction with the greatest confidence can be selected as the extraction direction, or the direction with the confidence greater than a certain threshold can be selected. As the extraction direction.
  • the degree of grayscale change of each pixel in all directions, the extraction direction of neighboring pixels of each pixel, and the gray change of each pixel in all directions can also be integrated.
  • the difference between the degree and the degree of gray change in the other directions comprehensively determines the confidence of each direction, and then selects the extraction direction from multiple directions according to the determined confidence.
  • each image when extracting low-frequency components and high-frequency components in an infrared image, each image can be divided into multiple image blocks, and the high-frequency components and low-frequency components can be extracted in units of image blocks. .
  • the high-frequency components of each pixel are enhanced according to the gray gains of the high-frequency components corresponding to each pixel in each extraction direction, and then the high-frequency components in each extraction direction are enhanced.
  • the frequency components are fused to obtain the high frequency components of each pixel after the enhancement processing.
  • the magnitude of the gray scale gain of the high frequency component corresponding to each pixel point in each extraction direction can be manually controlled or adjusted.
  • the gray-scale gain of the high-frequency component corresponding to each extraction direction can be determined according to the corresponding confidence of each extraction direction, where the confidence can indicate that the direction is an edge The probability of the normal direction, or the probability that this direction is the direction with the most dramatic gray-scale change.
  • the confidence level can be determined based on the difference between the gray level change degree of each pixel in the extraction direction and the gray level change degree in other multiple directions. The greater the difference, the higher the confidence level.
  • the gray-scale gain of the high-frequency components corresponding to each extraction direction can be determined according to the confidence. The greater the confidence, the higher the probability that the extraction direction is the edge normal direction. Therefore, its The gray scale gain can be as large as possible, and vice versa, the gray scale gain is as small as possible.
  • the high-frequency components in each extraction direction can also be determined according to one or more of the following information Corresponding gray-scale gain: the characteristic of the pixel itself, the characteristic of the neighborhood of the pixel, the characteristic of the infrared image, and the extraction information of the high-frequency component of the pixel.
  • the gray scale gain of the high-frequency components of each pixel can be adjusted according to its own characteristics.
  • the characteristics of each pixel include: the brightness of each pixel, the position distribution of each pixel in the infrared image, and / Or the maximum brightness change threshold of each pixel.
  • the gray scale gain can be appropriately set to be smaller to prevent the pixel from being too bright after being enhanced.
  • the gray scale gain can be appropriately set to be larger.
  • the position distribution of pixels in the infrared image can also be used to determine its gray-scale gain. For example, the corners of the image have strong noise and have a pot-lid effect.
  • the gray gain can be appropriately smaller.
  • the maximum brightness change threshold value of each pixel point after enhancement can also be preset. After the pixel point is enhanced, the brightness change cannot exceed the maximum brightness threshold value.
  • the maximum change threshold is used to adjust the grayscale gain of the high-frequency components of each pixel.
  • the gray gain of high-frequency components can be adjusted according to the characteristics of the neighborhood of each pixel.
  • the neighborhood characteristics of the pixel include: the brightness of the neighborhood of each pixel, and the neighborhood of each pixel. Whether the domain is the user's region of interest, the amount of horizontal stripe noise contained in the neighborhood of each pixel, the signal-to-noise ratio of the neighborhood of each pixel, and/or whether there are thick edges in the neighborhood of each pixel. For example, for pixels located in the bright, gray, and dark areas of the image, you can adjust the gray gain of their high-frequency components separately to prevent the dark areas from being too noisy, and the bright areas are too sharp to cause black and white edge defects obvious.
  • the gray gain can be increased appropriately to make the details more obvious.
  • the gray gain can be increased appropriately.
  • the gray gain can be appropriately reduced.
  • the gradient of each pixel in the neighborhood of the pixel can be determined, and whether there is a black border around it is determined according to the gradient of each pixel in the neighborhood.
  • the range of the neighborhood can be set by yourself. In some embodiments, in order to reduce the amount of calculation and save processing resources, when detecting whether there are thick edges in the neighborhood, you can also downsample the image first, and then determine the pixel based on the downsampled image Whether there are rough edges around. After the down-sampling process, the range of the neighborhood can be appropriately reduced.
  • the gray gain of the high frequency components of each pixel can be adjusted according to the characteristics of the infrared image.
  • the characteristics of the infrared image include: the purpose of the infrared image, the collection time of the infrared image, the collection mode of the infrared image, and / Or the subsequent processing operation corresponding to the infrared image.
  • the temperature linear correlation of infrared images is required in such scenes, so that high-temperature areas are easier to find, so the grayscale of high-frequency components of pixels can be appropriately reduced. Gain, weaken the degree of sharpening, and prevent misjudgment caused by sharpening.
  • the image details are required to be stronger, and the sharpness requirements are high, so the grayscale gain of the high-frequency components of the pixels can be appropriately larger.
  • the grayscale gain can also be determined by combining the infrared image acquisition time and the acquisition mode. For example, for the infrared image acquired after the shutter is opened for a long time, the grayscale gain can be appropriately reduced, and the noise can be reduced by reducing the sharpness. The infrared image collected when the shutter is opened can appropriately enhance its gray gain.
  • infrared sensors are divided into low-gain mode and high-gain mode.
  • the low-gain mode has low signal-to-noise ratio and large noise, so the gray scale gain can be appropriately small to avoid excessive noise, and the high-gain mode has a high signal-to-noise ratio.
  • the gray scale gain can be larger.
  • the gray-scale gain of the high-frequency component of each pixel can be adjusted according to the extraction information of the high-frequency component of the pixel.
  • the extraction information of the high-frequency component of the pixel includes the extraction of the high-frequency component of the pixel.
  • the absolute value of the output result of the direction and/or filter for each pixel For example, if the extraction direction is the direction in which the gray level changes most drastically, the gray level gain can be appropriately larger, and if it is omnidirectional extraction, the gray level gain can be appropriately smaller.
  • the absolute value of the output result of each pixel can also be adjusted according to the high-pass filter (HPF). When the absolute value of the output result of the HPF is large, the gray scale gain can be smaller to prevent excessive Sharpening produces black and white edges.
  • the original infrared image collected by the infrared sensor has a narrow grayscale distribution, low contrast, and unclear details, it can be enhanced to improve the contrast of the infrared image, and sharpen the edges and details to obtain details Clear infrared image.
  • the following provides an infrared image processing method.
  • FIG. 6 it is a schematic diagram of the infrared image processing method of this application.
  • the infrared image to be processed After acquiring the infrared image to be processed, it can be denoised first to remove various noises. Then through the pre-designed high-pass filter (HPF), mid-pass filter (Migh-pass filter, MPF), low-pass filter (Ligh-pass filter, LPF) to extract each pixel of the infrared image The high-frequency component, intermediate-frequency component and low-frequency component.
  • HPF high-pass filter
  • MPF mid-pass filter
  • LPF low-pass filter
  • the multiple extraction directions can be preset multiple directions, assuming that they are omnidirectional, horizontal, vertical, 45° angular direction, 135° angular direction, and each extraction direction corresponds to a template, and the template is used to extract The medium and high frequency components of each pixel in the corresponding extraction direction.
  • the confidence level of the extraction direction corresponding to each pixel can be determined in advance.
  • the gradient or gray-scale variance of each pixel in the multiple extraction directions can be determined, and then each pixel can be determined. The difference between the gradient or variance of the extraction direction and the gradient or variance of other extraction directions.
  • the extraction direction of the neighboring pixels of the pixel can also be determined, and the gradient or variance of each pixel in each extraction direction can be integrated.
  • the difference between the gradient or variance of the direction and the gradient or variance of other extraction directions, and the extraction direction of the neighboring pixels of the pixel can determine the confidence of each pixel in each direction. The greater the confidence, the extraction The greater the probability that the direction is the normal direction of the edge.
  • the gray-scale gains of the medium and high-frequency components corresponding to each extraction direction are as follows:
  • the high frequency component may be noise, and the intermediate frequency component is basically the edge details of the object. Therefore, the gray-scale gain of high-frequency components should be appropriately suppressed to avoid obvious noise.
  • the gray gain of the intermediate frequency components should be as large as possible to highlight the details.
  • the gray gain should be as small as possible to avoid enhancing the noise.
  • the area where the pixel is located is bright, there are thick edges around the pixel, and the pixel is located at the corner position, the gray gain should be as small as possible to avoid over-sharpening or black and white edges.
  • the gray scale gain can be adjusted in combination with the application scene of the infrared image, and the gray scale gain can be larger for scenes that require higher details.
  • the gray gain of the infrared image in the high gain mode can be larger, and the gray gain of the infrared image in the low gain mode can be smaller. If the infrared image needs to be compressed and encoded later, in order to save storage space and reduce the transmission bandwidth, the gray scale gain can also be appropriately smaller.
  • a maximum grayscale change threshold can be set for each pixel, and the finally enhanced grayscale cannot exceed the maximum change threshold to avoid excessive enhancement. Therefore, the grayscale gain can be adjusted in conjunction with the maximum grayscale change threshold.
  • the determined gray-scale gains can be used to enhance the mid- and high-frequency components, and then the enhanced high-frequency components in each extraction direction of each pixel are merged.
  • the high frequency component of the pixel and fuse the enhanced intermediate frequency components in each extraction direction of each pixel to obtain the intermediate frequency component of the pixel.
  • the low-frequency component of each pixel it can be adaptively stretched and enhanced to improve image contrast. Then, the enhanced high-frequency components, low-frequency components of each pixel and the low-frequency components after stretching are merged to obtain the enhanced gray scale of each pixel, and then the enhanced infrared image can be obtained.
  • the gray scale gain can be controlled and adjusted manually, which is more flexible.
  • high-frequency components which may be noise, it should be suppressed.
  • intermediate-frequency components which are mainly the edges and details of objects, the gray gain should be appropriately increased to highlight the details.
  • the gray gain can be determined based on the confidence of the extraction direction to ensure that the edge part is enhanced along the normal direction of the edge part as much as possible to avoid edge tangent direction noise obvious.
  • the present application also provides an infrared image processing device.
  • the device includes a processor 71, a memory 72, and a computer program stored on the memory 72 that can be executed by the processor 71, When the processor 71 executes the computer program, the following steps are implemented:
  • the low-frequency components after the stretching process and the high-frequency components after the enhancement process are combined to obtain a processed infrared image.
  • the extraction direction is determined in the following manner:
  • the extraction direction of each pixel point is determined from the multiple directions based on the degree of grayscale change.
  • the processor when the processor is configured to determine the extraction direction of each pixel from the multiple directions based on the degree of grayscale change, it is specifically configured to:
  • the extraction direction is determined from the multiple directions based on the confidence.
  • the processor when the processor is configured to determine the extraction direction of each pixel from the multiple directions based on the degree of grayscale change, it is specifically configured to:
  • the extraction direction is determined from the multiple directions according to the extraction direction of the adjacent pixel points and the degree of grayscale change.
  • the degree of grayscale change is characterized by the following parameters:
  • the gradient of the pixel in multiple directions or
  • the processor is configured to determine the gray-scale gain of the high-frequency component corresponding to each of the extraction directions, and when performing enhancement processing on the high-frequency component according to the gray-scale gain, it is specifically used for:
  • the high-frequency component of each pixel is enhanced based on the gray scale gain of the high-frequency component corresponding to each pixel in the extraction direction to obtain the high-frequency component of each pixel after the enhancement processing.
  • the gray scale gain of the high frequency component corresponding to each pixel point in each extraction direction is adjustable.
  • the gray-scale gain of the high-frequency components corresponding to each pixel in each extraction direction is determined based on one or more of the following information: the characteristics of the pixel itself, the neighbors of the pixel The characteristics of the domain, the characteristics of the infrared image, and the extraction information of the high-frequency components of the pixels.
  • the characteristics of the pixel point itself include: the brightness of the pixel point, the position distribution of the pixel point in the infrared image, and/or the maximum brightness change threshold of the pixel point.
  • the neighborhood characteristics of the pixel point include: the brightness of the neighborhood, whether the neighborhood is a user region of interest, the amount of horizontal stripe noise contained in the neighborhood, and the neighborhood The signal-to-noise ratio and/or whether there are thick edges in the neighborhood.
  • whether there are thick edges in the neighborhood is determined by the following methods:
  • the characteristics of the infrared image include: use of the infrared image, acquisition time of the infrared image, acquisition mode of the infrared image, and/or subsequent processing operations corresponding to the infrared image.
  • the extraction information of the high-frequency component of the pixel point includes: an extraction direction of the high-frequency component of the pixel point and/or an extraction frequency threshold of the high-frequency component.
  • the processor when used to determine the gray scale gain of the high-frequency component corresponding to each of the extraction directions, it is specifically used to:
  • the gray-scale gain of the high-frequency component in the extraction direction is determined based on the confidence.
  • the high-frequency component includes a first high-frequency component and a second high-frequency component, and the grayscale change degree of the image corresponding to the first high-frequency component is greater than that of the second high-frequency component.
  • the degree of grayscale change of the image is greater than that of the second high-frequency component.
  • the determining the gray scale gain of the high-frequency component corresponding to the extraction direction includes:
  • the infrared image to be processed is an infrared image after denoising processing.
  • the infrared image processing device further includes an infrared sensor for collecting infrared images.
  • the infrared image processing device may be an infrared camera, for example.
  • the infrared processing device mentioned in this application can be used in power inspection, industry inspection and other fields.
  • this application also provides a movable platform
  • the movable platform may be an unmanned aerial vehicle, an unmanned boat, an unmanned car, etc.
  • the movable platform includes the infrared image processing described in the above embodiments Device.
  • the drones can be equipped with infrared sensors and the above-mentioned infrared image processing devices for performing tasks such as temperature measurement, power inspection, and monitoring.
  • an embodiment of this specification also provides a computer storage medium in which a program is stored, and the program is executed by a processor to implement the infrared image processing method in any of the above embodiments.
  • the embodiments of this specification may adopt the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program codes.
  • Computer usable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory or other memory technology
  • CD-ROM compact disc
  • DVD digital versatile disc
  • Magnetic cassettes magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
  • the relevant part can refer to the part of the description of the method embodiment.
  • the device embodiments described above are merely illustrative.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units.
  • Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments. Those of ordinary skill in the art can understand and implement without creative work.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

An infrared image processing method and apparatus, and a movable platform. The method comprises: extracting low-frequency components of an infrared image to be processed and corresponding high-frequency components of said infrared image in one or more extraction directions; determining grayscale gains of respective corresponding high-frequency components in the extraction directions, and performing enhancement processing on the high-frequency components according to the grayscale gains; performing contrast stretching processing on the low-frequency components; and fusing the low-frequency components subjected to the stretching processing and the high-frequency components subjected to the enhancement processing to obtain a processed infrared image. High-frequency components in different directions are extracted, and then grayscale gains of the high-frequency components in all the extraction directions are respectively determined, thereby making the enhancement of the high-frequency components more flexible and controllable, avoiding making the noise in the tangent direction of an edge more obvious in an infrared image enhancement process, and improving the infrared image processing effect.

Description

红外图像处理方法、装置及可移动平台Infrared image processing method, device and movable platform 技术领域Technical field
本申请涉及图像处理技术领域,具体而言,涉及一种红外图像处理方法、装置及可移动平台。This application relates to the field of image processing technology, and in particular, to an infrared image processing method, device, and movable platform.
背景技术Background technique
红外传感器采集的红外图像通常分辨率比较低、灰度分布较窄且包含大量的噪声,不能很好的体现成像物体的细节和轮廓。为了更好的展示成像物体的细节,便于后续的应用和观瞄,可以对红外图像进行增强处理,使得红外图像的对比度更高,物体的细节和轮廓更加清晰。然而,在对红外图像进行增强处理时,容易使得增强处理后的红外图像的噪声更加明显,比如,容易引入孤立点等噪声,或者使得物体边缘的噪声更明显,影响红外图像的效果。Infrared images collected by infrared sensors usually have relatively low resolution, narrow grayscale distribution, and contain a lot of noise, which cannot well reflect the details and contours of the imaged object. In order to better display the details of the imaged object and facilitate subsequent applications and sightings, the infrared image can be enhanced to make the contrast of the infrared image higher and the details and outline of the object clearer. However, when the infrared image is enhanced, it is easy to make the noise of the enhanced infrared image more obvious, for example, it is easy to introduce noise such as isolated points, or make the noise at the edge of the object more obvious, which affects the effect of the infrared image.
发明内容Summary of the invention
有鉴于此,本申请提供一种红外图像处理方法、装置及可移动平台。In view of this, this application provides an infrared image processing method, device and movable platform.
根据本申请的第一方面,提供一种红外图像处理方法,所述方法包括:According to the first aspect of the present application, there is provided an infrared image processing method, the method including:
提取待处理红外图像的低频成分以及所述待处理红外图像在一个或多个提取方向上对应的高频成分;Extracting low-frequency components of the infrared image to be processed and corresponding high-frequency components of the infrared image to be processed in one or more extraction directions;
确定所述提取方向各自对应的高频成分的灰度增益,并根据所述灰度增益对所述高频成分进行增强处理;Determining the gray-scale gain of the high-frequency component corresponding to each of the extraction directions, and performing enhancement processing on the high-frequency component according to the gray-scale gain;
对所述低频成分进行对比度拉伸处理;Performing contrast stretching processing on the low-frequency components;
融合拉伸处理后的低频成分以及增强处理后的高频成分,得到处理后的红外图像。The low-frequency components after the stretching process and the high-frequency components after the enhancement process are combined to obtain a processed infrared image.
根据本申请的第二方面,提供一种红外图像处理装置,所述装置包括 处理器、存储器、存储在所述存储器上可被所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:According to a second aspect of the present application, there is provided an infrared image processing device, the device including a processor, a memory, and a computer program stored in the memory that can be executed by the processor, and the processor executes the computer The following steps are implemented during the program:
提取待处理红外图像的低频成分以及所述待处理红外图像在一个或多个提取方向上对应的高频成分;Extracting low-frequency components of the infrared image to be processed and corresponding high-frequency components of the infrared image to be processed in one or more extraction directions;
确定所述提取方向各自对应的高频成分的灰度增益,并根据所述灰度增益对所述高频成分进行增强处理;Determining the gray-scale gain of the high-frequency component corresponding to each of the extraction directions, and performing enhancement processing on the high-frequency component according to the gray-scale gain;
对所述低频成分进行对比度拉伸处理;Performing contrast stretching processing on the low-frequency components;
融合拉伸处理后的低频成分以及增强处理后的高频成分,得到处理后的红外图像。The low-frequency components after the stretching process and the high-frequency components after the enhancement process are combined to obtain a processed infrared image.
根据本申请的第三方面,提供一种可移动平台,所述可移动平台包括上述第二方面所述的红外图像处理装置。According to a third aspect of the present application, a movable platform is provided, and the movable platform includes the infrared image processing device described in the second aspect.
根据本申请的第四方面,提供一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面所述的红外图像处理方法。According to a fourth aspect of the present application, there is provided a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the above-mentioned first aspect is implemented. The infrared image processing method.
应用本申请提供的方案,在对红外图像进行增强处理时,可以提取红外图像的低频成分以及在一个或多个提取方向的高频成分,针对低频成分,可以进行拉伸增强处理,针对各提取方向对应的高频成分,可以分别确定各自对应的灰度增益,通过确定的灰度增益对各高频成分增强,然后融合拉伸处理后的低频成分和增强后的高频成分,得到增强处理后的红外图像。通过对高频成分分方向提取,然后分别确定各提取方向的高频成分的灰度增益,可以使高频成分的增强更加灵活可控,避免在对红外图像增强过程中,使得物体边缘切线方向的噪声更加明显,从而提升红外图像处理效果。Applying the solution provided by this application, when the infrared image is enhanced, the low-frequency components of the infrared image and the high-frequency components in one or more extraction directions can be extracted. For the low-frequency components, the stretching and enhancement processing can be carried out, and for each extraction For the high-frequency components corresponding to the directions, the corresponding gray-scale gains can be determined respectively. The high-frequency components are enhanced by the determined gray-scale gains, and then the low-frequency components after stretching and the enhanced high-frequency components are merged to obtain enhancement processing After the infrared image. By extracting the high-frequency components in different directions, and then separately determining the gray gains of the high-frequency components in each extraction direction, the enhancement of the high-frequency components can be made more flexible and controllable, avoiding the tangent direction of the object edge during the infrared image enhancement process The noise is more obvious, thereby enhancing the effect of infrared image processing.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述 中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained from these drawings without creative labor.
图1是本申请一个实施例的物体边缘法线方向和切线方向的示意图。FIG. 1 is a schematic diagram of the normal direction and the tangent direction of the edge of an object according to an embodiment of the present application.
图2是本申请一个实施例的红外图像处理方法的流程图。Fig. 2 is a flowchart of an infrared image processing method according to an embodiment of the present application.
图3是本申请一个实施例的红外图像处理方法的示意图。Fig. 3 is a schematic diagram of an infrared image processing method according to an embodiment of the present application.
图4是本申请一个实施例的高频成分提取方向示意图。FIG. 4 is a schematic diagram of the extraction direction of high-frequency components according to an embodiment of the present application.
图5是本申请一个实施例的确定像素点的提取方向的示意图。Fig. 5 is a schematic diagram of determining the extraction direction of a pixel according to an embodiment of the present application.
图6是本申请一个实施例的红外图像处理方法示意图。Fig. 6 is a schematic diagram of an infrared image processing method according to an embodiment of the present application.
图7是本申请一个实施例的红外图像处理装置的逻辑结构示意图。Fig. 7 is a schematic diagram of the logical structure of an infrared image processing device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with 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 this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
一般而言,红外传感器采集的红外图像分辨率较低、灰度分布较窄且包含大量的噪声,不能很好的体现成像物体的细节和轮廓。因而需要对采集的原始红外图像进行增强处理,提升红外图像的对比度,并且对红外图像中物体边缘和细节的灰度进行增强,使得物体的细节和轮廓更加清晰。然而,在对红外图像增进行增强处理时,各种噪声也容易被增强,使得增强处理后的红外图像的噪声更加明显,并且,在增强处理的过程中,容易引入孤立点等噪声,或者使得物体边缘切线方向的噪声增强,影响红外图像的效果。举个例子,如图1所示,假设图像中黑色的直线为物体边缘,在对该边缘进行增强时,该边缘的切线方向(图中虚线为该直线法线方向,切线方向与该直线方向重合)容易引入噪声,使得边缘切线方向的噪声过 于明显。Generally speaking, the infrared image collected by the infrared sensor has a low resolution, a narrow grayscale distribution and a large amount of noise, which cannot well reflect the details and contours of the imaged object. Therefore, it is necessary to perform enhancement processing on the collected original infrared image, improve the contrast of the infrared image, and enhance the gray scale of the edges and details of the object in the infrared image, so that the details and outline of the object are clearer. However, when the infrared image is enhanced, various noises are easily enhanced, making the noise of the enhanced infrared image more obvious, and in the process of enhancement processing, it is easy to introduce noise such as isolated points, or make The noise in the tangential direction of the edge of the object is enhanced, which affects the effect of the infrared image. For example, as shown in Figure 1, assuming that the black line in the image is the edge of the object, when the edge is enhanced, the tangent direction of the edge (the dotted line in the figure is the normal direction of the line, and the tangent direction is the direction of the line Coincidence) is easy to introduce noise, making the noise in the tangent direction of the edge too obvious.
基于此,本申请提供了一种红外图像处理方法,以下结合图2和图3对该红外图处理方法进行介绍。如图2所示,为该红外图像处理方法的流程图,所述方法包括以下步骤:Based on this, the present application provides an infrared image processing method, and the infrared image processing method will be introduced below in conjunction with FIG. 2 and FIG. 3. As shown in FIG. 2, it is a flowchart of the infrared image processing method, and the method includes the following steps:
S202、提取待处理红外图像的低频成分以及所述待处理红外图像在一个或多个提取方向上对应的高频成分;S202: Extract low-frequency components of the infrared image to be processed and high-frequency components corresponding to the infrared image to be processed in one or more extraction directions;
S204、确定所述提取方向各自对应的高频成分的灰度增益,并根据所述灰度增益对所述高频成分进行增强处理;S204: Determine the gray-scale gain of the high-frequency component corresponding to each of the extraction directions, and perform enhancement processing on the high-frequency component according to the gray-scale gain;
S206、对所述低频成分进行对比度拉伸处理;S206: Perform contrast stretching processing on the low-frequency component;
S208、融合拉伸处理后的低频成分以及增强处理后的高频成分,得到处理后的红外图像。S208: Fusion the low frequency components after the stretching process and the high frequency components after the enhancement process to obtain a processed infrared image.
图3为该红外图像处理方法的示意图,图中以多个提取方向作为示例。由于噪声、物体的边缘或细节为图像中灰度变化比较剧烈的部分,因此,多集中在红外图像的高频成分,而红外图像中的背景区域、平坦区域为灰度变化比较平缓的部分,因而,多集中在红外图像的低频成分。因此,可以提取待处理红外图像的低频成分和高频成分,分别根据低频成分和高频成分的特点对其进行处理。其中,对红外图像中的高频成分和低频成分的提取可以采用通用的图像高低频成分提取方法,比如可以通过对红外图像进行傅里叶变换,得到红外图像的频谱图,基于频谱图确定高频成分和低频成分。当然,在某些实施例中,也可以通过高通滤波器来提取高频部分,低通滤波器提取低频部分,其中,滤波器可以采用通用的滤波器,也可以自行设计。Fig. 3 is a schematic diagram of the infrared image processing method, in which multiple extraction directions are taken as an example. Since noise, edges or details of objects are parts of the image where the gray level changes more drastically, they are mostly concentrated in the high-frequency components of the infrared image, while the background area and flat area in the infrared image are the parts where the gray level changes relatively smoothly. Therefore, it is mostly concentrated on the low-frequency components of the infrared image. Therefore, the low-frequency component and high-frequency component of the infrared image to be processed can be extracted, and processed according to the characteristics of the low-frequency component and the high-frequency component respectively. Among them, the extraction of high-frequency components and low-frequency components in infrared images can use general image high-low-frequency component extraction methods, for example, the infrared image can be Fourier transformed to obtain the spectrogram of the infrared image, and the high frequency can be determined based on the spectrogram. Frequency components and low frequency components. Of course, in some embodiments, a high-pass filter can also be used to extract the high-frequency part, and a low-pass filter can be used to extract the low-frequency part. The filter can be a general-purpose filter or can be designed by itself.
对于低频成分,由于其为图像中变化平缓的部分,因此,在提取时可以不考虑提取方向,直接全向提取。当然,在某些实施例中,为了对红外图像进行更加精确和细节化的处理,在提取低频成分时,也可以从多个提取方向进行提取。在提取出低频成分后,可以对低频成分进行对比度拉伸处理,以增强低频成分的对比度,使得红外图像更加鲜明。其中,低频成 分可以通过自适应的对比度拉伸或者直方图均衡化来提升其对比度,以实现对低频成分的拉伸增强。As for the low-frequency components, since they are the parts that change smoothly in the image, the extraction direction can be ignored and the omnidirectional extraction can be directly performed when extracting. Of course, in some embodiments, in order to perform more precise and detailed processing on the infrared image, when extracting low-frequency components, it is also possible to extract from multiple extraction directions. After extracting the low-frequency components, the low-frequency components can be subjected to contrast stretching processing to enhance the contrast of the low-frequency components and make the infrared image more vivid. Among them, the low-frequency component can be improved by adaptive contrast stretching or histogram equalization to achieve the stretching and enhancement of the low-frequency component.
对于高频成分,由于高频成分对应的主要是图像中变化剧烈的部分,主要为噪声、物体的边缘等。在对物体边缘锐化增强的过程中,容易增强物体边缘切线方向的噪声,或者产生孤立点等噪声,因此,在提取红外图像高频成分时,可以提取一个或者多个提取方向上对应的高频成分,然后针对每个提取方向的高频成分分别确定各自的灰度增益,如图3示出了多个提取方向的例子,可以提取不同方向,如方向1、方向2、方向3对应的高频成分,然后确定方向1对应的高频成分的灰度增益1,方向2对应的高频成分的灰度增益2,方向3对应的高频成分的灰度增益3,分别采用各自的灰度增益对各提取方向上的高频成分进行增强,然后将各方向上增强后的高频成分融合,得到红外图像增强处理后的高频成分。针对不同的提取方向的高频成分,其灰度增益可以灵活调控,比如,边缘切线方向灰度增益可以小一些,法线方向灰度增益可以大一些,避免边缘切线方向产生噪声。当然,在某些实施例中,也可以直接确定一个最佳提取方向,比如边缘法线的方向,然后基于确定的最佳提取方向提取高频成分。另外,对于高频部分,可以结合多方面的因素有针对性地控制其灰度增益,使得高频成分的增强更加灵活和可控,达到更好的增强效果。For high-frequency components, the high-frequency components mainly correspond to the parts that change drastically in the image, mainly noise, the edges of objects, and so on. In the process of sharpening and enhancing the edge of the object, it is easy to enhance the noise in the tangent direction of the object edge, or generate noise such as isolated points. Therefore, when extracting the high-frequency components of the infrared image, you can extract the corresponding high in one or more extraction directions. Frequency components, and then determine the respective gray gains for the high-frequency components of each extraction direction. Figure 3 shows an example of multiple extraction directions. Different directions can be extracted, such as direction 1, direction 2, and direction 3. High-frequency components, and then determine the gray gain 1 of the high-frequency components corresponding to direction 1, the gray gain 2 of the high-frequency components corresponding to the direction 2, and the gray gain 3 of the high-frequency components corresponding to the direction 3. The degree gain enhances the high-frequency components in each extraction direction, and then fuses the enhanced high-frequency components in all directions to obtain the high-frequency components after the infrared image enhancement processing. For high-frequency components in different extraction directions, the gray gain can be flexibly adjusted. For example, the gray gain in the edge tangent direction can be smaller, and the normal gray gain can be larger to avoid noise in the edge tangent direction. Of course, in some embodiments, it is also possible to directly determine an optimal extraction direction, such as the direction of the edge normal, and then extract high-frequency components based on the determined optimal extraction direction. In addition, for the high-frequency part, the gray-scale gain can be controlled in combination with various factors, so that the enhancement of the high-frequency component is more flexible and controllable, and a better enhancement effect can be achieved.
通过本申请提供的红外图像方法,在对红外图像进行增强处理时,可以分别提取红外图像低频成分和高频成分,对低频成分进行对比度拉伸处理,对于高频成分,可以从一个或多个提取方向进行高频成分的提取,针对每个提取方向的高频成分,分别确定其对应的灰度增益,使得各提取方向的灰度增益更加灵活可控,可以避免增强处理后的红外图像噪声更加明显的问题,提升处理效果。Through the infrared image method provided by this application, when the infrared image is enhanced, the low-frequency and high-frequency components of the infrared image can be extracted separately, and the low-frequency components can be subjected to contrast stretching processing. For the high-frequency components, one or more Extract the high-frequency components in the extraction direction, and determine the corresponding gray-scale gain for the high-frequency components in each extraction direction, so that the gray-scale gain in each extraction direction is more flexible and controllable, and can avoid the infrared image noise after the enhancement process For more obvious problems, improve the treatment effect.
在某些实施例中,为了避免在对红外图像增强过程中,将噪声也增强,使得噪声更加明显,因此,在对红外图像进行增强处理之前,可以先对红外图像进行去噪处理,以去除红外图像中的各种噪声。In some embodiments, in order to avoid increasing the noise during the infrared image enhancement process, making the noise more obvious, therefore, before the infrared image is enhanced, the infrared image can be denoised first to remove the noise. Various noises in infrared images.
由于红外图像中灰度变化剧烈的部分有可能是噪声,也有可能是物体边缘,通常噪声往往是图像中变化最剧烈的部分,其次是图像中物体的边缘和细节部分,然后才是图像中的背景和平坦区域。为了在提升物体边缘的强度的同时更好的抑制噪声的强度,避免增强后的红外图像噪声更加明显,在某些实施例中,在进行高频成分的提取时,可以使用两个不同的高通滤波器对红外图像中的高频成分进行提取,得到第一高频成分和第二高频成分,其中,第一高频成分对应的图像的灰度变化程度大于第二高频成分对应的图像的灰度变化程度,也就是说第一高频成分对应的是图像中灰度变化最剧烈的部分,这部分很可能是噪声,而第二高频成分对应的是图像中变化较为剧烈的部分,这部分基本为物体的边缘或细节。Because the part with sharp gray changes in the infrared image may be noise, or it may be the edge of the object, usually noise is often the most drastically changed part of the image, followed by the edges and details of the object in the image, and then the image in the image. Background and flat area. In order to improve the intensity of the edge of the object and at the same time to better suppress the intensity of the noise, and to prevent the enhanced infrared image noise from becoming more obvious, in some embodiments, two different high-pass components can be used when extracting high-frequency components. The filter extracts the high-frequency components in the infrared image to obtain the first high-frequency component and the second high-frequency component. The gray scale change degree of the image corresponding to the first high-frequency component is greater than that of the image corresponding to the second high-frequency component. The degree of grayscale change, that is to say, the first high-frequency component corresponds to the most severely changed part of the image, this part is likely to be noise, and the second high-frequency component corresponds to the more severely changed part of the image , This part is basically the edge or detail of the object.
对于第一高频部分,由于其很有可能是噪声,因此,可以对其进行抑制,而对于第二高频部分,由于其基本为物体的边缘和细节,因此,可以适当增强其灰度增益,以凸显图像的细节。所以,在某些实施例中,在确定高频成分的灰度增益时,对于第一高频成分和第二高频成分,可以区别处理,可以分别确定第一高频成分的增益,以下称为第一灰度增益,以及第二高频成分的增益,以下称为第二灰度增益,其中第一灰度增益小于第二灰度增益。通过对噪声对应的高频成分和物体边缘对应的高频成分进行区别处理,分别确定其灰度增益,即可以增强物体细节,又可以抑制噪声,提升处理效果。For the first high-frequency part, since it is likely to be noise, it can be suppressed, while for the second high-frequency part, since it is basically the edges and details of the object, its gray gain can be appropriately enhanced. , To highlight the details of the image. Therefore, in some embodiments, when determining the gray-scale gain of the high-frequency component, the first high-frequency component and the second high-frequency component can be processed separately, and the gain of the first high-frequency component can be determined separately, which will be referred to as Is the first gray-scale gain and the gain of the second high-frequency component, hereinafter referred to as the second gray-scale gain, where the first gray-scale gain is smaller than the second gray-scale gain. By distinguishing the high-frequency components corresponding to the noise and the high-frequency components corresponding to the edges of the object, and determining their gray scale gains respectively, the details of the object can be enhanced, noise can be suppressed, and the processing effect can be improved.
在某些实施例中,红外图像高频成分的提取方向可以是预先设置的一个或者多个方向,比如,可以是全向提取,也可以是预先设置的2个、4个、8个或者更多方向,以4个方向为例,可以是水平方向、垂直方向、45角方向和135°角方向。然后采用各方向对应的模板来进行高频成分的提取。在某些实施例中,提取方向也可以结合红外图像各像素点的灰度特点来确定,选取灰度变化较剧烈的方向作为提取方向。比如,可以分别确定红外图像的每个像素点在多个方向对应的灰度变化程度,然后根据每个像素点在这多个方向对应的灰度变化程度从这个多个方向中选取提取方 向。如图4所示,针对红外图像中的像素点P0,可以确定像素点P0在方向1至方向8中8个方向的灰度变化程度,然后根据在这8个方向上的灰度变化程度从这8个方向中确定提取方向。当然,图4中的示出的方向只是示例性的例子,实际应用中,这多个方向的数量和角度可以根据需求灵活设置。In some embodiments, the extraction direction of the high-frequency components of the infrared image may be one or more preset directions, for example, it may be omnidirectional extraction, or it may be preset 2, 4, 8 or more. Multi-direction, taking 4 directions as an example, it can be horizontal direction, vertical direction, 45 angle direction and 135° angle direction. Then the template corresponding to each direction is used to extract the high-frequency components. In some embodiments, the extraction direction can also be determined in combination with the grayscale characteristics of each pixel of the infrared image, and the direction with a sharper grayscale change is selected as the extraction direction. For example, the degree of grayscale change corresponding to each pixel of the infrared image in multiple directions can be determined separately, and then the extraction direction can be selected from the multiple directions according to the degree of grayscale change corresponding to each pixel in these multiple directions. As shown in Figure 4, for the pixel point P0 in the infrared image, the gray scale change degree of the pixel point P0 in the eight directions from direction 1 to direction 8 can be determined, and then the gray scale change degree in these eight directions can be changed from The extraction direction is determined among these 8 directions. Of course, the directions shown in FIG. 4 are only illustrative examples. In practical applications, the number and angles of the multiple directions can be flexibly set according to requirements.
在某些实施例中,灰度变化程度可以用每个像素点在这多个方向的梯度表征,也可以用每个像素点的灰度与该像素点在这多个方向上的邻近像素点的灰度的方差表征。当然,也可以是其他可以表示像素点灰度变化程度的参数,在此不作限制。In some embodiments, the degree of grayscale change can be characterized by the gradient of each pixel in these multiple directions, or the grayscale of each pixel and the pixel's neighboring pixels in these multiple directions. Characterization of the variance of the grayscale. Of course, it can also be other parameters that can indicate the degree of change in the gray level of the pixel, which is not limited here.
在某些实施例中,在根据各像素点的灰度变化程度确定各像素点的提取方向时,可以选择这多个方向中灰度变化程度最大的方向作为该像素点的提取方向,或者是选择灰度变化程度大于预设阈值的一个或者多个方向作为所述提取方向。In some embodiments, when the extraction direction of each pixel is determined according to the degree of grayscale change of each pixel, the direction with the largest degree of grayscale change among the multiple directions can be selected as the extraction direction of the pixel, or One or more directions in which the gray level change degree is greater than a preset threshold value are selected as the extraction direction.
在某些实施例中,为了确保选择的提取方向更加可靠,准确率更高,还可以结合每个像素点邻近的多个像素点的提取方向以及每个像素点在各方向上的灰度变化程度确定该像素点的提取方向。如图5所示,假设要确定像素点P0的提取方向,可以先确定P0的邻近像素点(如图中的灰色像素点,箭头表示提取方向)的提取方向,然后结合P0在各方向上的灰度变化程度和邻近像素点的提取方向来确定P0的提取方向。假设邻近的8个像素点中,有6个像素点的提取方向为水平方向,其余两个为45°角方向,那P0的提取方向为水平方向的概率也比较高,因此,可以综合考虑邻近像素点的提取方向以及P0在每个方向上的灰度变化程度,综合上述两个因素确定出提取方向。In some embodiments, in order to ensure that the selected extraction direction is more reliable and more accurate, it is also possible to combine the extraction directions of multiple pixels adjacent to each pixel and the grayscale changes of each pixel in all directions. The degree determines the extraction direction of the pixel. As shown in Figure 5, assuming that the extraction direction of pixel P0 is to be determined, the extraction direction of adjacent pixels of P0 (the gray pixel in the figure, the arrow indicates the extraction direction) can be determined first, and then combined with P0 in all directions The degree of gray level change and the extraction direction of adjacent pixels determine the extraction direction of P0. Assuming that among the 8 adjacent pixels, the extraction direction of 6 pixels is the horizontal direction, and the other two are 45° angle directions. The probability that the extraction direction of P0 is the horizontal direction is also relatively high. Therefore, the adjacent pixels can be considered comprehensively. The extraction direction of the pixel and the degree of gray change of P0 in each direction are combined with the above two factors to determine the extraction direction.
在某些实施例中,也可以根据每个像素点在多个方向上的灰度程度的差异确定这多个方向各自对应的置信度,然后根据置信度从多个方向中选出提取方向。以图4为例,可以先确定像素点P0在方向1至方向8对应的灰度变化程度,假设分别为R1-R8,然后判定R1与R2-R7的差异,如 果差异比较大,说明方向1为变化较剧烈的方向的概率较大,因而方向1的置信度较高。如果差异较小,则说明方向1为变化较剧烈的方向的概率较小,因而方向1的置信度较小,然后可以选择置信度最大的方向作为提取方向,或者选择置信度大于一定阈值的多个方向作为提取方向。In some embodiments, it is also possible to determine the respective confidence levels corresponding to the multiple directions according to the difference in the gray levels of each pixel in multiple directions, and then select the extraction direction from the multiple directions according to the confidence. Taking Figure 4 as an example, you can first determine the degree of grayscale change corresponding to the pixel point P0 in the direction 1 to the direction 8, assuming that they are R1-R8, and then determine the difference between R1 and R2-R7. If the difference is relatively large, indicate the direction 1. The probability of a direction that changes more drastically is greater, so the confidence of direction 1 is higher. If the difference is small, it means that the probability of direction 1 being a more drastically changing direction is small, so the confidence of direction 1 is small, and then the direction with the greatest confidence can be selected as the extraction direction, or the direction with the confidence greater than a certain threshold can be selected. As the extraction direction.
当然,在某些实施例中,也可以综合每个像素点在各方向上的灰度变化程度、每个像素点的邻近像素点的提取方向以及每个像素点的在各方向上灰度变化程度与其余方向的灰度变化程度的差异综合确定每个方向的置信度,然后根据确定的置信度从多个方向中选出提取方向。Of course, in some embodiments, the degree of grayscale change of each pixel in all directions, the extraction direction of neighboring pixels of each pixel, and the gray change of each pixel in all directions can also be integrated. The difference between the degree and the degree of gray change in the other directions comprehensively determines the confidence of each direction, and then selects the extraction direction from multiple directions according to the determined confidence.
在某些实施例中,在提取红外图像中的低频成分和高频成分时,可以以将每个图像划分成多个图像区块,以图像区块为单位进行高频成分和低频成分的提取。在某些实施例中,也可以以像素点为单位,针对每个像素点,分别提取其在一个或多个提取方向上各自对应的高频成分,然后确定每个像素点在各提取方向上对应的高频成分的灰度增益,根据各像素点在各提取方向对应的高频成分的灰度增益对各像素点的高频成分进行增强处理,然后将各提取方向上增强处理后的高频成分融合,得到每个像素点增强处理后的高频成分。In some embodiments, when extracting low-frequency components and high-frequency components in an infrared image, each image can be divided into multiple image blocks, and the high-frequency components and low-frequency components can be extracted in units of image blocks. . In some embodiments, it is also possible to use pixel points as the unit, for each pixel point, respectively extract its corresponding high-frequency components in one or more extraction directions, and then determine that each pixel point is in each extraction direction. Corresponding to the gray gain of the high-frequency components, the high-frequency components of each pixel are enhanced according to the gray gains of the high-frequency components corresponding to each pixel in each extraction direction, and then the high-frequency components in each extraction direction are enhanced. The frequency components are fused to obtain the high frequency components of each pixel after the enhancement processing.
在某些实施例中,为了更加灵活的控制高频部分的增强强度,各像素点在各提取方向对应的高频成分的灰度增益的大小可以人为控制或者调节。In some embodiments, in order to more flexibly control the enhancement intensity of the high frequency part, the magnitude of the gray scale gain of the high frequency component corresponding to each pixel point in each extraction direction can be manually controlled or adjusted.
在某些实施例中,在对各像素点的在不同提取方向上对应的高频成分的灰度增益进行调节时,为了尽可能沿着物体边缘的法线方向对物体边缘增强,避免沿着物体边缘切线方向对物体边缘增强,使得边缘切线方向的噪声更加明显。在确定各提取方向上对应的高频成分的灰度增益时,可以根据各提取方向对应置信度来确定各提取方向对应的高频成分的灰度增益,其中,置信度可以表征该方向为边缘法线方向的概率,或者表征该方向为灰度变化最剧烈的方向的概率。其中,该置信度可以根据每个像素点在该提取方向的灰度变化程度与在其他多个方向的灰度变化程度的差异确 定,差异越大,置信度越高。在确定置信度后,即可以根据置信度来确定各提取方向对应的高频成分的灰度增益,其中,置信度越大,说明该提取方向为边缘法线方向的概率越高,因此,其灰度增益可以尽可能大一些,反之,其灰度增益尽可能小一些。In some embodiments, when adjusting the gray scale gain of the corresponding high-frequency components of each pixel in different extraction directions, in order to enhance the edge of the object as far as possible along the normal direction of the object edge, avoiding The tangent direction of the edge of the object enhances the edge of the object, making the noise in the tangential direction of the edge more obvious. When determining the gray-scale gain of the high-frequency component corresponding to each extraction direction, the gray-scale gain of the high-frequency component corresponding to each extraction direction can be determined according to the corresponding confidence of each extraction direction, where the confidence can indicate that the direction is an edge The probability of the normal direction, or the probability that this direction is the direction with the most dramatic gray-scale change. The confidence level can be determined based on the difference between the gray level change degree of each pixel in the extraction direction and the gray level change degree in other multiple directions. The greater the difference, the higher the confidence level. After the confidence is determined, the gray-scale gain of the high-frequency components corresponding to each extraction direction can be determined according to the confidence. The greater the confidence, the higher the probability that the extraction direction is the edge normal direction. Therefore, its The gray scale gain can be as large as possible, and vice versa, the gray scale gain is as small as possible.
在某些实施例中,在对各像素点在不同提取方向上对应的高频成分的灰度增益进行调节时,还可以根据以下一种或多种信息来确定各提取方向上的高频成分对应的灰度增益:所述像素点自身的特性、所述像素点的邻域的特性、所述红外图像的特性和所述像素点的高频成分的提取信息。In some embodiments, when adjusting the gray gain of the corresponding high-frequency components of each pixel in different extraction directions, the high-frequency components in each extraction direction can also be determined according to one or more of the following information Corresponding gray-scale gain: the characteristic of the pixel itself, the characteristic of the neighborhood of the pixel, the characteristic of the infrared image, and the extraction information of the high-frequency component of the pixel.
在某些实施例中,可以根据各像素点自身的特性来调节其高频成分的灰度增益,各像素点自身的特性包括:各像素点的亮度、各像素点在红外图像的位置分布和/或各像素点的最大亮度变化阈值。其中,如果该像素点的亮度较大,则其灰度增益可以适当设置的小一些,避免该像素点增强后亮度过高,反之,则灰度增益可以适当设置的大一些。另外,也可以结合像素点在红外图像中的位置分布来确定其灰度增益,比如,图像的边角位置噪声较强,且有锅盖效应,因此,针对分布在图像边角位置的像素点,其灰度增益可以是适当小一些。另外,为了避免在对边缘部分增强后,出现明显的黑白边,还可以预先设定每个像素点增强后的最大亮度变化阈值,像素点在增强后,其亮度变化不能超过最大亮度阈值,根据该最大变化阈值来调整各像素点高频成分的灰度增益。In some embodiments, the gray scale gain of the high-frequency components of each pixel can be adjusted according to its own characteristics. The characteristics of each pixel include: the brightness of each pixel, the position distribution of each pixel in the infrared image, and / Or the maximum brightness change threshold of each pixel. Among them, if the brightness of the pixel is relatively large, the gray scale gain can be appropriately set to be smaller to prevent the pixel from being too bright after being enhanced. On the contrary, the gray scale gain can be appropriately set to be larger. In addition, the position distribution of pixels in the infrared image can also be used to determine its gray-scale gain. For example, the corners of the image have strong noise and have a pot-lid effect. Therefore, for the pixels distributed in the corners of the image , The gray gain can be appropriately smaller. In addition, in order to avoid the appearance of obvious black and white edges after the edge part is enhanced, the maximum brightness change threshold value of each pixel point after enhancement can also be preset. After the pixel point is enhanced, the brightness change cannot exceed the maximum brightness threshold value. The maximum change threshold is used to adjust the grayscale gain of the high-frequency components of each pixel.
在某些实施例中,可以根据各像素点的邻域的特性来调节其高频成分的灰度增益,像素点的邻域特性包括:各像素点的邻域的亮度、各像素点的邻域是否为用户感兴趣区域、各像素点的邻域包含的横条纹噪声数量、各像素点的邻域的信噪比和/或各像素点的邻域是否存在粗边。比如,针对位于图像中亮区、灰度区、暗区的像素点,可以分别调节其高频成分的灰度增益,以防止暗区噪声太强,亮区锐化过大导致的黑白边瑕疵明显。对于死黑区和过曝区域的像素点,可以适度增大其灰度增益,使细节更加明显。对于用户感兴趣区域的像素点,其灰度增益可以适当增大。对于信噪 比较低,横条纹数量较多的区域的像素点,其灰度增益可以适当减小。对于周围存在粗边的像素点,可以适当减小其灰度增益,降低锐化程度,防止黑白边。In some embodiments, the gray gain of high-frequency components can be adjusted according to the characteristics of the neighborhood of each pixel. The neighborhood characteristics of the pixel include: the brightness of the neighborhood of each pixel, and the neighborhood of each pixel. Whether the domain is the user's region of interest, the amount of horizontal stripe noise contained in the neighborhood of each pixel, the signal-to-noise ratio of the neighborhood of each pixel, and/or whether there are thick edges in the neighborhood of each pixel. For example, for pixels located in the bright, gray, and dark areas of the image, you can adjust the gray gain of their high-frequency components separately to prevent the dark areas from being too noisy, and the bright areas are too sharp to cause black and white edge defects obvious. For the pixels in the dead black area and the overexposed area, the gray gain can be increased appropriately to make the details more obvious. For the pixels in the user's area of interest, the gray gain can be increased appropriately. For pixels in areas with low signal-to-noise ratio and a large number of horizontal stripes, the gray gain can be appropriately reduced. For pixels with thick edges around, you can appropriately reduce the gray scale gain, reduce the sharpness, and prevent black and white edges.
在某些实施例中,在确定像素点周围是否存在粗边时,可以确定该像素点邻域中的各像素点的梯度,根据邻域中各像素点的梯度确定其周围是否存在黑边,其中邻域的范围可以自行设置。在某些实施例中,为了减小计算量,节省处理资源,在检测邻域是否存在粗边时,也可以先对图像进行下采样处理,然后根据下采样处理后的图像来确定该像素点周围是否存在粗边。经下采样处理后,邻域的取范围可以适当缩小。In some embodiments, when determining whether there is a thick border around a pixel, the gradient of each pixel in the neighborhood of the pixel can be determined, and whether there is a black border around it is determined according to the gradient of each pixel in the neighborhood. The range of the neighborhood can be set by yourself. In some embodiments, in order to reduce the amount of calculation and save processing resources, when detecting whether there are thick edges in the neighborhood, you can also downsample the image first, and then determine the pixel based on the downsampled image Whether there are rough edges around. After the down-sampling process, the range of the neighborhood can be appropriately reduced.
在某些实施例中,可以根据红外图像的特性来调节各像素点的高频成分的灰度增益,红外图像的特性包括:红外图像的用途、红外图像的采集时间、红外图像的采集模式和/或红外图像对应的后续处理操作。比如,对于用于电力巡检等场景的红外图像,这类场景中要求红外图像的温度线性相关度较好,从而比较容易发现高温区域,因而可以适当减小像素点的高频成分的灰度增益,减弱锐化程度,防止锐化带来误判。对于用于安防搜救场景的红外图像,要求图像细节更强,对锐度要求高,因而像素点高频成分的灰度增益可以适当大一些。此外,也可以结合红外图像采集时间和采集模式来确定灰度增益,比如,对于打快门比较久后采集的红外图像,可以适度减小灰度增益,通过降低锐化程度来降低噪声,对于刚打快门时采集的红外图像,可以适当增强其灰度增益。另外,红外传感器分为低增益模式和高增益模式,其中,低增益模式信噪比低,噪声大,因而灰度增益可以适当小一些,避免噪声过于明显,高增益模式信噪比高,因而灰度增益可以大一些。当然,也可以结合红外图像对应的后续处理操作来调节灰度增益,举个例子,如果增强处理后的红外图像需要进行压缩编码处理,可以适度减小灰度增益,降低锐化强度,从而减小码流,减小存储空间和传输带宽。In some embodiments, the gray gain of the high frequency components of each pixel can be adjusted according to the characteristics of the infrared image. The characteristics of the infrared image include: the purpose of the infrared image, the collection time of the infrared image, the collection mode of the infrared image, and / Or the subsequent processing operation corresponding to the infrared image. For example, for infrared images used in scenes such as power inspections, the temperature linear correlation of infrared images is required in such scenes, so that high-temperature areas are easier to find, so the grayscale of high-frequency components of pixels can be appropriately reduced. Gain, weaken the degree of sharpening, and prevent misjudgment caused by sharpening. For infrared images used in security search and rescue scenes, the image details are required to be stronger, and the sharpness requirements are high, so the grayscale gain of the high-frequency components of the pixels can be appropriately larger. In addition, the grayscale gain can also be determined by combining the infrared image acquisition time and the acquisition mode. For example, for the infrared image acquired after the shutter is opened for a long time, the grayscale gain can be appropriately reduced, and the noise can be reduced by reducing the sharpness. The infrared image collected when the shutter is opened can appropriately enhance its gray gain. In addition, infrared sensors are divided into low-gain mode and high-gain mode. Among them, the low-gain mode has low signal-to-noise ratio and large noise, so the gray scale gain can be appropriately small to avoid excessive noise, and the high-gain mode has a high signal-to-noise ratio. The gray scale gain can be larger. Of course, you can also adjust the grayscale gain in combination with the subsequent processing operations corresponding to the infrared image. For example, if the enhanced infrared image needs to be compressed and encoded, you can moderately reduce the grayscale gain and reduce the sharpening intensity, thereby reducing Small bit stream reduces storage space and transmission bandwidth.
在某些实施例中,可以根据像素点的高频成分的提取信息来调节各像 素点的高频成分的灰度增益,像素点的高频成分的提取信息包括像素点的高频成分的提取方向和/或滤波器针对各像素点的输出结果的绝对值。比如,提取方向为灰度变化最剧烈的方向,则其灰度增益可以适当大一些,如果是全向提取,则其灰度增益可以适当小一些。另外,也可以根据高通滤波器(High-pass filter,HPF)针对每个像素点的输出结果的绝对值进行调控,当HPF的输出结果的绝对值很大,灰度增益可以小一些,防止过度锐化产生黑白边。In some embodiments, the gray-scale gain of the high-frequency component of each pixel can be adjusted according to the extraction information of the high-frequency component of the pixel. The extraction information of the high-frequency component of the pixel includes the extraction of the high-frequency component of the pixel. The absolute value of the output result of the direction and/or filter for each pixel. For example, if the extraction direction is the direction in which the gray level changes most drastically, the gray level gain can be appropriately larger, and if it is omnidirectional extraction, the gray level gain can be appropriately smaller. In addition, the absolute value of the output result of each pixel can also be adjusted according to the high-pass filter (HPF). When the absolute value of the output result of the HPF is large, the gray scale gain can be smaller to prevent excessive Sharpening produces black and white edges.
为了进一步解释本申请提供的红外图像处理方法,以下以结合一个具体的实施例加以解释。In order to further explain the infrared image processing method provided by the present application, the following will be explained in conjunction with a specific embodiment.
由于红外传感器采集的原始红外图像灰度分布范围较窄,对比度较低,细节不清晰,因而可以对其进行增强处理,以提升红外图像的对比度,并对边缘和细节部分进行锐化,得到细节清晰的红外图像。为了尽可能减小边缘锐化处理造成噪声过于明显的问题,以下提供了一种红外图像处理方法。Because the original infrared image collected by the infrared sensor has a narrow grayscale distribution, low contrast, and unclear details, it can be enhanced to improve the contrast of the infrared image, and sharpen the edges and details to obtain details Clear infrared image. In order to minimize the problem of excessive noise caused by edge sharpening processing, the following provides an infrared image processing method.
如图6所示,为本申请的红外图像处理方法的示意图。在获取待处理的红外图像后,可以先对其进行去噪处理,去除各种噪声。然后通过预先设计的高通滤波器(High-pass filter,HPF)、中通滤波器(Migh-pass filter,MPF)、低通滤波器(Ligh-pass filter,LPF)分别提取红外图像的各像素点的高频成分、中频成分和低频成分。针对每个像素点的高频成分和中频成分,可以从多个提取方向提取(图6中仅示出两个提取方向),得到每个提取方向对应的高频成分和中频成分。其中,这个多个提取方向可以是预先设置的多个方向,假设分别为全向、水平方向、垂直方向、45°角方向、135°角方向,每个提取方向对应一个模板,通过该模板提取每个像素点在对应提取方向的中高频成分。其中,针对每个提取方向,可以预先确定每个像素点对应的该提取方向的置信度,具体的,可以确定每个像素点在这多个提取方向上的梯度或灰度方差,然后确定各提取方向的梯度或方差与其他提取方向的梯度或方差的差异,进一步地,也可以确定该像素点的邻 近像素点的提取方向,综合每个像素点在各提取方向的梯度或方差、各提取方向的梯度或方差与其他提取方向的梯度或方差的差异、该像素点的邻近像素点的提取方向,可以确定每个像素点的各取方向的置信度,置信度越大,则表示该提取方向为边缘法线方向的概率越大。As shown in FIG. 6, it is a schematic diagram of the infrared image processing method of this application. After acquiring the infrared image to be processed, it can be denoised first to remove various noises. Then through the pre-designed high-pass filter (HPF), mid-pass filter (Migh-pass filter, MPF), low-pass filter (Ligh-pass filter, LPF) to extract each pixel of the infrared image The high-frequency component, intermediate-frequency component and low-frequency component. For the high-frequency and intermediate-frequency components of each pixel, it can be extracted from multiple extraction directions (only two extraction directions are shown in FIG. 6) to obtain the high-frequency and intermediate-frequency components corresponding to each extraction direction. Among them, the multiple extraction directions can be preset multiple directions, assuming that they are omnidirectional, horizontal, vertical, 45° angular direction, 135° angular direction, and each extraction direction corresponds to a template, and the template is used to extract The medium and high frequency components of each pixel in the corresponding extraction direction. Among them, for each extraction direction, the confidence level of the extraction direction corresponding to each pixel can be determined in advance. Specifically, the gradient or gray-scale variance of each pixel in the multiple extraction directions can be determined, and then each pixel can be determined. The difference between the gradient or variance of the extraction direction and the gradient or variance of other extraction directions. Further, the extraction direction of the neighboring pixels of the pixel can also be determined, and the gradient or variance of each pixel in each extraction direction can be integrated. The difference between the gradient or variance of the direction and the gradient or variance of other extraction directions, and the extraction direction of the neighboring pixels of the pixel can determine the confidence of each pixel in each direction. The greater the confidence, the extraction The greater the probability that the direction is the normal direction of the edge.
然后可以根据各像素点在各提取方向的置信度、各像素点自身的特性、各像素点邻域的特性、待处理红外图像的特性以及各像素点高频成分的提取信息等因素,综合确定各提取方向对应的中高频成分的灰度增益,其中,各提取方向对应的中高频成分的灰度增益设置的整体原则如下:Then, it can be comprehensively determined according to factors such as the confidence of each pixel in each extraction direction, the characteristics of each pixel itself, the characteristics of each pixel's neighborhood, the characteristics of the infrared image to be processed, and the extraction information of the high-frequency components of each pixel. The gray-scale gains of the medium and high-frequency components corresponding to each extraction direction. The overall principles for setting the gray-scale gains of the medium and high-frequency components corresponding to each extraction direction are as follows:
(1)提取方向的置信度越大,说明该提取方向为边缘法线方向的概率越大,则该提取方向对应的中高频成分的灰度增益越大,反之则越小,这样可以沿着边缘法线方向对边缘进行锐化,避免切线方向噪声明显。此外,各像素点输入MPF和HPF后,其输出结果绝对值较大,则灰度增益也可以适当减小一些。(1) The greater the confidence of the extraction direction, the greater the probability that the extraction direction is the normal direction of the edge, the greater the gray gain of the medium and high frequency components corresponding to the extraction direction, and vice versa. The edge normal direction sharpens the edge to avoid obvious noise in the tangential direction. In addition, after each pixel is input into MPF and HPF, the absolute value of the output result is larger, and the gray scale gain can also be appropriately reduced.
(2)高频成分可能是噪声,中频成分基本为物体的边缘细节。因此,高频成分的灰度增益应当适当抑制,避免噪声明显。中频成分的灰度增益应当尽可能大,以凸显细节。(2) The high frequency component may be noise, and the intermediate frequency component is basically the edge details of the object. Therefore, the gray-scale gain of high-frequency components should be appropriately suppressed to avoid obvious noise. The gray gain of the intermediate frequency components should be as large as possible to highlight the details.
(3)像素点所在红外图像区域的噪声越多,则灰度增益应尽量小一些,避免增强噪声。像素点所在区域亮度较高,像素点周围存在粗边,像素点位于边角位置,则灰度增益应尽量小一些,避免锐化过度或者产生黑白边。(3) The more noise in the infrared image area where the pixel is located, the gray gain should be as small as possible to avoid enhancing the noise. The area where the pixel is located is bright, there are thick edges around the pixel, and the pixel is located at the corner position, the gray gain should be as small as possible to avoid over-sharpening or black and white edges.
(4)可以结合红外图像的应用场景调整灰度增益,对细节要求较高的场景,其灰度增益可以大一些。高增益模式的红外图像的灰度增益可以大一些,低增益模式的红外图像灰度增益可以小一些。如果红外图像后续需要压缩编码处理,为了节省存储空间和减小传输带宽,灰度增益也可以适当小一些。(4) The gray scale gain can be adjusted in combination with the application scene of the infrared image, and the gray scale gain can be larger for scenes that require higher details. The gray gain of the infrared image in the high gain mode can be larger, and the gray gain of the infrared image in the low gain mode can be smaller. If the infrared image needs to be compressed and encoded later, in order to save storage space and reduce the transmission bandwidth, the gray scale gain can also be appropriately smaller.
(5)针对每个像素点可以设置一个最大灰度变化阈值,最后增强后的灰度不能超出最大变化阈值,避免过度增强,因而可以结合最大灰度变化阈值调整灰度增益。(5) A maximum grayscale change threshold can be set for each pixel, and the finally enhanced grayscale cannot exceed the maximum change threshold to avoid excessive enhancement. Therefore, the grayscale gain can be adjusted in conjunction with the maximum grayscale change threshold.
确定各提取方向上的高频成分和中频成分的灰度增益后,可以采用确定的灰度增益对中高频成分进行增强,然后将每个像素点各提取方向上增强后的高频成分融合,得到该像素点的高频成分,将每个像素点各提取方向上增强后的中频成分融合,得到该像素点的中频成分。对于每个像素点的低频成分,则可以进行自适应拉伸增强处理,提升图像对比度。然后将每个像素点增强后的高频成分、低频成分以及拉伸处理后的低频成分融合,得到每个像素点增强后的灰度,即可得到增强处理后的红外图像。After determining the gray gains of the high-frequency components and intermediate-frequency components in each extraction direction, the determined gray-scale gains can be used to enhance the mid- and high-frequency components, and then the enhanced high-frequency components in each extraction direction of each pixel are merged. Obtain the high frequency component of the pixel, and fuse the enhanced intermediate frequency components in each extraction direction of each pixel to obtain the intermediate frequency component of the pixel. For the low-frequency component of each pixel, it can be adaptively stretched and enhanced to improve image contrast. Then, the enhanced high-frequency components, low-frequency components of each pixel and the low-frequency components after stretching are merged to obtain the enhanced gray scale of each pixel, and then the enhanced infrared image can be obtained.
上述红外图像增强方法,具有以下优势:The above infrared image enhancement method has the following advantages:
(1)针对红外图像的高频成分、中频成分、低频成分区别处理,对于低频成分主要为背景区域和平坦区域,则可以自适应拉伸,提升对比度。对于中高频成分,其灰度增益可以人为控制和调节,比较灵活。比如,对于高频成分,可能为噪声,则应对其抑制,对于中频成分,主要为物体的边缘和细节,则应适当增大灰度增益,凸显细节。(1) Differentiating the high-frequency component, intermediate-frequency component, and low-frequency component of the infrared image. For the low-frequency component, which is mainly the background area and the flat area, it can be stretched adaptively to improve the contrast. For the middle and high frequency components, the gray scale gain can be controlled and adjusted manually, which is more flexible. For example, for high-frequency components, which may be noise, it should be suppressed. For intermediate-frequency components, which are mainly the edges and details of objects, the gray gain should be appropriately increased to highlight the details.
(2)在提取中高频成分时,分多个方向提取,可以基于提取方向的置信度确定灰度增益,以保证尽可能沿着边缘部分的法线方向对边缘部分增强,避免边缘切线方向噪声明显。(2) When extracting medium and high frequency components, extract them in multiple directions. The gray gain can be determined based on the confidence of the extraction direction to ensure that the edge part is enhanced along the normal direction of the edge part as much as possible to avoid edge tangent direction noise obvious.
(3)结合多方面的因素来综合调节每个像素点各提取方向的中高频成分的灰度增益,可以对图像每个像素点的增强进行精细化的控制,避免增强过程导致噪声明显的问题,并且极大提升了增强处理后的红外图像的效果。(3) Combining various factors to comprehensively adjust the gray gain of the medium and high frequency components of each pixel in each extraction direction, which can finely control the enhancement of each pixel in the image, and avoid the problem of obvious noise caused by the enhancement process , And greatly enhance the effect of the enhanced infrared image.
此外,本申请还提供了一种红外图像处理装置,如图7所示,所述装置包括处理器71、存储器72、存储在所述存储器72上可被所述处理器71执行的计算机程序,所述处理器71执行所述计算机程序时实现以下步骤:In addition, the present application also provides an infrared image processing device. As shown in FIG. 7, the device includes a processor 71, a memory 72, and a computer program stored on the memory 72 that can be executed by the processor 71, When the processor 71 executes the computer program, the following steps are implemented:
提取待处理红外图像的低频成分以及所述待处理红外图像在一个或多个提取方向上对应的高频成分;Extracting low-frequency components of the infrared image to be processed and corresponding high-frequency components of the infrared image to be processed in one or more extraction directions;
确定所述提取方向各自对应的高频成分的灰度增益,并根据所述灰度增益对所述高频成分进行增强处理;Determining the gray-scale gain of the high-frequency component corresponding to each of the extraction directions, and performing enhancement processing on the high-frequency component according to the gray-scale gain;
对所述低频成分进行对比度拉伸处理;Performing contrast stretching processing on the low-frequency components;
融合拉伸处理后的低频成分以及增强处理后的高频成分,得到处理后的红外图像。The low-frequency components after the stretching process and the high-frequency components after the enhancement process are combined to obtain a processed infrared image.
在某些实施例中,所述提取方向通过以下方式确定:In some embodiments, the extraction direction is determined in the following manner:
分别确定所述红外图像各像素点在多个方向对应的灰度变化程度;Respectively determining the degree of grayscale change corresponding to each pixel of the infrared image in multiple directions;
基于所述灰度变化程度从所述多个方向中确定所述各像素点的提取方向。The extraction direction of each pixel point is determined from the multiple directions based on the degree of grayscale change.
在某些实施例中,所述处理器用于基于所述灰度变化程度从所述多个方向中确定所述各像素点的提取方向时,具体用于:In some embodiments, when the processor is configured to determine the extraction direction of each pixel from the multiple directions based on the degree of grayscale change, it is specifically configured to:
根据所述多个方向的灰度变化程度的差异确定所述多个方向各自对应的置信度;Determining the respective confidence levels corresponding to the multiple directions according to the difference in the degree of grayscale change in the multiple directions;
基于所述置信度从所述多个方向确定所述提取方向。The extraction direction is determined from the multiple directions based on the confidence.
在某些实施例中,所述处理器用于基于所述灰度变化程度从所述多个方向中确定所述各像素点的提取方向时,具体用于:In some embodiments, when the processor is configured to determine the extraction direction of each pixel from the multiple directions based on the degree of grayscale change, it is specifically configured to:
选取所述灰度变化程度最小的方向作为所述提取方向;或Selecting the direction with the smallest degree of grayscale change as the extraction direction; or
确定所述像素点的邻近像素点的提取方向;Determining the extraction direction of the neighboring pixel points of the pixel point;
根据所述邻近像素点的提取方向以及所述灰度变化程度从所述多个方向确定所述提取方向。The extraction direction is determined from the multiple directions according to the extraction direction of the adjacent pixel points and the degree of grayscale change.
在某些实施例中,所述灰度变化程度通过以下参数表征:In some embodiments, the degree of grayscale change is characterized by the following parameters:
所述像素点在多个方向的梯度,或The gradient of the pixel in multiple directions, or
所述像素点与多个方向的邻近像素点的灰度方差。The gray-scale variance of the pixel point and adjacent pixels in multiple directions.
在某些实施例中,所述处理器用于确定所述提取方向各自对应的高频成分的灰度增益,并根据所述灰度增益对所述高频成分进行增强处理时,具体用于:In some embodiments, the processor is configured to determine the gray-scale gain of the high-frequency component corresponding to each of the extraction directions, and when performing enhancement processing on the high-frequency component according to the gray-scale gain, it is specifically used for:
确定所述待处理红外图像各像素点在所述提取方向各自对应的高频成分的灰度增益;Determining the gray scale gain of the high-frequency component corresponding to each pixel of the infrared image to be processed in the extraction direction;
基于各像素点在所述提取方向各自对应的高频成分的灰度增益对各像 素点的高频成分进行增强处理,得到各像素点增强处理后的高频成分。The high-frequency component of each pixel is enhanced based on the gray scale gain of the high-frequency component corresponding to each pixel in the extraction direction to obtain the high-frequency component of each pixel after the enhancement processing.
在某些实施例中,所述各像素点在各提取方向对应的高频成分的灰度增益的大小可调。In some embodiments, the gray scale gain of the high frequency component corresponding to each pixel point in each extraction direction is adjustable.
在某些实施例中,所述各像素点在各提取方向上对应的高频成分的灰度增益基于以下一种或多种信息确定:所述像素点自身的特性、所述像素点的邻域的特性、所述红外图像的特性和所述像素点的高频成分的提取信息。In some embodiments, the gray-scale gain of the high-frequency components corresponding to each pixel in each extraction direction is determined based on one or more of the following information: the characteristics of the pixel itself, the neighbors of the pixel The characteristics of the domain, the characteristics of the infrared image, and the extraction information of the high-frequency components of the pixels.
在某些实施例中,所述像素点自身的特性包括:所述像素点的亮度、所述像素点在所述红外图像的位置分布和/或所述像素点的最大亮度变化阈值。In some embodiments, the characteristics of the pixel point itself include: the brightness of the pixel point, the position distribution of the pixel point in the infrared image, and/or the maximum brightness change threshold of the pixel point.
在某些实施例中,所述像素点的邻域特性包括:所述邻域的亮度、所述邻域是否为用户感兴趣区域、所述邻域包含的横条纹噪声数量、所述邻域的信噪比和/或所述邻域是否存在粗边。In some embodiments, the neighborhood characteristics of the pixel point include: the brightness of the neighborhood, whether the neighborhood is a user region of interest, the amount of horizontal stripe noise contained in the neighborhood, and the neighborhood The signal-to-noise ratio and/or whether there are thick edges in the neighborhood.
在某些实施例中,所述邻域是否存在粗边通过以下方式确定:In some embodiments, whether there are thick edges in the neighborhood is determined by the following methods:
确定所述邻域中各像素点的梯度;Determining the gradient of each pixel in the neighborhood;
根据所述梯度确定所述邻域是否存在粗边。Determine whether there are thick edges in the neighborhood according to the gradient.
在某些实施例中,所述红外图像的特性包括:所述红外图像的用途、所述红外图像的采集时间、所述红外图像的采集模式和/或所述红外图像对应的后续处理操作。In some embodiments, the characteristics of the infrared image include: use of the infrared image, acquisition time of the infrared image, acquisition mode of the infrared image, and/or subsequent processing operations corresponding to the infrared image.
在某些实施例中,所述像素点的高频成分的提取信息包括:所述像素点的高频成分的提取方向和/或所述高频成分的提取频率阈值。In some embodiments, the extraction information of the high-frequency component of the pixel point includes: an extraction direction of the high-frequency component of the pixel point and/or an extraction frequency threshold of the high-frequency component.
在某些实施例中,所述处理器用于确定所述提取方向各自对应的高频成分的灰度增益时,具体用于:In some embodiments, when the processor is used to determine the gray scale gain of the high-frequency component corresponding to each of the extraction directions, it is specifically used to:
根据所述待处理红外图像的各像素点在所述提取方向的灰度变化程度与在其他多个方向的灰度变化程度的差异确定所述提取方向的置信度;Determining the confidence level of the extraction direction according to the difference between the gray level change degree of each pixel of the infrared image to be processed in the extraction direction and the gray level change degree in other multiple directions;
基于所述置信度确定所述提取方向的高频成分的灰度增益。The gray-scale gain of the high-frequency component in the extraction direction is determined based on the confidence.
在某些实施例中,所述高频成分包括第一高频成分和第二高频成分, 所述第一高频成分对应的图像的灰度变化程度大于所述第二高频成分对应的图像的灰度变化程度。In some embodiments, the high-frequency component includes a first high-frequency component and a second high-frequency component, and the grayscale change degree of the image corresponding to the first high-frequency component is greater than that of the second high-frequency component. The degree of grayscale change of the image.
在某些实施例中,所述确定所述提取方向对应的所述高频成分的灰度增益,包括:In some embodiments, the determining the gray scale gain of the high-frequency component corresponding to the extraction direction includes:
确定所述提取方向对应的所述第一高频成分的第一灰度增益,确定所述提取方向对应的所述第二高频成分的第二灰度增益,所述第二灰度增益大于所述第一灰度增益。Determine the first gray-scale gain of the first high-frequency component corresponding to the extraction direction, determine the second gray-scale gain of the second high-frequency component corresponding to the extraction direction, and the second gray-scale gain is greater than The first gray scale gain.
在某些实施例中,所述待处理红外图像为去噪处理后的红外图像。In some embodiments, the infrared image to be processed is an infrared image after denoising processing.
其中,所述红外图像处理装置对红外图像进行增强处理的具体细节可参考上述各实施例中的描述,在此不再赘述。For the specific details of the infrared image processing device for enhancing the infrared image, reference may be made to the description in the foregoing embodiments, which will not be repeated here.
可选的,红外图像处理装置还包括红外传感器,用于采集红外图像。Optionally, the infrared image processing device further includes an infrared sensor for collecting infrared images.
红外图像处理装置例如可以是红外相机。The infrared image processing device may be an infrared camera, for example.
本申请所提及的红外处理装置可以用于电力巡检、行业检测等领域。The infrared processing device mentioned in this application can be used in power inspection, industry inspection and other fields.
进一步地,本申请还提供一种可移动平台,所述可移动平台可以是无人机、无人船、无人小车等,所述可移动平台包括上述各实施例中所述的红外图像处理装置。以无人机为例,无人机上可以搭载红外传感器以及上述红外图像处理装置,用于执行测温、电力巡检、监测等任务。Further, this application also provides a movable platform, the movable platform may be an unmanned aerial vehicle, an unmanned boat, an unmanned car, etc., the movable platform includes the infrared image processing described in the above embodiments Device. Taking drones as an example, the drones can be equipped with infrared sensors and the above-mentioned infrared image processing devices for performing tasks such as temperature measurement, power inspection, and monitoring.
相应地,本说明书实施例还提供一种计算机存储介质,所述存储介质中存储有程序,所述程序被处理器执行时实现上述任一实施例中红外图像处理方法。Correspondingly, an embodiment of this specification also provides a computer storage medium in which a program is stored, and the program is executed by a processor to implement the infrared image processing method in any of the above embodiments.
本说明书实施例可采用在一个或多个其中包含有程序代码的存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机可用存储介质包括永久性和非永久性、可移动和非可移动媒体,可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括但不限于:相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可 擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。The embodiments of this specification may adopt the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program codes. Computer usable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。For the device embodiment, since it basically corresponds to the method embodiment, the relevant part can refer to the part of the description of the method embodiment. The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments. Those of ordinary skill in the art can understand and implement without creative work.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply one of these entities or operations. There is any such actual relationship or order between. The terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements that are not explicitly listed. Elements, or also include elements inherent to such processes, methods, articles, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or equipment that includes the element.
以上对本发明实施例所提供的方法和装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The methods and devices provided by the embodiments of the present invention are described in detail above. Specific examples are used in this article to illustrate the principles and implementations of the present invention. The descriptions of the above embodiments are only used to help understand the methods and methods of the present invention. Core idea; At the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and the scope of application. In summary, the content of this specification should not be construed as a limitation of the present invention .

Claims (36)

  1. 一种红外图像处理方法,其特征在于,所述方法包括:An infrared image processing method, characterized in that the method includes:
    提取待处理红外图像的低频成分以及所述待处理红外图像在一个或多个提取方向上对应的高频成分;Extracting low-frequency components of the infrared image to be processed and corresponding high-frequency components of the infrared image to be processed in one or more extraction directions;
    确定所述提取方向各自对应的高频成分的灰度增益,并根据所述灰度增益对所述高频成分进行增强处理;Determining the gray-scale gain of the high-frequency component corresponding to each of the extraction directions, and performing enhancement processing on the high-frequency component according to the gray-scale gain;
    对所述低频成分进行对比度拉伸处理;Performing contrast stretching processing on the low-frequency components;
    融合拉伸处理后的低频成分以及增强处理后的高频成分,得到处理后的红外图像。The low-frequency components after the stretching process and the high-frequency components after the enhancement process are combined to obtain a processed infrared image.
  2. 根据权利要求1所述的方法,其特征在于,所述提取方向通过以下方式确定:The method according to claim 1, wherein the extraction direction is determined in the following manner:
    分别确定所述红外图像各像素点在多个方向对应的灰度变化程度;Respectively determining the degree of grayscale change corresponding to each pixel of the infrared image in multiple directions;
    基于所述灰度变化程度从所述多个方向中确定所述各像素点的提取方向。The extraction direction of each pixel point is determined from the multiple directions based on the degree of grayscale change.
  3. 根据权利要求2所述的方法,其特征在于,基于所述灰度变化程度从所述多个方向中确定所述各像素点的提取方向,包括:The method according to claim 2, wherein determining the extraction direction of each pixel from the multiple directions based on the degree of grayscale change comprises:
    根据所述多个方向的灰度变化程度的差异确定所述多个方向各自对应的置信度;Determining the respective confidence levels corresponding to the multiple directions according to the difference in the degree of grayscale change in the multiple directions;
    基于所述置信度从所述多个方向确定所述提取方向。The extraction direction is determined from the multiple directions based on the confidence.
  4. 根据权利要求2所述的方法,其特征在于,基于所述灰度变化程度从所述多个方向中确定所述各像素点的提取方向,包括:The method according to claim 2, wherein determining the extraction direction of each pixel from the multiple directions based on the degree of grayscale change comprises:
    选取所述灰度变化程度最小的方向作为所述提取方向;或Selecting the direction with the smallest degree of grayscale change as the extraction direction; or
    确定所述像素点的邻近像素点的提取方向;Determining the extraction direction of the neighboring pixel points of the pixel point;
    根据所述邻近像素点的提取方向以及所述灰度变化程度从所述多个方向确定所述提取方向。The extraction direction is determined from the multiple directions according to the extraction direction of the adjacent pixel points and the degree of grayscale change.
  5. 根据权利要求2-4任一项所述的方法,其特征在于,所述灰度变化程度通过以下参数表征:The method according to any one of claims 2-4, wherein the degree of grayscale change is characterized by the following parameters:
    所述像素点在多个方向的梯度,或The gradient of the pixel in multiple directions, or
    所述像素点与多个方向的邻近像素点的灰度方差。The gray-scale variance of the pixel point and adjacent pixels in multiple directions.
  6. 根据权利要求1所述的方法,其特征在于,确定所述提取方向各自对应的高频成分的灰度增益,并根据所述灰度增益对所述高频成分进行增强处理,包括:The method according to claim 1, wherein determining the gray scale gain of the high-frequency component corresponding to each of the extraction directions, and performing enhancement processing on the high-frequency component according to the gray scale gain, comprises:
    确定所述待处理红外图像各像素点在所述提取方向各自对应的高频成分的灰度增益;Determining the gray scale gain of the high-frequency component corresponding to each pixel of the infrared image to be processed in the extraction direction;
    基于各像素点在所述提取方向各自对应的高频成分的灰度增益对各像素点的高频成分进行增强处理,得到各像素点增强处理后的高频成分。The high-frequency component of each pixel is enhanced based on the gray gain of the high-frequency component corresponding to each pixel in the extraction direction, and the high-frequency component after the enhancement processing of each pixel is obtained.
  7. 根据权利要求6所述的方法,其特征在于,所述各像素点在各提取方向对应的高频成分的灰度增益的大小可调。The method according to claim 6, wherein the gray scale gain of the high frequency component corresponding to each pixel point in each extraction direction is adjustable.
  8. 根据权利要求7所述的方法,其特征在于,所述各像素点的在所述提取方向对应的高频成分的灰度增益基于以下一种或多种信息确定:所述像素点自身的特性、所述像素点的邻域的特性、所述红外图像的特性和所述像素点的高频成分的提取信息。The method according to claim 7, wherein the gray scale gain of the high-frequency component corresponding to the extraction direction of each pixel is determined based on one or more of the following information: the characteristics of the pixel itself , The characteristic of the neighborhood of the pixel, the characteristic of the infrared image, and the extraction information of the high-frequency component of the pixel.
  9. 根据权利要求8所述的方法,其特征在于,所述像素点自身的特性包括:所述像素点的亮度、所述像素点在所述红外图像的位置分布和/或所述像素点的最大亮度变化阈值。The method according to claim 8, wherein the characteristics of the pixel point itself include: the brightness of the pixel point, the position distribution of the pixel point in the infrared image, and/or the maximum value of the pixel point. Brightness change threshold.
  10. 根据权利要求8所述的方法,其特征在于,所述像素点的邻域特性包括:所述邻域的亮度、所述邻域是否为用户感兴趣区域、所述邻域包含的横条纹噪声数量、所述邻域的信噪比和/或所述邻域是否存在粗边。The method according to claim 8, wherein the neighborhood characteristics of the pixel point include: the brightness of the neighborhood, whether the neighborhood is a region of interest of the user, and the horizontal stripe noise contained in the neighborhood The number, the signal-to-noise ratio of the neighborhood and/or whether there are thick edges in the neighborhood.
  11. 根据权利要求10所述的方法,其特征在于,所述邻域是否存在粗边通过以下方式确定:The method according to claim 10, wherein whether there is a thick edge in the neighborhood is determined in the following manner:
    确定所述邻域中各像素点的梯度;Determining the gradient of each pixel in the neighborhood;
    根据所述梯度确定所述邻域是否存在粗边。Determine whether there are thick edges in the neighborhood according to the gradient.
  12. 根据权利要求8所述的方法,其特征在于,所述红外图像的特性包括:所述红外图像的用途、所述红外图像的采集时间、所述红外图像的 采集模式和/或所述红外图像对应的后续处理操作。The method according to claim 8, wherein the characteristics of the infrared image include: the purpose of the infrared image, the collection time of the infrared image, the collection mode of the infrared image, and/or the infrared image Corresponding subsequent processing operations.
  13. 根据权利要求8所述的方法,其特征在于,所述像素点的高频成分的提取信息包括:所述像素点的高频成分的提取方向和/或用于提取所述高频成分的滤波器针对所述像素点的输出结果的绝对值。The method according to claim 8, wherein the extraction information of the high-frequency components of the pixel points comprises: the extraction direction of the high-frequency components of the pixel points and/or the filtering used to extract the high-frequency components The absolute value of the output result of the detector for the pixel.
  14. 根据权利要求1所述的方法,其特征在于,确定所述提取方向各自对应的高频成分的灰度增益包括:The method according to claim 1, wherein determining the gray-scale gain of the high-frequency components corresponding to each of the extraction directions comprises:
    根据所述待处理红外图像的各像素点在所述提取方向的灰度变化程度与在其他多个方向的灰度变化程度的差异确定所述提取方向的置信度;Determining the confidence level of the extraction direction according to the difference between the gray level change degree of each pixel of the infrared image to be processed in the extraction direction and the gray level change degree in other multiple directions;
    基于所述置信度确定所述提取方向的高频成分的灰度增益。The gray-scale gain of the high-frequency component in the extraction direction is determined based on the confidence.
  15. 根据权利要求1-14任一项所述的方法,其特征在于,所述高频成分包括第一高频成分和第二高频成分,所述第一高频成分对应的图像的灰度变化程度大于所述第二高频成分对应的图像的灰度变化程度。The method according to any one of claims 1-14, wherein the high-frequency component comprises a first high-frequency component and a second high-frequency component, and the gray level of the image corresponding to the first high-frequency component changes The degree is greater than the degree of grayscale change of the image corresponding to the second high-frequency component.
  16. 根据权利要求15所述的方法,其特征在于,确定所述提取方向各自对应的高频成分的灰度增益,包括:The method according to claim 15, wherein determining the gray scale gain of the high-frequency component corresponding to each of the extraction directions comprises:
    确定所述提取方向对应的第一高频成分的第一灰度增益,确定所述提取方向对应的第二高频成分的第二灰度增益,所述第二灰度增益大于所述第一灰度增益。Determine the first grayscale gain of the first high-frequency component corresponding to the extraction direction, determine the second grayscale gain of the second high-frequency component corresponding to the extraction direction, and the second grayscale gain is greater than the first Gray gain.
  17. 根据权利要求1所述的方法,其特征在于,所述待处理红外图像为去噪处理后的红外图像。The method according to claim 1, wherein the infrared image to be processed is an infrared image after denoising processing.
  18. 一种红外图像处理装置,其特征在于,所述装置包括处理器、存储器、存储在所述存储器上可被所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:An infrared image processing device, characterized in that the device includes a processor, a memory, and a computer program stored in the memory that can be executed by the processor, and the processor implements the following steps when the computer program is executed :
    提取待处理红外图像的低频成分以及所述待处理红外图像在一个或多个提取方向上对应的高频成分;Extracting low-frequency components of the infrared image to be processed and corresponding high-frequency components of the infrared image to be processed in one or more extraction directions;
    确定所述提取方向各自对应的高频成分的灰度增益,并根据所述灰度增益对所述高频成分进行增强处理;Determining the gray-scale gain of the high-frequency component corresponding to each of the extraction directions, and performing enhancement processing on the high-frequency component according to the gray-scale gain;
    对所述低频成分进行对比度拉伸处理;Performing contrast stretching processing on the low-frequency components;
    融合拉伸处理后的低频成分以及增强处理后的高频成分,得到处理后的红外图像。The low-frequency components after the stretching process and the high-frequency components after the enhancement process are combined to obtain a processed infrared image.
  19. 根据权利要求18所述的装置,其特征在于,所述提取方向通过以下方式确定:The device according to claim 18, wherein the extraction direction is determined in the following manner:
    分别确定所述红外图像各像素点在多个方向对应的灰度变化程度;Respectively determining the degree of grayscale change corresponding to each pixel of the infrared image in multiple directions;
    基于所述灰度变化程度从所述多个方向中确定所述各像素点的提取方向。The extraction direction of each pixel point is determined from the multiple directions based on the degree of grayscale change.
  20. 根据权利要求19所述的装置,其特征在于,所述处理器用于基于所述灰度变化程度从所述多个方向中确定所述各像素点的提取方向时,具体用于:The device according to claim 19, wherein when the processor is configured to determine the extraction direction of each pixel from the multiple directions based on the degree of grayscale change, it is specifically configured to:
    根据所述多个方向的灰度变化程度的差异确定所述多个方向各自对应的置信度;Determining the respective confidence levels corresponding to the multiple directions according to the difference in the degree of grayscale change in the multiple directions;
    基于所述置信度从所述多个方向确定所述提取方向。The extraction direction is determined from the multiple directions based on the confidence.
  21. 根据权利要求20所述的装置,其特征在于,所述处理器用于基于所述灰度变化程度从所述多个方向中确定所述各像素点的提取方向时,具体用于:The device according to claim 20, wherein when the processor is configured to determine the extraction direction of each pixel point from the multiple directions based on the degree of grayscale change, it is specifically configured to:
    选取所述灰度变化程度最小的方向作为所述提取方向;或Selecting the direction with the smallest degree of grayscale change as the extraction direction; or
    确定所述像素点的邻近像素点的提取方向;Determining the extraction direction of the neighboring pixel points of the pixel point;
    根据所述邻近像素点的提取方向以及所述灰度变化程度从所述多个方向确定所述提取方向。The extraction direction is determined from the multiple directions according to the extraction direction of the adjacent pixel points and the degree of grayscale change.
  22. 根据权利要求19-21任一项所述的装置,其特征在于,所述灰度变化程度通过以下参数表征:The device according to any one of claims 19-21, wherein the degree of grayscale change is characterized by the following parameters:
    所述像素点在多个方向的梯度,或The gradient of the pixel in multiple directions, or
    所述像素点与多个方向的邻近像素点的灰度方差。The gray-scale variance of the pixel point and adjacent pixels in multiple directions.
  23. 根据权利要求18所述的装置,其特征在于,所述处理器用于确定所述提取方向各自对应的高频成分的灰度增益,并根据所述灰度增益对所述高频成分进行增强处理时,具体用于:18. The device according to claim 18, wherein the processor is configured to determine the gray-scale gain of the high-frequency component corresponding to each of the extraction directions, and perform enhancement processing on the high-frequency component according to the gray-scale gain When, specifically used for:
    确定所述待处理红外图像各像素点在所述提取方向各自对应的高频成分的灰度增益;Determining the gray scale gain of the high-frequency component corresponding to each pixel of the infrared image to be processed in the extraction direction;
    基于各像素点在所述提取方向各自对应的高频成分的灰度增益对各像素点的高频成分进行增强处理,得到各像素点增强处理后的高频成分。The high-frequency component of each pixel is enhanced based on the gray gain of the high-frequency component corresponding to each pixel in the extraction direction, and the high-frequency component after the enhancement processing of each pixel is obtained.
  24. 根据权利要求23所述的装置,其特征在于,所述各像素点在各提取方向对应的高频成分的灰度增益的大小可调。The device according to claim 23, wherein the gray scale gain of the high frequency component corresponding to each pixel point in each extraction direction is adjustable.
  25. 根据权利要求24所述的装置,其特征在于,所述各像素点在各提取方向上对应的高频成分的灰度增益基于以下一种或多种信息确定:所述像素点自身的特性、所述像素点的邻域的特性、所述红外图像的特性和所述像素点的高频成分的提取信息。The device according to claim 24, wherein the gray scale gain of the high-frequency component corresponding to each pixel in each extraction direction is determined based on one or more of the following information: the characteristics of the pixel itself, The characteristic of the neighborhood of the pixel, the characteristic of the infrared image, and the extraction information of the high-frequency component of the pixel.
  26. 根据权利要求25所述的装置,其特征在于,所述像素点自身的特性包括:所述像素点的亮度、所述像素点在所述红外图像的位置分布和/或所述像素点的最大亮度变化阈值。The device according to claim 25, wherein the characteristics of the pixel point itself include: the brightness of the pixel point, the position distribution of the pixel point in the infrared image, and/or the maximum value of the pixel point. Brightness change threshold.
  27. 根据权利要求25所述的装置,其特征在于,所述像素点的邻域特性包括:所述邻域的亮度、所述邻域是否为用户感兴趣区域、所述邻域包含的横条纹噪声数量、所述邻域的信噪比和/或所述邻域是否存在粗边。The device according to claim 25, wherein the neighborhood characteristics of the pixel point include: brightness of the neighborhood, whether the neighborhood is a region of interest of the user, and horizontal stripe noise contained in the neighborhood The number, the signal-to-noise ratio of the neighborhood and/or whether there are thick edges in the neighborhood.
  28. 根据权利要求27所述的装置,其特征在于,所述邻域是否存在粗边通过以下方式确定:The device according to claim 27, wherein whether there are thick edges in the neighborhood is determined in the following manner:
    确定所述邻域中各像素点的梯度;Determining the gradient of each pixel in the neighborhood;
    根据所述梯度确定所述邻域是否存在粗边。Determine whether there are thick edges in the neighborhood according to the gradient.
  29. 根据权利要求25所述的装置,其特征在于,所述红外图像的特性包括:所述红外图像的用途、所述红外图像的采集时间、所述红外图像的采集模式和/或所述红外图像对应的后续处理操作。The device according to claim 25, wherein the characteristics of the infrared image include: the purpose of the infrared image, the collection time of the infrared image, the collection mode of the infrared image, and/or the infrared image Corresponding subsequent processing operations.
  30. 根据权利要求25所述的装置,其特征在于,所述像素点的高频成分的提取信息包括:所述像素点的高频成分的提取方向和/或用于提取所述高频成分的滤波器针对所述像素点的输出结果的绝对值。The device according to claim 25, wherein the extraction information of the high-frequency component of the pixel point comprises: an extraction direction of the high-frequency component of the pixel point and/or a filter used to extract the high-frequency component The absolute value of the output result of the detector for the pixel.
  31. 根据权利要求18所述的装置,其特征在于,所述处理器用于确 定所述提取方向各自对应的高频成分的灰度增益时,具体用于:The device according to claim 18, wherein when the processor is used to determine the gray scale gain of the respective high-frequency components corresponding to the extraction directions, it is specifically used to:
    根据所述待处理红外图像的各像素点在所述提取方向的灰度变化程度与在其他多个方向的灰度变化程度的差异确定所述提取方向的置信度;Determining the confidence level of the extraction direction according to the difference between the gray level change degree of each pixel of the infrared image to be processed in the extraction direction and the gray level change degree in other multiple directions;
    基于所述置信度确定所述提取方向的高频成分的灰度增益。The gray-scale gain of the high-frequency component in the extraction direction is determined based on the confidence.
  32. 根据权利要求18-31任一项所述的装置,其特征在于,所述高频成分包括第一高频成分和第二高频成分,所述第一高频成分对应的图像的灰度变化程度大于所述第二高频成分对应的图像的灰度变化程度。The device according to any one of claims 18-31, wherein the high-frequency component comprises a first high-frequency component and a second high-frequency component, and the gray level of the image corresponding to the first high-frequency component changes The degree is greater than the degree of grayscale change of the image corresponding to the second high-frequency component.
  33. 根据权利要求32所述的装置,其特征在于,所述确定所述提取方向对应的所述高频成分的灰度增益,包括:The device according to claim 32, wherein the determining the gray scale gain of the high-frequency component corresponding to the extraction direction comprises:
    确定所述提取方向对应的所述第一高频成分的第一灰度增益,确定所述提取方向对应的所述第二高频成分的第二灰度增益,所述第二灰度增益大于所述第一灰度增益。Determine the first gray-scale gain of the first high-frequency component corresponding to the extraction direction, determine the second gray-scale gain of the second high-frequency component corresponding to the extraction direction, and the second gray-scale gain is greater than The first gray scale gain.
  34. 根据权利要求18所述的装置,其特征在于,所述待处理红外图像为去噪处理后的红外图像。The device according to claim 18, wherein the infrared image to be processed is an infrared image after denoising processing.
  35. 一种可移动平台,其特征在于,所述可移动平台包括如权利要求18-34任一项所述的红外图像处理装置。A movable platform, wherein the movable platform comprises the infrared image processing device according to any one of claims 18-34.
  36. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至17任一项所述的红外图像处理方法。A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the infrared image processing according to any one of claims 1 to 17 is realized method.
PCT/CN2020/088469 2020-04-30 2020-04-30 Infrared image processing method and apparatus, and movable platform WO2021217642A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/088469 WO2021217642A1 (en) 2020-04-30 2020-04-30 Infrared image processing method and apparatus, and movable platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/088469 WO2021217642A1 (en) 2020-04-30 2020-04-30 Infrared image processing method and apparatus, and movable platform

Publications (1)

Publication Number Publication Date
WO2021217642A1 true WO2021217642A1 (en) 2021-11-04

Family

ID=78331659

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/088469 WO2021217642A1 (en) 2020-04-30 2020-04-30 Infrared image processing method and apparatus, and movable platform

Country Status (1)

Country Link
WO (1) WO2021217642A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116012346A (en) * 2023-02-01 2023-04-25 江苏天南电力股份有限公司 Power transmission line monitoring method and system
CN116228599A (en) * 2023-05-08 2023-06-06 山东省地质测绘院 Mineral resource dynamic monitoring method based on remote sensing image enhancement
CN116433035A (en) * 2023-06-13 2023-07-14 中科数创(临沂)数字科技有限公司 Building electrical fire risk assessment prediction method based on artificial intelligence
CN116665137A (en) * 2023-08-01 2023-08-29 聊城市彩烁农业科技有限公司 Livestock breeding wastewater treatment method based on machine vision
CN116934636A (en) * 2023-09-15 2023-10-24 济宁港航梁山港有限公司 Intelligent management system for water quality real-time monitoring data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2320637A1 (en) * 2008-07-30 2011-05-11 Mitsubishi Electric Corporation Image processing device and method, and image display device
CN104240208A (en) * 2014-09-30 2014-12-24 成都市晶林科技有限公司 Uncooled infrared focal plane detector image detail enhancement method
CN107730480A (en) * 2017-08-31 2018-02-23 中国航空工业集团公司洛阳电光设备研究所 The adaptive partition domain recombination method of low-and high-frequency signal in infrared picture data processing
CN111080538A (en) * 2019-11-29 2020-04-28 中国电子科技集团公司第五十二研究所 Infrared fusion edge enhancement method
CN111080568A (en) * 2019-12-13 2020-04-28 兰州交通大学 Tetrolet transform-based near-infrared and color visible light image fusion algorithm

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2320637A1 (en) * 2008-07-30 2011-05-11 Mitsubishi Electric Corporation Image processing device and method, and image display device
CN104240208A (en) * 2014-09-30 2014-12-24 成都市晶林科技有限公司 Uncooled infrared focal plane detector image detail enhancement method
CN107730480A (en) * 2017-08-31 2018-02-23 中国航空工业集团公司洛阳电光设备研究所 The adaptive partition domain recombination method of low-and high-frequency signal in infrared picture data processing
CN111080538A (en) * 2019-11-29 2020-04-28 中国电子科技集团公司第五十二研究所 Infrared fusion edge enhancement method
CN111080568A (en) * 2019-12-13 2020-04-28 兰州交通大学 Tetrolet transform-based near-infrared and color visible light image fusion algorithm

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WU YIQUAN;SHI JUNPENG: "Image Enhancement in Non-Subsampled Contourlet Transform Domain Based on Multi-Scale Retinex", ACTA OPTICA SINICA, vol. 35, no. 3, 10 March 2015 (2015-03-10), pages 87 - 96, XP055862654, DOI: 10.3788201535.0310002 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116012346A (en) * 2023-02-01 2023-04-25 江苏天南电力股份有限公司 Power transmission line monitoring method and system
CN116228599A (en) * 2023-05-08 2023-06-06 山东省地质测绘院 Mineral resource dynamic monitoring method based on remote sensing image enhancement
CN116228599B (en) * 2023-05-08 2023-07-21 山东省地质测绘院 Mineral resource dynamic monitoring method based on remote sensing image enhancement
CN116433035A (en) * 2023-06-13 2023-07-14 中科数创(临沂)数字科技有限公司 Building electrical fire risk assessment prediction method based on artificial intelligence
CN116433035B (en) * 2023-06-13 2023-09-15 中科数创(临沂)数字科技有限公司 Building electrical fire risk assessment prediction method based on artificial intelligence
CN116665137A (en) * 2023-08-01 2023-08-29 聊城市彩烁农业科技有限公司 Livestock breeding wastewater treatment method based on machine vision
CN116665137B (en) * 2023-08-01 2023-10-10 聊城市彩烁农业科技有限公司 Livestock breeding wastewater treatment method based on machine vision
CN116934636A (en) * 2023-09-15 2023-10-24 济宁港航梁山港有限公司 Intelligent management system for water quality real-time monitoring data
CN116934636B (en) * 2023-09-15 2023-12-08 济宁港航梁山港有限公司 Intelligent management system for water quality real-time monitoring data

Similar Documents

Publication Publication Date Title
WO2021217642A1 (en) Infrared image processing method and apparatus, and movable platform
WO2021217643A1 (en) Method and device for infrared image processing, and movable platform
Shin et al. Radiance–reflectance combined optimization and structure-guided $\ell _0 $-Norm for single image dehazing
US8472744B2 (en) Device and method for estimating whether an image is blurred
CN109003233B (en) Image denoising method based on self-adaptive weight total variation model
CN106412448B (en) Wide dynamic range processing method and system based on single frame image
CN114399522A (en) High-low threshold-based Canny operator edge detection method
CN107292834B (en) Infrared image detail enhancement method
WO2022016326A1 (en) Image processing method, electronic device, and computer-readable medium
CN116612112B (en) Visual inspection method for surface defects of bucket
Hu et al. Kinect depth map based enhancement for low light surveillance image
CN113808149A (en) Automobile scratch detection method based on self-adaptive threshold
CN112163587A (en) Feature extraction method and device of target object and computer readable medium
Reich et al. A Real-Time Edge-Preserving Denoising Filter.
Lee et al. Joint defogging and demosaicking
Zhang et al. A LCD screen Mura defect detection method based on machine vision
JP2019160297A (en) Image processing device for reducing stepwise artifact from image signal
CN112887513B (en) Image noise reduction method and camera
Gopika et al. Visibility enhancement of hazy image using depth estimation concept
WO2017080236A1 (en) Image processing method and device
Aswathy et al. Review on Haze removal methods
CN112163586A (en) Feature extraction method and device of target object and computer readable medium
Elhefnawy et al. Effective visibility restoration and enhancement of air polluted images with high information fidelity
Huang et al. Single image dehazing via color balancing and quad-decomposition atmospheric light estimation
CN113674158A (en) Image processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20933919

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20933919

Country of ref document: EP

Kind code of ref document: A1