Method for determining imaging quality, electronic device, and program product

By fitting the target curve function in the radiation imaging device to determine the imaging quality, the problem of insufficient imaging quality accuracy caused by the minimum amplitude value determination error in the prior art is solved, and higher calculation accuracy is achieved.

CN119579591BActive Publication Date: 2025-05-30HANGZHOU RAYIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510131559.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-06
Publication Date
2025-05-30
Estimated Expiration
2045-02-06

AI Technical Summary

Technical Problem

In the prior art, when determining the imaging quality of a radio imaging device, an error is found to determine the minimum amplitude value through the threshold comparison method, resulting in poor accuracy in calculating the imaging quality.

Method used

By acquiring the image taken by the ray imaging device on the target object, determining the bi-wire curves of multiple pairs of wires, fitting the target curve function of the wire pair, determining the shooting quality based on the target curve function, and determining the imaging quality of the ray imaging device through the shooting quality of each pair of wires.

Benefits of technology

By establishing the target curve function, the peak position and trough position in the curve are more accurately determined, and the calculation results are more in line with the standard requirements, improving the accuracy of the calculation imaging quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119579591B_ABST
    Figure CN119579591B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a method for determining imaging quality, an electronic device, and a program product. The method includes: obtaining a first image captured by a ray imaging device for a target object, where the target object includes a plurality of wire pairs; determining a double-wire curve of the plurality of wire pairs according to the first image; for any one wire pair, determining a plurality of position coordinates of the wire pair in the double-wire curve, and fitting a target curve function corresponding to the wire pair according to the plurality of position coordinates and a preset function model; determining the shooting quality of the wire pair according to the target curve function corresponding to the wire pair; and determining the imaging quality of the ray imaging device according to the shooting quality of each wire pair, thereby improving the accuracy of calculating the imaging quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of data processing, and in particular, to a method for determining imaging quality, an electronic device, and a program product. Background Art

[0002] A double-wire image quality indicator can be used to measure the unsharpness and spatial resolution of the spatial image of a radiographic imaging device. The double-wire image quality indicator can include 13 groups of metal wire pairs, and each group of wire pairs contains a pair of metal wires with a circular cross-section.

[0003] Currently, the imaging quality of a radiographic imaging device can be determined by a double-wire image quality indicator in the following manner: The double-wire image quality indicator is placed at a certain angle with the detector pixels in the radiographic imaging device, an image is taken by the radiographic imaging system in the radiographic imaging device, the image is processed for data, a double-wire curve graph is obtained, and according to the double-wire curve graph, the first minimum amplitude value and the second minimum amplitude value, and the minimum amplitude value corresponding to the minimum value between the first minimum amplitude value and the second minimum amplitude value are determined by the threshold comparison method. According to multiple minimum amplitude values, the imaging quality of the radiographic imaging device is determined.

[0004] In the above process, there is a certain error in determining the minimum amplitude value, resulting in poor accuracy in calculating the imaging quality. Summary of the Invention

[0005] The embodiments of the present application provide a method for determining imaging quality, an electronic device, and a program product, so as to solve the defect that there is a certain error in determining the minimum amplitude value in the prior art, resulting in poor accuracy in calculating the imaging quality.

[0006] In a first aspect, the present application provides a method for determining imaging quality, and the method includes:

[0007] Obtain a first image taken by a radiographic imaging device of a target object, where the target object includes multiple metal wire pairs;

[0008] According to the first image, determine the double-wire curve of the multiple metal wire pairs;

[0009] For any one of the metal wire pairs, determine multiple position coordinates of the metal wire pair in the double-wire curve, and according to the multiple position coordinates and a preset function model, fit to obtain a target curve function corresponding to the metal wire pair;

[0010] According to the target curve function corresponding to the metal wire pair, determine the shooting quality of the metal wire pair;

[0011] According to the shooting quality of each metal wire pair, determine the imaging quality of the radiographic imaging device.

[0012] In a possible implementation manner, determining the shooting quality of the wire pair according to the target curve function corresponding to the wire pair includes:

[0013] Determine a plurality of first positions according to the target curve function corresponding to the wire pair, where the plurality of first positions include a peak position, a first valley position, and a second valley position;

[0014] Determine the adjacent regions corresponding to each first position according to the target curve function, where the horizontal distance between any position in the adjacent region and the first position is less than or equal to a preset difference;

[0015] For any one of the first positions, determine the target position corresponding to the first position in the double-wire curve corresponding to the adjacent region, where the target position is the maximum value position or the minimum value position in the adjacent region;

[0016] Determine the shooting quality according to the target positions corresponding to each first position.

[0017] In a possible implementation manner, determining the shooting quality according to the target positions corresponding to each first position includes:

[0018] Determine the target amplitude and the reference amplitude corresponding to each target position;

[0019] For the target position corresponding to any one of the first positions, determine the difference between the reference amplitude and the target amplitude corresponding to the target position to obtain the amplitude difference corresponding to the first position;

[0020] Determine the shooting quality according to the amplitude differences corresponding to each first position.

[0021] In a possible implementation manner, for any one of the target positions, determining the target amplitude and the reference amplitude corresponding to the target position includes:

[0022] Determine the target position coordinates in the double-wire curve according to the target position, where the abscissa of the target position coordinates is the target position;

[0023] Determine the ordinate in the target position coordinates as the target amplitude;

[0024] Determine the reference line function of the wire pair according to the target curve function, where the reference line function is used to indicate the reference amplitude of the wire pair imaging at each position;

[0025] Perform arithmetic processing on the target position through the reference line function to obtain the reference amplitude.

[0026] In a possible implementation, determining the shooting quality according to the amplitude differences corresponding to each first position includes:

[0027] Determine the target sum value between the amplitude difference corresponding to the first trough position and the amplitude difference corresponding to the second trough position;

[0028] Determine the product between the preset value and the amplitude difference corresponding to the peak position;

[0029] Determine the difference between the target sum value and the product;

[0030] Determine the ratio between the difference and the target sum value as the shooting quality.

[0031] In a possible implementation, determining the target position corresponding to the first position among the position coordinates corresponding to the adjacent regions includes:

[0032] If the first position is the first trough position or the second trough position, determine the target coordinate with the smallest ordinate value in the double-wire curve corresponding to the adjacent region, and determine the abscissa of the target coordinate as the target position;

[0033] If the target position is the peak position, determine the target coordinate with the largest ordinate value in the double-wire curve corresponding to the adjacent region, and determine the abscissa of the target coordinate as the target position.

[0034] In a possible implementation, according to the multiple position coordinates and a preset function model, fitting to obtain the target curve function corresponding to the pair of metal wires includes:

[0035] Determine the loss function of the preset function model;

[0036] According to the multiple position coordinates, perform optimization processing on the preset function model until the loss value corresponding to the loss function is the smallest, and obtain multiple target parameters of the function model;

[0037] According to the multiple target parameters, fit to obtain the target curve function corresponding to the pair of metal wires.

[0038] In a second aspect, the present application provides a device for determining imaging quality, and the device includes:

[0039] An acquisition module, configured to acquire a first image obtained by a ray imaging device shooting a target object, where the target object includes multiple pairs of metal wires;

[0040] A fitting module, configured to determine multiple position coordinates of any pair of metal wires in the first image, and fit a target curve function corresponding to the pair of metal wires according to the multiple position coordinates and a preset function model;

[0041] A first determination module, configured to determine the shooting quality corresponding to the target metal wire according to the target curve function corresponding to the metal wire;

[0042] A second determination module, configured to determine the imaging quality of the ray imaging device according to the shooting quality of each pair of metal wires.

[0043] In a possible implementation manner, the first determination module is specifically configured to:

[0044] Determine multiple first positions according to the target curve function corresponding to the metal wire, where the multiple first positions include a peak position, a first valley position, and a second valley position;

[0045] Determine adjacent regions corresponding to each first position according to the target curve function, where the horizontal distance between any position in the adjacent region and the first position is less than or equal to a preset difference value;

[0046] For any one of the first positions, determine a target position corresponding to the first position in the double-wire curve corresponding to the adjacent region, where the target position is a maximum value position or a minimum value position in the adjacent region;

[0047] Determine the shooting quality according to the target positions corresponding to each first position.

[0048] In a possible implementation manner, the first determination module is specifically configured to:

[0049] Determine a target amplitude value and a reference amplitude value corresponding to each target position;

[0050] For the target position corresponding to any one of the first positions, determine the difference between the reference amplitude value and the target amplitude value corresponding to the target position, to obtain an amplitude difference corresponding to the first position;

[0051] Determine the shooting quality according to the amplitude differences corresponding to each first position.

[0052] In a possible implementation manner, the first determination module is specifically configured to:

[0053] Determine target position coordinates in the double-wire curve according to the target position, where the abscissa of the target position coordinates is the target position;

[0054] Determine the ordinate in the target position coordinates as the target amplitude value;

[0055] According to the target curve function, determine the wire pair reference line function, where the reference line function is used to indicate the reference amplitude of the wire pair imaging at each position;

[0056] Perform arithmetic processing on the target position through the reference line function to obtain the reference amplitude.

[0057] In a possible implementation manner, the first determination module is specifically configured to:

[0058] Determine the target sum value between the amplitude difference corresponding to the first valley position and the amplitude difference corresponding to the second valley position;

[0059] Determine the product of the preset value and the amplitude difference corresponding to the peak position;

[0060] Determine the difference between the target sum value and the product;

[0061] Determine the ratio between the difference and the target sum value as the shooting quality.

[0062] In a possible implementation manner, the first determination module is specifically configured to:

[0063] If the first position is the first valley position or the second valley position, determine the target coordinate with the smallest ordinate value in the double-wire curve corresponding to the adjacent region, and determine the abscissa of the target coordinate as the target position;

[0064] If the target position is the peak position, determine the target coordinate with the largest ordinate value in the double-wire curve corresponding to the adjacent region, and determine the abscissa of the target coordinate as the target position.

[0065] In a possible implementation manner, the fitting module is specifically configured to:

[0066] Determine the loss function of the preset function model;

[0067] According to the multiple position coordinates, optimize the preset function model until the loss value corresponding to the loss function is the smallest, and obtain multiple target parameters of the function model;

[0068] According to the multiple target parameters, fit to obtain the target curve function corresponding to the wire pair.

[0069] In a third aspect, the present application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0070] The memory stores computer-executable instructions;

[0071] The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of the first aspect.

[0072] In a fourth aspect, the present application provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the method according to any one of the first aspect when being executed by a processor.

[0073] In a fifth aspect, the present application provides a computer program product including a computer program, which implements the method according to any one of the first aspect when being executed by a computer.

[0074] A method, device, electronic device, storage medium, and program product for determining imaging quality provided by an embodiment of the present application. By obtaining a first image captured by a radiographic imaging device for a target object, where the target object includes a plurality of wire pairs; determining a double-wire curve of the plurality of wire pairs according to the first image; for any one of the wire pairs, determining a plurality of position coordinates of the wire pair in the double-wire curve, and fitting a target curve function corresponding to the wire pair according to the plurality of position coordinates and a preset function model; determining the imaging quality of the wire pair according to the target curve function corresponding to the wire pair; and determining the imaging quality of the radiographic imaging device according to the imaging quality of each wire pair. In this way, by establishing a target curve function, the peak position and valley position in the curve can be determined more accurately, the calculation result is more in line with the standard requirements, and the accuracy of calculating the imaging quality is improved. Description of the Drawings

