Image processing method, device and apparatus
By generating pseudo-color images and using the pixel energy values and material curves in the X-ray images collected by the X-ray detector, the problem of low recognition of black and white images is solved and the reliability and speed of security inspections are improved.
Patent Information
- Application Number
- CN202210175044.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-25
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-02-25
AI Technical Summary
In an environment with a large flow of people, the black-and-white X-ray images collected by the security inspection machine are not highly discernible, resulting in low security inspection reliability and difficulty in quickly discovering prohibited items.
By obtaining the X-ray image to be processed collected by the X-ray detector, the target equivalent atomic number and brightness value are determined based on the pixel energy value of the pixel point and the material curve set, and a pseudo-color image is generated to improve the recognition of the image.
It improves the speed and accuracy of security inspection staff in determining whether prohibited items are present, and improves the reliability of security inspections.
Smart Images

Figure CN114550093B
Abstract
Description
Background Art
[0002] Installing security inspection machines in large public places is an effective tool to monitor whether there are any dangerous items that endanger public personal safety. The security inspection machine mainly installs an X-ray emitter in an opaque box to irradiate the items to be inspected that enter the box. It uses the perspective ability of X-rays to penetrate outer packaging such as suitcases and bags to see a perspective diagram showing the structure and material properties of the items carried inside. In this way, it can be quickly determined whether there are any dangerous items that may threaten public personal safety.
[0003] In an environment with a large flow of people (such as subways, stations, and logistics companies), a large number of items need to be inspected by security inspection machines. Since the X-ray images collected by the security inspection machines are black and white images, the recognition of black and white images is not high. It is difficult for security inspection personnel to find prohibited items from black and white images, resulting in low security inspection reliability. Summary of the invention
[0004] The embodiments of the present application provide an image processing method, device and apparatus for improving the recognition of an image.
[0005] In a first aspect, an embodiment of the present application provides an image processing method, comprising:
[0006] Acquire the X-ray image to be processed collected by the X-ray detector;
[0007] For any pixel point in the X-ray image to be processed, the target equivalent atomic number corresponding to the pixel point is determined according to the pixel energy value corresponding to the pixel point and the material curve set; and the target brightness value corresponding to the pixel point is determined; according to the preset correspondence between the equivalent atomic number, the brightness value and the color information, the target equivalent atomic number corresponding to the pixel point and the target brightness value corresponding to the pixel point, the color information corresponding to the pixel point is determined; wherein each material curve in the material curve set is used to represent the mapping relationship between the pixel energy value and the high-low energy ratio of material materials with different equivalent atomic numbers;
[0008] A pseudo-color image corresponding to the X-ray image to be processed is generated according to the color information corresponding to each pixel in the X-ray image to be processed.
[0009] In some embodiments, the pixel energy value corresponding to the pixel point includes a high energy value and a low energy value;
[0010] The determining, according to the pixel energy value corresponding to the pixel and the material curve set, the target equivalent atomic number corresponding to the pixel specifically includes:
[0011] According to the high energy value and the low energy value corresponding to the pixel point, determine the average of the high energy value and the low energy value, and determine the ratio of the high energy value to the low energy value;
[0012] Filtering a target material curve corresponding to the pixel point from the material curve set according to the mean value and the ratio;
[0013] The equivalent atomic number of the target material curve is used as the target equivalent atomic number corresponding to the pixel point.
[0014] In some embodiments, the material curve set is determined according to the following method:
[0015] Collect X-ray images of many different types of sample materials;
[0016] For any pixel point in the X-ray image, according to the high energy value and the low energy value of the pixel point, determine the energy average of the high energy value and the low energy value, and determine the energy ratio between the high energy value and the low energy value;
[0017] Fitting the coordinate information of each pixel point corresponding to the same type of sample material to generate a material curve corresponding to each sample material; wherein the coordinate information of the pixel point includes the energy mean and energy ratio corresponding to the pixel point;
[0018] Interpolation processing is performed on the material curves corresponding to each generated sample material to obtain a plurality of material curves; and the plurality of material curves obtained are combined into the material curve set.
[0019] In some embodiments, after generating the material curve corresponding to each sample substance, the method further includes:
[0020] Determine the equivalent atomic number of each sample substance;
[0021] The equivalent atomic numbers of the various sample materials are interpolated to obtain an equivalent atomic number sequence including a plurality of equivalent atomic numbers, and each equivalent atomic number in the equivalent atomic number sequence is sequentially used as the equivalent atomic number of each material curve in the material curve set.
[0022] In some embodiments, the target brightness value corresponding to the pixel point is determined according to the following method:
[0023] Converting the to-be-processed X-ray image into a grayscale image of a first bit;
[0024] Converting the first-bit grayscale image into a second-bit grayscale image according to a preset HDR mapping curve;
[0025] The grayscale value of the pixel point in the second bit grayscale image is used as the target brightness value corresponding to the pixel point.
[0026] In a second aspect, an embodiment of the present application provides an image processing device, the device comprising at least one processor and at least one memory; wherein the memory stores a program code, and when the program code is executed by the processor, the processor performs the following process:
[0027] Acquire the X-ray image to be processed collected by the X-ray detector;
[0028] For any pixel point in the X-ray image to be processed, the target equivalent atomic number corresponding to the pixel point is determined according to the pixel energy value corresponding to the pixel point and the material curve set; and the target brightness value corresponding to the pixel point is determined; according to the preset correspondence between the equivalent atomic number, the brightness value and the color information, the target equivalent atomic number corresponding to the pixel point and the target brightness value corresponding to the pixel point, the color information corresponding to the pixel point is determined; wherein each material curve in the material curve set is used to represent the mapping relationship between the pixel energy value and the high-low energy ratio of material materials with different equivalent atomic numbers;
[0029] A pseudo-color image corresponding to the X-ray image to be processed is generated according to the color information corresponding to each pixel in the X-ray image to be processed.
[0030] In some embodiments, the pixel energy value corresponding to the pixel point includes a high energy value and a low energy value;
[0031] The processor is specifically used for:
[0032] According to the high energy value and the low energy value corresponding to the pixel point, determine the average of the high energy value and the low energy value, and determine the ratio of the high energy value to the low energy value;
[0033] Filtering a target material curve corresponding to the pixel point from the material curve set according to the mean value and the ratio;
[0034] The equivalent atomic number of the target material curve is used as the target equivalent atomic number corresponding to the pixel point.
[0035] In some embodiments, the processor is specifically configured to determine the material curve set according to the following method:
[0036] Collect X-ray images of many different types of sample materials;
[0037] For any pixel point in the X-ray image, according to the high energy value and the low energy value of the pixel point, determine the energy average of the high energy value and the low energy value, and determine the energy ratio between the high energy value and the low energy value;
[0038] Fitting the coordinate information of each pixel point corresponding to the same type of sample material to generate a material curve corresponding to each sample material; wherein the coordinate information of the pixel point includes the energy mean and energy ratio corresponding to the pixel point;
[0039] Interpolation processing is performed on the material curves corresponding to each generated sample material to obtain a plurality of material curves; and the plurality of material curves obtained are combined into the material curve set.
[0040] In some embodiments, the processor is further configured to:
[0041] After generating the material curves corresponding to the sample substances, determining the equivalent atomic number of the sample substances;
[0042] The equivalent atomic numbers of the various sample materials are interpolated to obtain an equivalent atomic number sequence including a plurality of equivalent atomic numbers, and each equivalent atomic number in the equivalent atomic number sequence is sequentially used as the equivalent atomic number of each material curve in the material curve set.
[0043] In some embodiments, the processor is specifically configured to determine the target brightness value corresponding to the pixel point according to the following method:
[0044] Convert the X-ray image to be processed into a first-bit grayscale image; convert the first-bit grayscale image into a second-bit grayscale image according to a preset HDR mapping curve; and use the grayscale value of the pixel point in the second-bit grayscale image as the target brightness value corresponding to the pixel point.
[0045] In a third aspect, an embodiment of the present application provides an image processing device, including:
[0046] An acquisition module, used to acquire the X-ray image to be processed collected by the X-ray detector;
[0047] A determination module is used to determine, for any pixel point in the X-ray image to be processed, a target equivalent atomic number corresponding to the pixel point according to a pixel energy value corresponding to the pixel point and a material material curve set; and determine a target brightness value corresponding to the pixel point; according to a preset correspondence between the equivalent atomic number, the brightness value and the color information, the target equivalent atomic number corresponding to the pixel point and the target brightness value corresponding to the pixel point, determine the color information corresponding to the pixel point; wherein each material curve in the material material curve set is used to represent a mapping relationship between a pixel energy value and a high-to-low energy ratio of a material material with a different equivalent atomic number;
[0048] A generating module is used to generate a pseudo-color image corresponding to the X-ray image to be processed according to the color information corresponding to each pixel point in the X-ray image to be processed.
[0049] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used for the image processing method as described in the first aspect above.
[0050] After acquiring the X-ray image collected by the X-ray detector, the embodiment of the present application determines the color information corresponding to each pixel in the X-ray image; and based on the color information of each pixel determined, generates a pseudo-color image corresponding to the X-ray image. In addition, when determining the color information corresponding to each pixel, the material curve corresponding to the pixel is determined according to the pixel energy value corresponding to the pixel and the material curve set of the material; and based on the determined material curve, the equivalent atomic number corresponding to the pixel is determined; and then, according to the correspondence between the preset equivalent atomic number, brightness value and color information, the target equivalent atomic number corresponding to the pixel and the target brightness value corresponding to the pixel, the color information corresponding to the pixel is determined. Therefore, the embodiment of the present application provides a solution for converting the X-ray image collected by the X-ray detector into a pseudo-color image, so that when the security inspection personnel judge whether there are prohibited items, they can judge based on the pseudo-color image, and can quickly and accurately determine whether there are prohibited items, thereby improving the reliability of security inspection. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings introduced below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0052] Figure 1 A schematic diagram of an optional security inspection scenario provided in an embodiment of the present application;
[0053] Figure 2 A schematic diagram of the structure of an X-ray detection device provided in an embodiment of the present application;
[0054] Figure 3 A flowchart of an image processing method provided in an embodiment of the present application;
[0055] Figure 4 A schematic diagram of multiple material curves provided in the embodiments of the present application;
[0056] Figure 5 A schematic diagram of a high-low energy mean-high energy / low energy coordinate system provided in an embodiment of the present application;
[0057] Figure 6 A flow chart of a method for determining color information corresponding to a pixel provided in an embodiment of the present application;
[0058] Figure 7 A schematic diagram of a material image corresponding to the civil aviation test box provided in an embodiment of the present application;
[0059] Figure 8 A schematic diagram of a 12-bit grayscale image provided in an embodiment of the present application;
[0060] Fig. 9 A schematic diagram of an HDR mapping curve provided in an embodiment of the present application;
[0061] Fig.10 A schematic diagram of an 8-bit grayscale image provided in an embodiment of the present application;
[0062] Fig.11 An overall flow chart of the image processing method provided in the embodiment of the present application;
[0063] Fig.12 A schematic diagram of the structure of an image processing device provided in an embodiment of the present application;
[0064] Fig.13 A schematic diagram of the structure of an image processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solution and beneficial effects of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0066] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0067] The following is a brief introduction to the design concept of the embodiment of the present application:
[0068] At present, when security inspection machines are used to conduct security inspections on items, the security inspection machines shoot the items placed on the conveyor belt of the security inspection machines by emitting rays, and collect X-ray images containing the items; the security inspection staff identifies the X-ray images to determine whether the items placed on the conveyor belt of the security inspection machines contain prohibited items. However, the X-ray images collected by the security inspection machines are generally black and white images. For black and white X-ray images, due to the low recognition of black and white images, it is difficult for security inspection staff to find prohibited items from black and white images, resulting in low security inspection reliability.
[0069] The embodiment of the present application obtains an X-ray image to be processed collected by an X-ray detector; for any pixel in the X-ray image to be processed, the target equivalent atomic number corresponding to the pixel is determined according to the pixel energy value corresponding to the pixel and the material curve set; and the target brightness value corresponding to the pixel is determined; according to the preset correspondence between the equivalent atomic number, brightness value and color information, the target equivalent atomic number corresponding to the pixel and the target brightness value corresponding to the pixel, the color information corresponding to the pixel is determined; wherein each material curve in the material curve set is used to represent the mapping relationship between the pixel energy value and the high-low energy ratio of material materials with different equivalent atomic numbers; according to the color information corresponding to each pixel in the X-ray image to be processed, a pseudo-color image corresponding to the X-ray image to be processed is generated. After obtaining the X-ray image collected by the X-ray detector, the embodiment of the present application determines the color information corresponding to the pixel for each pixel in the X-ray image; and based on the determined color information of each pixel, a pseudo-color image corresponding to the X-ray image is generated. Furthermore, when determining the color information corresponding to each pixel, the material curve corresponding to the pixel is determined based on the pixel energy value corresponding to the pixel and the material curve set; and based on the determined material curve, the equivalent atomic number corresponding to the pixel is determined; and then the color information corresponding to the pixel is determined based on the preset correspondence between the equivalent atomic number, brightness value and color information, the target equivalent atomic number corresponding to the pixel and the target brightness value corresponding to the pixel. Therefore, the embodiment of the present application provides a solution for converting an X-ray image collected by an X-ray detector into a pseudo-color image, so that when the security personnel judge whether there are prohibited items, they can make a judgment based on the pseudo-color image, and can quickly and accurately determine whether there are prohibited items, thereby improving the reliability of security inspection.
[0070] After introducing the design ideas of the embodiments of the present application, the following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limited. In the specific implementation process, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.
[0071] like Figure 1 As shown, it is a schematic diagram of an optional security inspection scenario exemplarily shown in an embodiment of the present application, including an X-ray detection device 10 and a server 11;
[0072] The X-ray detection device 10 is used to collect the X-ray images to be processed and transmit the collected X-ray images to be processed to the server 11;
[0073] After acquiring the X-ray image to be processed collected by the X-ray detection device 10, the server 11 determines the target equivalent atomic number corresponding to any pixel in the X-ray image to be processed according to the pixel energy value corresponding to the pixel and the material curve set; and determines the target brightness value corresponding to the pixel; according to the preset correspondence between the equivalent atomic number, brightness value and color information, the target equivalent atomic number corresponding to the pixel and the target brightness value corresponding to the pixel, the color information corresponding to the pixel is determined; wherein each material curve in the material curve set is used to represent the mapping relationship between the pixel energy value and the high-low energy ratio of materials with different equivalent atomic numbers; according to the color information corresponding to each pixel in the X-ray image to be processed, a pseudo-color image corresponding to the X-ray image to be processed is generated. After acquiring the X-ray image collected by the X-ray detector, the embodiment of the present application determines the color information corresponding to each pixel in the X-ray image; and based on the determined color information of each pixel, a pseudo-color image corresponding to the X-ray image is generated; and the generated pseudo-color image is displayed so that the user can judge whether there is a prohibited item based on the pseudo-color image.
[0074] like Figure 2 As shown, the X-ray detection device 10 in the embodiment of the present application includes a radiation source 101, an X-ray detector 102, a belt conveyor system 103 and a radiation-proof housing 104;
[0075] The server 11 includes a processing device 111 and a display device 112 .
[0076] Among them, the radiation source 101 is used to generate X-rays into the internal space of the radiation-proof shell 104; the belt conveyor system 103 is used to transmit the objects to be inspected, and the objects to be inspected are placed on the conveyor belt of the belt conveyor system 103; the X-ray detector 102 is used to collect X-ray images of the objects placed on the conveyor belt including the belt conveyor system 103.
[0077] After acquiring the X-ray image, the X-ray detector 102 sends the acquired X-ray image to the processing device 111; the processing device 111 determines the target equivalent atomic number corresponding to any pixel point in the X-ray image to be processed according to the pixel energy value corresponding to the pixel point and the material curve set; and determines the target brightness value corresponding to the pixel point; according to the preset correspondence between the equivalent atomic number, brightness value and color information, the target equivalent atomic number corresponding to the pixel point and the target brightness value corresponding to the pixel point, the color information corresponding to the pixel point is determined; wherein each material curve in the material curve set is used to represent the mapping relationship between the pixel energy value and the high-to-low energy ratio of materials with different equivalent atomic numbers; according to the color information corresponding to each pixel point in the X-ray image to be processed, a pseudo-color image corresponding to the X-ray image to be processed is generated. After acquiring the X-ray image collected by the X-ray detector, the embodiment of the present application determines the color information corresponding to each pixel in the X-ray image; and based on the determined color information of each pixel, generates a pseudo-color image corresponding to the X-ray image; the display device 112 is used to display the pseudo-color image generated by the image processing device.
[0078] In combination with the application scenarios described above, an image detection method provided by an exemplary embodiment of the present application is described below with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principle of the present application, and the embodiments of the present application are not limited in this regard. On the contrary, the embodiments of the present application can be applied to any applicable scenario.
[0079] like Figure 3 As shown, a flowchart of an image processing method in an embodiment of the present application may specifically include the following steps:
[0080] Step S301, obtaining an X-ray image to be processed collected by an X-ray detector;
[0081] Step S302, for any pixel point in the X-ray image to be processed: determine the target equivalent atomic number corresponding to the pixel point according to the pixel energy value corresponding to the pixel point and the material curve set; and determine the target brightness value corresponding to the pixel point; determine the color information corresponding to the pixel point according to the preset correspondence between the equivalent atomic number, the brightness value and the color information, the target equivalent atomic number corresponding to the pixel point and the target brightness value corresponding to the pixel point; wherein each material curve in the material curve set is used to represent the mapping relationship between the pixel energy value corresponding to the material of different equivalent atomic numbers and the high-low energy ratio;
[0082] Step S303: Generate a pseudo-color image corresponding to the X-ray image to be processed according to the color information corresponding to each pixel in the X-ray image to be processed.
[0083] Among them, the X-ray image collected by the X-ray detector in the embodiment of the present application includes two images, one high-energy image and one low-energy image; the pixel energy value corresponding to the pixel point includes the high energy value corresponding to the pixel point in the high-energy image and the low energy value corresponding to the pixel point in the low-energy image.
[0084] Each pixel value of the pseudo-color image in the embodiment of the present application is actually an index value or code. The code value serves as the entry address of an item in the color look-up table (CLUT). According to the address, the intensity value containing the actual R, G, and B can be found. The color generated by the lookup mapping method is called a pseudo-color, and the generated image is a pseudo-color image.
[0085] The material curve set used in the process of generating a pseudo-color image corresponding to the X-ray image to be processed in the embodiment of the present application includes multiple material curves; each material curve is used to represent the mapping relationship between the pixel energy value corresponding to the material of equivalent atomic number and the high-to-low energy ratio.
[0086] like Figure 4 Multiple material curves are shown; wherein each material curve corresponds to a material, the horizontal axis of the material curve is the average of the high energy value and the low energy value of the pixel when the X-ray image of the material is collected by the X-ray detector, and the vertical axis of the material curve is the ratio of the low energy value to the high energy value of the pixel when the X-ray image of the material is collected by the X-ray detector.
[0087] The following is a detailed description of the process of generating a material curve set according to an embodiment of the present application.
[0088] Collecting X-ray images of various types of sample materials through X-ray detectors;
[0089] In practice, X-ray images of multiple specific representative substances may be collected; for example, X-ray images of three types of substances, namely organic matter, mixture and metal, may be collected.
[0090] It should be noted that in the stage of generating a set of material curves in the embodiment of the present application, a large number of samples of the sample material are obtained for each type of material; for example, a large number of organic samples, a large number of mixture samples, and a large number of metal samples are obtained; in this way, multiple X-ray images can be obtained for each type of material.
[0091] After the server obtains the X-ray images of multiple samples of each sample material collected by the X-ray detector, for any X-ray image of the sample, according to the high energy value of the pixel point in the X-ray image in the high energy image and the low energy value in the low energy image, the pixel energy value of the X-ray image is converted into the high-low energy mean-low energy / high energy space;
[0092] During implementation, the average of the high energy value and the low energy value is calculated based on the high energy value of the pixel point in the X-ray image in the high energy image and the low energy value in the low energy image, as well as the ratio between the high energy value and the low energy value are calculated. Based on the calculated high-low energy average and low-high energy ratio, the position in the high-low energy average-high energy / low energy coordinate system is determined.
[0093] Based on the above method, the embodiment of the present application determines the positions of the pixel points of the X-ray image of each sample in the high-low energy mean-low energy / high energy coordinate system, thereby obtaining a large number of discretely distributed points in the high-low energy mean-high energy / low energy coordinate system;
[0094] It should be noted that, since the high energy values and low energy values of the pixel points corresponding to the samples of the same type of material are relatively close, the pixel points corresponding to the same type of sample material are distributed relatively close in the high and low energy mean-high energy / low energy coordinate system.
[0095] After the pixel energy values of the X-ray image are converted to the high-low energy mean-low energy / high energy space, fitting is performed on each discrete point distributed in the high-low energy mean-high energy / low energy coordinate system;
[0096] During implementation, in the process of fitting each discrete point distributed in the high and low energy mean-high / low energy coordinate system, the coordinate information of each pixel point corresponding to the same type of sample material is fitted to generate a material curve corresponding to each sample material; wherein the coordinate information of the pixel point includes the energy mean and energy ratio corresponding to the pixel point.
[0097] For example, Figure 5 The high and low energy mean - high energy / low energy coordinate system shown; it contains discrete points corresponding to three types of sample substances: organic matter, mixture and metal, and the three types of sample substances are fitted separately;
[0098] In practice, the least square method can be used to fit the three types of sample substances respectively, so as to obtain Figure 5 There are three fitting curves shown in the figure; each fitting curve corresponds to the material curve of a sample substance.
[0099] After obtaining the material curve corresponding to the sample substance, the embodiment of the present application performs equidistant interpolation processing on the obtained multiple material curves to obtain multiple material curves; and combines the multiple material curves obtained by interpolation and the material curve corresponding to the sample substance into a material curve set; for example, Figure 4 A material curve set consisting of multiple material curves shown.
[0100] It should be noted that each material curve in the material curve set of the embodiment of the present application corresponds to a substance, and each substance corresponds to an equivalent atomic number; therefore, each material curve in the material curve set corresponds to an equivalent atomic number.
[0101] The equivalent atomic number corresponding to the material curve of the sample substance may be preset.
[0102] For example, assuming that the sample substance is an organic substance, the equivalent atomic number corresponding to the organic substance is 6.6, which is the atomic number of acrylic. Then, the equivalent atomic number corresponding to the material curve of the organic substance is 6.6; assuming that the sample substance is a mixture, since the atomic number of the light metal material aluminum is close to the atomic number of the mixture, aluminum is used as the target substance, and the equivalent atomic number corresponding to the mixture is 13, which is the atomic number of aluminum. Then, the equivalent atomic number corresponding to the material curve of the mixture is 13; assuming that the sample substance is a metal, the equivalent atomic number corresponding to the metal is 23, which is the atomic number of iron. Then, the equivalent atomic number corresponding to the material curve of the metal is 23.
[0103] In addition, the equivalent atomic number corresponding to the material curve obtained by isometric interpolation in the material curve set can also be obtained by interpolation;
[0104] During implementation, the equivalent atomic number of each sample material is equidistantly interpolated according to the equivalent atomic number of the sample material to obtain an equivalent atomic number sequence containing multiple equivalent atomic numbers, and each equivalent atomic number in the equivalent atomic number sequence is sequentially used as the equivalent atomic number of each material curve in the material curve set.
[0105] After the X-ray detector in the embodiment of the present application collects the X-ray image to be processed, the server obtains the X-ray image to be processed collected by the X-ray detector; for any pixel point in the X-ray image to be processed, the color information corresponding to the pixel point is determined; and based on the color information corresponding to each pixel point in the X-ray image to be processed, a pseudo-color image corresponding to the X-ray image to be processed is generated.
[0106] The following is a detailed description of the process of determining the color information corresponding to the pixel;
[0107] It should be noted that, since the embodiment of the present application determines color information for each pixel in the X-ray image in the same manner, the following description will be made for one pixel.
[0108] like Figure 6 As shown in the flowchart of the method for determining the color information corresponding to a pixel point in the embodiment of the present application, the method may specifically include the following steps:
[0109] Step S601: Filter out a target material curve corresponding to a pixel point from a material curve set according to a pixel energy value corresponding to the pixel point;
[0110] Since the X-ray images collected by the X-ray detector in the embodiment of the present application include low-energy images and high-energy images, for any pixel point in the X-ray image, the value of the pixel point in the low-energy image is a low-energy value, and the value corresponding to the pixel point in the high-energy image is a high-energy value.
[0111] The pixel energy value corresponding to the pixel point includes a high energy value and a low energy value;
[0112] According to the pixel energy value corresponding to the pixel point, determine the average of the high energy value and the low energy value, and determine the ratio of the high energy value to the low energy value;
[0113] In the high and low energy average-high energy / low energy coordinate system, find the coordinate position with the average of the high energy value and the low energy value as the horizontal coordinate and the ratio of the high energy value to the low energy value as the vertical coordinate; determine that the material curve at the coordinate position is the target material curve corresponding to the pixel point.
[0114] Step S602, determining the target equivalent atomic number corresponding to the pixel point according to the target material curve corresponding to the pixel point;
[0115] Since each material curve in the material curve set of the embodiment of the present application corresponds to an equivalent atomic number; when determining the target material curve corresponding to the pixel point, the equivalent atomic number corresponding to the target material curve is used as the target equivalent atomic number corresponding to the pixel point.
[0116] For example, the embodiment of the present application collects an X-ray image of a civil aviation test box through an X-ray detector, determines the target equivalent atomic number corresponding to each pixel in the X-ray image, and uses the target equivalent atomic number corresponding to each pixel as the pixel value of each pixel, thereby obtaining the following: Figure 7 Material image corresponding to the civil aviation test box shown.
[0117] Step S603, determining the target brightness value corresponding to the pixel point;
[0118] The embodiment of the present application converts the to-be-processed X-ray image acquired by the X-ray detector into a grayscale image;
[0119] After the X-ray image to be processed is converted into a grayscale image, the grayscale image is a first-bit image; after the first-bit grayscale image is obtained, the first-bit grayscale image is converted into a second-bit grayscale image according to a preset HDR mapping curve;
[0120] When determining the target brightness value corresponding to the pixel point, the grayscale value of the pixel point in the second-bit grayscale image is used as the target brightness value corresponding to the pixel point.
[0121] It should be noted that, since the first-bit grayscale image cannot be displayed normally after the original X-ray image is directly converted into a grayscale image, it is necessary to convert the first-bit grayscale image into a second-bit grayscale image.
[0122] For example, in the embodiment of the present application, the first bit can be 12 bits, and the second bit can be 8 bits. Assuming that a 12-bit grayscale image is Figure 8 As shown;
[0123] When converting a first-bit grayscale image into a second-bit grayscale image, the first-bit grayscale image may be converted into the second-bit grayscale image according to a preset HDR mapping curve; for example, the preset HDR mapping curve is as follows: Fig. 9 As shown; the converted 8-bit grayscale image is as follows Fig.10 shown.
[0124] Will attach Figure 8 and attached Fig.10 By comparison, it can be seen that in the converted 8-bit grayscale image, the areas with thicker metal parts (such as Figure 8 The black part in the lower left corner of the image), the contrast of the grayscale image is enhanced, and the step-like shape of the image is more obvious.
[0125] Step S604, determining the color information corresponding to the pixel point according to the preset correspondence between the equivalent atomic number, the brightness value and the color information, the target equivalent atomic number corresponding to the pixel point and the target brightness value corresponding to the pixel point;
[0126] The embodiment of the present application pregenerates the correspondence between the equivalent atomic number, brightness value and color information;
[0127] Optionally, the correspondence between the equivalent atomic number, brightness value and color information in the embodiment of the present application can be stored in the form of a palette;
[0128] The color palette records the color information used by the image, and the equivalent atomic number and brightness value are index values. According to these two index values, a color can be uniquely determined, that is, the color information corresponding to the equivalent atomic number and brightness value;
[0129] For example, the color palette can be represented in the form of a coordinate system, with the horizontal axis being the brightness value (assuming that the value range is 0-255) and the vertical axis being the equivalent atomic number (the value range is 0-125); the color corresponding to the position determined by the brightness value and the equivalent atomic number as coordinates is the color information corresponding to the brightness value and the equivalent atomic number.
[0130] In the embodiment of the present application, after determining the target equivalent atomic number corresponding to the pixel point through step S602 and determining the target brightness value corresponding to the pixel point according to step S603, the color information corresponding to the pixel point is determined according to the correspondence between the equivalent atomic number, the brightness value and the color information.
[0131] After obtaining the color information corresponding to each pixel in the to-be-processed X-ray image in the above-mentioned manner, the embodiment of the present application generates a pseudo-color image corresponding to the to-be-processed X-ray image according to the color information corresponding to each pixel.
[0132] like Fig.11 As shown, the overall flow chart of the image processing method in the embodiment of the present application may specifically include the following steps:
[0133] Step S1101, obtaining an X-ray image to be processed collected by an X-ray detector;
[0134] The following steps S1102 to S1108 are performed for any pixel point in the X-ray image to be processed:
[0135] Step S1102: determining the average of the high energy value and the low energy value, and determining the ratio of the high energy value to the low energy value according to the high energy value and the low energy value corresponding to the pixel point;
[0136] Step S1103: Filter out a target material curve corresponding to the pixel point from the material curve set according to the mean value and the ratio;
[0137] Step S1104, taking the equivalent atomic number of the target material curve as the target equivalent atomic number corresponding to the pixel point;
[0138] Step S1105, converting the X-ray image to be processed into a first-bit grayscale image;
[0139] Step S1106: converting the first-bit grayscale image into a second-bit grayscale image according to a preset HDR mapping curve;
[0140] Step S1107, taking the grayscale value of the pixel in the second bit grayscale image as the target brightness value corresponding to the pixel;
[0141] Step S1108, determining the color information corresponding to the pixel point according to the preset correspondence between the equivalent atomic number, the brightness value and the color information, the target equivalent atomic number corresponding to the pixel point and the target brightness value corresponding to the pixel point;
[0142] It should be noted that the above steps S1102 to S1104 are steps for determining the target equivalent atomic number corresponding to the pixel point, and steps S1105 to S1107 are steps for determining the target brightness value corresponding to the pixel point. In the image processing process of the embodiment of the present application, the order of executing the step of determining the target equivalent atomic number corresponding to the pixel point and the step of determining the target brightness value corresponding to the pixel point is not limited;
[0143] Step S1109: Generate a pseudo-color image corresponding to the X-ray image to be processed according to the color information corresponding to each pixel in the X-ray image to be processed.
[0144] Based on the same inventive concept, Fig.12 As shown, the embodiment of the present application provides an image processing device 1200, including at least one processor 1201 and at least one memory 1202; wherein the memory 1202 stores a program code, and when the program code is executed by the processor 1201, the processor 1201 performs the following process:
[0145] Acquire the X-ray image to be processed collected by the X-ray detector;
[0146] For any pixel point in the X-ray image to be processed, the target equivalent atomic number corresponding to the pixel point is determined according to the pixel energy value corresponding to the pixel point and the material curve set; and the target brightness value corresponding to the pixel point is determined; according to the preset correspondence between the equivalent atomic number, the brightness value and the color information, the target equivalent atomic number corresponding to the pixel point and the target brightness value corresponding to the pixel point, the color information corresponding to the pixel point is determined; wherein each material curve in the material curve set is used to represent the mapping relationship between the pixel energy value and the high-low energy ratio of material materials with different equivalent atomic numbers;
[0147] A pseudo-color image corresponding to the X-ray image to be processed is generated according to the color information corresponding to each pixel in the X-ray image to be processed.
[0148] In some embodiments, the pixel energy value corresponding to the pixel point includes a high energy value and a low energy value;
[0149] The processor 1201 is specifically configured to:
[0150] According to the high energy value and the low energy value corresponding to the pixel point, determine the average of the high energy value and the low energy value, and determine the ratio of the high energy value to the low energy value;
[0151] Filtering a target material curve corresponding to the pixel point from the material curve set according to the mean value and the ratio;
[0152] The equivalent atomic number of the target material curve is used as the target equivalent atomic number corresponding to the pixel point.
[0153] In some embodiments, the processor 1201 is specifically configured to determine the material curve set according to the following method:
[0154] Collect X-ray images of many different types of sample materials;
[0155] For any pixel point in the X-ray image, according to the high energy value and the low energy value of the pixel point, determine the energy average of the high energy value and the low energy value, and determine the energy ratio between the high energy value and the low energy value;
[0156] Fitting the coordinate information of each pixel point corresponding to the same type of sample material to generate a material curve corresponding to each sample material; wherein the coordinate information of the pixel point includes the energy mean and energy ratio corresponding to the pixel point;
[0157] Interpolation processing is performed on the material curves corresponding to each generated sample material to obtain a plurality of material curves; and the plurality of material curves obtained are combined into the material curve set.
[0158] In some embodiments, the processor 1201 is further configured to:
[0159] After generating the material curves corresponding to the sample substances, determining the equivalent atomic number of the sample substances;
[0160] The equivalent atomic numbers of the various sample materials are interpolated to obtain an equivalent atomic number sequence including a plurality of equivalent atomic numbers, and each equivalent atomic number in the equivalent atomic number sequence is sequentially used as the equivalent atomic number of each material curve in the material curve set.
[0161] In some embodiments, the processor 1201 is specifically configured to determine the target brightness value corresponding to the pixel point according to the following method:
[0162] Convert the X-ray image to be processed into a first-bit grayscale image; convert the first-bit grayscale image into a second-bit grayscale image according to a preset HDR mapping curve; and use the grayscale value of the pixel point in the second-bit grayscale image as the target brightness value corresponding to the pixel point.
[0163] like Fig.13 As shown, the embodiment of the present application provides an image processing device 1300, including:
[0164] An acquisition module 1301 is used to acquire an X-ray image to be processed collected by an X-ray detector;
[0165] The determination module 1302 is used to determine, for any pixel in the to-be-processed X-ray image, the target equivalent atomic number corresponding to the pixel according to the pixel energy value corresponding to the pixel and the material curve set; and determine the target brightness value corresponding to the pixel; according to the preset correspondence between the equivalent atomic number, the brightness value and the color information, the target equivalent atomic number corresponding to the pixel and the target brightness value corresponding to the pixel, determine the color information corresponding to the pixel; wherein each material curve in the material curve set is used to represent the mapping relationship between the pixel energy value and the high-to-low energy ratio of materials of different equivalent atomic numbers;
[0166] The generating module 1303 is used to generate a pseudo-color image corresponding to the X-ray image to be processed according to the color information corresponding to each pixel point in the X-ray image to be processed.
[0167] In some embodiments, the pixel energy value corresponding to the pixel point includes a high energy value and a low energy value;
[0168] The determining module 1302 is specifically used for:
[0169] According to the high energy value and the low energy value corresponding to the pixel point, determine the average of the high energy value and the low energy value, and determine the ratio of the high energy value to the low energy value;
[0170] Filtering a target material curve corresponding to the pixel point from the material curve set according to the mean value and the ratio;
[0171] The equivalent atomic number of the target material curve is used as the target equivalent atomic number corresponding to the pixel point.
[0172] In some embodiments, the determination module 1302 determines the material curve set according to the following method:
[0173] Collect X-ray images of many different types of sample materials;
[0174] For any pixel point in the X-ray image, according to the high energy value and the low energy value of the pixel point, determine the energy average of the high energy value and the low energy value, and determine the energy ratio between the high energy value and the low energy value;
[0175] Fitting the coordinate information of each pixel point corresponding to the same type of sample material to generate a material curve corresponding to each sample material; wherein the coordinate information of the pixel point includes the energy mean and energy ratio corresponding to the pixel point;
[0176] Interpolation processing is performed on the material curves corresponding to each generated sample material to obtain a plurality of material curves; and the plurality of material curves obtained are combined into the material curve set.
[0177] In some embodiments, the determining module 1302 is further configured to:
[0178] After generating the material curves corresponding to the various sample substances, the equivalent atomic number of each sample substance is determined; the equivalent atomic number of each sample substance is interpolated to obtain an equivalent atomic number sequence including multiple equivalent atomic numbers, and each equivalent atomic number in the equivalent atomic number sequence is sequentially used as the equivalent atomic number of each material curve in the material curve set.
[0179] In some embodiments, the determination module 1302 determines the target brightness value corresponding to the pixel point according to the following method:
[0180] Converting the to-be-processed X-ray image into a first-bit grayscale image;
[0181] Converting the first-bit grayscale image into a second-bit grayscale image according to a preset HDR mapping curve;
[0182] The grayscale value of the pixel point in the second bit grayscale image is used as the target brightness value corresponding to the pixel point.
[0183] For the convenience of description, the above parts are divided into modules (or units) according to their functions and described separately. Of course, when implementing this application, the functions of each module (or unit) can be implemented in the same or multiple software or hardware.
[0184] Those skilled in the art will appreciate that each aspect of the present application may be implemented as a system, method, or program product. Therefore, each aspect of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which may be collectively referred to as a "circuit", "module", or "system" herein.
[0185] In some possible implementations, each aspect of the image detection method provided by the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of the image detection method according to various exemplary embodiments of the present application described above in this specification. For example, the computer device may execute the following steps: Figure 3 or Figure 6 or Fig.11 Steps shown.
[0186] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0187] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0188] 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 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 produce 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.
[0189] 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.
[0190] 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 The steps for the functions specified in one or more boxes.
[0191] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. An image processing method, characterized in that: The method includes: Acquire the X-ray image to be processed collected by the X-ray detector; For any pixel point in the X-ray image to be processed, the target equivalent atomic number corresponding to the pixel point is determined according to the pixel energy value corresponding to the pixel point and the material curve set; and the target brightness value corresponding to the pixel point is determined; according to the preset correspondence between the equivalent atomic number, the brightness value and the color information, the target equivalent atomic number corresponding to the pixel point and the target brightness value corresponding to the pixel point, the color information corresponding to the pixel point is determined; wherein each material curve in the material curve set is used to represent the mapping relationship between the pixel energy value and the high-to-low energy ratio of material materials with different equivalent atomic numbers, wherein the target brightness value is determined according to the following method: converting the X-ray image to be processed into a grayscale image of the first bit; based on According to a preset HDR mapping curve, the grayscale image of the first bit is converted into a grayscale image of the second bit; the grayscale value of the pixel point in the second bit grayscale image is used as the target brightness value corresponding to the pixel point, wherein the correspondence between the equivalent atomic number, the brightness value and the color information is stored in the form of a palette, the color information used by the image is recorded in the palette, the equivalent atomic number and the brightness value are index values respectively, and a color information corresponding to the equivalent atomic number and the brightness value is uniquely determined according to the two index values, the palette is represented in the form of a coordinate system, the horizontal axis is the brightness value, the vertical axis is the equivalent atomic number, and the color corresponding to the position determined by the brightness value and the equivalent atomic number as coordinates is the color information corresponding to the brightness value and the equivalent atomic number; A pseudo-color image corresponding to the X-ray image to be processed is generated according to the color information corresponding to each pixel in the X-ray image to be processed.
2. The method according to claim 1, characterized in that The pixel energy value corresponding to the pixel point includes a high energy value and a low energy value; The determining, according to the pixel energy value corresponding to the pixel and the material curve set, the target equivalent atomic number corresponding to the pixel specifically includes: According to the high energy value and the low energy value corresponding to the pixel point, determine the average of the high energy value and the low energy value, and determine the ratio of the high energy value to the low energy value; Filtering a target material curve corresponding to the pixel point from the material curve set according to the mean value and the ratio; The equivalent atomic number of the target material curve is used as the target equivalent atomic number corresponding to the pixel point.
3. The method according to claim 1 or 2, characterized in that The material curve set is determined according to the following method: Collect X-ray images of many different types of sample materials; For any pixel point in the X-ray image, according to the high energy value and the low energy value of the pixel point, determine the energy average of the high energy value and the low energy value, and determine the energy ratio between the high energy value and the low energy value; Fitting the coordinate information of each pixel point corresponding to the same type of sample material to generate a material curve corresponding to each sample material; wherein the coordinate information of the pixel point includes the energy mean and energy ratio corresponding to the pixel point; Interpolation processing is performed on the material curves corresponding to each generated sample material to obtain a plurality of material curves; and the plurality of material curves obtained are combined into the material curve set.
4. The method according to claim 3, characterized in that After generating the material curve corresponding to each sample substance, the method further includes: Determine the equivalent atomic number of each sample substance; The equivalent atomic numbers of the various sample materials are interpolated to obtain an equivalent atomic number sequence including a plurality of equivalent atomic numbers, and each equivalent atomic number in the equivalent atomic number sequence is sequentially used as the equivalent atomic number of each material curve in the material curve set.
5. An image processing device, characterized in that: The device includes at least one processor and at least one memory; wherein the memory stores a program code, and when the program code is executed by the processor, the processor performs the following process: Acquire the X-ray image to be processed collected by the X-ray detector; For any pixel point in the X-ray image to be processed, the target equivalent atomic number corresponding to the pixel point is determined according to the pixel energy value corresponding to the pixel point and the material curve set; and the target brightness value corresponding to the pixel point is determined; according to the preset correspondence between the equivalent atomic number, the brightness value and the color information, the target equivalent atomic number corresponding to the pixel point and the target brightness value corresponding to the pixel point, the color information corresponding to the pixel point is determined; wherein each material curve in the material curve set is used to represent the mapping relationship between the pixel energy value and the high-to-low energy ratio of material materials with different equivalent atomic numbers, wherein the target brightness value is determined according to the following method: converting the X-ray image to be processed into a grayscale image of the first bit; based on According to a preset HDR mapping curve, the grayscale image of the first bit is converted into a grayscale image of the second bit; the grayscale value of the pixel point in the second bit grayscale image is used as the target brightness value corresponding to the pixel point, wherein the correspondence between the equivalent atomic number, the brightness value and the color information is stored in the form of a palette, the color information used by the image is recorded in the palette, the equivalent atomic number and the brightness value are index values respectively, and a color information corresponding to the equivalent atomic number and the brightness value is uniquely determined according to the two index values, the palette is represented in the form of a coordinate system, the horizontal axis is the brightness value, the vertical axis is the equivalent atomic number, and the color corresponding to the position determined by the brightness value and the equivalent atomic number as coordinates is the color information corresponding to the brightness value and the equivalent atomic number; A pseudo-color image corresponding to the X-ray image to be processed is generated according to the color information corresponding to each pixel in the X-ray image to be processed.
6. The device according to claim 5, characterized in that The pixel energy value corresponding to the pixel point includes a high energy value and a low energy value; The processor is specifically used for: According to the high energy value and the low energy value corresponding to the pixel point, determine the average of the high energy value and the low energy value, and determine the ratio of the high energy value to the low energy value; Filtering a target material curve corresponding to the pixel point from the material curve set according to the mean value and the ratio; The equivalent atomic number of the target material curve is used as the target equivalent atomic number corresponding to the pixel point.
7. The device according to claim 5 or 6, characterized in that The processor is specifically configured to determine the material curve set according to the following method: Collect X-ray images of many different types of sample materials; For any pixel point in the X-ray image, according to the high energy value and the low energy value of the pixel point, determine the energy average of the high energy value and the low energy value, and determine the energy ratio between the high energy value and the low energy value; Fitting the coordinate information of each pixel point corresponding to the same type of sample material to generate a material curve corresponding to each sample material; wherein the coordinate information of the pixel point includes the energy mean and energy ratio corresponding to the pixel point; Interpolation processing is performed on the material curves corresponding to each generated sample material to obtain a plurality of material curves; and the plurality of material curves obtained are combined into the material curve set.
8. An image processing device, characterized in that: include: An acquisition module, used to acquire the X-ray image to be processed collected by the X-ray detector; A determination module, for determining, for any pixel point in the to-be-processed X-ray image, a target equivalent atomic number corresponding to the pixel point according to a pixel energy value corresponding to the pixel point and a material material curve set; and determining a target brightness value corresponding to the pixel point; According to the correspondence between the preset equivalent atomic number, brightness value and color information, the target equivalent atomic number corresponding to the pixel point and the target brightness value corresponding to the pixel point, the color information corresponding to the pixel point is determined; wherein each material curve in the material curve set is used to represent the mapping relationship between the pixel energy value and the high-to-low energy ratio of material materials with different equivalent atomic numbers, wherein the target brightness value is determined according to the following method: converting the X-ray image to be processed into a first-bit grayscale image; according to the preset HDR mapping curve, converting the first-bit grayscale image into a second-bit grayscale image; converting the pixel The grayscale value of the point in the second bit grayscale image is used as the target brightness value corresponding to the pixel point, wherein the correspondence between the equivalent atomic number, the brightness value and the color information is stored in the form of a color palette, the color palette records the color information used by the image, the equivalent atomic number and the brightness value are index values respectively, and a color information corresponding to the equivalent atomic number and the brightness value is uniquely determined according to the two index values, the color palette is represented in the form of a coordinate system, the abscissa is the brightness value, the ordinate is the equivalent atomic number, and the color corresponding to the position determined by the brightness value and the equivalent atomic number as coordinates is the color information corresponding to the brightness value and the equivalent atomic number; A generating module is used to generate a pseudo-color image corresponding to the X-ray image to be processed according to the color information corresponding to each pixel point in the X-ray image to be processed.
9. A computer-readable storage medium, characterized in that: Computer executable instructions are stored, and the computer executable instructions are used for the image processing method according to any one of claims 1 to 4.
