Method, system, medium and equipment for digitizing industrial radiographic films with a large blackness range

By constructing characteristic transfer curves and adaptive exposure technology under exposure level, the problem of information loss and difficulty in determining exposure parameters in digitization of ray films with large blackness range is solved, high-quality digital image processing is achieved, and detection efficiency and accuracy are improved. sex.

CN115942124BActive Publication Date: 2024-11-08XI AN JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211574771.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-08
Publication Date
2024-11-08
Estimated Expiration
2042-12-08

AI Technical Summary

Technical Problem

During the digitization process, due to the large blackness distribution span, a single digital image cannot contain all information, and there is a lack of a unified method for determining exposure parameters, which affects the reliability of the digitization results.

Method used

By constructing the negative blackness-image grayscale characteristic transfer curve at the exposure level, the initial exposure time and intensity are determined, the image contrast is adjusted using nonlinear transformation to ensure that the digital image contains all the score information.

Benefits of technology

High-quality digitization of large-black-range negatives is achieved, the contrast and recognizability of images are improved, human subjective errors are reduced, and storage costs are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115942124B_ABST
    Figure CN115942124B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, medium and equipment for digitizing industrial X-ray films with a large black level range. The method uses gray distribution characteristic parameters of a digitized image to characterize the black level distribution of the film, and adaptively selects exposure parameters in combination with the performance characteristics of a digitizing instrument. All film evaluation information is retained while the film digitization is completed. The nonlinear transformation is used to adjust the contrast of the image. For X-ray detection films with a large black level distribution range, the method can solve the problems of poor digitization effect of such films and loss of original film evaluation information in the digitized image caused by the limitations of the performance of the digitizing instrument light source and camera sensor. The method is of great significance for improving the efficiency of X-ray detection film evaluation and reducing the film storage cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of nondestructive testing image processing, and in particular relates to a method, system, medium and equipment for digitizing industrial radiographic films with a large blackness range. Background Art

[0002] Radiographic inspection technology has become one of the essential technologies for nondestructive testing due to its advantages such as large amount of information that can be stored in the film, high spatial resolution, applicability to various measurement environments, and ability to intuitively display the morphology of internal defects of the workpiece to be inspected. However, a large number of radiographic films are generated in the actual inspection process. The number of films is large, the storage cost is high, the traceability is difficult, the retrieval efficiency is low, and remote sharing is impossible. In order to solve this series of problems, radiographic film digitization devices came into being. As the first step in the generation of digital film images, the degree of information retention and image recognizability directly affect the reliability of the film evaluation results.

[0003] A type of product represented by castings in the aerospace field generally has a complex shape structure and cavity structure. The current internal defect detection method is still mainly based on radiography. Due to the influence of factors such as the structure of the test object and the radiographic detection process, the radiographic detection film usually has the characteristic of a large black distribution span. At the same time, due to the limitations of the light source of the digital instrument and the performance of the camera sensor, a single digitized image often cannot contain all the information of the original radiographic detection film, which brings certain obstacles to the digital archiving of the radiographic detection film using the film digitization device; in addition, in the general digitization process, it is necessary to select specific exposure parameters according to the black value of the film. Regarding the method of determining the black value of the film, there is currently no unified standard in the industry. It is usually the idea of ​​manually using a densitometer to measure multiple points and then take the average. Because the black distribution range of the film is large, the results obtained by manual measurement often fluctuate greatly, which in turn has an adverse effect on the digitization process.

[0004] Therefore, how to solve the problem of digitization of high-density X-ray films represented by castings has become an important issue facing the informatization and intelligentization of enterprise quality management. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a method, system, medium and equipment for digitizing industrial X-ray film with a large black level range in view of the deficiencies in the above-mentioned prior art, so as to solve the technical problem that a single digitized image cannot contain all the information of the film due to the large span of the film black level distribution.

[0006] The present invention adopts the following technical solutions:

[0007] A method for digitizing industrial radiographic films with a large blackness range comprises the following steps:

[0008] S1, constructing the characteristic transfer curve CTC of the film blackness-image grayscale under different exposure levels, determining the initial exposure time T0 and exposure intensity I0, and obtaining the first digital image X0;

[0009] S2, taking the first digitized image X0 obtained in step S1 as the object, determining the focus area X 01 , X 02 , X 0i ...X 0n , for each sub-region X 0i , define and calculate the image recognizability feature parameter value N of the selected area;

[0010] S3. Design an experiment to determine the critical value N of image recognizability 阈 ;

[0011] S4, based on the image recognizability characteristic parameter value N of the selected area obtained in step S2 and the image recognizability threshold value N obtained in step S3 阈 , establish the X-ray film secondary exposure strategy and exposure parameter calculation method, complete the adaptive exposure of each area, and obtain the digital image X1;

[0012] S5. Construct an image contrast enhancement method, use nonlinear transformation to adjust the image contrast after adaptive exposure, improve the overall contrast of the digital image X1 obtained in step S4, and realize digital processing of industrial X-ray films with a large black level range.