[0075] 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 required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0076] Figure 1 It is a schematic structural diagram of a double-wire image quality indicator provided by an embodiment of the present application;

[0077] Figure 2 It is a schematic diagram of an image corresponding to a double-wire image quality indicator provided by an embodiment of the present application;

[0078] Figure 3 It is a schematic diagram of a double-wire curve graph provided by an embodiment of the present application;

[0079] Figure 4 It is a schematic diagram of calculating the modulation degree provided by an embodiment of the present application;

[0080] Figure 5 Schematic flowchart of a method for determining image quality provided by an embodiment of the present application;

[0081] Figure 6 Schematic flowchart of another method for determining image quality provided by an embodiment of the present application;

[0082] Figure 7 Schematic flowchart of yet another method for determining image quality provided by an embodiment of the present application;

[0083] Figure 8 Schematic structural diagram of a device for determining image quality provided by an embodiment of the present application;

[0084] Figure 9 Schematic structural diagram of an electronic device provided by an embodiment of the present application.

[0085] Through the above-mentioned drawings, specific embodiments of the present application have been shown, and more detailed descriptions will be provided later. These drawings and text descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Detailed implementation manners

[0086] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0087] It should be noted that although the terms "first", "second", etc. are used in the embodiments of the present application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. Optionally, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.

[0088] It should be understood that the terms "comprising" and "including" indicate the presence of the previously mentioned features, steps, operations, but do not exclude the presence, appearance, or addition of one or at least one other feature, step, operation. The term "and / or" used in the present application can be interpreted as inclusive, or means any one or any combination. Optionally, "A and / or B" means "any one of the following: A; B; A and B". Additionally, the character " / " in this document generally indicates an "or" relationship between the associated objects before and after.

[0089] The double-wire image quality indicator can be used to measure the unsharpness and spatial resolution of the spatial image of a radiographic imaging device. The double-wire image quality indicator can include 13 groups of metal wire pairs, and each group of wire pairs contains a pair of metal wires with a circular cross-section.

[0090] Next, in combination with Figure 1 , the double-wire image quality indicator will be explained.

[0091] Figure 1 The following is a schematic structural diagram of a double-wire image quality indicator provided by an embodiment of the present application. Please refer to Figure 1 , Figure 1 It may include a double-wire image quality indicator.

[0092] The double-wire image quality indicator can be placed and fixed in a rigid transparent plastic. The double-wire image quality indicator can include 13 groups of metal wire pairs, and each group of wire pairs contains a pair of metal wires with a circular cross-section. The 13 groups of metal wire pairs are numbered D1 - D13 from thick to thin. Among them, the materials of the D1 - D3 metal wire pairs can be tungsten, and the materials of the remaining metal wire pairs can be platinum.

[0093] In the related art, the imaging quality of a radiographic imaging device can be determined by the following method using a double-wire image quality indicator: Place the double-wire image quality indicator at a certain angle with the detector pixels in the radiographic imaging device, take an image through the radiographic imaging system in the radiographic imaging device, perform data processing on the image to obtain a double-wire curve graph, and according to the double-wire curve graph, determine the first minimum amplitude value and the second minimum amplitude value, as well as the minimum amplitude value corresponding to the minimum value between the first minimum amplitude value and the second minimum amplitude value through the threshold comparison method. Based on multiple minimum amplitude values, determine the imaging quality of the radiographic imaging device.

[0094] Next, in combination with Figure 2 , the image corresponding to the double-wire image quality indicator will be explained.

[0095] Figure 2 The following is a schematic diagram of an image corresponding to a double-wire image quality indicator provided by an embodiment of the present application. Please refer to Figure 2 , Figure 2 It may include an image corresponding to the double-wire image quality indicator.

[0096] The double-wire image quality indicator is placed at a certain angle with the detector pixels in the radiographic imaging device in order to better evaluate the resolution and unsharpness indicators of the image during the imaging process.

[0097] When the double-wire image quality indicator has a certain angle with the detector pixel row, the imaged image will contain line information in different directions, and the performance of the imaging system in different directions can be detected more comprehensively.

[0098] Among them, the angle can be 2 - 5 degrees.

[0099] Next, in combination withFigure 3 to explain the double-wire curve graph.

[0100] Figure 3 This is a schematic diagram of a double-wire curve graph provided by an embodiment of the present application. Please refer to Figure 3 , Figure 3 It may include a double-wire curve graph and a local curve graph.

[0101] The double-wire curve graph may include the modulation transfer curves of double-wire image quality indicators within a specific wire length range.

[0102] Among them, the modulation transfer curve may include multiple valleys and peaks corresponding to multiple metal wire pairs respectively. The horizontal axis may represent the distance (represented by x in Figure 3 ), and the vertical axis may represent the amplitude (represented by y in Figure 3 ).

[0103] The local curve graph may include the modulation transfer curves corresponding to metal wire pair D7 and metal wire pair D8 respectively. The horizontal axis may represent the distance (represented by x in Figure 3 ), and the vertical axis may represent the amplitude (represented by y in Figure 3 ).

[0104] Among them, the modulation transfer curve may include multiple valleys and peaks corresponding to metal wire pair D7 and metal wire pair D8 respectively. The horizontal axis may represent the distance (represented by x in Figure 3 ), and the vertical axis may represent the amplitude (represented by y in Figure 3 ).

[0105] Next, in combination with Figure 4 , the imaging quality of the ray imaging device will be explained.

