CN116263416A - Data processing method and device and X-ray crystal orientation instrument - Google Patents
Data processing method and device and X-ray crystal orientation instrument Download PDFInfo
- Publication number
- CN116263416A CN116263416A CN202111537830.4A CN202111537830A CN116263416A CN 116263416 A CN116263416 A CN 116263416A CN 202111537830 A CN202111537830 A CN 202111537830A CN 116263416 A CN116263416 A CN 116263416A
- Authority
- CN
- China
- Prior art keywords
- data
- image
- diffraction
- target
- measured
- 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
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N23/00—Investigating or analysing materials by the use of wave or particle radiation, e.g. X-rays or neutrons, not covered by groups G01N3/00 – G01N17/00, G01N21/00 or G01N22/00
- G01N23/20—Investigating or analysing materials by the use of wave or particle radiation, e.g. X-rays or neutrons, not covered by groups G01N3/00 – G01N17/00, G01N21/00 or G01N22/00 by using diffraction of the radiation by the materials, e.g. for investigating crystal structure; by using scattering of the radiation by the materials, e.g. for investigating non-crystalline materials; by using reflection of the radiation by the materials
- G01N23/2055—Analysing diffraction patterns
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N23/00—Investigating or analysing materials by the use of wave or particle radiation, e.g. X-rays or neutrons, not covered by groups G01N3/00 – G01N17/00, G01N21/00 or G01N22/00
- G01N23/20—Investigating or analysing materials by the use of wave or particle radiation, e.g. X-rays or neutrons, not covered by groups G01N3/00 – G01N17/00, G01N21/00 or G01N22/00 by using diffraction of the radiation by the materials, e.g. for investigating crystal structure; by using scattering of the radiation by the materials, e.g. for investigating non-crystalline materials; by using reflection of the radiation by the materials
- G01N23/207—Diffractometry using detectors, e.g. using a probe in a central position and one or more displaceable detectors in circumferential positions
Landscapes
- Chemical & Material Sciences (AREA)
- Crystallography & Structural Chemistry (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Analysing Materials By The Use Of Radiation (AREA)
Abstract
Description
技术领域technical field
本申请涉及数据处理技术领域,具体而言,本申请涉及一种数据处理方法、装置和X射线晶体定向仪。The present application relates to the technical field of data processing, and in particular, the present application relates to a data processing method, device and X-ray crystal orientation instrument.
背景技术Background technique
X射线衍射图像是灰度图像,由多个斑点组成,每个斑点的位置和灰度值包含了作为待测目标的晶体的位置信息,基于位置信息可以得出晶体的类型和晶轴的取向等晶体信息。取得待测目标的X射线衍射图像,并将其和已知晶体信息的参照晶体的X射线衍射图像进行对比,可以得到待测目标的晶体信息。The X-ray diffraction image is a grayscale image, which is composed of multiple spots. The position and gray value of each spot contain the position information of the crystal as the target to be measured. Based on the position information, the type of crystal and the orientation of the crystal axis can be obtained. and other crystal information. The crystal information of the target to be measured can be obtained by obtaining the X-ray diffraction image of the target to be measured and comparing it with the X-ray diffraction image of a reference crystal whose crystal information is known.
目前待测目标的X射线衍射图像和参照晶体X射线衍射图像的对比是通过肉眼识别斑点的位置和灰度值进行的。但是,肉眼对不同灰度值的斑点的识别具有局限性,无法识别所有灰度值的斑点,因此会忽略一些位置信息,不能对待测目标的晶体信息做出准确的判断。At present, the comparison between the X-ray diffraction image of the target to be measured and the X-ray diffraction image of the reference crystal is carried out by visually identifying the position and gray value of the spots. However, the naked eye has limitations in identifying spots with different gray values, and cannot identify spots with all gray values. Therefore, some position information will be ignored, and the crystal information of the target to be measured cannot be accurately judged.
因此,亟需一种数据处理方法、装置和X射线晶体定向仪,解决X射线衍射图像分析处理过程中无法降低人为干预的问题。Therefore, there is an urgent need for a data processing method, device and X-ray crystal orientation instrument to solve the problem that human intervention cannot be reduced in the process of X-ray diffraction image analysis and processing.
发明内容Contents of the invention
本申请各实施例提供了一种数据处理方法、装置和X射线晶体定向仪,可以解决相关技术中X射线衍射图像分析处理过程中无法降低人为干预的问题。所述技术方案如下:Various embodiments of the present application provide a data processing method, device and X-ray crystal orientation instrument, which can solve the problem that human intervention cannot be reduced in the process of X-ray diffraction image analysis and processing in the related art. Described technical scheme is as follows:
根据本发明一实施例中,一种数据处理方法,该方法应用于X射线晶体定向仪,该方法包括:According to an embodiment of the present invention, a data processing method is applied to an X-ray crystal orientation instrument, and the method includes:
获取待测目标数据;Obtain the target data to be tested;
基于所述待测目标数据控制所述定向仪运动,以调整所述定向仪中X射线源所发射的X射线入射待测目标上的入射参数;Controlling the movement of the orientation instrument based on the data of the target to be measured, so as to adjust the incident parameters of the X-rays emitted by the X-ray source in the orientation instrument incident on the target to be measured;
通过在所述入射参数调整过程中进行数据探测,得到至少两组衍射数据;Obtain at least two sets of diffraction data by performing data detection during the incident parameter adjustment process;
对所述两组衍射数据进行分析处理,当所述两组衍射数据的分析结果的差值满足设定条件,根据其中一组衍射数据生成待分析图像;Analyzing and processing the two sets of diffraction data, when the difference between the analysis results of the two sets of diffraction data satisfies a set condition, generating an image to be analyzed according to one set of diffraction data;
对所述待分析图像进行斑点识别和分析处理,得到数据分析结果。Spot recognition and analysis processing are performed on the image to be analyzed to obtain a data analysis result.
进一步地,基于所述待测目标数据控制所述定向仪运动,包括以下至少一种:Further, controlling the movement of the orientation finder based on the data of the target to be measured includes at least one of the following:
调整所述定向仪中的X射线源、样品支架和探测器在三维空间的绝对位置;Adjusting the absolute positions of the X-ray source, the sample holder and the detector in the orientation instrument in three-dimensional space;
调整所述定向仪中的X射线源、样品支架和探测器在三维空间的俯仰角度;Adjust the pitch angle of the X-ray source, the sample holder and the detector in the three-dimensional space in the orientation instrument;
调整所述待测目标在所述定向仪中的样品支架上的位姿。Adjusting the pose of the target to be measured on the sample holder in the orientation instrument.
进一步地,所述通过在所述入射参数调整过程中进行数据探测,得到至少两组衍射数据,包括:Further, at least two sets of diffraction data are obtained by performing data detection during the incident parameter adjustment process, including:
从所述待测目标数据中,获得初始探测角度和所述待测目标的初始位姿,并基于初始探测角度和所述待测目标的初始位姿得到一组衍射数据;Obtaining an initial detection angle and an initial pose of the target to be measured from the data of the target to be measured, and obtaining a set of diffraction data based on the initial detection angle and the initial pose of the target to be measured;
在所述入射参数调整后,重新获取所述待测目标数据;After the incident parameters are adjusted, reacquire the data of the target to be measured;
从重新获取的所述待测目标数据中,获得更新探测角度和所述待测目标的更新位姿,并基于更新探测角度和所述待测目标的更新位姿得到另一组衍射数据。From the newly acquired data of the target to be measured, an updated detection angle and an updated pose of the target to be measured are obtained, and another set of diffraction data is obtained based on the updated detection angle and the updated pose of the target to be measured.
进一步地,所述对所述两组衍射数据进行分析处理之前,对所述衍射数据进行预处理,所述预处理包括:Further, before analyzing and processing the two sets of diffraction data, the diffraction data is preprocessed, and the preprocessing includes:
从所述衍射数据中提取衍射强度参数,并从所述待测目标数据中提取移位处理参数,所述移位处理参数包括小数点移位方向和小数点移动位数;Extracting a diffraction intensity parameter from the diffraction data, and extracting a shift processing parameter from the target data to be measured, the shift processing parameter includes a decimal point shift direction and a decimal point shift number;
基于所述移位处理参数对所述衍射强度参数进行小数点的移位处理,得到预处理后的衍射数据;performing decimal point shift processing on the diffraction intensity parameter based on the shift processing parameters to obtain preprocessed diffraction data;
所述对所述两组衍射数据进行分析处理,包括:The analysis and processing of the two groups of diffraction data includes:
对预处理后的两组衍射数据进行分析处理。Analyze and process the two sets of diffraction data after preprocessing.
进一步地,所述根据其中一组衍射数据生成待分析图像,包括:Further, the generating the image to be analyzed according to one set of diffraction data includes:
对由其中一组衍射数据构成的衍射图像进行图像分割,确定所述衍射图像中的非目标区域和目标区域;performing image segmentation on the diffraction image formed by one set of diffraction data, and determining the non-target area and the target area in the diffraction image;
从所述衍射图像中获得包含所述目标区域的待分析图像。An image to be analyzed including the target area is obtained from the diffraction image.
进一步地,对所述待分析图像进行斑点识别,包括:Further, spot recognition is performed on the image to be analyzed, including:
对所述待分析图像进行灰度处理,得到灰度化图像;performing grayscale processing on the image to be analyzed to obtain a grayscale image;
对所述灰度化图像进行阈值统计,得到阈值统计结果,基于所述阈值统计结果确定所述灰度化图像中的有斑点区域和无斑点区域;performing threshold statistics on the grayscaled image to obtain a threshold statistical result, and determining a speckled area and a non-spotted area in the grayscaled image based on the threshold statistical result;
对所述有斑点区域进行斑点识别,得到所述斑点识别结果。Spot recognition is performed on the speckled area to obtain the spot recognition result.
进一步地,所述对所述有斑点区域进行斑点识别,得到所述斑点识别结果,包括:Further, performing spot recognition on the speckled region to obtain the spot recognition result includes:
对所述斑点识别结果中已识别到的斑点进行筛选,剔除不满足设定阈值的斑点,得到筛选后的斑点识别结果。The identified spots in the spot recognition result are screened, and the spots that do not meet the set threshold are eliminated, so as to obtain the filtered spot recognition result.
进一步地,对所述待分析图像进行灰度处理,得到灰度化图像,包括:Further, grayscale processing is performed on the image to be analyzed to obtain a grayscale image, including:
确定所述待分析图像的图像颜色特征,并基于所述图像颜色特征对所述待分析图像进行图像分割,得到若干个图像区域,每一个图像区域对应一种图像颜色特征;Determining the image color feature of the image to be analyzed, and performing image segmentation on the image to be analyzed based on the image color feature to obtain several image areas, each image area corresponding to an image color feature;
利用不同的图像颜色特征,对若干个图像区域进行灰度处理,得到所述灰度化图像。Using different image color features, grayscale processing is performed on several image regions to obtain the grayscale image.
在本发明的另一实施例中,一种数据处理装置,应用于X射线晶体定向仪,所述装置包括:In another embodiment of the present invention, a data processing device is applied to an X-ray crystal orientation instrument, and the device includes:
获取模块,用于获取待测目标数据;An acquisition module, configured to acquire target data to be tested;
调整模块,用于基于所述待测目标数据控制所述定向仪运动,以调整所述定向仪中X射线源所发射的X射线入射待测目标上的入射参数;An adjustment module, configured to control the movement of the orientation gauge based on the data of the target to be measured, so as to adjust the incident parameters of the X-rays emitted by the X-ray source in the orientation gauge incident on the target to be measured;
衍射数据获取模块,用于通过在所述入射参数调整过程中进行数据探测,得到至少两组衍射数据;A diffraction data acquisition module, configured to obtain at least two sets of diffraction data by performing data detection during the adjustment process of the incident parameters;
图像生成模块,用于对所述两组衍射数据进行分析处理,当所述两组衍射数据的分析结果的差值满足设定条件,根据其中一组衍射数据生成待分析图像;An image generation module, configured to analyze and process the two sets of diffraction data, and generate an image to be analyzed according to one set of diffraction data when the difference between the analysis results of the two sets of diffraction data satisfies a set condition;
图像识别模块,用于对所述待分析图像进行斑点识别和分析处理,得到数据分析结果。The image recognition module is configured to perform speckle recognition and analysis processing on the image to be analyzed to obtain a data analysis result.
在本发明的另一实施中,一种X射线晶体定向仪,该定向仪包括:In another implementation of the present invention, an X-ray crystal orientation instrument, the orientation instrument includes:
处理器;及processor; and
存储器,所述存储器上存储有计算机可读指令,所述计算机可读指令被所述处理器执行时实现以上任意一种所述的数据处理方法。A memory, where computer-readable instructions are stored on the memory, and when the computer-readable instructions are executed by the processor, any one of the data processing methods described above is implemented.
本申请提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solution provided by the application are:
上述技术方案降低了X射线衍射图像分析处理过程中人为干预性。The above technical solution reduces human intervention in the process of X-ray diffraction image analysis and processing.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对本申请实施例描述中所需要使用的附图作简单地介绍。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings that need to be used in the description of the embodiments of the present application.
图1是基于本申请所涉及的实施环境的示意图。FIG. 1 is a schematic diagram based on the implementation environment involved in this application.
图2是基于一示例性实施例示出的一种数据处理方法的流程图。Fig. 2 is a flow chart showing a data processing method based on an exemplary embodiment.
图3是基于另一示例性实施例示出的一种数据处理方法的流程图。Fig. 3 is a flow chart showing a data processing method based on another exemplary embodiment.
图4是基于另一示例性实施例示出的一种数据处理装置的框图。Fig. 4 is a block diagram of a data processing device based on another exemplary embodiment.
图5是基于另一示例性实施例示出的一种X射线晶体定向仪的框图。Fig. 5 is a block diagram of an X-ray crystal orientation instrument based on another exemplary embodiment.
具体实施方式Detailed ways
为了使本发明要解决的技术问题、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
图1为数据处理方法所述涉及的实施环境的示意图。该实施环境包括X射线晶体定向仪和待测目标。所述X射线晶体定向仪包括中央控制模块1、待探测目标数据采集模块2、探测角度获取模块3、运动控制模块4、位姿调整模块5、数据采集模块6、衍射数据处理模块7、图像处理模块8、斑点识别模块9、衍射数据分析模块10,数据处理分析模块11、调整模块12和输出模块13。其中,中央控制模块1,与待探测目标数据采集模块2、探测角度确定模块3、运动控制模块4、位姿调整模块5、数据采集模块6、衍射数据处理模块7、图像处理模块8、斑点识别模块9、衍射数据分析模块10、数据处理分析模块11、调整模块12以及输出模块13连接,用于利用单片机或控制器控制各个模块正常工作。FIG. 1 is a schematic diagram of the implementation environment involved in the data processing method. The implementation environment includes an X-ray crystal orientation instrument and a target to be measured. The X-ray crystal orientation instrument includes a central control module 1, a target
待探测目标数据采集模块2,与中央控制模块1连接,用于获取待探测目标数据;探测确定模块3,与中央控制模块1连接,用于基于获取到的待探测目标数据确定探测角度和位姿;运动控制模块4,与中央控制模块1连接,用于基于初始探测角度控制定向仪平台运动,更新探测角度;位姿调整模块5,与中央控制模块1连接,用于基于初始位姿以及平台控制结果调整初始位姿,得到更新位姿;数据提取模块6,与中央控制模块1连接,从待探测目标数据中提取衍射数据;衍射数据处理模块7,与中央控制模块1连接,用于对衍射数据进行预处理;图像处理模块8,与中央控制模块1连接,用于对待分析图像数据进行预处理;斑点识别模块9,与中央控制模块1连接,用于基于预处理后的图像数据进行斑点识别;衍射数据分析模块10,与中央控制模块1连接,用于对预处理后的衍射数据进行分析处理,得到衍射数据分析结果;图像分析处理模块11,与中央控制模块1连接,用于对待分析图像进行分析处理;调整模块12,与中央控制模块1连接,控制运动控制模块4和位姿调整模块5;输出模块13,与中央控制模块1连接,用于利用显示器输出更新探测角度,待探测目标数据、斑点识别结果、衍射数据分析结果、待分析图像分析结果。The data acquisition module 2 of the target to be detected is connected with the central control module 1 for obtaining the data of the target to be detected; the detection determination module 3 is connected with the central control module 1 for determining the detection angle and position based on the acquired data of the target to be detected pose; motion control module 4, connected with the central control module 1, for controlling the movement of the orientation instrument platform based on the initial detection angle, and updating the detection angle; the pose adjustment module 5, connected with the central control module 1, for based on the initial pose and The platform control results adjust the initial pose to obtain an updated pose; the data extraction module 6 is connected to the central control module 1 to extract diffraction data from the target data to be detected; the diffraction data processing module 7 is connected to the central control module 1 for The diffraction data is preprocessed; the image processing module 8 is connected with the central control module 1 for preprocessing the image data to be analyzed; the speckle recognition module 9 is connected with the central control module 1 for based on the preprocessed image data Carry out spot recognition; Diffraction data analysis module 10, is connected with central control module 1, is used for analyzing and processing the diffraction data after preprocessing, obtains diffraction data analysis result; Image analysis processing module 11, is connected with central control module 1, uses For analyzing and processing the image to be analyzed; the adjustment module 12 is connected with the central control module 1 to control the motion control module 4 and the pose adjustment module 5; the output module 13 is connected with the central control module 1 and is used to update the detection angle by using the display output , target data to be detected, spot recognition results, diffraction data analysis results, and image analysis results to be analyzed.
通过上述定向仪,即实现了待测目标数据的获取、定向仪的运动、衍射数据的获取和比较、以及待分析图像的生成、识别和分析,有效地解决了相关技术中无法识别所有亮度的斑点的缺陷,不利于对待测目标的晶体信息做出准确的判断的问题。Through the above-mentioned directional device, the acquisition of target data to be measured, the movement of the directional device, the acquisition and comparison of diffraction data, and the generation, identification and analysis of images to be analyzed are realized, which effectively solves the problem of not being able to identify all brightness in related technologies. Spot defects are not conducive to making accurate judgments on the crystal information of the target to be measured.
图2是根据一实施例示出的一种数据处理方法。该方法适用于图1所示出的X射线晶体定向仪。Fig. 2 shows a data processing method according to an embodiment. This method is applicable to the X-ray crystal orientation instrument shown in Fig. 1 .
一种数据处理方法100可以包括以下步骤:A data processing method 100 may include the following steps:
S11:获取待测目标数据。S11: Acquiring target data to be tested.
其中,待测目标数据包括探测角度、位姿、、移位处理参数和衍射数据,衍射数据包括衍射角度、衍射卫星峰数量和衍射强度,上述参数通过X射线定向仪的探测器取得。Among them, the target data to be measured includes detection angle, pose, displacement processing parameters and diffraction data. The diffraction data includes diffraction angle, number of diffraction satellite peaks and diffraction intensity. The above parameters are obtained by the detector of the X-ray orientation instrument.
待测目标是指矿物质、合金、维生素、药物或者蛋白质形成的晶体或者固体中的晶体,通过本发明所提供的数据方法获取如原子间化学键长度,晶格失配或者缺陷等信息。The target to be measured refers to crystals formed by minerals, alloys, vitamins, drugs, or proteins or crystals in solids. Information such as the length of chemical bonds between atoms, lattice mismatches, or defects can be obtained through the data method provided by the present invention.
关于待测目标数据的获取,第一检测图像可以来源于图像采集设备实时采集的第一检测图像,也可以是预先存储于服务器的一历史时间段由图像采集设备拍摄并采集的第一检测图像。也就是说,图像采集设备采集到第一检测图像后,可以对该第一检测图像进行实时处理,例如实时地对第一检测图像中的目标进行识别;也可以预先存储了再处理,例如,在服务器处理任务较少的时候进行第一检测图像的目标识别处理,或者,按照操作人员的指定时间进行第一检测图像的目标识别处理。Regarding the acquisition of the target data to be measured, the first detection image can be derived from the first detection image collected in real time by the image acquisition device, or it can be the first detection image captured and collected by the image acquisition device in a historical time period pre-stored in the server . That is to say, after the image acquisition device collects the first detection image, it can perform real-time processing on the first detection image, for example, recognize the target in the first detection image in real time; it can also pre-store and then process, for example, The target recognition processing of the first detection image is performed when the processing tasks of the server are less, or the target recognition processing of the first detection image is performed according to the designated time of the operator.
S12:基于所述待测目标数据控制所述定向仪运动,以调整所述定向仪中X射线源所发射的X射线入射待测目标上的入射参数。S12: Control the movement of the orientation finder based on the data of the target to be measured, so as to adjust the incident parameters of the X-rays emitted by the X-ray source in the orientation finder incident on the target to be measured.
在一个实施例中,定向仪运动包括但不限于:调整定向仪中的X射线源、样品支架和探测器在三维空间的绝对位置和俯仰角度、以及调整待测目标在定向仪中的样品支架上的位姿。In one embodiment, the movement of the orientation instrument includes but is not limited to: adjusting the absolute position and pitch angle of the X-ray source in the orientation instrument, the sample holder and the detector in three-dimensional space, and adjusting the sample holder of the target to be measured in the orientation instrument pose on .
在一个实施例中,入射参数包括在X射线入射待测目标的入射角和入射位置。In one embodiment, the incident parameters include incident angle and incident position where the X-rays incident on the target to be measured.
S13:通过在所述入射参数调整过程中进行数据探测,得到至少两组衍射数据。S13: Obtain at least two sets of diffraction data by performing data detection during the incident parameter adjustment process.
在一个实施例中,至少两组衍射数据,是入射参数调整前后进行数据探测得到的,即入射参数调整前进行数据探测得到一组衍射数据,入射参数调整后进行数据探测得到另一组衍射参数。In one embodiment, at least two sets of diffraction data are obtained by data detection before and after incident parameter adjustment, that is, data detection is performed before incident parameter adjustment to obtain a set of diffraction data, and data detection is performed after incident parameter adjustment to obtain another set of diffraction parameters .
S14:对所述两组衍射数据进行分析处理,当所述两组衍射数据的分析结果的差值满足设定条件,根据其中一组衍射数据生成待分析图像。S14: Analyzing and processing the two sets of diffraction data, and generating an image to be analyzed according to one set of diffraction data when the difference between the analysis results of the two sets of diffraction data satisfies a set condition.
在一个实施例中,待测目标存在衍射角度的标准值,设定条件是指同时满足三个方面:其一,衍射角度与衍射角度标准值差距较小,所述差距较小是指衍射角度小数点前和小数点后一位的数值与衍射角度标准值相同;其二:衍射强度数值至少差一个数量级;其三,衍射卫星峰的数量更多。将其中满足设定条件的衍射数据生成待分析图像。在一个实施例中,用于生成待分析图像的衍射数据可以从两组衍射数据中随机选取。在另一个实施例中,采用数值较大的衍射数据生成待分析图像,使得待分析图像更接近理想状态,以此排除实验方法、操作方法对待测目标的背景噪声影响。In one embodiment, there is a standard value of the diffraction angle for the target to be measured, and the setting condition refers to satisfying three aspects at the same time: First, the difference between the diffraction angle and the standard value of the diffraction angle is small, and the small difference means that the diffraction angle The value of one digit before and after the decimal point is the same as the standard value of the diffraction angle; second: the value of the diffraction intensity is at least an order of magnitude different; third, the number of diffraction satellite peaks is more. Generate the image to be analyzed from the diffraction data satisfying the set conditions. In one embodiment, the diffraction data used to generate the image to be analyzed can be randomly selected from two groups of diffraction data. In another embodiment, the image to be analyzed is generated by using the diffraction data with a large value, so that the image to be analyzed is closer to an ideal state, so as to eliminate the influence of the background noise of the target to be measured by the experimental method and the operation method.
S15:对所述待分析图像进行斑点识别和分析处理,得到数据分析结果。S15: Perform spot recognition and analysis processing on the image to be analyzed to obtain a data analysis result.
在一个实施例中,斑点识别,是通过对斑点的识别包括统计斑点的数量实现的。In one embodiment, the speckle identification is realized by counting the number of speckles in the speckle identification.
通过上述过程,降低了X射线衍射图像分析处理过程中人为干预性。整个数据处理过程自动进行,打破了人为操作的局限性,增强了斑点识别的准确性,有利于获取待测目标精准的晶体信息。Through the above process, human intervention in the X-ray diffraction image analysis and processing process is reduced. The entire data processing process is carried out automatically, which breaks the limitation of human operation, enhances the accuracy of spot recognition, and is conducive to obtaining accurate crystal information of the target to be measured.
在一个实施例中,待分析图像斑点识别和分析处理之前,对待分析图像进行预处理,所述预处理包括但不仅限于采用高斯滤波模型对待分析图像进行去噪滤波处理。所述高斯滤波模型如下:In one embodiment, before spot recognition and analysis processing of the image to be analyzed, the image to be analyzed is preprocessed, and the preprocessing includes but not limited to denoising and filtering the image to be analyzed by using a Gaussian filter model. The Gaussian filtering model is as follows:
其中,kmax表示最大频率,/>V表示尺度参数,μ表示方向参数,z=(x,y)||z||=(x2+y2),x,y表示二维Gabor滤波器的坐标,i表示虚单位,r为引进的参数,用于控制Gabor滤波器的形状。in, k max indicates the maximum frequency, /> V represents the scale parameter, μ represents the direction parameter, z=(x, y)||z||=(x 2 +y 2 ), x, y represent the coordinates of the two-dimensional Gabor filter, i represents the imaginary unit, and r is Introduced parameters for controlling the shape of the Gabor filter.
对待分析图像进行去噪滤波处理的目的是去掉背景噪声。背景噪声是由样品支架及其他组件或阻挡物与X射线之间的作用,待测目标与X射线之间除待测目标对X射线产生的衍射效应之外的其他相互作用效应在衍射图像中产生的图像背景噪声,影响待分析图像得斑点正确识别。The purpose of denoising and filtering the image to be analyzed is to remove the background noise. The background noise is caused by the interaction between the sample holder and other components or barriers and X-rays, and other interaction effects between the object to be measured and X-rays except the diffraction effect produced by the object to be measured on X-rays are displayed in the diffraction image The generated image background noise affects the correct identification of spots in the image to be analyzed.
图3是根据另一实施例示出的一种数据处理方法。该方法适用在另一个实施例中,待分析图像斑点识别和分析处理之前,对待分析图像进行预处理,所述预处理包括采用高斯滤波模型、中值滤波、直方均匀化和边缘增强等算法对待分析图像进行去噪滤波处理。于图1所示出的X射线晶体定向仪。Fig. 3 is a data processing method shown according to another embodiment. This method is applicable to another embodiment. Before spot recognition and analysis processing of the image to be analyzed, the image to be analyzed is preprocessed. The image is analyzed for denoising filtering. The X-ray crystal orientation instrument shown in Figure 1.
一种数据处理方法200可以包括以下步骤:A data processing method 200 may include the following steps:
S21:获取待测目标数据。S21: Acquiring target data to be tested.
其中,待测目标数据包括探测角度、位姿、衍射数据和移位处理参数。Among them, the target data to be measured includes detection angle, pose, diffraction data and displacement processing parameters.
S22:基于待测目标数据控制定向仪运动,以调整定向仪中X射线源所发射的X射线入射待测目标上的入射参数。S22: Control the movement of the orientation instrument based on the data of the target to be measured, so as to adjust the incident parameters of the X-rays emitted by the X-ray source in the orientation instrument and incident on the target to be measured.
其中,入射参数包括在X射线入射待测目标的入射角和入射位置。Wherein, the incident parameters include the incident angle and incident position where the X-rays incident on the target to be measured.
其中,基于待测目标数据控制定向仪运动,包括以下至少一种:Wherein, controlling the movement of the orientation instrument based on the target data to be measured includes at least one of the following:
S221:调整定向仪中的X射线源、样品支架和探测器在三维空间的绝对位置。S221: Adjusting the absolute positions of the X-ray source, the sample holder and the detector in the orientation instrument in three-dimensional space.
S222:调整定向仪中的X射线源、样品支架和探测器在三维空间的俯仰角度。S222: Adjust the pitch angles of the X-ray source, the sample holder and the detector in the orientation instrument in three-dimensional space.
S223:调整待测目标在定向仪中的样品支架上的位姿。S223: Adjust the pose of the target to be measured on the sample holder in the orientation instrument.
S23:通过在入射参数调整过程中进行数据探测,得到至少两组衍射数据,包括:S23: Obtain at least two sets of diffraction data by performing data detection during the incident parameter adjustment process, including:
具体地,S231:从待测目标数据中,获得初始探测角度和待测目标的初始位姿,并基于初始探测角度和待测目标的初始位姿得到一组衍射数据。Specifically, S231: Obtain an initial detection angle and an initial pose of the target to be measured from the data of the target to be measured, and obtain a set of diffraction data based on the initial detection angle and the initial pose of the target to be measured.
S232:在入射参数调整后,重新获取待测目标数据。S232: Re-acquire data of the target to be measured after the incident parameters are adjusted.
S233:从重新获取的待测目标数据中,获得更新探测角度和待测目标的更新位姿,并基于更新探测角度和待测目标的更新位姿得到另一组衍射数据。S233: Obtain an updated detection angle and an updated pose of the target to be measured from the reacquired data of the target to be measured, and obtain another set of diffraction data based on the updated detection angle and the updated pose of the target to be measured.
S24:对衍射数据进行预处理,所述预处理过程包括:S24: Preprocessing the diffraction data, the preprocessing process includes:
具体地,S241:从衍射数据中提取衍射强度参数,并从待测目标数据中提取移位处理参数。其中,移位处理参数包括小数点移位方向和小数点移动位数。Specifically, S241: extracting a diffraction intensity parameter from the diffraction data, and extracting a shift processing parameter from the target data to be measured. Wherein, the shifting processing parameters include the shifting direction of the decimal point and the number of digits of shifting the decimal point.
S242:基于移位处理参数对衍射强度参数进行小数点的移位处理,得到预处理后的衍射数据。S242: Perform decimal point shift processing on the diffraction intensity parameters based on the shift processing parameters to obtain preprocessed diffraction data.
S25:对两组衍射数据进行分析处理,当两组衍射数据的分析结果的差值满足设定条件,根据其中一组衍射数据生成待分析图像。S25: Analyzing and processing two sets of diffraction data, and generating an image to be analyzed according to one set of diffraction data when the difference between the analysis results of the two sets of diffraction data satisfies a set condition.
在一个实施例中,待测目标是已知的,设定条件是指同时满足三个方面:其一,衍射角度与衍射角度标准值差距较小,所述差距较小是指衍射角度小数点前和小数点后一位的数值与衍射角度标准值相同;其二:以10为底取衍射强度的对数得到的数值至少差一个数量级;其三,衍射峰的数量更多。将其中满足设定条件的衍射数据生成待分析图像。In one embodiment, the target to be measured is known, and the setting conditions refer to satisfying three aspects at the same time: First, the difference between the diffraction angle and the standard value of the diffraction angle is small, and the small difference means that the diffraction angle is before the decimal point. The value of one digit after the decimal point is the same as the standard value of the diffraction angle; second: the value obtained by taking the logarithm of the diffraction intensity to the
其中,所述根据其中一组衍射数据生成待分析图像,包括:Wherein, the generation of the image to be analyzed according to one set of diffraction data includes:
S251:对由其中一组衍射数据构成的衍射图像进行图像分割,确定衍射图像中的非目标区域和目标区域。S251: Carry out image segmentation on the diffraction image formed by one set of diffraction data, and determine non-target areas and target areas in the diffraction image.
S252:从衍射图像中获得包含所述目标区域的待分析图像。S252: Obtain an image to be analyzed including the target area from the diffraction image.
非目标区域是由样品支架及其他组件或阻挡物与X射线之间的作用,待测目标与X射线之间除待测目标对X射线产生的衍射效应之外的其他相互作用效应在衍射图像中产生的图像背景噪声,影响待分析图像得斑点正确识别。The non-target area is caused by the interaction between the sample holder and other components or barriers and X-rays, and other interaction effects between the target to be measured and X-rays except the diffraction effect produced by the target to be measured on X-rays are included in the diffraction image. The image background noise generated in the image affects the correct recognition of spots in the image to be analyzed.
S26:对待分析图像进行斑点识别和分析处理,得到数据分析结果。S26: Perform spot recognition and analysis processing on the image to be analyzed to obtain a data analysis result.
其中,对待分析图像进行斑点识别包括:Among them, performing spot recognition on the image to be analyzed includes:
S261:对待分析图像进行灰度处理,得到灰度化图像,包括:S261: Perform grayscale processing on the image to be analyzed to obtain a grayscale image, including:
S2611:确定待分析图像的图像颜色特征,并基于图像颜色特征对待分析图像进行图像分割,得到若干个图像区域,每一个图像区域对应一种图像颜色特征。S2611: Determine the image color feature of the image to be analyzed, and perform image segmentation on the image to be analyzed based on the image color feature to obtain several image areas, each image area corresponding to an image color feature.
在本实施例中图像颜色特征通过灰度值进行表达。基于灰度值的大小对待分析图像分割,每一个图像区域对应一种灰度值。In this embodiment, image color features are expressed by grayscale values. The image to be analyzed is segmented based on the size of the gray value, and each image region corresponds to a gray value.
S2612:利用不同的图像颜色特征,对若干个图像区域进行灰度处理,得到所述灰度化图像。S2612: Using different image color features, perform grayscale processing on several image regions to obtain the grayscale image.
S262:对所述灰度化图像进行阈值统计,得到阈值统计结果,基于所述阈值统计结果确定所述灰度化图像中的有斑点区域和无斑点区域。S262: Perform threshold statistics on the gray-scaled image to obtain a threshold statistical result, and determine a speckled area and a speckle-free area in the gray-scaled image based on the threshold statistical result.
S263:对所述有斑点区域进行斑点识别,得到所述斑点识别结果。S263: Perform spot recognition on the speckle area to obtain the spot recognition result.
S264:对所述斑点识别结果中已识别到的斑点进行筛选,剔除不满足设定阈值的斑点,得到筛选后的斑点识别结果。S264: Screen the identified spots in the spot recognition results, and eliminate spots that do not meet the set threshold, to obtain a filtered spot recognition result.
在一个实施例中,设定阈值为衍射强度等于100a.u arbitrary unit/或者200counts per second(cps),衍射强度小于100a.u arbitrary unit/或者200counts persecond(cps)的斑点被剔除。In one embodiment, the threshold is set to a diffraction intensity equal to 100a.u arbitrary unit/or 200 counts per second (cps), and spots with a diffraction intensity less than 100a.u arbitrary unit/or 200 counts per second (cps) are eliminated.
在一个实施例中,待分析图像斑点识别和分析处理之前,对待分析图像进行预处理,所述预处理包括但不仅限于采用高斯滤波模型对待分析图像进行去噪滤波处理。所述高斯滤波模型如下:In one embodiment, before spot recognition and analysis processing of the image to be analyzed, the image to be analyzed is preprocessed, and the preprocessing includes but not limited to denoising and filtering the image to be analyzed by using a Gaussian filter model. The Gaussian filtering model is as follows:
其中,kmax表示最大频率,/>V表示尺度参数,μ表示方向参数,z=(x,y)||z||=(x2+y2),x,y表示二维Gabor滤波器的坐标,i表示虚单位,r为引进的参数,用于控制Gabor滤波器的形状。in, k max indicates the maximum frequency, /> V represents the scale parameter, μ represents the direction parameter, z=(x, y)||z||=(x 2 +y 2 ), x, y represent the coordinates of the two-dimensional Gabor filter, i represents the imaginary unit, and r is Introduced parameters for controlling the shape of the Gabor filter.
对待分析图像进行去噪滤波处理的目的是去掉背景噪音。背景噪声是由样品支架及其他组件或阻挡物与X射线之间的作用,待测目标与X射线之间除待测目标对X射线产生的衍射效应之外的其他相互作用效应在衍射图像中产生的图像背景噪声,影响待分析图像得斑点正确识别。The purpose of denoising and filtering the image to be analyzed is to remove background noise. The background noise is caused by the interaction between the sample holder and other components or barriers and X-rays, and other interaction effects between the object to be measured and X-rays except the diffraction effect produced by the object to be measured on X-rays are displayed in the diffraction image The generated image background noise affects the correct identification of spots in the image to be analyzed.
在另一个实施例中,待分析图像斑点识别和分析处理之前,对待分析图像进行预处理,所述预处理包括采用高斯滤波模型、中值滤波、直方均匀化和边缘增强等算法对待分析图像进行去噪滤波处理。In another embodiment, before spot recognition and analysis of the image to be analyzed, the image to be analyzed is preprocessed, and the preprocessing includes using algorithms such as Gaussian filter model, median filter, histogram homogenization and edge enhancement to process the image to be analyzed. Denoising filter processing.
图4是根据另一实施例示出的一种数据处理装置,该装置300应用于X射线晶体定向仪,包括获取模块31、调整模块32、衍射数据获取模块33、图像生成模块34和图像识别模块35。Figure 4 is a data processing device shown according to another embodiment, the device 300 is applied to an X-ray crystal orientation instrument, including an
其中,获取模块31用于获取待测目标数据。Wherein, the obtaining
调整模块32用于基于所述待测目标数据控制所述定向仪运动,以调整所述定向仪中X射线源所发射的X射线入射待测目标上的入射参数。The
衍射数据获取模块33用于通过在所述入射参数调整过程中进行数据探测,得到至少两组衍射数据。The diffraction data acquisition module 33 is configured to obtain at least two sets of diffraction data by performing data detection during the incident parameter adjustment process.
图像生成模块34用于对所述两组衍射数据进行分析处理,当所述两组衍射数据的分析结果的差值满足设定条件,根据其中一组衍射数据生成待分析图像。The
图像识别模块35用于对所述待分析图像进行斑点识别和分析处理,得到数据分析结果。The
图5是根据另一实施例示出的一种X射线晶体定向仪,该定向仪400包括处理器41和存储器42。FIG. 5 shows an X-ray crystal orientation instrument according to another embodiment. The orientation instrument 400 includes a
其中,存储器42上存储有计算机可读指令,所述计算机可读指令被所述处理器执行时实现上述任意一种所述的数据处理方法。Wherein, the
本发明提供的技术方案降低了X射线衍射图像分析处理过程中人为干预性。整个数据处理过程自动进行,打破了人为操作的局限性,增强了斑点识别的准确性,有利于获取待测目标精准的晶体信息。The technical scheme provided by the invention reduces human intervention in the process of X-ray diffraction image analysis and processing. The entire data processing process is carried out automatically, which breaks the limitation of human operation, enhances the accuracy of spot recognition, and is conducive to obtaining accurate crystal information of the target to be tested.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111537830.4A CN116263416A (en) | 2021-12-15 | 2021-12-15 | Data processing method and device and X-ray crystal orientation instrument |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111537830.4A CN116263416A (en) | 2021-12-15 | 2021-12-15 | Data processing method and device and X-ray crystal orientation instrument |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116263416A true CN116263416A (en) | 2023-06-16 |
Family
ID=86722467
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111537830.4A Pending CN116263416A (en) | 2021-12-15 | 2021-12-15 | Data processing method and device and X-ray crystal orientation instrument |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116263416A (en) |
-
2021
- 2021-12-15 CN CN202111537830.4A patent/CN116263416A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN117095005B (en) | Plastic master batch quality inspection method and system based on machine vision | |
WO2021000524A1 (en) | Hole protection cap detection method and apparatus, computer device and storage medium | |
JP6305171B2 (en) | How to detect objects in a scene | |
CN104237121B (en) | A kind of motility of sperm method for testing performance | |
US20220222822A1 (en) | Microscopy System and Method for Evaluating Image Processing Results | |
JP2019061484A (en) | Image processing device and control method thereof and program | |
AU599851B2 (en) | Process and system for digital analysis of images applied to stratigraphic data | |
US20220114725A1 (en) | Microscopy System and Method for Checking Input Data | |
EP1430446A1 (en) | Image processing method for appearance inspection | |
CN118429242A (en) | Image analysis method and system based on deep learning | |
CN110634128A (en) | A ball stud pin size detection method, device, computer equipment and storage medium | |
JP7072765B2 (en) | Image processing device, image recognition device, image processing program, and image recognition program | |
CN118470005A (en) | Defect detection system based on visual recognition technology | |
CN117351001A (en) | A method for identifying surface defects of recycled aluminum alloy templates | |
CN109313708B (en) | Image matching method and vision system | |
CN118014443B (en) | Medicine monitoring method and device | |
Wang et al. | A casting surface dataset and benchmark for subtle and confusable defect detection in complex contexts | |
WO2018143278A1 (en) | Image processing device, image recognition device, image processing program, and image recognition program | |
CN116263416A (en) | Data processing method and device and X-ray crystal orientation instrument | |
CN117330582A (en) | Polymer PE film surface crystal point detecting system | |
CN114693627A (en) | Method, device and equipment for measuring height of top of gold wire and storage medium | |
CN115471537A (en) | Monocular camera-based moving target distance and height measuring method | |
RU2346331C1 (en) | Method of automatic estimate of lcd data display correctness | |
WO2020175085A1 (en) | Image processing apparatus and image processing method | |
CN117523636B (en) | Face detection method and device, electronic 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 |