CN113689366B - Dynamic temperature width adjusting method and device - Google Patents
Dynamic temperature width adjusting method and device Download PDFInfo
- Publication number
- CN113689366B CN113689366B CN202111007413.9A CN202111007413A CN113689366B CN 113689366 B CN113689366 B CN 113689366B CN 202111007413 A CN202111007413 A CN 202111007413A CN 113689366 B CN113689366 B CN 113689366B
- Authority
- CN
- China
- Prior art keywords
- temperature
- grayscale
- image
- value
- scene
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/40—Image enhancement or restoration using histogram techniques
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J5/00—Radiation pyrometry, e.g. infrared or optical thermometry
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J5/00—Radiation pyrometry, e.g. infrared or optical thermometry
- G01J2005/0077—Imaging
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10048—Infrared image
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Radiation Pyrometers (AREA)
Abstract
Description
【技术领域】[Technical field]
本发明涉及红外热像仪测温领域,特别是涉及一种温宽动态调节方法和装置。The invention relates to the field of temperature measurement with infrared thermal imagers, and in particular to a method and device for dynamically adjusting temperature width.
【背景技术】【Background technique】
红外热像仪是利用红外探测器和光学成像物镜接受被测目标的红外辐射能量分布图形反映到红外探测器的光敏元件上,从而获得红外热像图,这种热像图与物体表面的热分布场相对应。通俗地讲红外热像仪就是将物体发出的不可见红外能量转变为可见的热图像。热图像的上面的不同颜色代表被测物体的不同温度。Infrared thermal imagers use infrared detectors and optical imaging lenses to receive the infrared radiation energy distribution pattern of the target to be measured and reflect it on the photosensitive element of the infrared detector, thereby obtaining an infrared thermal image. This thermal image corresponds to the heat distribution field on the surface of the object. In layman's terms, infrared thermal imagers convert the invisible infrared energy emitted by an object into a visible thermal image. The different colors on the thermal image represent the different temperatures of the object being measured.
在现有的红外热像仪测温领域,温度数据可被处理为可视化的红外画面,但现有的红外画面中对关注区域画面的凸显均存在破坏画面原有红外成像效果的问题,单一方法的温度区域凸显或标记无法保证关注区域画面的真实度和细节度。In the existing field of temperature measurement using infrared thermal imagers, temperature data can be processed into visual infrared images. However, the highlighting of the focus area in the existing infrared images destroys the original infrared imaging effect of the image. A single method of highlighting or marking the temperature area cannot guarantee the authenticity and detail of the focus area image.
鉴于此,如何克服现有技术所存在的缺陷,解决上述技术问题,提供一种可动态调节温度范围、获取关注区域无失真高细节度温度画面的方法,是本技术领域待解决的难题。In view of this, how to overcome the defects of the prior art, solve the above technical problems, and provide a method that can dynamically adjust the temperature range and obtain a distortion-free and high-detail temperature image of the area of interest is a difficult problem to be solved in this technical field.
【发明内容】[Summary of the invention]
针对现有技术的以上缺陷或改进需求,本发明提供一种温宽动态调节方法和装置,可动态的调节目标温度范围,并只保留目标温度范围内观测物体的红外画面,对目标温度范围以外的画面做单色覆盖处理,可凸显被关注区域,避免非关注区域对关注区域画面色彩的影响。In view of the above defects or improvement needs of the prior art, the present invention provides a method and device for dynamically adjusting the temperature width, which can dynamically adjust the target temperature range and only retain the infrared image of the observed object within the target temperature range, and perform monochrome overlay processing on the image outside the target temperature range, thereby highlighting the area of interest and avoiding the influence of the non-area of interest on the color of the image of the area of interest.
本发明实施例采用如下技术方案:The embodiment of the present invention adopts the following technical solution:
第一方面,本发明提供了一种温宽动态调节方法,包括:根据待观测场景的温度分布情况选择合适的图像预处理方法,将灰度值进行映射处理,以增强图像的质量;In a first aspect, the present invention provides a method for dynamically adjusting temperature width, comprising: selecting a suitable image preprocessing method according to the temperature distribution of a scene to be observed, and mapping the grayscale values to enhance the quality of the image;
启用动态调节模式,将实际场景中的最值温度映射至动态调节模式下的最值温度等级;Enable the dynamic adjustment mode and map the maximum temperature in the actual scene to the maximum temperature level in the dynamic adjustment mode;
通过重复变更温度等级范围,确定需要重点观测的目标温度范围;By repeatedly changing the temperature level range, determine the target temperature range that needs to be focused on;
获取最终调节后的观测画面。Get the final adjusted observation picture.
进一步的,所述根据待观测场景的温度分布情况选择合适的图像预处理方法,将灰度值进行映射处理,以增强图像的质量具体包括:Furthermore, the method of selecting a suitable image preprocessing method according to the temperature distribution of the scene to be observed and mapping the grayscale values to enhance the image quality specifically includes:
在待观测场景下开启产品,观察待观测场景的温度分布情况;Turn on the product in the scene to be observed and observe the temperature distribution of the scene to be observed;
若待观测场景中温度分布较为均匀,则使用线性灰度映射方法进行图像预处理;If the temperature distribution in the scene to be observed is relatively uniform, the linear grayscale mapping method is used for image preprocessing;
若待观测场景中温度分布不均匀,则使用直方图均衡方法进行图像预处理。If the temperature distribution in the scene to be observed is uneven, the histogram equalization method is used for image preprocessing.
进一步的,所述线性灰度映射方法具体包括:按线性映射的规则修改原始图像的每一个像素的灰度值,从而改变图像灰度的动态范围。Furthermore, the linear grayscale mapping method specifically includes: modifying the grayscale value of each pixel of the original image according to the linear mapping rule, thereby changing the dynamic range of the image grayscale.
进一步的,所述直方图均衡方法具体包括:将图像进行直方图均衡化,使得图像灰度级分布概率相同。Furthermore, the histogram equalization method specifically includes: performing histogram equalization on the image so that the grayscale distribution probability of the image is the same.
进一步的,在进行直方图均衡化之前,对图像的灰度范围做归一化处理,将灰度范围化为[0,1]。Furthermore, before performing histogram equalization, the grayscale range of the image is normalized to [0,1].
进一步的,所述图像灰度级量化为8bit,所述图像灰度级范围为[0,255]。Furthermore, the image grayscale is quantized to 8 bits, and the image grayscale range is [0, 255].
进一步的,所述启用动态调节模式,将实际场景中的最值温度映射至动态调节模式下的最值温度等级具体包括:Furthermore, the enabling of the dynamic adjustment mode to map the maximum temperature in the actual scene to the maximum temperature level in the dynamic adjustment mode specifically includes:
启用动态调节功能,得到实际场景中的最高温度和最低温度,根据所选算法将灰度级重新进行映射后得到最高温度等级值TH和最低温度等级值TL。The dynamic adjustment function is enabled to obtain the highest temperature and the lowest temperature in the actual scene, and the highest temperature level value TH and the lowest temperature level value TL are obtained after the grayscale is remapped according to the selected algorithm.
进一步的,所述通过重复变更温度等级范围,确定需要重点观测的目标温度范围具体包括:Furthermore, the step of repeatedly changing the temperature level range to determine the target temperature range that needs to be focused on includes:
选取高于当前最低温度等级值的温度值Tl,若某像素点温度值t1满足TL≤t1≤Tl,则将该像素点的灰度值全部赋值为最低灰度值,其他像素点灰度值不变;Select a temperature value T l that is higher than the current minimum temperature level. If the temperature value t 1 of a certain pixel satisfies T L ≤ t 1 ≤ T l , then assign all grayscale values of the pixel to the minimum grayscale value, and the grayscale values of other pixels remain unchanged.
选取低于当前最高温度等级值的温度值Th,如果某像素点温度值t2满足Th≤t2≤TH,则将该像素点的灰度值全部赋值为最高灰度值,其他像素点灰度值不变;Select a temperature value Th that is lower than the current highest temperature level. If the temperature value t2 of a certain pixel satisfies Th ≤ t2 ≤ TH , assign all grayscale values of the pixel to the highest grayscale value, and the grayscale values of other pixels remain unchanged.
重复Tl、Th的选取步骤,观察温度图像,直至确定t1和t2为需要重点观测的目标温度范围。Repeat the steps of selecting T l and Th and observe the temperature image until t 1 and t 2 are determined to be the target temperature ranges that need to be observed.
进一步的,所述获取最终调节后的观测画面具体包括:Furthermore, the obtaining of the finally adjusted observation picture specifically includes:
通过获取到的目标温度范围来对成像的结果进行处理,从而获取目标温度范围对应的观测目标的红外温度画面。The imaging result is processed by the acquired target temperature range, so as to obtain the infrared temperature picture of the observed target corresponding to the target temperature range.
另一方面,本发明提供了一种温宽动态调节装置,具体为:包括至少一个处理器和存储器,至少一个处理器和存储器之间通过数据总线连接,存储器存储能被至少一个处理器执行的指令,指令在被处理器执行后,用于完成第一方面中的温宽动态调节方法。On the other hand, the present invention provides a temperature width dynamic adjustment device, specifically: including at least one processor and a memory, at least one processor and the memory are connected through a data bus, the memory stores instructions that can be executed by at least one processor, and after the instructions are executed by the processor, they are used to complete the temperature width dynamic adjustment method in the first aspect.
与现有技术相比,本发明实施例的有益效果在于:本发明提供的温宽动态调节方法根据使用者的需求灵活的保留关注区域,弱化非关注区域,避免了非关注区域温度变化对关注区域温度的影响,且保证了关注区域的图像细节度和真实度。Compared with the prior art, the beneficial effect of the embodiments of the present invention is that the temperature width dynamic adjustment method provided by the present invention flexibly retains the area of interest and weakens the non-area of interest according to the needs of the user, thereby avoiding the influence of temperature changes in the non-area of interest on the temperature of the area of interest, and ensuring the image detail and authenticity of the area of interest.
【附图说明】【Brief Description of the Drawings】
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍。显而易见地,下面所描述的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
图1为本发明实施例1提供的一种温宽动态调节方法流程图;FIG1 is a flow chart of a method for dynamically adjusting temperature width provided in Example 1 of the present invention;
图2为本发明实施例1提供的步骤100具体流程图;FIG2 is a specific flow chart of step 100 provided in Example 1 of the present invention;
图3为本发明实施例1提供的步骤300具体流程图;FIG3 is a specific flow chart of step 300 provided in Embodiment 1 of the present invention;
图4为本发明实施例2提供的一种温宽动态调节系统模块框图;FIG4 is a block diagram of a temperature width dynamic adjustment system module provided by Embodiment 2 of the present invention;
图5为本发明实施例3提供的一种温宽动态调节装置结构示意图。FIG. 5 is a schematic diagram of the structure of a temperature width dynamic adjustment device provided in Example 3 of the present invention.
【具体实施方式】【Detailed ways】
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。下面就参考附图和实施例结合来详细说明本发明。In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other. The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
实施例1:Embodiment 1:
如图1所示,本发明实施例提供一种温宽动态调节方法,具体步骤如下。As shown in FIG. 1 , an embodiment of the present invention provides a method for dynamically adjusting a temperature width, and the specific steps are as follows.
步骤100:根据待观测场景的温度分布情况选择合适的图像预处理方法,将灰度值进行映射处理,以增强图像的质量。Step 100: Select a suitable image preprocessing method according to the temperature distribution of the scene to be observed, and perform mapping processing on the grayscale values to enhance the quality of the image.
步骤200:启用动态调节模式,将实际场景中的最值温度映射至动态调节模式下的最值温度等级。Step 200: Enable the dynamic adjustment mode and map the maximum temperature in the actual scene to the maximum temperature level in the dynamic adjustment mode.
步骤300:通过重复变更温度等级范围,确定需要重点观测的目标温度范围。Step 300: Determine the target temperature range that needs to be focused on by repeatedly changing the temperature level range.
步骤400:获取最终调节后的观测画面。Step 400: Obtain the final adjusted observation picture.
在本优选实施例中,实行上述步骤前还需要进行一步准备工作:根据需要选择合适的外红待观测场景。具体的,需要先选取合适的产品,将产品调节至合适的观测角度和观测距离,保证观测场景可用性。In this preferred embodiment, a step of preparation is required before the above steps are implemented: select a suitable infrared observation scene as needed. Specifically, it is necessary to first select a suitable product and adjust the product to a suitable observation angle and observation distance to ensure the availability of the observation scene.
在准备工作完成后,进行步骤100,具体的,如图2所示,在本优选实施例中,步骤100可扩展为:After the preparation work is completed, step 100 is performed. Specifically, as shown in FIG. 2 , in this preferred embodiment, step 100 can be expanded to:
步骤101:在待观测场景下开启产品,观察待观测场景的温度分布情况。Step 101: Turn on the product in the scene to be observed and observe the temperature distribution of the scene to be observed.
步骤102:若待观测场景中温度分布较为均匀,则使用线性灰度映射方法进行图像预处理。Step 102: If the temperature distribution in the scene to be observed is relatively uniform, a linear grayscale mapping method is used to perform image preprocessing.
步骤103:若待观测场景中温度分布不均匀,则使用直方图均衡方法进行图像预处理。Step 103: If the temperature distribution in the scene to be observed is uneven, a histogram equalization method is used to perform image preprocessing.
上述步骤102与步骤103为并列关系,根据待观测场景中温度分布情况来选择执行哪一步骤。The above-mentioned step 102 and step 103 are in parallel relationship, and which step to execute is selected according to the temperature distribution in the scene to be observed.
其中,步骤102的方法是按线性映射的规则修改原始图像的每一个像素的灰度值,从而改变图像灰度的动态范围。它可以使灰度动态范围扩展,根据需要将图像灰度映射至整个灰度级范围。The method of step 102 is to modify the gray value of each pixel of the original image according to the rule of linear mapping, thereby changing the dynamic range of the image grayscale, which can expand the grayscale dynamic range and map the image grayscale to the entire grayscale range as needed.
步骤102中线性灰度增强的原理为:在同一幅图像中,对输入图像的每一个像素点,其灰度值都按照下式(1)的线性函数进行映射,对于整个图像灰度级的调整不需要考虑像素在图像中的位置,直接对图像的灰度值进行调整。The principle of linear grayscale enhancement in step 102 is: in the same image, for each pixel point of the input image, its grayscale value is mapped according to the linear function of the following formula (1), and the grayscale adjustment of the entire image does not need to consider the position of the pixel in the image, and the grayscale value of the image is directly adjusted.
设输入图像为f(x,y),处理后的图像为g(x,y),如果原图像f(x,y)的灰度范围为[a,b],线性调整后的图像g(x,y)的灰度范围是[c,d],则线性灰度增强可以表示为以下数学变换式:Suppose the input image is f(x,y) and the processed image is g(x,y). If the grayscale range of the original image f(x,y) is [a,b] and the grayscale range of the linearly adjusted image g(x,y) is [c,d], then the linear grayscale enhancement can be expressed as the following mathematical transformation:
步骤103中直方图均衡方法具体包括:将图像进行直方图均衡化,使得图像灰度级分布概率相同。具体的,在直方图中,如果灰度集中于高灰度区域,图像低灰度就不容易分辨,如果灰度级集中于低灰度区域,那么高灰度就不容易分辨。为了能够让高低灰度都容易分辨,最好的办法是将图像进行转换,使得灰度级分布概率相同。这就是直方图均衡的目的。The histogram equalization method in step 103 specifically includes: performing histogram equalization on the image so that the grayscale distribution probability of the image is the same. Specifically, in the histogram, if the grayscale is concentrated in the high grayscale area, the low grayscale of the image is not easy to distinguish, and if the grayscale is concentrated in the low grayscale area, the high grayscale is not easy to distinguish. In order to make it easy to distinguish high and low grayscales, the best way is to convert the image so that the grayscale distribution probability is the same. This is the purpose of histogram equalization.
一般为了便于讨论,在进行直方图均衡化操作前,要对图像的灰度范围做归一化处理,即把灰度范围化为[0,1]。首先做如下假设,要处理的原始图像灰度值用r(0≤r≤1)表示,其概率密度用pr(r)表示,变换后图像的像素灰度值用s表示,概率密度用ps(s)表示。假设图像经过如下变换:Generally, for the convenience of discussion, before performing the histogram equalization operation, the grayscale range of the image should be normalized, that is, the grayscale range should be [0,1]. First, make the following assumptions: the grayscale value of the original image to be processed is represented by r (0≤r≤1), its probability density is represented by p r (r), the pixel grayscale value of the transformed image is represented by s, and the probability density is represented by p s (s). Assume that the image is transformed as follows:
s=T(r),0≤r≤L-1 (2)s=T(r), 0≤r≤L-1 (2)
其变换函数s=T(r)满足如下条件:Its transformation function s=T(r) satisfies the following conditions:
(a):函数T(r)是单指且单调递增的,该条件保证了在转换过程中的单指映射且转换后的图像灰度不出现反转现象。(a): The function T(r) is unidirectional and monotonically increasing. This condition ensures the unidirectional mapping during the conversion process and the grayscale of the converted image does not reverse.
(b):当0≤r≤1时0≤T(r)≤L-1,该条件限制了灰度级于输入灰度级具有相同的灰度级范围。(b): When 0≤r≤1, 0≤T(r)≤L-1. This condition limits the grayscale level to have the same grayscale range as the input grayscale level.
上述式子中,L为灰度级。目的是使得灰度级概率分布相等:In the above formula, L is the gray level. The purpose is to make the gray level probability distribution equal:
变换前灰度级分布和变换后灰度级分布关系可表示为:The relationship between the grayscale distribution before and after the transformation can be expressed as:
因此有:So we have:
T′(r)=(L-1)pr(r) (5)T′(r)=(L-1)pr( r ) (5)
积分有:Points include:
离散化表示:Discretization representation:
设图像灰度级量化为8bit,即图像的灰度级范围为[0,255],N表示总像素数。Assume that the image grayscale is quantized to 8 bits, that is, the grayscale range of the image is [0, 255], and N represents the total number of pixels.
在本优选实施例中,步骤200(启用动态调节模式,将实际场景中的最值温度映射至动态调节模式下的最值温度等级)可扩展为:启用动态调节功能,得到实际场景中的最高温度和最低温度,根据所选算法将灰度级重新进行映射后得到最高温度等级值TH和最低温度等级值TL。In this preferred embodiment, step 200 (enabling the dynamic adjustment mode and mapping the maximum temperature in the actual scene to the maximum temperature level in the dynamic adjustment mode) can be expanded to: enabling the dynamic adjustment function, obtaining the highest temperature and the lowest temperature in the actual scene, and remapping the grayscale according to the selected algorithm to obtain the highest temperature level value TH and the lowest temperature level value TL .
如图3所示,在本优选实施例中,步骤300(通过重复变更温度等级范围,确定需要重点观测的目标温度范围)可扩展为:As shown in FIG. 3 , in this preferred embodiment, step 300 (determining the target temperature range that needs to be focused on by repeatedly changing the temperature level range) can be expanded to:
步骤301:选取高于当前最低温度等级值的温度值(Tl),若某像素点温度值(t1)满足条件(TL≤t1≤Tl),则将该像素点的灰度值全部赋值为最低灰度值,其他像素点灰度值不变;在上述设定图像的灰度级范围为[0,255]情况下,该步骤中赋值的最低灰度值为0。Step 301: Select a temperature value (T l ) higher than the current minimum temperature level value. If the temperature value of a pixel point (t 1 ) satisfies the condition (T L ≤ t 1 ≤ T l ), all grayscale values of the pixel point are assigned to the minimum grayscale value, and the grayscale values of other pixels remain unchanged. When the grayscale range of the above-mentioned image is set to [0, 255], the minimum grayscale value assigned in this step is 0.
步骤302:选取低于当前最高温度等级值的温度值(Th),如果某像素点温度值(t2)满足条件(Th≤t2≤TH),则将该像素点的灰度值全部赋值为最高灰度值,其他像素点灰度值不变;在上述设定图像的灰度级范围为[0,255]情况下,该步骤中赋值的最高灰度值为255。Step 302: Select a temperature value ( Th ) lower than the current maximum temperature level. If the temperature value of a pixel ( t2 ) satisfies the condition ( Th≤t2≤TH ) , all grayscale values of the pixel are assigned the maximum grayscale value, and the grayscale values of other pixels remain unchanged. When the grayscale range of the above-mentioned image is set to [ 0,255 ], the maximum grayscale value assigned in this step is 255.
步骤303:重复步骤301以及步骤302,观察温度图像,直至确定需要重点观测的目标温度范围:t1和t2。Step 303: Repeat steps 301 and 302 to observe the temperature image until the target temperature ranges that need to be focused on are determined: t1 and t2 .
在本优选实施例中,步骤400(获取最终调节后的观测画面)具体包括:通过获取到的目标温度范围来对成像的结果进行处理,从而获取目标温度范围对应的观测目标的红外温度画面。In this preferred embodiment, step 400 (obtaining the observation picture after the final adjustment) specifically includes: processing the imaging result by using the acquired target temperature range, thereby obtaining the infrared temperature picture of the observation target corresponding to the target temperature range.
本发明提供的温宽动态调节方法根据使用者的需求灵活的保留关注区域,弱化非关注区域,避免了非关注区域温度变化对关注区域温度的影响,且保证了关注区域的图像细节度和真实度。The temperature width dynamic adjustment method provided by the present invention flexibly retains the focus area and weakens the non-focus area according to the needs of the user, thereby avoiding the influence of the temperature change of the non-focus area on the temperature of the focus area and ensuring the image detail and authenticity of the focus area.
实施例2:Embodiment 2:
基于实施例1提供的温宽动态调节方法,本实施例2提供与实施例1对应的一种温宽动态调节系统,如图4所示,该系统包括图像预处理模块、动态调节模块以及成像处理模块。Based on the temperature-width dynamic adjustment method provided in Example 1, this Example 2 provides a temperature-width dynamic adjustment system corresponding to Example 1. As shown in FIG. 4 , the system includes an image preprocessing module, a dynamic adjustment module, and an imaging processing module.
在本优选实施例中,所述图像预处理模块用于根据待观测场景的温度分布情况选择合适的图像预处理方法,将灰度值进行映射处理,以增强图像的质量。具体的,对于所述的图像预处理模块,还可细分为温度分布获取模块、温度分布判断模块、线性灰度映射模块以及直方图均衡模块,其中,温度分布获取模块用于观察待观测场景的温度分布情况;温度分布判断模块用于判断温度分布是否均匀;线性灰度映射模块用于在温度分布较为均匀时使用线性灰度映射方法进行图像预处理;直方图均衡模块用于在温度分布不均匀时使用直方图均衡方法进行图像预处理。上述各模块具体处理过程与实施例1中步骤100的详细过程相对应,在此不再赘述。In this preferred embodiment, the image preprocessing module is used to select a suitable image preprocessing method according to the temperature distribution of the scene to be observed, and to map the grayscale value to enhance the quality of the image. Specifically, the image preprocessing module can also be subdivided into a temperature distribution acquisition module, a temperature distribution judgment module, a linear grayscale mapping module and a histogram equalization module, wherein the temperature distribution acquisition module is used to observe the temperature distribution of the scene to be observed; the temperature distribution judgment module is used to judge whether the temperature distribution is uniform; the linear grayscale mapping module is used to use the linear grayscale mapping method to perform image preprocessing when the temperature distribution is relatively uniform; the histogram equalization module is used to use the histogram equalization method to perform image preprocessing when the temperature distribution is uneven. The specific processing process of each of the above modules corresponds to the detailed process of step 100 in Example 1, and will not be repeated here.
在本优选实施例中,所述动态调节模块用于启用动态调节模式,将实际场景中的最值温度映射至动态调节模式下的最值温度等级,然后通过重复变更温度等级范围,确定需要重点观测的目标温度范围。具体的,对于所述的动态调节模块,还可细分为最值温度等级获取模块、最低灰度值赋值模块、最高灰度值赋值模块以及目标温度范围确定模块,其中,最值温度等级获取模块用于启用动态调节功能,得到实际场景中的最高温度和最低温度,根据所选算法将灰度级重新进行映射后得到最高温度等级值TH和最低温度等级值TL;所述最低灰度值赋值模块用于选取高于当前最低温度等级值的温度值Tl,若某像素点温度值t1满足TL≤t1≤Tl,则将该像素点的灰度值全部赋值为最低灰度值,其他像素点灰度值不变;所述最高灰度值赋值模块用于选取低于当前最高温度等级值的温度值Th,如果某像素点温度值t2满足Th≤t2≤TH,则将该像素点的灰度值全部赋值为最高灰度值,其他像素点灰度值不变;所述目标温度范围确定模块用于在最低灰度值赋值模块与最高灰度值赋值模块的重复工作中,观察温度图像,直至确定t1和t2为需要重点观测的目标温度范围。上述各模块具体处理过程与实施例1中步骤200、步骤300的详细过程相对应,在此不再赘述。In this preferred embodiment, the dynamic adjustment module is used to enable the dynamic adjustment mode, map the maximum temperature in the actual scene to the maximum temperature level in the dynamic adjustment mode, and then determine the target temperature range that needs to be observed by repeatedly changing the temperature level range. Specifically, the dynamic adjustment module can be further divided into a maximum temperature level acquisition module, a minimum grayscale value assignment module, a maximum grayscale value assignment module and a target temperature range determination module, wherein the maximum temperature level acquisition module is used to enable the dynamic adjustment function, obtain the maximum temperature and the minimum temperature in the actual scene, and remap the grayscale according to the selected algorithm to obtain the maximum temperature level value TH and the minimum temperature level value TL ; the minimum grayscale value assignment module is used to select a temperature value Tl higher than the current minimum temperature level value. If the temperature value t1 of a certain pixel point satisfies TL≤t1≤Tl , all the grayscale values of the pixel point are assigned to the minimum grayscale value, and the grayscale values of other pixels remain unchanged; the maximum grayscale value assignment module is used to select a temperature value Th lower than the current maximum temperature level value. If the temperature value t2 of a certain pixel point satisfies Th≤t2≤TH , then the grayscale values of the pixel points are all assigned to the highest grayscale value, and the grayscale values of other pixel points remain unchanged; the target temperature range determination module is used to observe the temperature image in the repeated work of the lowest grayscale value assignment module and the highest grayscale value assignment module until t1 and t2 are determined as the target temperature ranges that need to be focused on. The specific processing process of each of the above modules corresponds to the detailed process of step 200 and step 300 in embodiment 1, and will not be repeated here.
在本优选实施例中,所述成像处理模块用于通过获取到的目标温度范围来对成像的结果进行处理,从而获取目标温度范围对应的观测目标的红外温度画面。In this preferred embodiment, the imaging processing module is used to process the imaging result by using the acquired target temperature range, so as to obtain the infrared temperature picture of the observed target corresponding to the target temperature range.
本实施例中,上述各个模块之间通过协同处理以达到下述技术效果:根据使用者的需求灵活的保留关注区域,弱化非关注区域,避免非关注区域温度变化对关注区域温度的影响,且保证关注区域的图像细节度和真实度。各模块间协同处理的流程与步骤详见实施例1,在此不再赘述。In this embodiment, the above modules are processed collaboratively to achieve the following technical effects: flexibly retain the area of interest according to the needs of the user, weaken the non-area of interest, avoid the influence of the temperature change of the non-area of interest on the temperature of the area of interest, and ensure the image detail and authenticity of the area of interest. The process and steps of the collaborative processing between the modules are detailed in Example 1, which will not be repeated here.
实施例3:Embodiment 3:
在上述实施例1至实施例2提供的温宽动态调节方法与系统的基础上,本发明还提供了一种可用于实现上述方法及系统的温宽动态调节装置,如图5所示,是本发明实施例的装置架构示意图。本实施例的温宽动态调节装置包括一个或多个处理器21以及存储器22。其中,图5中以一个处理器21为例。On the basis of the temperature width dynamic adjustment method and system provided in the above-mentioned embodiments 1 and 2, the present invention further provides a temperature width dynamic adjustment device that can be used to implement the above-mentioned method and system, as shown in FIG5 , which is a schematic diagram of the device architecture of an embodiment of the present invention. The temperature width dynamic adjustment device of this embodiment includes one or more processors 21 and a memory 22. Among them, FIG5 takes one processor 21 as an example.
处理器21和存储器22可以通过总线或者其他方式连接,图5中以通过总线连接为例。The processor 21 and the memory 22 may be connected via a bus or other means, and FIG5 takes the connection via a bus as an example.
存储器22作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如实施例1至实施例2中的温宽动态调节方法、系统。处理器21通过运行存储在存储器22中的非易失性软件程序、指令以及模块,从而执行温宽动态调节装置的各种功能应用以及数据处理,即实现实施例1至实施例2的温宽动态调节方法及系统。The memory 22 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as the temperature width dynamic adjustment method and system in Embodiments 1 to 2. The processor 21 executes various functional applications and data processing of the temperature width dynamic adjustment device by running the non-volatile software programs, instructions and modules stored in the memory 22, that is, the temperature width dynamic adjustment method and system in Embodiments 1 to 2 are implemented.
存储器22可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器22可选包括相对于处理器21远程设置的存储器,这些远程存储器可以通过网络连接至处理器21。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 22 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 22 may optionally include a memory remotely arranged relative to the processor 21, and these remote memories may be connected to the processor 21 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
程序指令/模块存储在存储器22中,当被一个或者多个处理器21执行时,执行上述实施例1至实施例2中的温宽动态调节方法、系统,例如,执行以上描述的图1和图4所示的各个步骤及模块功能。The program instructions/modules are stored in the memory 22, and when executed by one or more processors 21, the temperature width dynamic adjustment method and system in the above-mentioned embodiments 1 to 2 are executed, for example, the various steps and module functions shown in Figures 1 and 4 described above are executed.
本领域普通技术人员可以理解实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ReadOnlyMemory,简写为:ROM)、随机存取存储器(RandomAccessMemory,简写为:RAM)、磁盘或光盘等。A person skilled in the art may understand that all or part of the steps in the various methods of the embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111007413.9A CN113689366B (en) | 2021-08-30 | 2021-08-30 | Dynamic temperature width adjusting method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111007413.9A CN113689366B (en) | 2021-08-30 | 2021-08-30 | Dynamic temperature width adjusting method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113689366A CN113689366A (en) | 2021-11-23 |
| CN113689366B true CN113689366B (en) | 2024-07-16 |
Family
ID=78584058
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111007413.9A Active CN113689366B (en) | 2021-08-30 | 2021-08-30 | Dynamic temperature width adjusting method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113689366B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114978866B (en) * | 2022-05-25 | 2024-02-20 | 北京天融信网络安全技术有限公司 | Detection method, detection device and electronic equipment |
| CN115751669A (en) * | 2022-11-03 | 2023-03-07 | 青岛海信日立空调系统有限公司 | Air conditioning system and control method thereof |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105654438A (en) * | 2015-12-27 | 2016-06-08 | 西南技术物理研究所 | Gray scale image fitting enhancement method based on local histogram equalization |
| CN106934782A (en) * | 2017-01-16 | 2017-07-07 | 中国计量大学 | A kind of infrared image enhancing method |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE60202588T2 (en) * | 2002-02-22 | 2006-01-05 | Agfa-Gevaert N.V. | Method for noise reduction |
| DE102006026843A1 (en) * | 2006-06-09 | 2007-12-20 | Carl Zeiss Nts Gmbh | Method for processing a digital gray value image |
| CN102426698A (en) * | 2011-11-04 | 2012-04-25 | 中国航空工业集团公司洛阳电光设备研究所 | A kind of infrared image enhancement method |
| CN108805942B (en) * | 2017-04-28 | 2021-08-17 | 武汉多谱多勒科技有限公司 | Infrared image wide dynamic compression method |
| CN109523477B (en) * | 2018-11-06 | 2021-07-30 | 武汉高德智感科技有限公司 | Self-adaptive infrared image dynamic range transformation method |
| CN111709885B (en) * | 2020-04-29 | 2023-04-07 | 李武周 | Infrared weak and small target enhancement method based on region of interest and image mark |
-
2021
- 2021-08-30 CN CN202111007413.9A patent/CN113689366B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105654438A (en) * | 2015-12-27 | 2016-06-08 | 西南技术物理研究所 | Gray scale image fitting enhancement method based on local histogram equalization |
| CN106934782A (en) * | 2017-01-16 | 2017-07-07 | 中国计量大学 | A kind of infrared image enhancing method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113689366A (en) | 2021-11-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8737736B2 (en) | Tone mapping of very large aerial image mosaic | |
| CN107590791B (en) | Image enhancement method and image processing device | |
| US8902328B2 (en) | Method of selecting a subset from an image set for generating high dynamic range image | |
| CN112634183B (en) | Image processing method and device | |
| CN113689366B (en) | Dynamic temperature width adjusting method and device | |
| CN114240767B (en) | Image wide dynamic range processing method and device based on exposure fusion | |
| US20200193578A1 (en) | Method and system for image enhancement | |
| WO2022199710A1 (en) | Image fusion method and apparatus, computer device, and storage medium | |
| WO2023131189A1 (en) | Image inpainting method and device | |
| JP7469738B2 (en) | Trained machine learning model, image generation device, and method for training machine learning model | |
| WO2020107308A1 (en) | Low-light-level image rapid enhancement method and apparatus based on retinex | |
| CN116597252A (en) | Image generation method, device, computer equipment and storage medium | |
| CN113592739B (en) | Lens shading correction method, device and storage medium | |
| CN114331893B (en) | Method, medium and electronic device for obtaining image noise | |
| KR20230019060A (en) | Method for controlling image signal processor and control device for performing the same | |
| WO2024011756A1 (en) | Image acquisition parameter adjustment method and system, electronic device, and storage medium | |
| CN111260573B (en) | A method for eliminating vignetting phenomenon in surgical microscopic imaging | |
| CN106023105B (en) | A method and system for generating binary images of plant leaves | |
| CN118429204A (en) | Image processing method, device, equipment and medium for low light environment | |
| JP2024038523A (en) | Image processing method, learned model manufacturing method, program, and image processing device | |
| CN114494471B (en) | Image contrast enhancement method and system | |
| CN116883451A (en) | Target tracking method, device, equipment and medium based on bimodal photoelectric device | |
| CN117078603A (en) | Semiconductor laser chip damage detection method and system based on improved YOLO model | |
| CN110827211B (en) | An image detail enhancement method | |
| CN113870180A (en) | Image processing method, image processing device, computer equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
| PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A method and device for dynamic adjustment of temperature and width Granted publication date: 20240716 Pledgee: China Merchants Bank Limited by Share Ltd. Wuhan branch Pledgor: WUHAN YOSEEN INFRARED TECHNOLOGY CO.,LTD. Registration number: Y2025980019382 |