[0106] Figure 4 This is a schematic diagram of calculating the modulation degree provided by an embodiment of the present application. Please refer to Figure 4 , Figure 4 It may include a magnified local curve graph. The horizontal axis may represent the distance (represented by x in Figure 4 ), and the vertical axis may represent the amplitude (represented by y in Figure 4 ).

[0107] The magnified local curve graph may include the modulation transfer curve corresponding to the metal wire pair and the baseline.

[0108] Due to the certain noise and non-uniformity of the ray imaging system, there is a background signal, which is manifested as a baseline with a non-zero slope in the magnified local curve graph.

[0109] The imaging quality of the ray imaging device can be represented by the modulation degree.

[0110] The calculation formula for the modulation degree is:

[0111] Among them, DIP can represent the modulation degree, A can represent the first minimum amplitude value relative to the baseline (represented by the line segment corresponding to A in Figure 4 ), B can represent the second minimum amplitude value relative to the baseline (represented by the line segment corresponding to B in Figure 4 ), and C can represent the minimum amplitude value corresponding to the minimum value between the first minimum amplitude value and the second minimum amplitude value relative to the baseline (represented by the line segment corresponding to C in Figure 4 ).

[0112] In the process of determining the imaging quality of a ray imaging device in the related art, after determining the double-wire curve graph, in order to quickly calculate the modulation degree, the baseline can be ignored, or the baseline can be considered as a horizontal straight line to determine the first minimum amplitude value, the second minimum amplitude value, and the minimum amplitude value corresponding to the minimum value between the first minimum amplitude value and the second minimum amplitude value. Moreover, there is a deviation in the position of the minimum amplitude value determined by the threshold comparison method, resulting in an error in the minimum amplitude value.

[0113] That is, in the above process, there is a certain error in determining the minimum amplitude value, resulting in poor accuracy in calculating the imaging quality.

[0114] To solve the above technical problems, the embodiments of the present application provide a method for determining imaging quality. By obtaining a first image captured by a ray imaging device for a target object, according to the first image, a double-wire curve of multiple metal wire pairs is determined. For any metal wire pair, multiple position coordinates of the metal wire pair in the double-wire curve are determined. According to the multiple position coordinates and a preset function model, a target curve function is fitted. According to the target curve function, the shooting quality of the metal wire pair is determined to determine the imaging quality of the ray imaging device. In this way, by establishing a target curve function, the peak position and valley position in the curve can be determined more accurately, and the calculation result is more in line with the standard requirements, improving the accuracy of calculating the imaging quality.

[0115] Next, the technical solution shown in the present application will be described in detail through specific embodiments. It should be noted that the following several embodiments can exist independently or be combined with each other. For the same or similar content, it will not be repeated in different embodiments.

[0116] Figure 5 It is a schematic flowchart of a method for determining imaging quality provided by an embodiment of the present application. The execution subject of the embodiment of the present application can be a ray imaging device or a processor in the ray imaging device. The processor can be implemented by software or by a combination of software and hardware. Refer to Figure 5 , this method includes:

[0117] S501. Obtain a first image obtained by a ray imaging device shooting a target object.

[0118] The target object includes multiple metal wire pairs.

[0119] For example, the target object can be a double-wire image quality meter, and the double-wire image quality meter can include 13 groups of metal wire pairs.

[0120] The first image can be an image taken by placing the target object at a certain angle with the detector pixels in the ray imaging device.

[0121] The first image can be an image quality meter image.

[0122] The image quality meter image can include a two-dimensional data matrix. Each element in the matrix corresponds to a pixel point in the image, and the value of each element represents the amplitude value of the pixel point.

[0123] Optionally, the target object can be shot by a ray imaging device to obtain a shot image, and the shot image can be preprocessed to obtain the first image.

[0124] Optionally, the target object can be shot by a ray imaging device to obtain multiple shot images, the multiple shot images can be preprocessed to obtain multiple preprocessed shot images, and the first image can be determined from the multiple preprocessed shot images.

[0125] It should be noted that the first image obtained by the ray imaging device shooting the target object can be obtained according to any feasible implementation manner, and the embodiments of the present application do not limit this.

[0126] S502. Determine the double-wire curves of multiple metal wire pairs according to the first image.

[0127] The double-wire curves can be used to represent the response ability of the imaging system of the ray imaging device to different spatial frequencies.

[0128] The double-wire curves can include partial double-wire curves corresponding to multiple metal wire pairs respectively. The partial curves can include valley curves and peak curves.

[0129] Optionally, target row data can be determined in the two-dimensional matrix corresponding to the first image, and the double-wire curves of multiple metal wire pairs can be determined according to the target row data.

[0130] Optionally, multiple rows of data can be determined in the two-dimensional matrix corresponding to the first image, the multiple rows of data can be averaged to obtain average row data, and the double-wire curves of multiple metal wire pairs can be determined according to the average row data.

[0131] It should be noted that the double-wire curves of multiple wire pairs can be determined according to any feasible implementation manner, and the embodiments of the present application do not limit this.

[0132] S503. For any one wire pair, determine multiple position coordinates of the wire pair in the double-wire curve, and according to the multiple position coordinates and a preset function model, fit to obtain the target curve function corresponding to the wire pair.

[0133] The multiple position coordinates can be multiple coordinate points in the double-wire curve corresponding to the wire pair.

[0134] There is no limit on the number of the multiple position coordinates here.

[0135] The preset function model can include a linear function part and a unimodal function part.

[0136] The linear function part can be used to represent the baseline in the double-wire curve.

[0137] The unimodal function part can be used to represent the wave crest and trough in the double-wire curve.

[0138] The unimodal function can have the following properties: a. It is a smooth function; b. The unimodal function has and only has one extreme value, and it is located at ; c. The function value first rises and then falls, or first falls and then rises.