[0013] Specifically, step S1 is as follows:

[0014] S101, grouping the exposure intensity and exposure time in order from low to high, wherein different groups correspond to the exposure requirements when digitizing films of different densities, and 37 levels of exposure are obtained;

[0015] S102. The selected standard density film covers the optical density values ​​from 0.5 to 4.5, and the optical density interval between two adjacent steps is not greater than 0.5, and the area of ​​each step is at least 100mm 2 , the film density noise is less than 0.01;

[0016] S103, using the 37 exposure levels obtained in step S101 to sequentially expose the standard step density film to obtain 37 corresponding digitized images, and calculating the grayscale arithmetic mean value g1 in each step area of ​​each image i , the grayscale arithmetic mean gl i and the blackness value D of the i-th step area in the corresponding original film i Recorded in a table, a total of 37 tables were obtained;

[0017] S104, using the gl obtained in step S103 i and D i Compare the table, D i As the horizontal axis, gl i As the ordinate, the characteristic transfer curve CTC of the digitizer is plotted. For the missing density values ​​between the density steps, interpolation calculations are performed according to the linear relationship and the missing density values ​​are completed;

[0018] S105 , according to the characteristic transfer curve CTC obtained in step S104 , selecting the maximum exposure level that prevents the digitized image from being overexposed, determining the initial exposure time T0 and exposure intensity I0 , and obtaining the first digitized image X0 .

[0019] Specifically, in step S101, corresponding to the digital density range of 0.5 to 4.5, 37 levels of exposure are constructed as follows:

[0020] [(5,200)(6,200)(7,200)(8,200)(9,200)(10,200)(15,300)(20,300)(30,300)(40,300)(45,300)(60,400)(70,400)(80,400)(90,400)(100,400)(110,500)(120,500)(130,500)(140,500)(150,500 )(160, 600)(170, 600)(180, 600)(190, 600)(170, 700)(180, 700)(190, 700)(200, 700)(210, 700)(215, 700)(220, 700)(230, 700)(240, 700)(250, 700)(255, 750)(255, 800)], the first value is the exposure intensity and the second value is the exposure time.

[0021] Specifically, in step S2, the image recognizability characteristic parameter value N of the selected area is:

[0022] N=αH+βG+γB

[0023] Among them, H represents the normalized information entropy of the sub-image, G represents the average gradient of the sub-image, B represents the proportion of high-contrast areas in the sub-image, and α, β, and γ are the weight values ​​of the three features H, G, and B respectively.

[0024] Specifically, step S3 is as follows:

[0025] S301, select radiographic films with different black distributions for experiments, repeat steps S1 and S2 for each image, observe the image, and determine whether a secondary exposure is required for the area of ​​interest for film evaluation based on whether the area contains all detail information corresponding to the original radiographic film;

[0026] S302, dividing the sub-images into two groups based on the secondary digitization obtained in step S301, and recording the image recognizability value N in each experiment;

[0027] S303: The first group is images that do not need to be digitized again. The minimum image recognizability value N1 in the group of images and the maximum image recognizability value N2 in the second group of images are recorded, and the image recognizability threshold value N is calculated. 阈 , as a basis for determining whether to change the exposure level for secondary digitization.

[0028] Specifically, step S4 is as follows:

[0029] S401, using the values ​​N and N obtained in step S2 and step S3 阈 , determine the adaptive exposure strategy as follows:

[0030] When N<N 阈 When , the process goes to step S402 to perform adaptive exposure on the film evaluation area in the original radiographic film;

[0031] When N>N 阈 When , it corresponds to the area of ​​interest in the original radiographic film, and the exposure parameters for this area are T0 and I0;

[0032] S402, using the values ​​N and N obtained in step S2 and step S3 阈 , introduce the correction value k, establish the adaptive exposure level I1 prediction equation, determine the exposure parameters for digitizing each area of ​​interest in the film, and digitize the film to obtain the digital image X1.

[0033] Specifically, in step S5, the nonlinear transformation expression is:

[0034] g(x,y)=a*f 4 (x,y)+b*f 3 (x,y)+c*f 2 (x, y) + d*f(x, y)

[0035] Among them, f(x, y) is the grayscale value at the image pixel (x, y) before transformation, g(x, y) is the grayscale value after adjustment, and a, b, c, d are the coefficients of the univariate fourth-order transformation relationship equation.

[0036] In a second aspect, an embodiment of the present invention provides a system for digitizing industrial X-ray films with a large black level range, comprising:

[0037] The curve module constructs the characteristic transfer curve CTC of the film blackness-image grayscale under different exposure levels, and obtains the first digital image X0 based on the initial exposure time T0 and exposure intensity I0;

[0038] The feature module takes the digital image X0 obtained by the curve module as the object and determines the focus area X 01 , X 02 , X 0i ...X 0n , for each sub-region X 0i , define and calculate the image recognizability feature parameter value N of the selected area;

