CN106997604A - A kind of each component thickness analysis method of power equipment based on X ray image - Google Patents
A kind of each component thickness analysis method of power equipment based on X ray image Download PDFInfo
- Publication number
- CN106997604A CN106997604A CN201710240100.5A CN201710240100A CN106997604A CN 106997604 A CN106997604 A CN 106997604A CN 201710240100 A CN201710240100 A CN 201710240100A CN 106997604 A CN106997604 A CN 106997604A
- Authority
- CN
- China
- Prior art keywords
- image
- ray
- thickness
- analysis method
- formula
- 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.)
- Pending
Links
- 238000004458 analytical method Methods 0.000 title claims abstract description 18
- 239000003086 colorant Substances 0.000 claims abstract description 11
- 238000012937 correction Methods 0.000 claims description 13
- 238000012545 processing Methods 0.000 claims description 9
- 239000000463 material Substances 0.000 claims description 8
- 238000010521 absorption reaction Methods 0.000 claims description 5
- 238000001914 filtration Methods 0.000 claims description 5
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000004846 x-ray emission Methods 0.000 claims description 3
- 230000011218 segmentation Effects 0.000 claims 2
- 238000000034 method Methods 0.000 abstract description 17
- 238000003384 imaging method Methods 0.000 abstract description 13
- 238000005516 engineering process Methods 0.000 abstract description 10
- 238000007781 pre-processing Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 abstract 1
- 238000001514 detection method Methods 0.000 description 4
- 238000009659 non-destructive testing Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 239000000839 emulsion Substances 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 210000000697 sensory organ Anatomy 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 229910052709 silver Inorganic materials 0.000 description 1
- 239000004332 silver Substances 0.000 description 1
- -1 silver halide Chemical class 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Geometry (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Processing (AREA)
Abstract
本申请涉及电力信息技术领域,具体涉及一种基于X射线影像的电力设备各部件厚度分析方法。X射线成像板所采集的图像为平面图像,只能反映出各个部件间的相对位置,对于部件的厚度无法分辨,由于图片拍摄角度的不同,各部位图像会有重叠,对于重叠部位的位置关系难以分辨。本申请提供一种基于X射线影像的电力设备各部件厚度分析方法:接收X射线数字成像板获得的图像,判断图像质量是否满足要求;对图像进行预处理;对处理过的图象进行标注;分割图像;计算X射线所穿过设备的总厚度;计算出图像中各个颜色所对应的厚度和各个部件厚度。借助色系分布图,将图片中部件的厚度分布用不同的颜色清晰地显示在图片中,给图像的分析工作提供了新的依据。
The present application relates to the field of electric power information technology, in particular to a method for analyzing the thickness of each component of electric power equipment based on X-ray images. The image collected by the X-ray imaging board is a plane image, which can only reflect the relative position of each component, and cannot distinguish the thickness of the component. Due to the different shooting angles of the pictures, the images of each part will overlap. For the positional relationship of the overlapping parts Difficult to tell. This application provides a method for analyzing the thickness of each component of power equipment based on X-ray images: receiving the images obtained by the X-ray digital imaging board, judging whether the image quality meets the requirements; preprocessing the images; marking the processed images; Segment the image; calculate the total thickness of the device passed by the X-ray; calculate the thickness corresponding to each color in the image and the thickness of each component. With the help of the color system distribution diagram, the thickness distribution of the parts in the picture is clearly displayed in different colors, which provides a new basis for the analysis of the image.
Description
技术领域technical field
本申请涉及电力信息技术领域,具体涉及一种基于X射线影像的电力设备各部件厚度分析方法。The present application relates to the field of electric power information technology, in particular to a method for analyzing the thickness of each component of electric power equipment based on X-ray images.
背景技术Background technique
在X射线检测的过程中,X射线穿过待检样品,然后再X射线图像增强器上形成一个放大的X光图。随着X射线无损检测技术在电力设备无损检测中的普遍应用,为电力设备故障检修工作提供了一个极为有利的检测手段,该技术可快速定位故障点及故障类型,大大缩短了电力设备的维修时间。现在,电力设备X射线无损检测技术开始向智能化方向发展,也即借助机器人技术与计算机技术实现电力设备的自动检测。对于X射线图像的识别是实现X射线智能化检测关键技术,由于故障类型众多,故障部位不一致,X射线自主检测技术发展缓慢。图像识别是指图形刺激作用于感觉器官,人们辨认出它是经验过的某一图形的过程,也叫图像再认。在图像识别中,既要有当时进入感官的信息,也要有记忆中存储的信息。只有通过存储的信息与当前的信息进行比较的加工过程,才能实现对图像的再认。图像识别技术的发展对X射线图像故障的自主判断及定位提供了强有力的技术支持。In the process of X-ray inspection, X-rays pass through the sample to be inspected, and then an enlarged X-ray image is formed on the X-ray image intensifier. With the widespread application of X-ray non-destructive testing technology in non-destructive testing of power equipment, it provides a very favorable detection method for power equipment troubleshooting. This technology can quickly locate the fault point and fault type, greatly shortening the maintenance of power equipment time. Now, the X-ray non-destructive testing technology of power equipment has begun to develop in the direction of intelligence, that is, to realize the automatic detection of power equipment with the help of robot technology and computer technology. The recognition of X-ray images is the key technology to realize X-ray intelligent detection. Due to the many types of faults and inconsistent fault locations, the development of X-ray autonomous detection technology is slow. Image recognition refers to the process in which graphic stimuli act on sensory organs, and people recognize that it is a certain graphic they have experienced, which is also called image recognition. In image recognition, there must be both information that enters the senses at the time and information stored in memory. Only through the process of comparing the stored information with the current information can the recognition of the image be realized. The development of image recognition technology provides strong technical support for independent judgment and location of X-ray image faults.
但是,X射线成像板所采集的图像为平面图像,只能反映出各个部件间的相对位置,对于部件的厚度无法分辨,由于图片拍摄角度的不同,各部位图像会有重叠,对于重叠部位的位置关系难以分辨。However, the image collected by the X-ray imaging panel is a plane image, which can only reflect the relative position of each component, and cannot distinguish the thickness of the component. Due to the different shooting angles of the pictures, the images of each part will overlap. For the overlapping parts The positional relationship is difficult to distinguish.
发明内容Contents of the invention
本发明的目的是为了解决上述由于图片拍摄角度的不同,各部位图像会有重叠,对于重叠部位的位置关系难以分辨,无法分辨电力设备部件厚度的问题。The purpose of the present invention is to solve the above-mentioned problems that due to the different shooting angles of the pictures, the images of various parts will overlap, the positional relationship of the overlapping parts is difficult to distinguish, and the thickness of the electric equipment components cannot be distinguished.
为此,本发明实施例提供了如下技术方案:一种基于X射线影像的电力设备各部件厚度分析方法,所述分析方法包括如下步骤:For this reason, the embodiment of the present invention provides the following technical solution: a method for analyzing the thickness of each component of power equipment based on X-ray images, the analysis method includes the following steps:
(1)接收X射线数字成像板获得的图像,判断图像质量是否满足要求;(1) Receive the image obtained by the X-ray digital imaging panel, and judge whether the image quality meets the requirements;
(2)对图像进行预处理;(2) Preprocessing the image;
(3)计算像素点灰度;(3) Calculate the pixel gray level;
(4)分割图像;(4) Segment the image;
(5)计算X射线所穿过设备的总厚度;(5) Calculate the total thickness of the equipment that X-rays pass through;
(6)计算出图像中各个颜色所对应的厚度和各个部件厚度。(6) Calculate the thickness corresponding to each color in the image and the thickness of each component.
可选地,所述分析方法包括如下步骤:Optionally, the analysis method comprises the steps of:
(1)接收X射线数字成像板获得的图像,判断图像质量是否满足要求;(1) Receive the image obtained by the X-ray digital imaging panel, and judge whether the image quality meets the requirements;
(2)对图像进行噪声过滤和灰度化处理;(2) Carry out noise filtering and grayscale processing to the image;
(3)将灰度图像中像素的灰度G用百分比表示,0%表示白色,100%表示黑色;(3) The grayscale G of the pixel in the grayscale image is represented by percentage, 0% represents white, and 100% represents black;
(4)分割图像,描绘出灰度相同的区域的轮廓,划分等灰度区域,获得各区域灰度值G与最大灰度值Gmax的比值,得到灰度百分比M;(4) Segment the image, describe the contours of the regions with the same grayscale, divide the grayscale regions, obtain the ratio of the grayscale value G of each region to the maximum grayscale value Gmax , and obtain the grayscale percentage M;
(5)根据X射线强度在穿过物体时的衰减规律、射线强度和灰度百分比M的关系,求得X射线所穿过设备的总厚度;(5) According to the attenuation law of the X-ray intensity when passing through the object, the relationship between the ray intensity and the gray scale percentage M, obtain the total thickness of the equipment that the X-ray passes through;
(6)将红、橙、黄、绿、青、蓝、紫,七种色系按照排列分成100种颜色,将颜色与灰度百分比成一一对应的关系,并将对应的颜色按照步骤(4)中划分好的图像生成色系分布图,计算出图像中各个颜色所对应的厚度并在图像中注释出所对应的部件厚度。(6) Divide red, orange, yellow, green, blue, blue, and purple into 100 colors according to the arrangement, and form a one-to-one correspondence between the color and the gray scale percentage, and the corresponding color according to the steps ( The image divided in 4) generates a color system distribution map, calculates the thickness corresponding to each color in the image, and annotates the corresponding component thickness in the image.
可选地,所述步骤(5)中衰减规律公式为:Optionally, the attenuation law formula in the step (5) is:
式中I0和I分别为X射线穿过物体前后的X射线强度,μm为射线所穿过材料的质量吸收系数,ρ为射线所穿过材料的密度,d为射线所穿过设备的总厚度,k为修正系数。In the formula, I 0 and I are the X-ray intensity before and after the X-ray passes through the object, μ m is the mass absorption coefficient of the material that the ray passes through, ρ is the density of the material that the ray passes through, and d is the density of the equipment that the ray passes through The total thickness, k is the correction factor.
可选地,所述步骤(5)中射线强度I和灰度百分比M的关系为:Optionally, the relationship between the ray intensity I and the gray percentage M in the step (5) is:
I=I0(1-M) (2)I=I 0 (1-M) (2)
所述公式(2)代入公式(1)可得The formula (2) is substituted into the formula (1) to obtain
即可求得X射线所穿过设备的总厚度。The total thickness of the device passed by the X-ray can be obtained.
可选地,所述修正系数k可通过测量出图像中对应设备的总厚度d代入公式(3),反解出修正系数k。Optionally, the correction coefficient k can be obtained by inversely solving the correction coefficient k by substituting the total thickness d of the corresponding device in the image into formula (3).
可选地,所述X射线强度会随着传输距离发生变化,当图像中部件的位置不在同一平面时,可根据X射线的传播规律公式得出。Optionally, the X-ray intensity will change with the transmission distance, and when the parts in the image are not on the same plane, it can be obtained according to the X-ray propagation law formula.
可选地,所述X射线的传播规律公式为:Optionally, the formula of the propagation law of the X-ray is:
式中,R1和R0为当前照射点到X射线发射点的距离,I1和I0为对应照射点处的X射线强度。In the formula, R 1 and R 0 are the distances from the current irradiation point to the X-ray emission point, and I 1 and I 0 are the X-ray intensities at the corresponding irradiation points.
本发明实施例提供的技术方案包括以下有益效果:本发明通过灰度图对图像中设备的总厚度尺寸进行了计算,并借助色系分布图,将图片中部件的厚度分布用不同的颜色清晰地显示在图片中,给图像的分析工作提供了新的依据。The technical solution provided by the embodiment of the present invention includes the following beneficial effects: the present invention calculates the total thickness size of the equipment in the image through the grayscale image, and uses the color system distribution map to make the thickness distribution of the components in the picture clear with different colors It is clearly displayed in the picture, which provides a new basis for the analysis of the image.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings that need to be used in the embodiments will be briefly introduced below. Obviously, for those of ordinary skill in the art, without paying creative labor Below, other drawings can also be obtained from these drawings.
图1为本发明实施例中电力设备各部件厚度分析方法流程示意图。Fig. 1 is a schematic flow chart of a method for analyzing the thickness of each component of electric equipment in an embodiment of the present invention.
具体实施方式detailed description
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings without paying creative labor.
射线能穿透肉眼无法穿透的物质使胶片感光,当X射线或r射线照射胶片时,与普通光线一样,能使胶片乳剂层中的卤化银产生潜影,由于不同密度的物质对射线的吸收系数不同,照射到胶片各处的射线能量也就会产生差异,便可根据暗室处理后的底片各处黑度差来判别缺陷。Rays can penetrate substances that the naked eye cannot penetrate to make the film sensitive. When X-rays or r-rays irradiate the film, like ordinary light, they can cause the silver halide in the emulsion layer of the film to produce a latent image. If the absorption coefficient is different, the ray energy irradiated to each part of the film will also be different, and the defect can be judged according to the blackness difference of each part of the film processed in the darkroom.
下面通过实施例,并结合附图,对本申请的技术方案作进一步具体的说明。The technical solution of the present application will be further specifically described below through the embodiments and in conjunction with the accompanying drawings.
实施例一Embodiment one
参见图1,本申请提供一种基于X射线影像的电力设备各部件厚度分析方法,所述分析方法包括如下步骤:Referring to Fig. 1, the present application provides a method for analyzing the thickness of each component of power equipment based on X-ray images, and the analysis method includes the following steps:
(1)接收X射线数字成像板获得的图像,判断图像质量是否满足要求;(1) Receive the image obtained by the X-ray digital imaging panel, and judge whether the image quality meets the requirements;
(2)对图像进行预处理;(2) Preprocessing the image;
(3)计算像素点灰度;(3) Calculate the pixel gray level;
(4)分割图像;(4) Segment the image;
(5)计算X射线所穿过设备的总厚度;(5) Calculate the total thickness of the equipment that X-rays pass through;
(6)计算出图像中各个颜色所对应的厚度和各个部件厚度。(6) Calculate the thickness corresponding to each color in the image and the thickness of each component.
本申请具体工作过程如下:计算机接收X射线数字成像板获得的图像后,判断图像质量是否满足要求;对图像进行预处理,过滤图像噪声,同时对图像进行灰度化处理;计算像素点的灰度;分割图像,按照图像灰度划分等灰度区域;在图像中设定基准平面;计算基准平面修正系数k;按照图像中部件的空间分布划分图层;计算各图层与基准平面的距离R;计算分布在各图层的射线强度I0;计算各图层部件厚度;分配颜色并显示。The specific working process of this application is as follows: After the computer receives the image obtained by the X-ray digital imaging board, it judges whether the image quality meets the requirements; preprocesses the image, filters the image noise, and performs grayscale processing on the image at the same time; calculates the grayscale of the pixel degree; segment the image, divide the gray area according to the gray level of the image; set the reference plane in the image; calculate the correction coefficient k of the reference plane; divide the layers according to the spatial distribution of the components in the image; calculate the distance between each layer and the reference plane R; calculate the ray intensity I 0 distributed in each layer; calculate the thickness of each layer component; assign colors and display.
实施例二Embodiment two
参见图1,本申请提供一种基于X射线影像的电力设备各部件厚度分析方法,所述分析方法包括如下步骤:Referring to Fig. 1, the present application provides a method for analyzing the thickness of each component of power equipment based on X-ray images, and the analysis method includes the following steps:
(1)接收X射线数字成像板获得的图像,判断图像质量是否满足要求;(1) Receive the image obtained by the X-ray digital imaging panel, and judge whether the image quality meets the requirements;
(2)对图像进行噪声过滤和灰度化处理;(2) Carry out noise filtering and grayscale processing to the image;
(3)将灰度图像中像素的灰度G用百分比表示,0%表示白色,100%表示黑色;(3) The grayscale G of the pixel in the grayscale image is represented by percentage, 0% represents white, and 100% represents black;
(4)分割图像,描绘出灰度相同的区域的轮廓,划分等灰度区域,获得各区域灰度值G与最大灰度值Gmax的比值,得到灰度百分比M;(4) Segment the image, describe the contours of the regions with the same grayscale, divide the grayscale regions, obtain the ratio of the grayscale value G of each region to the maximum grayscale value Gmax , and obtain the grayscale percentage M;
(5)根据X射线强度在穿过物体时的衰减规律、射线强度和灰度百分比M的关系,求得X射线所穿过设备的总厚度;(5) According to the attenuation law of the X-ray intensity when passing through the object, the relationship between the ray intensity and the gray scale percentage M, obtain the total thickness of the equipment that the X-ray passes through;
(6)将红、橙、黄、绿、青、蓝、紫,七种色系按照排列分成100种颜色,将颜色与灰度百分比成一一对应的关系,并将对应的颜色按照步骤(4)中划分好的图像生成色系分布图,计算出图像中各个颜色所对应的厚度并在图像中注释出所对应的部件厚度。(6) Divide red, orange, yellow, green, blue, blue, and purple into 100 colors according to the arrangement, and form a one-to-one correspondence between the color and the gray scale percentage, and the corresponding color according to the steps ( The image divided in 4) generates a color system distribution map, calculates the thickness corresponding to each color in the image, and annotates the corresponding component thickness in the image.
本申请具体工作过程如下:计算机接收X射线数字成像板获得的图像后,判断图像质量是否满足要求;对图像进行预处理,过滤图像噪声,同时对图像进行灰度化处理;计算像素点的灰度,将灰度图像中像素的灰度G用百分比表示,0%表示白色,100%表示黑色;分割图像,描绘出灰度相同的区域的轮廓,划分等灰度区域,获得各区域灰度值G与最大灰度值Gmax的比值,得到灰度百分比M;在图像中设定基准平面;计算基准平面修正系数k;按照图像中部件的空间分布划分图层;计算各图层与基准平面的距离R;计算分布在各图层的射线强度I0;计算各图层部件厚度;分配颜色并显示。The specific working process of this application is as follows: After the computer receives the image obtained by the X-ray digital imaging board, it judges whether the image quality meets the requirements; preprocesses the image, filters the image noise, and performs grayscale processing on the image at the same time; calculates the grayscale of the pixel degree, the grayscale G of the pixel in the grayscale image is expressed as a percentage, 0% means white, and 100% means black; segment the image, draw the outline of the area with the same grayscale, divide the grayscale area, and obtain the grayscale of each area The ratio of the value G to the maximum gray value G max , to obtain the gray percentage M; set the reference plane in the image; calculate the correction coefficient k of the reference plane; divide the layers according to the spatial distribution of the components in the image; calculate the relationship between each layer and the reference The distance R of the plane; the calculation of the ray intensity I 0 distributed in each layer; the calculation of the component thickness of each layer; the assignment of colors and display.
实施例三Embodiment Three
参见图1,本申请提供一种基于X射线影像的电力设备各部件厚度分析方法,所述分析方法包括如下步骤:Referring to Fig. 1, the present application provides a method for analyzing the thickness of each component of power equipment based on X-ray images, and the analysis method includes the following steps:
(1)接收X射线数字成像板获得的图像,判断图像质量是否满足要求;(1) Receive the image obtained by the X-ray digital imaging panel, and judge whether the image quality meets the requirements;
(2)对图像进行噪声过滤和灰度化处理;(2) Carry out noise filtering and grayscale processing to the image;
(3)将灰度图像中像素的灰度G用百分比表示,0%表示白色,100%表示黑色;(3) The grayscale G of the pixel in the grayscale image is represented by percentage, 0% represents white, and 100% represents black;
(4)分割图像,描绘出灰度相同的区域的轮廓,划分等灰度区域,获得各区域灰度值G与最大灰度值Gmax的比值,得到灰度百分比M;(4) Segment the image, describe the contours of the regions with the same grayscale, divide the grayscale regions, obtain the ratio of the grayscale value G of each region to the maximum grayscale value Gmax , and obtain the grayscale percentage M;
(5)根据X射线强度在穿过物体时的衰减规律公式:(5) According to the attenuation law formula of X-ray intensity when passing through the object:
式中I0和I分别为X射线穿过物体前后的X射线强度,μm为射线所穿过材料的质量吸收系数,ρ为射线所穿过材料的密度,d为射线所穿过设备的总厚度,k为修正系数;In the formula, I 0 and I are the X-ray intensity before and after the X-ray passes through the object, μ m is the mass absorption coefficient of the material that the ray passes through, ρ is the density of the material that the ray passes through, and d is the density of the equipment that the ray passes through The total thickness, k is the correction factor;
根据射线强度I和灰度百分比M的关系:According to the relationship between ray intensity I and gray percentage M:
I=I0(1-M) (2)I=I 0 (1-M) (2)
所述公式(2)代入公式(1)可得The formula (2) is substituted into the formula (1) to obtain
即可求得X射线所穿过设备的总厚度。The total thickness of the device passed by the X-ray can be obtained.
(6)将红、橙、黄、绿、青、蓝、紫,七种色系按照排列分成100种颜色,将颜色与灰度百分比成一一对应的关系,并将对应的颜色按照步骤(4)中划分好的图像生成色系分布图,计算出图像中各个颜色所对应的厚度并在图像中注释出所对应的部件厚度。(6) Divide red, orange, yellow, green, blue, blue, and purple into 100 colors according to the arrangement, and form a one-to-one correspondence between the color and the gray scale percentage, and the corresponding color according to the steps ( The image divided in 4) generates a color system distribution map, calculates the thickness corresponding to each color in the image, and annotates the corresponding component thickness in the image.
本申请具体工作过程如下:计算机接收X射线数字成像板获得的图像后,判断图像质量是否满足要求;对图像进行预处理,过滤图像噪声,同时对图像进行灰度化处理;计算像素点的灰度,将灰度图像中像素的灰度G用百分比表示,0%表示白色,100%表示黑色;分割图像,描绘出灰度相同的区域的轮廓,划分等灰度区域,获得各区域灰度值G与最大灰度值Gmax的比值,得到灰度百分比M;求得X射线所穿过设备的总厚度;在图像中设定基准平面;计算基准平面修正系数k;按照图像中部件的空间分布划分图层;计算各图层与基准平面的距离R;计算分布在各图层的射线强度I0;计算各图层部件厚度;分配颜色并显示。The specific working process of this application is as follows: After the computer receives the image obtained by the X-ray digital imaging board, it judges whether the image quality meets the requirements; preprocesses the image, filters the image noise, and performs grayscale processing on the image at the same time; calculates the grayscale of the pixel degree, the grayscale G of the pixel in the grayscale image is expressed as a percentage, 0% means white, and 100% means black; segment the image, draw the outline of the area with the same grayscale, divide the grayscale area, and obtain the grayscale of each area The ratio of the value G to the maximum gray value G max , to obtain the gray percentage M; obtain the total thickness of the equipment that the X-ray passes through; set the reference plane in the image; calculate the reference plane correction coefficient k; according to the components in the image Space distribution divides the layers; calculates the distance R between each layer and the reference plane; calculates the ray intensity I 0 distributed in each layer; calculates the thickness of each layer part; assigns colors and displays them.
实施例四Embodiment four
参见图1,本申请提供一种基于X射线影像的电力设备各部件厚度分析方法,所述分析方法包括如下步骤:Referring to Fig. 1, the present application provides a method for analyzing the thickness of each component of power equipment based on X-ray images, and the analysis method includes the following steps:
(1)接收X射线数字成像板获得的图像,判断图像质量是否满足要求;(1) Receive the image obtained by the X-ray digital imaging panel, and judge whether the image quality meets the requirements;
(2)对图像进行噪声过滤和灰度化处理;(2) Carry out noise filtering and grayscale processing to the image;
(3)将灰度图像中像素的灰度G用百分比表示,0%表示白色,100%表示黑色;(3) The grayscale G of the pixel in the grayscale image is represented by percentage, 0% represents white, and 100% represents black;
(4)分割图像,描绘出灰度相同的区域的轮廓,划分等灰度区域,获得各区域灰度值G与最大灰度值Gmax的比值,得到灰度百分比M;(4) Segment the image, describe the contours of the regions with the same grayscale, divide the grayscale regions, obtain the ratio of the grayscale value G of each region to the maximum grayscale value Gmax , and obtain the grayscale percentage M;
(5)根据X射线强度在穿过物体时的衰减规律公式:(5) According to the attenuation law formula of X-ray intensity when passing through the object:
式中I0和I分别为X射线穿过物体前后的X射线强度,μm为射线所穿过材料的质量吸收系数,ρ为射线所穿过材料的密度,d为射线所穿过设备的总厚度,k为修正系数;In the formula, I 0 and I are the X-ray intensity before and after the X-ray passes through the object, μ m is the mass absorption coefficient of the material that the ray passes through, ρ is the density of the material that the ray passes through, and d is the density of the equipment that the ray passes through The total thickness, k is the correction factor;
根据射线强度I和灰度百分比M的关系:According to the relationship between ray intensity I and gray percentage M:
I=I0(1-M) (2)I=I 0 (1-M) (2)
所述公式(2)代入公式(1)可得The formula (2) is substituted into the formula (1) to obtain
即可求得X射线所穿过设备的总厚度。The total thickness of the device passed by the X-ray can be obtained.
(6)将红、橙、黄、绿、青、蓝、紫,七种色系按照排列分成100种颜色,将颜色与灰度百分比成一一对应的关系,并将对应的颜色按照步骤(4)中划分好的图像生成色系分布图,计算出图像中各个颜色所对应的厚度并在图像中注释出所对应的部件厚度。(6) Divide red, orange, yellow, green, blue, blue, and purple into 100 colors according to the arrangement, and form a one-to-one correspondence between the color and the gray scale percentage, and the corresponding color according to the steps ( The image divided in 4) generates a color system distribution map, calculates the thickness corresponding to each color in the image, and annotates the corresponding component thickness in the image.
可选地,所述修正系数k可通过测量出图像中对应设备的总厚度d代入公式(3),反解出修正系数k。Optionally, the correction coefficient k can be obtained by inversely solving the correction coefficient k by substituting the total thickness d of the corresponding device in the image into formula (3).
可选地,所述X射线强度会随着传输距离发生变化,当图像中部件的位置不在同一平面时,可根据X射线的传播规律公式得出;Optionally, the X-ray intensity will change with the transmission distance, and when the positions of the components in the image are not on the same plane, it can be obtained according to the X-ray propagation law formula;
式中,R1和R0为当前照射点到X射线发射点的距离,I1和I0为对应照射点处的X射线强度。In the formula, R 1 and R 0 are the distances from the current irradiation point to the X-ray emission point, and I 1 and I 0 are the X-ray intensities at the corresponding irradiation points.
本申请具体工作过程如下:计算机接收X射线数字成像板获得的图像后,判断图像质量是否满足要求;对图像进行预处理,过滤图像噪声,同时对图像进行灰度化处理;计算像素点的灰度,将灰度图像中像素的灰度G用百分比表示,0%表示白色,100%表示黑色;分割图像,描绘出灰度相同的区域的轮廓,划分等灰度区域,获得各区域灰度值G与最大灰度值Gmax的比值,得到灰度百分比M;求得X射线所穿过设备的总厚度;将红、橙、黄、绿、青、蓝、紫,七种色系按照排列分成100种颜色,将颜色与灰度百分比成一一对应的关系,并将对应的颜色按照划分好的图像生成色系分布图,计算出图像中各个颜色所对应的厚度并在图像中注释出所对应的部件厚度。The specific working process of this application is as follows: After the computer receives the image obtained by the X-ray digital imaging board, it judges whether the image quality meets the requirements; preprocesses the image, filters the image noise, and performs grayscale processing on the image at the same time; calculates the grayscale of the pixel degree, the grayscale G of the pixel in the grayscale image is expressed as a percentage, 0% means white, and 100% means black; segment the image, draw the outline of the area with the same grayscale, divide the grayscale area, and obtain the grayscale of each area The ratio of the value G to the maximum gray value G max , the gray percentage M is obtained; the total thickness of the equipment passed by the X-ray is obtained; the red, orange, yellow, green, blue, blue, purple, seven color systems according to The arrangement is divided into 100 colors, and the color and the gray percentage are in a one-to-one correspondence, and the corresponding color is generated according to the divided image to generate a color distribution map, and the thickness corresponding to each color in the image is calculated and annotated in the image The corresponding part thickness.
以上所述仅是本发明实施例的具体实施方式,使本领域技术人员能够理解或实现本发明。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific implementation manners of the embodiments of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的内容,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。It should be understood that the present application is not limited to what has been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710240100.5A CN106997604A (en) | 2017-04-13 | 2017-04-13 | A kind of each component thickness analysis method of power equipment based on X ray image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710240100.5A CN106997604A (en) | 2017-04-13 | 2017-04-13 | A kind of each component thickness analysis method of power equipment based on X ray image |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106997604A true CN106997604A (en) | 2017-08-01 |
Family
ID=59434031
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710240100.5A Pending CN106997604A (en) | 2017-04-13 | 2017-04-13 | A kind of each component thickness analysis method of power equipment based on X ray image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106997604A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113376185A (en) * | 2021-04-28 | 2021-09-10 | 无锡宝通智能物联科技有限公司 | X-ray-based real-time online monitoring method for thickness of conveying belt |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101732056A (en) * | 2009-12-01 | 2010-06-16 | 西安集智医疗器械科技有限公司 | Gray scale linear processing method for medical X-ray image enhancement treatment |
CN102095665A (en) * | 2007-10-05 | 2011-06-15 | 清华大学 | Method and equipment for inspecting liquid substances |
CN103604819A (en) * | 2013-11-25 | 2014-02-26 | 东北大学 | Device and method for carrying out substance identification by double-energy transmission and low-energy scattering |
-
2017
- 2017-04-13 CN CN201710240100.5A patent/CN106997604A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102095665A (en) * | 2007-10-05 | 2011-06-15 | 清华大学 | Method and equipment for inspecting liquid substances |
CN101732056A (en) * | 2009-12-01 | 2010-06-16 | 西安集智医疗器械科技有限公司 | Gray scale linear processing method for medical X-ray image enhancement treatment |
CN103604819A (en) * | 2013-11-25 | 2014-02-26 | 东北大学 | Device and method for carrying out substance identification by double-energy transmission and low-energy scattering |
Non-Patent Citations (3)
Title |
---|
张君宽等: ""感兴趣区域内高原子序数物体遮挡剔除的研究"", 《信息通信》 * |
王柏艳等: ""输送带厚度动态补偿算法的研究与实现"", 《煤炭科学技术》 * |
郭文明等: ""X射线图像灰度值与透照厚度的定量关系"", 《无损检测》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113376185A (en) * | 2021-04-28 | 2021-09-10 | 无锡宝通智能物联科技有限公司 | X-ray-based real-time online monitoring method for thickness of conveying belt |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111145177B (en) | Image sample generation method, specific scene target detection method and system thereof | |
RU2397624C2 (en) | Method and apparatus for identifying materials using radiographic images of binocular stereoscopy obtained for different radiation energy levels | |
Mery et al. | X-ray Testing | |
EP3343440A1 (en) | Identifying and excluding blurred areas of images of stained tissue to improve cancer scoring | |
EP0440142A2 (en) | Image verification system | |
US8204291B2 (en) | Method and system for identifying defects in a radiographic image of a scanned object | |
EP0440137A2 (en) | Position adjustment system | |
CN112465746B (en) | Method for detecting small defects in ray film | |
EP0440143A2 (en) | Lighting system for camera | |
CN106535740A (en) | Grading corneal fluorescein staining | |
TW201917692A (en) | A method of evaluating the quality of images | |
CN115081469A (en) | Article category identification method, device and equipment based on X-ray security inspection equipment | |
JP7185388B2 (en) | Inspection device and inspection method | |
CN106997604A (en) | A kind of each component thickness analysis method of power equipment based on X ray image | |
WO2020080250A1 (en) | Image processing device, image processing method, and image processing program | |
CN106226033A (en) | Method and device for detecting transmittance of transparent substrate | |
WO2011080808A1 (en) | Radiograph processing device and radiograph processing program | |
KR20240030441A (en) | Apparatus and method for detecting defects in a welding part based on a learning model | |
CN112162324B (en) | Intelligent security inspection method for effectively improving contraband identification rate | |
Kumar et al. | Automated quality inspection of PCB assembly using image processing | |
Mery et al. | X-ray Testing | |
CN114341631B (en) | Charged particle beam device | |
JP2015021797A (en) | Inspection device and inspection method of coating state of coating agent on substrate | |
JP7142825B1 (en) | Image judgment method and image judgment system | |
JP7562851B2 (en) | Method for analyzing a component, method for training a system, device, computer program and computer readable 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170801 |
|
RJ01 | Rejection of invention patent application after publication |