[0139] For example, the preset function model can be:

[0140]

[0141] Among them, x can represent the distance, x can be the independent variable, y can represent the amplitude, y can be the dependent variable, can be a parameter to be determined, and .

[0142] can be a unimodal function, and the unimodal function can be

[0143] Among them, c can be a parameter to be determined.

[0144] In this way, by adding the kx + p term to the function model, the case where the slope of the curve baseline is not 0 is considered, and the calculation result is more in line with the standard requirements.

[0145] For any one wire pair, determine multiple position coordinates of the wire pair in the double-wire curve, obtain the preset function model, and optimize the preset function model according to the multiple position coordinates to obtain the target curve function corresponding to the wire pair.

[0146] Among them, the optimization process can be carried out by the gradient descent method or the Newton method, and the way of the optimization process is not limited herein.

[0147] Optionally, before determining the multiple position coordinates of the wire pairs in the double-wire curve, the double-wire curve can be segmented according to the multiple wire pairs to obtain the double-wire curve corresponding to each wire pair.

[0148] S504. Determine the shooting quality of the wire pair according to the target curve function corresponding to the wire pair.

[0149] The shooting quality can be used to represent the clarity of the ray imaging device in the environment of the wire pair.

[0150] The shooting quality can be represented by the modulation degree.

[0151] Optionally, multiple first positions can be determined according to the target curve function corresponding to the wire, the multiple first positions include the peak position, the first valley position and the second valley position, the amplitude differences corresponding to the multiple first positions are determined according to the target curve function, and the shooting quality of the wire pair is determined according to the multiple amplitude differences.

[0152] Among them, the amplitude difference can be the difference between the reference amplitude and the target amplitude corresponding to the first position.

[0153] Optionally, the target amplitude and the base amplitude corresponding to the multiple first positions can be determined according to the target curve function in the following way: determine the baseline according to the target curve function , determine the base amplitude corresponding to each of the multiple first positions according to the baseline, and determine the target amplitude corresponding to each of the multiple first positions according to the target curve function.

[0154] Optionally, multiple first positions can be determined according to the target curve function corresponding to the wire, the multiple first positions include the peak position, the first valley position and the second valley position; determine the adjacent regions corresponding to each first position according to the target curve function, and the horizontal distance between any position in the adjacent region and the first position is less than or equal to the preset difference; for any one of the first positions, determine the target position corresponding to the first position among the position coordinates corresponding to the adjacent region, and the target position is the maximum value position or the minimum value position in the adjacent region; determine the shooting quality according to the target positions corresponding to each first position.

[0155] It should be noted that the shooting quality of the wire pair can be determined according to any feasible implementation manner, and the embodiments of the present application do not limit this.

[0156] S505. Determine the imaging quality of the ray imaging device according to the shooting quality of each wire pair.

[0157] The imaging quality of the radiographic imaging device can be analyzed and processed for each pair of wires to obtain the imaging quality of the device.

[0158] The analysis and processing may include averaging, weighted averaging, etc., which are not limited herein.

[0159] The method for determining the imaging quality provided in this embodiment includes obtaining a first image captured by a radiographic imaging device for a target object, where the target object includes a plurality of pairs of wires; determining a double-wire curve of the plurality of pairs of wires according to the first image; for any pair of wires, determining a plurality of position coordinates of the pair of wires in the double-wire curve, and fitting to obtain a target curve function corresponding to the pair of wires according to the plurality of position coordinates and a preset function model; determining the imaging quality of the pair of wires according to the target curve function corresponding to the pair of wires; and determining the imaging quality of the radiographic imaging device according to the imaging quality of each pair of wires. In this way, by establishing a target curve function, the peak position and valley position in the curve can be determined more accurately, the calculation result better meets the standard requirements, and the accuracy of calculating the imaging quality is improved.

[0160] Next, in combination with Figure 6 , the process (S504) of determining the imaging quality of the pair of wires according to the target curve function corresponding to the pair of wires will be explained.

[0161] Figure 6 FIG. is a schematic flow chart of another method for determining the imaging quality provided in an embodiment of the present application. Based on the above embodiment, reference may be made to Figure 6 for a detailed description of this method. The method includes:

[0162] S601. Determine a plurality of first positions according to the target curve function corresponding to the wire.

[0163] The plurality of first positions include a peak position, a first valley position, and a second valley position.

[0164] Optionally, parameters and can be determined according to the target curve function, the position where x = is determined as the first valley position, the position where x = is determined as the second valley position, and the position where x = ( ) / 2 is determined as the peak position.

[0165] Optionally, two minimum values of the target curve function can be determined according to the target curve function, and one maximum value of the target curve function can be determined between the two minimum values. The positions corresponding to the two minimum values are respectively determined as the first trough position and the second trough position, and the position corresponding to the one maximum value is determined as the peak position.

[0166] It should be noted that multiple first positions can be determined according to any feasible implementation manner, and the embodiments of the present application do not limit this.

[0167] S602. Determine the adjacent regions corresponding to each first position according to the target curve function.

[0168] The horizontal distance between any position in the adjacent region and the first position is less than or equal to a preset difference.

[0169] For any one of the first positions, a preset value can be obtained, and according to the first position and the preset value, the adjacent region can be determined in the target curve function.

[0170] For example, the first position is x = , and the preset value is , and the determined adjacent region is .

[0171] S603. For any one of the first positions, determine the target position corresponding to the first position in the double-wire curve corresponding to the adjacent region.

[0172] The target position is the maximum value position or the minimum value position in the adjacent region.