[0039] Design module, design experiments to determine the critical value N of image recognizability 阈 ;

[0040] The calculation module is based on the image recognizability characteristic parameter value N of the selected area obtained by the characteristic module and the image recognizability critical value N obtained by the design module. 阈 , establish the X-ray film secondary exposure strategy and exposure parameter calculation method, complete the adaptive exposure of each area, and obtain the digital image X1;

[0041] The processing module constructs an image contrast enhancement method, uses nonlinear transformation to adjust the image contrast after adaptive exposure, improves the overall contrast of the digital image X1 obtained by the calculation module, and realizes the digital processing of industrial X-ray films with a large black level range.

[0042] In a third aspect, a computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method for digitizing industrial X-ray films with a large black level range when executing the computer program.

[0043] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned method for digitizing industrial X-ray films with a large black level range.

[0044] Compared with the prior art, the present invention has at least the following beneficial effects:

[0045] The invention discloses a method for digitizing industrial X-ray films with a large black level range. The method uses grayscale distribution characteristic parameters of a digitized image to characterize the black level distribution of the film, and adaptively selects exposure parameters in combination with the performance characteristics of a digitizing instrument. All film evaluation information is retained while the film digitization is completed. The nonlinear transformation is used to adjust the contrast of the image. For X-ray detection films with a large black level distribution range, the method can solve the problems of poor digitization effect of such films and loss of original film evaluation information in the digitized image caused by the limitations of the performance of the digitizing instrument light source and camera sensor. The method is of great significance for improving the efficiency of X-ray detection film evaluation and reducing the film storage cost.

[0046] Furthermore, the characteristic transfer curve CTC of the digitizer reflects the relationship between the film blackness and the grayscale of the digitized image under certain digitizer parameter settings. This relationship can be accurately obtained by calibrating with a standard step density film. On this basis, the grayscale distribution of the digitized image can be used to characterize the blackness distribution of the film under specific exposure parameter settings, which can reduce the errors and inaccuracies caused by human subjective factors in the process of using a densitometer to measure the blackness of the film in the traditional method, and can more accurately and objectively reflect the blackness of the film, and can be combined with the performance of the digitizer to determine the exposure parameters required for digitization.

[0047] Furthermore, 37 levels of exposure were constructed corresponding to the digital density range of 0.5 to 4.5, and each level of exposure is a combination of different exposure intensities and exposure times. Due to differences in the detection object and radiation energy, the X-ray films obtained in the actual X-ray detection process usually have different density distributions. The quality of digital images (image contrast and information loss, etc.) obtained after digitizing films with different density distributions using the same exposure level is often different. Therefore, combined with the light source and camera performance used, 37 levels of exposure were constructed for X-ray films in the density range of 0.5 to 4.5, achieving high-quality digitization of films with different densities.

[0048] Furthermore, image information entropy is a measure of the richness of image information from the perspective of information theory. The size of information entropy reflects the amount of information carried by the image. Through the calculation formula of image information entropy, we can know that when the grayscale distribution of an image is more uniform, the information entropy value is larger; conversely, when the grayscale distribution of an image is more concentrated (such as when most pixels in a digitized image are oversaturated or undersaturated), the information entropy value is smaller. Therefore, using information entropy as one of the characteristic parameters to measure the quality of a digitized image can better reflect the amount of information contained in the image.

[0049] Furthermore, the image average gradient reflects the rate of change of the contrast of tiny details in the height and width directions of the image. The larger the average gradient value, the more layers of the image, and the clearer it is. Compared with the image information entropy, the image average gradient can better reflect the contrast information in the local area of ​​the image and the image's ability to express details (such as defects). From the properties of the CTC curve, we can know that the pixel area with a gray value greater than ε in the sub-image corresponds to the part with a larger slope of the CTC curve, which not only means that the image can better reflect the information of the original film, but also has a higher contrast. Therefore, the larger the proportion of this area in the entire image, the better the image's recognizability, that is, at the selected exposure level, the more ideal the effect of film digitization. Selecting the high-contrast area proportion value as one of the features can reveal the image recognizability while more intuitively reflecting whether the selected exposure level is appropriate.

[0050] Furthermore, the problem of underexposure after the first exposure can be solved by adjusting the exposure level during the secondary digitization. In the definition of the film blackness, the influence of environmental noise and optical path loss is ignored, that is, the light intensity value I emitted by the light source is 源 As the illumination light intensity, the projected light intensity passing through the film is taken as the light intensity value I received by the camera 相 , after deformation, I 相 As the light intensity value received by the camera, it directly determines the gray value of the digitized image. The change in the gray distribution characteristics of the image is used instead of ΔD. By introducing the correction value k, the adjustment coefficient ΔI of the light source exposure can be obtained. The increase in the blackness of the film and the light source exposure are in an exponential relationship with a base of 10. From this, the following exposure adaptive mapping equation can be obtained: I1 = I0*ΔI, ΔI is the secondary exposure level adjustment coefficient, and the specific calculation expression is: The exposure adaptive mapping equation is used as the basis for determining the secondary digital adaptive exposure level, avoiding the interference caused by subjective factors in experience selection.

