CN109584224B - Method for analyzing and displaying X-ray image of casting - Google Patents
Method for analyzing and displaying X-ray image of casting Download PDFInfo
- Publication number
- CN109584224B CN109584224B CN201811394409.0A CN201811394409A CN109584224B CN 109584224 B CN109584224 B CN 109584224B CN 201811394409 A CN201811394409 A CN 201811394409A CN 109584224 B CN109584224 B CN 109584224B
- Authority
- CN
- China
- Prior art keywords
- image
- defect
- casting
- displaying
- data
- 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
- 238000005266 casting Methods 0.000 title claims abstract description 35
- 238000000034 method Methods 0.000 title claims abstract description 22
- 230000007547 defect Effects 0.000 claims abstract description 63
- 238000001914 filtration Methods 0.000 claims abstract description 17
- 238000004458 analytical method Methods 0.000 claims abstract description 15
- 239000003086 colorant Substances 0.000 claims abstract description 8
- 238000007781 pre-processing Methods 0.000 claims abstract description 4
- 238000002441 X-ray diffraction Methods 0.000 claims description 5
- 230000000007 visual effect Effects 0.000 claims description 5
- FGUUSXIOTUKUDN-IBGZPJMESA-N C1(=CC=CC=C1)N1C2=C(NC([C@H](C1)NC=1OC(=NN=1)C1=CC=CC=C1)=O)C=CC=C2 Chemical compound C1(=CC=CC=C1)N1C2=C(NC([C@H](C1)NC=1OC(=NN=1)C1=CC=CC=C1)=O)C=CC=C2 FGUUSXIOTUKUDN-IBGZPJMESA-N 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 4
- 238000005058 metal casting Methods 0.000 description 3
- 238000000605 extraction Methods 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 238000010191 image analysis Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000011148 porous material Substances 0.000 description 1
- 239000002893 slag Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/70—Denoising; Smoothing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30108—Industrial image inspection
- G06T2207/30116—Casting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30108—Industrial image inspection
- G06T2207/30164—Workpiece; Machine component
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Analysing Materials By The Use Of Radiation (AREA)
Abstract
The invention discloses a method for analyzing and displaying an X-ray image of a casting, which comprises the following steps of: a. obtaining an X-ray image; b. preprocessing is carried out, the position, type and size of the defect in each image and the generation time of the image are obtained, and an X-ray image database is constructed; c. selecting at least one view to be analyzed, acquiring X-ray image data corresponding to each view from a database, and constructing a virtual grid corresponding to each view; d. determining the time range of the analysis image, and counting data of the defects in the corresponding image in each grid within the time range; e. d, performing regional filtering on the data obtained in the step d to obtain a defect data set; f. and according to the defect data set, representing the defect conditions by adopting different colors, and displaying the different colors on the casting image in an overlapping manner to obtain an intuitive expression image of the casting defect. The invention can analyze and display the change condition of the defects in different time ranges according to requirements and can visually display the distribution of the defects.
Description
Technical Field
The invention relates to a method for detecting and analyzing a metal casting, in particular to a method for analyzing and displaying an X-ray image of the casting.
Background
The X-ray analysis is carried out on the metal casting, and the method is a nondestructive analysis method for detecting the defects of the casting. By recording the attenuation condition of X-rays passing through the metal casting, an image related to the interior of the casting is obtained on the premise of not damaging the casting body, so that the distribution conditions of defects such as internal pores, slag inclusion, porosity and the like are judged.
In order to realize rapid and accurate analysis, image processing technology is introduced in the field, and feature extraction and defect classification are carried out on the image. However, in the analysis of casting defects, how to display the influence of different casting conditions on the quality of castings to improve the casting process is difficult to realize by the current X-ray image analysis system.
Therefore, it is necessary to provide automatic defect analysis and display of X-ray images based on time and direction, and to realize visual display of defects by a specific method.
Disclosure of Invention
The invention aims to provide a method for analyzing and displaying an X-ray image of a casting, which realizes time and direction-based X-ray image defect analysis and defect visual display.
In order to achieve the purpose of the invention, the technical scheme adopted by the invention is as follows: a method for analyzing and displaying X-ray images of a casting, comprising the steps of:
a. detecting different views of each casting to be analyzed by adopting X-ray analysis equipment to obtain an X-ray image;
b. preprocessing the X-ray images by adopting a computer, acquiring the position, type and size of a defect in each image and the generation time of the image, and recording the positions, types and sizes of the defects and the generation time of the image in the image data to form an X-ray image database;
c. selecting at least one view to be analyzed, acquiring X-ray image data corresponding to each view from a database, and constructing a virtual grid corresponding to each view;
d. determining the time range of the analysis image, and counting data of the defects in the corresponding image in each grid within the time range;
e. d, performing regional filtering on the data obtained in the step d to obtain a defect data set in a filtering state;
f. and according to the defect data set, expressing the defect conditions by adopting different colors, and displaying the color on the casting image in an overlapping manner to obtain an intuitive expression image of the casting defect.
In the above technical solution, in step c, the size of the virtual grid may be set according to an analysis requirement, and the minimum size may be 1 pixel to form a grid.
In the step d, the regional filtering method is to give a window with a set size and average the data in the corresponding window.
Preferably, the window is a square window, and the side length of the window is 2-4 virtual grids.
In the step f, the different colors are expressed by adopting a color different from the color of the casting image as the expression color of the defect to form a color block, and the transparency of the color block is determined according to the defect data to obtain the visual expression image of the defect.
In the further technical scheme, between the step e and the step f, background processing is carried out to remove the defect data corresponding to the grids with the defect data value smaller than the set threshold value.
Preferably, the set threshold is half of the maximum defect data value.
Due to the application of the technical scheme, compared with the prior art, the invention has the following advantages:
1. according to the invention, the time-related defect condition is obtained through statistics of the defects in the time range, and the change conditions of the defects in different time ranges can be analyzed and displayed according to requirements;
2. the method can visually display the distribution condition of the defects through the color block display with different transparencies, and is convenient for subsequent analysis;
3. through window filtering, the change condition of the defect relative to the peripheral difference can be effectively displayed;
4. by removing the background noise, the defect display can be more visual and clear.
Drawings
FIG. 1 is a schematic flow diagram of an embodiment of the present invention;
FIG. 2 is a schematic illustration of an analysis display interface according to an embodiment of the present invention;
FIG. 3 is a diagram showing the layout of a virtual grid in the embodiment;
FIG. 4 is a schematic diagram of the defect statistics in the set time range in the embodiment;
FIG. 5 is a case after 3 × 3 window filtering of FIG. 4;
FIG. 6 is a case after half-value filtering of FIG. 5;
FIG. 7 is a display diagram after processing in an embodiment.
Detailed Description
The invention is further described with reference to the following figures and examples:
the first embodiment is as follows: a method for analyzing and displaying X-ray images of castings comprises the steps of firstly, detecting different views of each casting to be analyzed by adopting X-ray analysis equipment to obtain X-ray images; and preprocessing the X-ray images by adopting a computer, acquiring the position, type and size of the defect in each image and the generation time of the image, and recording the positions, types and sizes and the generation time in the image data to form an X-ray image database.
Then, referring to fig. 1, the following processes are performed:
(1) Connecting to an X-ray image database;
(2) Selecting at least one view to be analyzed, acquiring X-ray image data corresponding to each view from a database, and constructing a virtual grid corresponding to each view;
(3) Determining the time range of the analysis image, and counting data of defects in the image corresponding to each grid in the time range;
(4) D, performing regional filtering on the data obtained in the step d to obtain a defect data set in a filtering state; in the process, the size of a filtering window is adjusted according to the requirement; according to the situation, background filtering is carried out, and noise with a small numerical value is filtered;
(5) And according to the defect data set, expressing the defect conditions by adopting different colors, and displaying the color on the casting image in an overlapping manner to obtain an intuitive expression image of the casting defect.
The analysis can be implemented by software, and the software interface is shown in fig. 2.
With the method of the present embodiment, it is possible to perform analysis for specific casting conditions, for example, X-ray analysis during different heating processes or in a time-stop manner, using time range selection; and can also be used for analyzing the product defects of different product batches or dates. By means of window filtering and background removal, the distribution situation of the defects can be displayed more clearly.
Defects may be represented by color blocks of different transparency. For example:
transparency = ((maximum in grid-number of grid)/maximum in grid) × 100%
Thus, when the defect value is the maximum, the transparency is 0, and when there is no defect, the transparency is 100%.
One implementation of this embodiment is illustrated in FIGS. 3-7:
the layout after the virtual grid is constructed is shown in fig. 3.
An analysis time region is selected, and defect value statistics is performed on each virtual grid in fig. 3, and the result is shown in fig. 4.
The data of fig. 4 was subjected to 3 × 3 window filtering, and the results are shown in fig. 5.
Fig. 6 shows the case where the half-value filtering is performed on fig. 5.
The processed defect data is superimposed on the casting image in a transparency display, as shown in fig. 7. When color display is adopted, the distribution of defects can be clearly displayed.
Claims (6)
1. A method for analyzing and displaying X-ray images of a casting, comprising the steps of:
a. detecting different views of each casting to be analyzed by adopting X-ray analysis equipment to obtain an X-ray image;
b. preprocessing the X-ray images by adopting a computer, acquiring the position, type and size of a defect in each image and the generation time of the image, and recording the positions, types and sizes of the defects and the generation time of the image in the image data to form an X-ray image database;
c. selecting at least one view to be analyzed, acquiring X-ray image data corresponding to each view from a database, and constructing a virtual grid corresponding to each view;
d. determining the time range of the analysis image, and counting data of defects in the image corresponding to each grid in the time range;
e. d, performing regional filtering on the data obtained in the step d to obtain a defect data set in a filtering state;
f. and according to the defect data set, representing the defect conditions by adopting different colors, and displaying the different colors on the casting image in an overlapping manner to obtain an intuitive expression image of the casting defect.
2. A method for analyzing and displaying X-ray images of castings according to claim 1, characterized in that: in step d, the method of regional filtering is to give a window with a set size and average the data in the corresponding window.
3. A method for analyzing and displaying X-ray images of castings according to claim 2, characterized in that: the window is a square window, and the side length of the window is 2-4 virtual grids.
4. A method for analyzing and displaying X-ray images of castings according to claim 1, characterized in that: in the step f, the different colors are expressed by adopting a color different from the color of the casting image as the expression color of the defect to form a color block, and the transparency of the color block is determined according to the defect data to obtain the visual expression image of the defect.
5. A method for analyzing and displaying X-ray images of castings according to claim 1, characterized in that: and f, performing background processing to remove the defect data corresponding to the grids with the defect data value smaller than the set threshold value.
6. A method for analyzing and displaying X-ray images of castings according to claim 5, characterized in that: the set threshold is half of the maximum defect data value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811394409.0A CN109584224B (en) | 2018-11-21 | 2018-11-21 | Method for analyzing and displaying X-ray image of casting |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811394409.0A CN109584224B (en) | 2018-11-21 | 2018-11-21 | Method for analyzing and displaying X-ray image of casting |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109584224A CN109584224A (en) | 2019-04-05 |
CN109584224B true CN109584224B (en) | 2023-01-13 |
Family
ID=65923618
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811394409.0A Active CN109584224B (en) | 2018-11-21 | 2018-11-21 | Method for analyzing and displaying X-ray image of casting |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109584224B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113793321B (en) * | 2021-09-14 | 2024-01-23 | 浙江大学滨江研究院 | Casting surface defect dynamic detection method and device based on machine vision |
JP2023168950A (en) * | 2022-05-16 | 2023-11-29 | キヤノン株式会社 | Image processor, method for processing image, and program |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104749184A (en) * | 2013-12-31 | 2015-07-01 | 研祥智能科技股份有限公司 | Automatic optical detection method and automatic optical detection system |
WO2016069085A1 (en) * | 2014-10-30 | 2016-05-06 | Bae Systems Information & Electronic Systems Integration Inc. | High resolution inspection device for casting defects using ir imaging |
-
2018
- 2018-11-21 CN CN201811394409.0A patent/CN109584224B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104749184A (en) * | 2013-12-31 | 2015-07-01 | 研祥智能科技股份有限公司 | Automatic optical detection method and automatic optical detection system |
WO2016069085A1 (en) * | 2014-10-30 | 2016-05-06 | Bae Systems Information & Electronic Systems Integration Inc. | High resolution inspection device for casting defects using ir imaging |
Non-Patent Citations (1)
Title |
---|
基于分区域自适应中值滤波的X射线图像缺陷提取;周正干等;《航空学报》;20040725(第04期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109584224A (en) | 2019-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107845087B (en) | Method and system for detecting uneven brightness defect of liquid crystal panel | |
CN109507192B (en) | Magnetic core surface defect detection method based on machine vision | |
US11010890B2 (en) | Method for the non-destructive testing of the volume of a test object and testing device configured for carrying out such a method | |
CN108682008B (en) | A kind of Leukocyte Image clarity evaluation method and device | |
CN108827181B (en) | Vision-based plate surface detection method | |
CN110490862B (en) | Method and device for improving continuous casting flaw detection qualification rate | |
CN109859160B (en) | Aluminum magnesium alloy casting internal defect image identification method based on machine vision | |
JP2001156135A (en) | Method and device for sorting defective image and manufacturing method of semiconductor device using them | |
JP2006162583A (en) | Crack detection method | |
JP6208426B2 (en) | Automatic unevenness detection apparatus and automatic unevenness detection method for flat panel display | |
CN109584224B (en) | Method for analyzing and displaying X-ray image of casting | |
US12023722B2 (en) | Stamping line defect quality monitoring systems and methods of monitoring stamping line defects | |
CN116309416A (en) | Visual inspection method for surface of part | |
CN114022503A (en) | Detection method, detection system, device and storage medium | |
CN116381053A (en) | Ultrasonic detection method and system for welding metal materials | |
CN100353381C (en) | Image inspecting apparatus, image inspecting method, control program and computer-readable storage medium | |
CN108280825A (en) | A kind of liquid crystal display emargintion detection method | |
EP3869449A1 (en) | Image processing device, image processing method, and image processing program | |
JP2013200298A (en) | Dispersion property evaluation method of island part in resin composition, and dispersion property evaluation device of island part in resin composition | |
TW200842339A (en) | Mura detection method and system | |
JP6114559B2 (en) | Automatic unevenness detector for flat panel display | |
JP4459945B2 (en) | Extraction color range setting method | |
Hsu et al. | Vision-based detection of steel billet surface defects via fusion of multiple image features | |
US11080860B2 (en) | Image inspection method | |
CN108776146B (en) | Method and device for detecting silk-screen lines |
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 |