[0173] For any one of the first positions, determine whether the first position is a peak position. If so, determine the maximum value position as the target position corresponding to the first position in the double-wire curve corresponding to the adjacent region; if not, determine the minimum value position as the target position corresponding to the first position in the double-wire curve corresponding to the adjacent region.

[0174] Optionally, the target position corresponding to the first position can be determined in the position coordinates corresponding to the adjacent region in the following manner: If the first position is the first trough position or the second trough position, determine the target coordinate with the minimum ordinate value in the double-wire curve corresponding to the adjacent region, and determine the abscissa of the target coordinate as the target position; if the target position is the peak position, determine the target coordinate with the maximum ordinate value in the double-wire curve corresponding to the adjacent region, and determine the abscissa of the target coordinate as the target position.

[0175] S604. Determine the target amplitude and the reference amplitude corresponding to each target position.

[0176] Optionally, according to the target curve function, the wire pair reference line function can be determined, and according to the target curve function, the target amplitude corresponding to each target position can be determined. According to the wire pair reference line function, the reference amplitude corresponding to each target position can be determined.

[0177] Among them, the reference line function is used to indicate the reference amplitude of the wire pair imaging at each position. The wire pair reference line function can be expressed as shown.

[0178] Optionally, for any target position, the target amplitude and reference amplitude corresponding to the target position can be determined in the following manner: According to the target position, determine the target position coordinates in the double-wire curve. The abscissa of the target position coordinates is the target position; determine the ordinate in the target position coordinates as the target amplitude; according to the target curve function, determine the wire pair reference line function; perform arithmetic processing on the target position through the reference line function to obtain the reference amplitude.

[0179] It should be noted that, according to any feasible implementation method, the target amplitude and reference amplitude corresponding to each target position can be determined, and the embodiments of the present application do not limit this.

[0180] S605. For the target position corresponding to any one of the first positions, determine the difference between the reference amplitude and the target amplitude corresponding to the target position to obtain the amplitude difference corresponding to the first position.

[0181] For example, assume the target position is , the corresponding reference amplitude is , the corresponding target amplitude is , and the amplitude difference corresponding to the first position.

[0182] S606. Determine the shooting quality according to the amplitude differences corresponding to each first position.

[0183] Optionally, the shooting quality can be determined in the following manner: Determine the target sum value between the amplitude difference corresponding to the first valley position and the amplitude difference corresponding to the second valley position; determine the product between the preset value and the amplitude difference corresponding to the peak position; determine the difference between the target sum value and the product; determine the ratio between the difference and the target sum value as the shooting quality.

[0184] Optionally, the shooting quality DIP can be determined by the following formula:

[0185]

[0186] Among them, A represents the amplitude difference corresponding to the first valley position, B represents the amplitude difference corresponding to the second valley position, and C represents the amplitude difference corresponding to the peak position.

[0187] For the implementation content of each step in the embodiments of this application, reference may be made to the description of the corresponding steps or operations in the above method embodiments, and repeated content will not be elaborated.

[0188] A method for determining imaging quality provided in this embodiment determines multiple first positions according to a target curve function corresponding to a wire. The multiple first positions include a peak position, a first valley position, and a second valley position. According to the target curve function, adjacent regions corresponding to each first position are determined, and the horizontal distance between any position in the adjacent region and the first position is less than or equal to a preset difference. For any one of the first positions, in the position coordinates corresponding to the adjacent region, a target position corresponding to the first position is determined, and the target position is a maximum value position or a minimum value position in the adjacent region. The target amplitude and the reference amplitude corresponding to each target position are determined. For the target position corresponding to any one of the first positions, the difference between the reference amplitude and the target amplitude corresponding to the target position is determined to obtain the amplitude difference corresponding to the first position. According to the amplitude differences corresponding to each first position, the shooting quality is determined. In this way, by establishing a target curve function, the peak position and valley position in the curve can be determined more accurately, and the influence of a baseline with a non-zero slope is considered, and the calculation result more meets the standard requirements, improving the accuracy of calculating the imaging quality.

[0189] Next, in combination with Figure 7 , the process of fitting to obtain the target curve function (S503) corresponding to the wire according to multiple position coordinates and a preset function model will be explained.

[0190] Figure 7 is a schematic flowchart of another method for determining imaging quality provided in the embodiments of this application. On the basis of the above embodiments, reference may be made to Figure 7 , and this method includes:

[0191] S701. Determine the loss function of the preset function model.

[0192] The loss function of the preset function model can be obtained in the storage space.

[0193] For example, the loss function can be expressed by the following formula

[0194]

[0195] where can represent the position coordinates in the double-wire curve, can represent the preset function model, can represent the parameter to be determined.

[0196] S702. Optimize a preset function model according to multiple position coordinates until the loss value corresponding to the loss function is minimized, and obtain multiple target parameters of the function model.

[0197] Optionally, multiple and each corresponding can be determined according to multiple position coordinates. According to multiple and , calculate the partial derivative of the loss function with respect to each parameter to be determined, and update the multiple parameters to be determined along the negative gradient direction until the loss value corresponding to the loss function is minimized, and obtain multiple target parameters of the function model.

[0198] Optionally, multiple and each corresponding can be determined according to multiple position coordinates. According to multiple and , calculate the loss function, and update the multiple parameters to be determined according to the second derivative information of the loss function until the loss value corresponding to the loss function is minimized, and obtain multiple target parameters of the function model.

[0199] It should be noted that the preset function model can be optimized according to any feasible implementation method, and the embodiments of the present application do not limit this.

[0200] S703. Fit to obtain the target curve function corresponding to the wire pair according to multiple target parameters.

[0201] Substitute multiple target parameters into the preset function model to obtain the target curve function corresponding to the wire pair.

[0202] The implementation content of each step in the embodiments of the present application can refer to the description of the corresponding steps or operations in the above method embodiments, and the repeated content will not be elaborated.