[0051] Furthermore, the image grayscale value obtained after adaptive exposure is used as input, and a univariate 4-order nonlinear transformation formula is used to process it. By changing the coefficients of the polynomial, various forms of grayscale mapping can be achieved. In view of the different grayscale distributions of digital images, this nonlinear processing can meet the needs of various image contrast enhancement.

[0052] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0053] In summary, the present invention can improve the comprehensive representation ability of images, so that a single digitized image contains all the film evaluation information of the original X-ray film, and the image has a higher contrast and is more recognizable, avoiding affecting the film evaluation results.

[0054] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 It is a flow chart of the present invention;

[0056] Figure 2 It is a standard density negative image;

[0057] Figure 3 It is the characteristic transfer curve CTC diagram of the digital instrument under 37 exposure levels;

[0058] Figure 4 It is an industrial radiographic film with a large blackness range;

[0059] Figure 5 is the digital image obtained after the initial exposure;

[0060] Figure 6 is a digital image obtained after adaptive exposure;

[0061] Figure 7 This is the image contrast adjustment diagram (area 1 example);

[0062] Figure 8 This is the image contrast adjustment diagram (area 2 example);

[0063] Fig. 9 Image contrast adjustment map (area 3 example). DETAILED DESCRIPTION

[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0065] In the description of the present invention, it should be understood that the terms “include” and “comprises” indicate the presence of described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or collections thereof.

[0066] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural forms unless the context clearly indicates otherwise.

[0067] It should be further understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects are in an "or" relationship.

[0068] It should be understood that, although the terms first, second, third, etc. may be used to describe preset ranges, etc. in the embodiments of the present invention, these preset ranges should not be limited to these terms. These terms are only used to distinguish preset ranges from each other. For example, without departing from the scope of the embodiments of the present invention, the first preset range may also be referred to as the second preset range, and similarly, the second preset range may also be referred to as the first preset range.

[0069] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0070] Various structural schematic diagrams of the embodiments disclosed in the present invention are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.

[0071] The present invention provides a method for digitizing industrial X-ray films with a large black level range. When the black level distribution range of the X-ray detection film spans a large range, the image grayscale distribution characteristics are used to describe the image, and the grayscale distribution characteristics are used as a representation of the black level distribution of the film. Then, the performance of the digital instrument is combined to achieve regional adaptive exposure of the X-ray detection film and high-precision retention of film evaluation information. Nonlinear transformation is used to adjust the image contrast to enhance the visual effect of the human eye, and after the digital storage of the film is completed, the foundation for subsequent intelligent film evaluation is laid.

[0072] See also Figure 1 The present invention provides a method for digitizing industrial radiographic films with a large blackness range, comprising the following steps:

[0073] S1, constructing a characteristic transfer curve CTC of the negative film blackness-digital image grayscale of the X-ray film digitizer under different exposure parameters, based on which the initial exposure time T0 and exposure intensity I0 are determined to obtain the first digitized image X0;