[0203] The method for determining the imaging quality provided in this embodiment determines the loss function of the preset function model; optimizes the preset function model according to multiple position coordinates until the loss value corresponding to the loss function is minimized, and obtains multiple target parameters of the function model; fits to obtain the target curve function corresponding to the wire pair according to multiple target parameters. In this way, by establishing the target curve function, the peak position and valley position in the curve can be determined more accurately, and the influence of the baseline with a non-zero slope is considered, and the calculation result better meets the standard requirements, improving the accuracy of calculating the imaging quality.

[0204] Figure 8 This is a schematic structural diagram of a device for determining the imaging quality provided in an embodiment of the present application. Please refer to Figure 8, the imaging quality determination device 800 includes an acquisition module 801, a fitting module 802, a first determination module 803, and a second determination module 804, where,

[0205] The acquisition module 801 is configured to acquire a first image obtained by a ray imaging device when photographing a target object, and the target object includes a plurality of metal wire pairs;

[0206] The fitting module 802 is configured to, for any one of the metal wire pairs, determine a plurality of position coordinates of the metal wire pair in the first image, and fit a target curve function corresponding to the metal wire pair according to the plurality of position coordinates and a preset function model;

[0207] The first determination module 803 is configured to determine the photographing quality corresponding to the target metal wire according to the target curve function corresponding to the metal wire;

[0208] The second determination module 804 is configured to determine the imaging quality of the ray imaging device according to the photographing quality of each metal wire pair.

[0209] In a possible implementation manner, the first determination module 803 is specifically configured to:

[0210] Determine a plurality of first positions according to the target curve function corresponding to the metal wire, where the plurality of first positions include a peak position, a first valley position, and a second valley position;

[0211] Determine adjacent regions corresponding to each first position according to the target curve function, and a horizontal distance between any position in the adjacent region and the first position is less than or equal to a preset difference value;

[0212] For any one of the first positions, determine a target position corresponding to the first position in a double-wire curve corresponding to the adjacent region, where the target position is a maximum value position or a minimum value position in the adjacent region;

[0213] Determine the photographing quality according to the target positions corresponding to each first position.

[0214] In a possible implementation manner, the first determination module 803 is specifically configured to:

[0215] Determine a target amplitude value and a reference amplitude value corresponding to each target position;

[0216] For a target position corresponding to any one of the first positions, determine a difference between the reference amplitude value and the target amplitude value corresponding to the target position to obtain an amplitude difference corresponding to the first position;

[0217] Determine the photographing quality according to the amplitude differences corresponding to each first position.

[0218] In a possible implementation manner, the first determination module 803 is specifically configured to:

[0219] According to the target position, determine the target position coordinates in the double-wire curve, where the abscissa of the target position coordinates is the target position;

[0220] Determine the ordinate in the target position coordinates as the target amplitude;

[0221] According to the target curve function, determine the metal wire pair reference line function, where the reference line function is used to indicate the reference amplitude of the metal wire pair imaging at each position;

[0222] Perform arithmetic processing on the target position through the reference line function to obtain the reference amplitude.

[0223] In a possible implementation manner, the first determination module 803 is specifically configured to:

[0224] Determine the target sum value between the amplitude difference corresponding to the first trough position and the amplitude difference corresponding to the second trough position;

[0225] Determine the product of the preset value and the amplitude difference corresponding to the peak position;

[0226] Determine the difference between the target sum value and the product;

[0227] Determine the ratio between the difference and the target sum value as the shooting quality.

[0228] In a possible implementation manner, the first determination module 803 is specifically configured to:

[0229] If the first position is the first trough position or the second trough position, determine the target coordinate with the smallest ordinate value in the double-wire curve corresponding to the adjacent area, and determine the abscissa of the target coordinate as the target position;

[0230] If the target position is the peak position, determine the target coordinate with the largest ordinate value in the double-wire curve corresponding to the adjacent area, and determine the abscissa of the target coordinate as the target position.

[0231] In a possible implementation manner, the fitting module 802 is specifically configured to:

[0232] Determine the loss function of the preset function model;

[0233] According to the multiple position coordinates, perform optimization processing on the preset function model until the loss value corresponding to the loss function is the smallest, and obtain multiple target parameters of the function model;

[0234] According to the multiple target parameters, a target curve function corresponding to the metal wire is obtained by fitting.

[0235] Figure 9 The following is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Please refer to Figure 9 , the electronic device 900 may include: a memory 901, a processor 902, and a transceiver 903.

[0236] The memory 901 is used to store program instructions;

[0237] The processor 902 is used to execute the program instructions stored in the memory, so that the electronic device 900 executes the above method.

[0238] The transceiver 903 may include: a transmitter and / or a receiver. The transmitter may also be referred to as a sender, a transmitter, a sending port, a sending interface, or other similar descriptions, and the receiver may also be referred to as a receiver, a receiving port, a receiving interface, or other similar descriptions. Exemplarily, the memory 901, the processor 902, and the transceiver 903 are interconnected with each other through a bus 904.

[0239] An embodiment of the present application also provides a computer program product, which can be executed by a processor. When the computer program product is executed, the above method can be implemented.

[0240] The imaging quality determination device, electronic device, computer-readable storage medium, and computer program product of the embodiments of the present application can execute the technical solutions shown in the embodiments of the above imaging quality determination method. The implementation principles and beneficial effects are similar, and will not be elaborated here.

[0241] All or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a readable memory. When the program is executed, it executes the steps including the above method embodiments; and the foregoing memory (storage medium) includes: read-only memory (ROM), random access memory (RAM), flash memory, hard disk, solid state drive, magnetic tape, floppy disk, optical disc, and any combination thereof.