[0074] In order to meet the digital black level range of 0.5-4.5 of the instrument, that is, to achieve good contrast values ​​for films with different black levels after digitization, in the exposure setting of the instrument, two closely related parameters are changed: the exposure intensity I of the light source and the exposure time T of the camera to set different exposure levels to achieve the digitization of films with different black levels. Specifically, a total of 37 exposure levels are set, among which the combination of I and T in each exposure level is from low to high as follows (the light source is SCHOTT CV-LS cold light source, for detailed parameter descriptions and control methods, please refer to the relevant documents released on SCHOTT's official website, and the unit of exposure time is μs):

[0075] [(5,200)(6,200)(7,200)(8,200)(9,200)(10,200)(15,300)(20,300)(30,300)(40,300)(45,300)(60,400)(70,400)(80,400)(90,400)(100,400)(110,500)(120,500)(130,500)(140,500)(150,500)(160,600)(170,600 )(180, 600)(190, 600)(170, 700)(180, 700)(190, 700)(200, 700)(210, 700)(215, 700)(220, 700)(230, 700)(240, 700)(250, 700)(250, 700)(255, 750)(255, 750)(255, 800)(255, 800)(255, 800)], the first value is the exposure intensity and the second value is the exposure time.

[0076] See also Figure 2 , a step film with 14 different standard density (i.e. blackness) areas was selected to calibrate the characteristic transfer curve of the digital instrument used. The standard blackness values ​​of each area in the step film are: [0.3, 0.59, 0.9, 1.2, 1.49, 1.78, 2.08, 2.38, 2.69, 2.96, 3.23, 3.52, 3.84, 4.16].

[0077] The standard density film is exposed using the exposure parameters corresponding to the 37 exposure levels in sequence to obtain 37 digital images. The following operations are performed on each image:

[0078] A square sub-image is intercepted at the center of each of the 14 staircase regions of the image. The sub-image size is 15×15. It is required that each sub-image cannot contain the content of two staircase regions at the same time. Then, the arithmetic mean of the grayscale value of each sub-image is calculated. The calculation formula is:

[0079]

[0080] And record it in the black value D i Grayscale arithmetic mean In the comparison table, as shown in Table 1, the exposure level is 23 Comparison table.

[0081] Table 1 Exposure level 23 Comparison table

[0082] Black value 0.3 0.59 0.9 1.2 1.49 1.78 2.08 Grayscale average 4095 4095 4095 4095 4095 4020 2045 Black value 2.38 2.69 2.96 3.23 3.52 3.84 4.16 Grayscale average 1016 540 379 292 241 222 201

[0083] After completing the above operations for all 37 digitized images, the images at different exposure levels can be obtained. Refer to the numerical table and draw the characteristic transfer curve CTC of the digital instrument used based on the numerical values ​​in the table, such as Figure 3 As shown, the missing parts between the density steps are calculated by interpolation according to the linear relationship.

[0084] See also Figure 3 , observing the CTC curve drawn, we can see that at different exposure levels, the corresponding black value at the overexposed position of the image is different. Therefore, for different negatives, the initial exposure level is selected according to the minimum black value in the film evaluation area, and the selection basis is to prevent the digitized image from being overexposed (the reason is that image overexposure means the loss of the original film evaluation information and it cannot be restored). Under this condition, for a certain negative to be digitized, the first digitized image X0 can be obtained after exposing it.

[0085] See also Figure 4, the figure is a selected X-ray detection film with a large black range. According to the above-mentioned method for selecting the initial exposure level, the initial exposure level selected for the film is 12. Figure 5 The digital image X0 corresponding to the film is shown. Figure 4 There are three areas of interest in the digitized image, corresponding to the original X-ray film, and none of the areas is overexposed. However, the contrast in each area is too low to make it impossible to evaluate the film, and this goal cannot be achieved even through image enhancement operations.

[0086] S2, taking X0 as the object, determine the film review focus area X 01 , X 02 , X 03 , for each sub-region X 0i , calculate the image recognizability feature parameter value N of the selected area;

[0087] The 3 red boxes indicate the film review focus areas X 01 , X 02 , X 03 , calculate the sub-image X 01 The information entropy value, average gradient value and high contrast area ratio value are calculated using the following formula:

[0088]

[0089] The average gradient calculation formula is:

[0090]

[0091] The formula for calculating the proportion of high contrast areas is:

[0092]

[0093]

[0094] Among them, ε is determined by the CTC curve. When the density contrast sensitivity of the digital instrument reflected by the CTC curve is less than 0.02, the digital image grayscale value corresponding to the changed position is recorded and used as ε. For the exposure level 12, the ε value is 230.

[0095] X 01 , X 02 , X 03 The characteristic parameter values ​​of the three regions are [0.647, 0.497, 0.317], [0.568, 0.444, 0.263], and [0.738, 0.793, 0.276], respectively. On this basis, the image recognizability value N is calculated using the following formula:

[0096] N=0.4*H+0.4*G+0.2*B

[0097] X 01 , X 02 , X 03 The image recognizability values ​​of the three areas are 0.52, 0.45, and 0.52, respectively.

[0098] S3. Design an experiment to determine the critical value N of the image recognizability parameter 阈 , as a basis for judging whether the exposure level needs to be adjusted;

[0099] S301, select radiographic films with different black distributions (about 100 images) for experiment, repeat steps S1 and S2 for each image, observe the image to determine whether it is necessary to perform secondary exposure on the area of ​​interest for film evaluation (the judgment basis is whether the area contains all the detail information corresponding to the original radiographic film),

[0100] S302, dividing the sub-images into two groups based on whether or not to perform secondary digitization, and recording the image recognizability value N in each experiment;

[0101] S303, the first group is images that do not need to be digitized again, where the minimum image recognizability value N1 is 0.734, and the second group is underexposed images that need to adjust the exposure level for secondary digitization, where the maximum image recognizability value N2 is 0.681.

[0102]

[0103] After calculation, we get N 阈 The value of is 0.7075.

[0104] S4, according to N and N 阈 , establish the X-ray film secondary exposure strategy and exposure parameter calculation method, complete the adaptive exposure of each area, and obtain the digital image X1;

[0105] S401, in steps S2 and S3, respectively calculate and obtain X 01 , X 02 , X 03 The image recognizability values ​​of the three regions are 0.52, 0.45, and 0.52, all of which are less than the critical value N of the image recognizability parameter. 阈 , so adaptive exposure is required for three areas;

[0106] S402, based on the grayscale distribution characteristics of each area, calculate the exposure level adjustment coefficient ΔI, the calculation expression is:

[0107]

[0108] The k value is obtained by fitting the exposure level at which the image recognizability value crosses the critical value by gradually increasing the exposure level at equal intervals during the experiment. Its value is 0.76, so X 01 , X 02 , X 03 The exposure level adjustment coefficients for the three areas are 1.17, 1.38, and 1.17 respectively.

[0109] I1=ΔI*I0

[0110] The calculated adaptive exposure levels are 14, 16, and 14 respectively. During the film digitization process, the corresponding exposure levels are set for the three film evaluation focus areas in turn to complete the film digitization work.

[0111] See also Figure 6 ,for Figure 4 The digital image obtained after the film is adaptively exposed is different from the digital image obtained at a single exposure level. Figure 5 compared to, Figure 6 The contrast of the three focus areas in the film has been improved, and it includes Figure 4 All the review information of the film.

[0112] S5. Based on the one-dimensional multiple nonlinear transformation relationship, an image contrast enhancement method is constructed to improve the overall contrast of the digital image X1.

[0113] The contrast of the image after adaptive exposure is adjusted by nonlinear transformation, and the expression used is:

[0114] g(x,y)=a*f 4 (x,y)+b*f 3 (x,y)+c*f 2 (x, y) + d*f(x, y)

[0115] Where a = -4.98*10 -8 b = 4.38*10 -5 , c=-0.0161, d=3.0722, f(x, y) is the grayscale value at the image pixel (x, y) before transformation, and g(x, y) is the grayscale value after adjustment.

[0116] See also Figure 7 , Figure 8 , Fig. 9 Region X 01 , X 02 , X 03 The digital image after contrast adjustment, where X 01 , X 02 , X 03 Respectively Figure 6The three areas of interest in the film evaluation correspond to each other, and the constructed image contrast enhancement method is used to Figure 6 After processing, the three film review focus areas are captured separately. Figure 7 , Figure 8 and Fig. 9 ,From these three images, it can be seen that the contrast of the ,image is significantly improved.

[0117] In another embodiment of the present invention, a system for digitizing industrial X-ray films with a large black level range is provided. The system can be used to implement the above-mentioned method for digitizing industrial X-ray films with a large black level range. Specifically, the system for digitizing industrial X-ray films with a large black level range includes a curve module, a characteristic module, a design module, a calculation module and a processing module.

[0118] Among them, the curve module constructs the characteristic transfer curve CTC of the film blackness-image grayscale under different exposure levels, determines the initial exposure time T0 and exposure intensity I0, and obtains the first digital image X0;

[0119] The feature module uses the first digitized image X0 obtained by the curve module as the object to determine the focus area X 01 , X 02 , X 0i ...X 0n , for each sub-region X 0i , define and calculate the image recognizability feature parameter value N of the selected area;

[0120] Design module, design experiments to determine the critical value N of image recognizability 阈 ;

[0121] The calculation module is based on the image recognizability characteristic parameter value N of the selected area obtained by the characteristic module and the image recognizability critical value N obtained by the design module. 阈 , establish the X-ray film secondary exposure strategy and exposure parameter calculation method, complete the adaptive exposure of each area, and obtain the digital image X1;

[0122] The processing module constructs an image contrast enhancement method, uses nonlinear transformation to adjust the image contrast after adaptive exposure, improves the overall contrast of the digital image X1 obtained by the calculation module, and realizes the digital processing of industrial X-ray films with a large black level range.

[0123] In another embodiment of the present invention, a terminal device is provided, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement corresponding method processes or corresponding functions; the processor described in the embodiment of the present invention can be used for the operation of a method for digitizing industrial X-ray films with a large blackness range, including:

[0124] Construct the characteristic transfer curve CTC of film blackness-image grayscale under different exposure levels, determine the initial exposure time T0 and exposure intensity I0, and obtain the first digital image X0; take the first digital image X0 as the object, and determine the film evaluation focus area X0. 01 , X 02 , X 0i ...X 0n , for each sub-region X 0i , define and calculate the image recognizability feature parameter value N of the selected area; design an experiment to determine the image recognizability critical value N 阈 ; Based on the image recognizability feature parameter value N and image recognizability threshold value N of the selected area 阈 , establish the secondary exposure strategy of X-ray film and the exposure parameter calculation method, complete the adaptive exposure of each area, and obtain the digital image X1; construct the image contrast enhancement method, use nonlinear transformation to adjust the image contrast after adaptive exposure, improve the overall contrast of the digital image X1, and realize the digital processing of industrial X-ray film with a large black level range.

[0125] In another embodiment of the present invention, the present invention further provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a terminal device for storing programs and data. It can be understood that the computer-readable storage medium here can include both the built-in storage medium in the terminal device and the extended storage medium supported by the terminal device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory, or a non-volatile memory (Non-Volatile Memory), such as at least one disk memory.

[0126] The processor may load and execute one or more instructions stored in a computer-readable storage medium to implement the corresponding steps of the method for digitizing industrial X-ray film with a large black level range in the above embodiment; the processor may load and execute the following steps of one or more instructions in the computer-readable storage medium:

[0127] Construct the characteristic transfer curve CTC of film blackness-image grayscale under different exposure levels, determine the initial exposure time T0 and exposure intensity I0, and obtain the first digital image X0; take the first digital image X0 as the object, and determine the film evaluation focus area X0. 01 , X 02 , X 0i ...X 0n , for each sub-region X 0i , define and calculate the image recognizability feature parameter value N of the selected area; design an experiment to determine the image recognizability critical value N 阈 ; Based on the image recognizability feature parameter value N and image recognizability threshold value N of the selected area 阈 , establish the secondary exposure strategy of X-ray film and the exposure parameter calculation method, complete the adaptive exposure of each area, and obtain the digital image X1; construct the image contrast enhancement method, use nonlinear transformation to adjust the image contrast after adaptive exposure, improve the overall contrast of the digital image X1, and realize the digital processing of industrial X-ray film with a large black level range.

[0128] In summary, the present invention provides a method, system, medium and equipment for digitizing industrial X-ray film with a large black level range. When the black level distribution range of the X-ray detection film spans a large range, the image grayscale distribution characteristics are used to describe the image, and it is used as a characterization of the film black level distribution. Then, combined with the performance of the digitizer, the regional adaptive exposure of the industrial X-ray film and the high-precision retention of the film evaluation information are achieved; nonlinear transformation is used to adjust the image contrast to enhance the visual effect of the human eye, and after the digital storage of the film is completed, the foundation is laid for the subsequent intelligent film evaluation.

[0129] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0130] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0131] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0132] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0133] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0134] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0135] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0136] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0137] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0138] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0139] The above contents are only for explaining the technical idea of ​​the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.

Claims

1. Digitalization method of industrial X-ray film with large blackness range, It is characterized in that The following steps are involved: S1, constructing the characteristic transfer curve CTC of the film blackness-image grayscale under different exposure levels, determining the initial exposure time T0 and exposure intensity I0, and obtaining the first digital image X0; S2, the first digitized image X obtained in step S1 0 As the object, determine the film review focus area X 01 , X 02 , X 0i …X 0n , for each sub-region X 0i , define and calculate the image recognizability feature parameter value N of the selected area, the image recognizability feature parameter value N of the selected area is: N=αH+βG+γB Among them, H represents the normalized information entropy of the sub-image, G represents the average gradient of the sub-image, B represents the percentage of high-contrast areas in the sub-image, and α, β, and γ are the weight values ​​of the three features H, G, and B respectively; S3. Design an experiment to determine the critical value N of image recognizability 阈 , specifically: S301, select radiographic films with different black distributions for experiments, repeat steps S1 and S2 for each image, observe the image, and determine whether a secondary exposure is required for the area of ​​interest for film evaluation based on whether the area contains all detail information corresponding to the original radiographic film; S302, dividing the sub-images into two groups based on the secondary digitization obtained in step S301, and recording the image recognizability value N in each experiment; S303: The first group is images that do not need to be digitized again, and the minimum image recognizability value N in the group of images is recorded. 1 , and the maximum image recognizability N in the second set of images 2 , calculate the image recognizability critical value N 阈 , as a basis for determining whether to change the exposure level for secondary digitization; S4, based on the image recognizability characteristic parameter value N of the selected area obtained in step S2 and the image recognizability threshold value N obtained in step S3 阈 , establish the X-ray film secondary exposure strategy and exposure parameter calculation method, complete the adaptive exposure of each area, and obtain the digital image X 1 , specifically: S401, using the values ​​N and N obtained in step S2 and step S3 阈 , determine the adaptive exposure strategy as follows: When N <N 阈 When , the process goes to step S402 to perform adaptive exposure on the film evaluation focus area in the original radiographic film; When N>N 阈 When T is , it corresponds to the area of ​​interest in the original X-ray film, and the exposure parameters for this area are all T 0 and I 0 ; S402, using the values ​​N and N obtained in step S2 and step S3 阈 , introduce the correction value k and establish the adaptive exposure level I 1 Prediction equation, determine the exposure parameters for digitizing each area of ​​interest in the film, digitize the film to obtain the digital image X 1 ; S5, construct an image contrast enhancement method, use nonlinear transformation to adjust the image contrast after adaptive exposure, and improve the digital image X obtained in step S4 1 The overall contrast ratio is improved to achieve digital processing of industrial X-ray films with a large black level range.