[0242] Embodiments of the present application are described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, and the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer-executable instructions. These computer-executable instructions can be provided to the processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable image quality determination devices to generate a machine, such that the instructions executed by the processing unit of the computer or other programmable image quality determination devices generate means for implementing the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or means for implementing the functions specified in multiple blocks.

[0243] These computer-executable instructions can also be stored in a computer-readable memory that can direct a computer or other programmable image quality determination devices to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means that implement the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or means for implementing the functions specified in multiple blocks.

[0244] These computer-executable instructions can also be loaded onto a computer or other programmable image quality determination devices, such that a series of operation steps are executed on the computer or other programmable devices to generate a computer-implemented process, so that the instructions executed on the computer or other programmable devices provide steps for implementing the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or means for implementing the functions specified in multiple blocks.

[0245] Obviously, those skilled in the art can make various modifications and variations to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application also intends to include these modifications and variations.

Claims

1. A method for determining imaging quality, characterized in that: The method comprises: Acquire a first image of a target object captured by a radiographic imaging device, wherein the target object includes a plurality of metal wire pairs; determining double wire curves of the plurality of metal wire pairs according to the first image; For any metal wire pair, determining a plurality of position coordinates of the metal wire pair in the double wire curve and a loss function of a preset function model; According to the multiple position coordinates, the preset function model is optimized until the loss value corresponding to the loss function is minimized, thereby obtaining multiple target parameters of the preset function model; the preset function model includes a linear function part and a unimodal function part, the linear function part is used to represent the baseline of the double-wire curve, and the unimodal function part is used to represent the peaks and troughs in the double-wire curve; the multiple target parameters include the slope parameter and intercept parameter of the linear function part and the parameter of the unimodal function part; Substituting the multiple target parameters into the preset function model to obtain a target curve function corresponding to the metal wire pair; Determining the shooting quality of the metal wire pair according to the target curve function corresponding to the metal wire pair; The imaging quality of the radiation imaging device is determined according to the shooting quality of each metal wire pair.

2. The method according to claim 1, characterized in that Determining the shooting quality of the metal wire pair according to the target curve function corresponding to the metal wire pair includes: Determining a plurality of first positions according to a target curve function corresponding to the metal wire, the plurality of first positions comprising a wave crest position, a first wave trough position, and a second wave trough position; Determine, according to the target curve function, adjacent regions corresponding to the first positions, respectively, wherein a lateral distance between any position in the adjacent regions and the first position is less than or equal to a preset difference; For any first position, in the double-wire curve corresponding to the adjacent region, determine a target position corresponding to the first position, the target position being a maximum value position or a minimum value position in the adjacent region; The shooting quality is determined according to the target positions corresponding to the first positions.

3. The method according to claim 2, characterized in that Determining the shooting quality according to the target positions corresponding to the first positions includes: Determine the target amplitude and the reference amplitude corresponding to each target position; For any target position corresponding to the first position, determine the difference between the reference amplitude and the target amplitude corresponding to the target position to obtain the amplitude difference corresponding to the first position; The shooting quality is determined according to the amplitude differences corresponding to the first positions.

4. The method according to claim 3, characterized in that For any target position, determining a target amplitude and a reference amplitude corresponding to the target position includes: According to the target position, determining the target position coordinates in the double-wire curve, the abscissa of the target position coordinates being the target position; Determine the ordinate in the target position coordinates as the target amplitude; Determining the wire pair reference line function according to the target curve function, wherein the reference line function is used to indicate a reference amplitude of the wire pair imaged at each position; The target position is processed by operation using the baseline function to obtain the reference amplitude.

5. The method according to claim 3 or 4, characterized in that: Determining the shooting quality according to the amplitude differences corresponding to the first positions includes: Determine a target sum value between the amplitude difference corresponding to the first trough position and the amplitude difference corresponding to the second trough position; Determine the product of a preset value and the amplitude difference corresponding to the peak position; determining a difference between the target sum value and the product; The ratio between the difference value and the target value is determined as the shooting quality.

6. The method according to claim 2, characterized in that Determining a target position corresponding to the first position in the position coordinates corresponding to the adjacent area includes: If the first position is the first wave valley position or the second wave valley position, determine the target coordinate with the smallest ordinate value in the double-wire curve corresponding to the adjacent area, and determine the abscissa of the target coordinate as the target position; If the target position is a wave crest position, a target coordinate with the largest ordinate value is determined in the double-wire curve corresponding to the adjacent region, and the abscissa of the target coordinate is determined as the target position.

7. A device for determining imaging quality, characterized in that: The device comprises: An acquisition module, used for acquiring a first image obtained by a radiographic imaging device photographing a target object, wherein the target object includes a plurality of metal wire pairs; A fitting module, for determining, for any pair of metal wires, a plurality of position coordinates of the pair of metal wires in the first image and a loss function of a preset function model; optimizing the preset function model according to the plurality of position coordinates until the loss value corresponding to the loss function is minimized, thereby obtaining a plurality of target parameters of the preset function model; substituting the plurality of target parameters into the preset function model to obtain a target curve function corresponding to the pair of metal wires; the preset function model comprises a linear function part and a unimodal function part, the linear function part being used to represent a baseline of a double-wire curve, and the unimodal function part being used to represent peaks and troughs in the double-wire curve; the plurality of target parameters comprising a slope parameter and an intercept parameter of the linear function part and a parameter of the unimodal function part; A first determination module, configured to determine the shooting quality of the metal wire pair according to a target curve function corresponding to the metal wire; The second determination module is used to determine the imaging quality of the radiation imaging device according to the shooting quality of each metal wire pair.

8. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 6.

9. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 6 when being executed by a processor.