2. The method for digitizing industrial radiographic films with a large blackness range according to claim 1, It is characterized in that Step S1 is specifically as follows: S101, grouping the exposure intensity and exposure time in order from low to high, wherein different groups correspond to the exposure requirements when digitizing films of different densities, and 37 levels of exposure are obtained; S102. The selected standard density film covers the optical density values ​​from 0.5 to 4.5, and the optical density interval between two adjacent steps is not greater than 0.5, and the area of ​​each step is at least 100mm 2 , the film density noise is less than 0.01; S103, using the 37 exposure levels obtained in step S101 to sequentially expose the standard step density film to obtain 37 corresponding digitized images, and calculating the grayscale arithmetic mean value g1 in each step area of ​​each image i , the grayscale arithmetic mean gl i and the blackness value D of the i-th step area in the corresponding original film i Recorded in a table, a total of 37 tables were obtained; S104, using the gl obtained in step S103 i and D i Compare the table, D i As the horizontal axis, gl i As the ordinate, the characteristic transfer curve CTC of the digitizer is plotted. For the missing density values ​​between the density steps, interpolation calculations are performed according to the linear relationship and the missing density values ​​are completed; S105, based on the characteristic transfer curve CTC obtained in step S104, select the maximum exposure level that prevents the digitized image from being overexposed, and determine the initial exposure time T 0 and exposure intensity I 0 , get the first digital image X 0 .

3. The method for digitizing industrial radiographic films with a large blackness range according to claim 1, It is characterized in that In step S101, corresponding to the digital density range of 0.5 to 4.5, 37 levels of exposure are constructed as follows: [(5,200)(6,200)(7,200)(8,200)(9,200)(10,200)(15,300)(20,300)(30,300)(40,300)(45,300)(60,400)(70,400)(80,400)(90,400)(100,400)(110,500)(120,500)(130,500)(140,500)(150,500 )(160,600)(170,600)(180,600)(190,600)(170,700)(180,700)(190,700)(200,700)(210,700)(215,700)(220,700)(230,700)(240,700)(250,700)(255,750)(255,800)], the first value is the exposure intensity and the second value is the exposure time.

4. The method for digitizing industrial radiographic films with a large blackness range according to claim 1, It is characterized in that In step S5, the nonlinear transformation expression is: g(x,y)=a*f 4 (x,y)+b*f 3 (x,y)+c*f 2 (x,y)+d*f(x,y) Among them, f(x, y) is the grayscale value at the image pixel (x, y) before transformation, g(x, y) is the grayscale value after adjustment, and a, b, c, d are the coefficients of the univariate quartic transformation relationship equation.

5. A system for digitizing industrial radiographic films with a large blackness range. It is characterized in that include: Curve module, constructs the characteristic transfer curve CTC of film blackness-image grayscale under different exposure levels, determines the initial exposure time T0 and exposure intensity I0, and obtains the first digital image X0; Feature module, the first digital image obtained by the curve module X 0 As the object, determine the film review focus area X 01 , X 02 , X 0i …X 0n , for each sub-region X 0i , define and calculate the image recognizability feature parameter value N of the selected area, the image recognizability feature parameter value N of the selected area is: N=αH+βG+γB Among them, H represents the normalized information entropy of the sub-image, G represents the average gradient of the sub-image, B represents the percentage of high-contrast areas in the sub-image, and α, β, and γ are the weight values ​​of the three features H, G, and B respectively; Design module, design experiments to determine the critical value N of image recognizability 阈 , specifically: Select radiographic films with different black distributions for the experiment, repeat the above steps for each image, observe the image, and judge whether the area of ​​interest for film evaluation needs to be re-exposed based on whether the area contains all the detail information corresponding to the original radiographic film; divide the sub-images into two groups based on the obtained secondary digitization, and record the image recognizability value N in each experiment; the first group is the image that does not need to be re-digitized, and record the minimum image recognizability value N in this group of images 1 , and the maximum image recognizability N in the second set of images 2 , calculate the image recognizability critical value N 阈 , as a basis for determining whether to change the exposure level for secondary digitization; The calculation module is based on the image recognizability characteristic parameter value N of the selected area obtained by the characteristic module and the image recognizability critical value N obtained by the design module. 阈 , establish the X-ray film secondary exposure strategy and exposure parameter calculation method, complete the adaptive exposure of each area, and obtain the digital image X 1 , specifically: Using the values ​​N and N 阈 , determine the adaptive exposure strategy as follows: When N <N 阈 When , the process goes to step S402 to perform adaptive exposure on the film evaluation focus area in the original radiographic film; When N>N 阈 When T is , it corresponds to the area of ​​interest in the original X-ray film, and the exposure parameters for this area are all T 0 and I 0 ; Using the values ​​N and N 阈 , introduce the correction value k and establish the adaptive exposure level I 1 Prediction equation, determine the exposure parameters for digitizing each area of ​​interest in the film, digitize the film to obtain the digital image X 1 ; The processing module constructs an image contrast enhancement method and uses nonlinear transformation to adjust the image contrast after adaptive exposure to improve the digital image X obtained by the calculation module. 1 The overall contrast ratio is improved to achieve digital processing of industrial X-ray films with a large black level range.

6. A computer-readable storage medium storing one or more programs, It is characterized in that The one or more programs include instructions, which, when executed by a computing device, cause the computing device to perform the method of any one of claims 1 to 4.

7. A computing device, It is characterized in that include: One or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include steps for executing the method according to any one of claims 1 to 4.