Radiation inspection method, radiation inspection device, radiation inspection system, and radiation inspection program
The method addresses the challenge of selecting regions of interest in dual-energy X-ray imaging by using a thickness correction function to evaluate and improve the accuracy of image subtraction, ensuring effective removal of unwanted components.
Patent Information
- Application Number
- JP2022515316
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-04-16
- Filing Date
- 2021-04-05
- Publication Date
- 2024-11-06
- Estimated Expiration
- 2041-04-05
AI Technical Summary
Existing energy subtraction methods struggle to accurately select regions of interest in X-ray images, leading to improper removal of thickness effects due to difficulties in distinguishing between multiple parts, resulting in incomplete removal of unwanted components.
A radiation examination method involving dual-energy imaging with different energy distributions to capture and analyze pixel values, employing a thickness correction function to evaluate the appropriateness of region selection, using a processor to calculate evaluation coefficients based on representative data and correlation analysis.
Enables accurate evaluation of region of interest selection, ensuring proper removal of thickness effects and enhancing the precision of image subtraction processes.
Smart Images

Figure 0007578679000001 
Figure 0007578679000002 
Figure 0007578679000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a radiological inspection method, a radiological inspection apparatus, a radiological inspection system, and a radiological inspection program. [Background technology]
[0002] Conventionally, samples have been inspected from X-ray images using the energy subtraction method. For example, the following Patent Document 1 describes an X-ray imaging method in which an area corresponding to a component to be removed is selected from one of two images of a sample captured using the energy subtraction method, and a correction is made to eliminate the influence of the thickness of the sample, thereby effectively removing the component to be removed from the captured image. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2000-121579 A Summary of the Invention [Problem to be solved by the invention]
[0004] The method described in the above-mentioned Patent Document 1 is based on the premise that a region of interest, which is a region in an image corresponding to a component to be removed, is properly selected. However, depending on the image, it may be difficult to recognize the boundaries between multiple parts that make up an article. In that case, depending on the state of region selection, regions other than the region corresponding to the substance to be removed may also be selected and input, and the effect of the thickness of the substance may not be properly eliminated, and the image of the substance may not be properly removed from the image.
[0005] Therefore, the present disclosure has been made in consideration of such problems, and has an objective of providing a radiological inspection method, a radiological inspection apparatus, a radiological inspection program, and a radiological inspection system that can evaluate whether a region of interest has been appropriately selected. [Means for solving the problem]
[0006] A radiation inspection method according to one aspect of the present disclosure includes a first step of acquiring a first image of an article captured while being irradiated with radiation having a first energy distribution and a second image of the article captured while being irradiated with radiation having a second energy distribution different from the first energy distribution, a second step of accepting a selection input of a region of interest in the first image or the second image, the region of interest being a region corresponding to a substance that eliminates the effect of thickness, and a second step of identifying first pixel values of a plurality of first pixels in the region of the first image that corresponds to the region of interest, and identifying second pixel values of a plurality of second pixels in the second image that correspond to the plurality of first pixels. a third step of calculating a thickness correction function, which is a function representing the relationship between the first pixel value and the second pixel value by approximating the relationship between the first pixel value and the second pixel value corresponding to the first pixel value, and which eliminates the influence of the thickness of the substance; a fourth step of calculating a plurality of representative data, each of which is a combination of a first representative value which is a representative pixel value of the first image and a second representative value which is a representative pixel value of the second image, based on the first pixel values of each of the plurality of first pixels and the second pixel values of each of the plurality of second pixels corresponding to the plurality of first pixels; and a fifth step of calculating an evaluation coefficient based on the correlation between the thickness correction function and the calculated plurality of representative data.
[0007] Alternatively, a radiation inspection apparatus according to another aspect of the present disclosure includes at least one processor, and the at least one processor acquires a first image in which an article is imaged while being irradiated with radiation having a first energy distribution, and a second image in which the article is imaged while being irradiated with radiation having a second energy distribution different from the first energy distribution, accepts selection input of a region of interest in a region corresponding to the article in the first image or the second image, the region being a region corresponding to a substance that eliminates the effect of thickness, and calculates first pixel values of each of a plurality of first pixels in a region in the first image that corresponds to the region of interest, and a first pixel value of each of a plurality of first pixels in the second image. The method includes identifying second pixel values of each of a plurality of corresponding second pixels, approximating the relationship between the first pixel value and the second pixel value corresponding to the first pixel value, and calculating a thickness correction function which is a function representing the relationship between the first pixel value and the second pixel value and which eliminates the influence of the thickness of the substance; calculating a plurality of representative data which are each a combination of a first representative value which is a representative pixel value of the first image and a second representative value which is a representative pixel value of the second image based on the first pixel value of each of the plurality of first pixels and the second pixel value of each of the plurality of second pixels corresponding to the plurality of first pixels; and calculating an evaluation coefficient based on the correlation between the thickness correction function and the calculated plurality of representative data.
[0008] Alternatively, a radiation inspection system according to another aspect of the present disclosure includes the above-mentioned radiation inspection device, a radiation source that irradiates an object with radiation having a first energy distribution and radiation having a second energy distribution, and a detector that detects the radiation irradiated from the radiation source, passing through the object and having the first energy distribution, and the radiation irradiated from the radiation source, passing through the object and having the second energy distribution.
[0009] Alternatively, a radiation inspection program according to another aspect of the present disclosure includes a first step of causing a computer to acquire a first image of an article captured in a state where the article is irradiated with radiation having a first energy distribution and a second image of the article captured in a state where the article is irradiated with radiation having a second energy distribution different from the first energy distribution; a second step of accepting a selection input of a region of interest in the first image or the second image, the region of interest being a region corresponding to a substance that eliminates the effect of thickness; and a second step of accepting a selection input of a region of interest in the first image that corresponds to the region of interest and a second step of accepting a selection input of a region of interest in the second image that corresponds to the first pixel value of each of a plurality of first pixels in the region of interest in the first image and a second pixel value of each of a plurality of second pixels in the second image that correspond to the plurality of first pixels. The method functions as a third step of calculating a thickness correction function, which is a function representing the relationship between the first pixel value and the second pixel value by identifying a pixel value and approximating the relationship between the first pixel value and the second pixel value corresponding to the first pixel value, and which eliminates the influence of the thickness of the substance; a fourth step of calculating a plurality of representative data, each of which is a combination of a first representative value which is a representative pixel value of the first image and a second representative value which is a representative pixel value of the second image, based on the first pixel values of each of the plurality of first pixels and the second pixel values of each of the plurality of second pixels corresponding to the plurality of first pixels; and a fifth step of calculating an evaluation coefficient based on the correlation between the thickness correction function and the calculated plurality of representative data.
[0010] According to the above method, device, system, and program, a selection input of a region of interest in a first image or a second image is received, and a first pixel value of each of a plurality of first pixels in a region of the first image corresponding to the region of interest and a second pixel value of each of a plurality of second pixels corresponding to the plurality of first pixels in the second image are specified. Then, a thickness correction function is calculated by approximating the relationship between the first pixel value and the second pixel value corresponding to the first pixel value, and a plurality of representative data are calculated, each of which is a combination of a first representative value that is a representative value of the first pixel value and a second representative value that is a representative value of the second pixel value. Then, an evaluation coefficient is calculated based on the correlation between the thickness correction function and the plurality of representative data. Thereby, it is possible to evaluate whether or not the region of interest corresponds to a single substance based on the evaluation coefficient. Therefore, according to the above method, device, system, and program, it is possible to evaluate whether or not the region of interest has been appropriately selected. Effect of the Invention
[0011] According to the present disclosure, it is possible to evaluate whether a region of interest has been appropriately selected. [Brief description of the drawings]
[0012] [Figure 1] FIG. 1 is a schematic configuration diagram of a radiation inspection system according to the first embodiment. [Diagram 2] FIG. 2 is a perspective view showing the radiation inspection system according to the first embodiment. [Diagram 3] FIG. 3 is a block diagram showing the functional configuration of the radiation inspection apparatus of the first embodiment. [Figure 4] FIG. 4 is a block diagram showing a hardware configuration of a computer system including the radiation inspection apparatus of FIG. [Diagram 5] FIG. 5 is a diagram showing an example of the region of interest selected and input by the selection receiving unit in FIG. [Figure 6] FIG. 6 is a diagram showing an example of the region of interest selected and input by the selection receiving unit in FIG. [Figure 7]FIG. 7 is a diagram showing an example of a graph in which sample points and an approximation curve corresponding to the region of interest in FIG. 5 are represented. [Figure 8] FIG. 8 is a diagram showing an example of a graph in which sample points and an approximation curve corresponding to the region of interest in FIG. 6 are represented. [Figure 9] FIG. 9 is a diagram showing an example of a graph showing representative data and an approximation curve corresponding to the region of interest in FIG. [Figure 10] FIG. 10 is a diagram showing an example of a graph showing representative data and an approximation curve corresponding to the region of interest in FIG. [Figure 11] FIG. 11 is a diagram showing an example of a difference image corresponding to the region of interest in FIG. [Figure 12] FIG. 12 is a diagram showing an example of a difference image corresponding to the region of interest in FIG. [Figure 13] FIG. 13 is a flowchart showing the operation of the process of the radiation inspection method according to the first embodiment. [Figure 14] FIG. 14 is a diagram showing an example of image information output in the second embodiment. [Figure 15] FIG. 15 is a flowchart showing the operation of the process of the radiation inspection method according to the second embodiment. [Figure 16] FIG. 16 is a flowchart showing the operation of the process of the radiation inspection method according to the third embodiment. [Figure 17] FIG. 17 is a diagram showing an example of a first image acquired by the radiation inspection apparatus of the first embodiment. [Figure 18] FIG. 18 is a graph of an approximation curve calculated by linear approximation using a radiation inspection device. [Figure 19] FIG. 19 is a diagram showing a subtraction image generated by a radiological inspection apparatus and a foreign object detection result image obtained by subjecting the subtraction image to threshold processing. [Figure 20] FIG. 20 is a graph of an approximation curve calculated by quadratic approximation using a radiation inspection device. [Figure 21]FIG. 21 is a diagram showing a subtraction image generated by a radiation inspection apparatus and a foreign object detection result image obtained by subjecting the subtraction image to threshold processing. [Figure 22] FIG. 22 is a diagram showing an example of a first image acquired by the radiation inspection apparatus of the first embodiment. [Diagram 23] FIG. 23 is a graph of an approximation curve calculated by quadratic approximation using a radiation inspection device. [Figure 24] FIG. 24 is a diagram showing a subtraction image generated by a radiation inspection apparatus and a foreign object detection result image obtained by subjecting the subtraction image to threshold processing. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. In each drawing, the same or corresponding parts are denoted by the same reference numerals, and overlapping parts are omitted. [First embodiment] [Radiation inspection system configuration]
[0014] As shown in FIG. 1, the radiation inspection system 1 includes an irradiator (radiation source) 2, an image acquisition device (detector) 3, and a radiation inspection device 5. As shown in FIG. 2, the radiation inspection system 1 is an apparatus that irradiates an item S with radiation having a plurality of energy distributions along an irradiation direction Z, acquires a plurality of images of the item S in a state in which the item S is irradiated with radiation having each energy distribution, and performs a foreign body inspection or the like contained in the item S based on the plurality of images. The radiation inspection system 1 performs foreign body inspection, weight inspection, and inspection of the item S, and examples of applications include food inspection, baggage inspection, board inspection, battery inspection, and material inspection. In this embodiment, the radiation inspection system 1 irradiates the item S with X-rays from an X-ray source. The item S is placed on the belt part B1 of the belt conveyor B and is transported in the transport direction Y at a predetermined transport speed. Examples of the goods S include various goods such as meat, seafood, agricultural products, foods such as sweets, rubber products such as tires, resin products, metal products, resource materials such as minerals, waste, and electronic parts and electronic circuit boards.
[0015] The irradiator 2 is disposed above the belt portion B1 at a predetermined distance from the belt portion B1. The irradiator 2 is a device that irradiates the object S with X-rays in the irradiation direction Z, and functions as an X-ray source. The irradiator 2 irradiates the object S with radiation having a first energy distribution and radiation having a second energy distribution different from the first energy distribution. The first energy distribution is, for example, an energy band lower than the second energy distribution. The irradiator 2 is a point light source, and irradiates the X-rays so as to diffuse them in a predetermined angle range in the inspection direction X. The inspection direction X is a direction perpendicular to the irradiation direction Z and the conveying direction Y. The irradiator 2 is configured to irradiate the entire object S with X-rays in the inspection direction X (width direction of the object S). In addition, the irradiator 2 irradiates the X-rays to a divided range of the object S, which is a range smaller than the entire length of the object S in the conveying direction Y. The irradiator 2 is configured to irradiate the entire object S with X-rays in the conveying direction Y by conveying the object S in the conveying direction Y on the belt conveyor B.
[0016] The image acquisition device 3 is disposed below the irradiator 2 and the portion of the belt part B1 on which the article S is placed in the irradiation direction Z. The image acquisition device 3 detects radiation irradiated from the radiation source, which passes through the article S, and has a first energy distribution, and radiation irradiated from the radiation source, which passes through the article S, and has a second energy distribution. The image acquisition device 3 then acquires an image of the article S in a state in which it is irradiated with radiation having a predetermined energy distribution. The image acquisition device 3 has a first image acquisition section 31, a second image acquisition section 32, and a control section 33.
[0017] The first image acquisition unit 31 acquires a first image of the article S captured in a state where the article S is irradiated with radiation having a first energy distribution. The first image acquisition unit 31 includes a first detection unit 311 and a first image correction unit 312.
[0018] The first detection unit 311 is located on the upstream side in the X-ray irradiation direction Z. The first detection unit 311 detects a range of a first energy distribution of the X-rays irradiated from the irradiator 2 and transmitted through the object S, and generates image data. Here, a method of generating image data by the first detection unit 311 will be described. The first detection unit 311 includes a scintillator layer (not shown) corresponding to the first energy distribution and a line sensor (not shown) corresponding to the first energy distribution. The scintillator layer corresponding to the first energy distribution extends along the inspection direction X, and converts an image of the X-rays having the first energy distribution into an optical image. The line sensor corresponding to the first energy distribution has a plurality of pixels arranged along the inspection direction X, and generates image data based on the optical image converted by the scintillator layer. The image data acquired by the line sensor is composed of a collection of luminance data acquired for each pixel of the line sensor.
[0019] The first image correction unit 312 amplifies and corrects the luminance data generated for each pixel by the first detection unit 311, and obtains amplified and corrected image data. The first image correction unit 312 includes an amplifier 31a, an A / D conversion unit 31b, a correction circuit 31c, and an output interface 31d. The amplifier 31a amplifies the luminance data of the X-ray image having the first energy distribution. The A / D conversion unit 31b A / D converts the luminance data of the X-ray image having the first energy distribution amplified by the amplifier 31a. The correction circuit 31c performs a predetermined correction process on the luminance data converted by the A / D conversion unit 31b. The output interface 31d outputs the image data corrected by the correction circuit 31c to the outside as a first image.
[0020] The second image acquisition unit 32 acquires a second image of the article S captured in a state where the article S is irradiated with radiation having a second energy distribution. The second image acquisition unit 32 includes a second detection unit 321 and a second image correction unit 322.
[0021] The second detection unit 321 is disposed downstream of the first detection unit 311 in the X-ray irradiation direction Z. The second detection unit 321 detects a range of a second energy distribution of the X-rays irradiated from the irradiator 2 and transmitted through the article S and the first detection unit 311, and generates image data. Here, a method of generating image data by the second detection unit 321 will be described. The second detection unit 321 includes a scintillator layer (not shown) corresponding to the second energy distribution and a line sensor (not shown) corresponding to the second energy distribution. The scintillator layer corresponding to the second energy distribution extends along the inspection direction X and converts an image of the X-rays having the second energy distribution into an optical image. The line sensor corresponding to the second energy distribution has a plurality of pixels arranged along the inspection direction X, and acquires image data based on the optical image converted by the scintillator layer. The image data acquired by the line sensor is composed of a collection of luminance data acquired for each pixel of the line sensor. In the first detection unit 311 and the second detection unit 321, the line sensor of the first detection unit 311 and the line sensor of the second detection unit 321 may be configured in one sensor. The line sensor may be a multi-line sensor having a plurality of pixels in the conveying direction, a TDI (Time Delay Integration) scan X-ray camera, or a two-dimensional X-ray camera. A direct conversion type sensor that does not use a scintillator, and an observation type camera that uses an optical lens by lens coupling of a scintillator may also be used. A structure having a plurality of sensors corresponding to a plurality of radiation sources may also be used. In addition, the range of the first energy distribution detected by the first detection unit 311 and the range of the second energy distribution detected by the second detection unit 321 may partially overlap each other. In addition, although it has been described that the second detection unit 321 is disposed downstream of the first detection unit 311 in the X-ray irradiation direction Z, the configurations of the first detection unit 311 and the second detection unit 321 are not limited to this embodiment. For example, the first detection unit 311 and the second detection unit 321 may be arranged in parallel (so as to be located upstream and downstream in the transport direction Y).
[0022] The second image correction unit 322 amplifies and corrects the luminance data generated for each pixel by the second detection unit 321, and obtains amplified and corrected image data. The second image correction unit 322 includes an amplifier 32a, an A / D conversion unit 32b, a correction circuit 32c, and an output interface 32d. The amplifier 32a amplifies the luminance data of the X-ray image having the second energy distribution. The A / D conversion unit 32b A / D converts the luminance data of the X-ray image having the second energy distribution amplified by the amplifier 32a. The correction circuit 32c performs a predetermined correction process on the luminance data converted by the A / D conversion unit 32b. The output interface 32d outputs the luminance data corrected by the correction circuit 32c to the outside as a second image.
[0023] The control unit 33 controls the detection timing of X-rays in the first detection unit 311 and the detection timing of X-rays in the second detection unit 321. Specifically, the control unit 33 controls the detection timing of the first detection unit 311 and the detection timing of the second detection unit 321 so that X-rays that have passed through one divided range in the article S are detected by both the first image acquisition unit 31 and the second image acquisition unit 32. The control of the detection timing by the control unit 33 reduces image misalignment that occurs between the first image and the second image in the subtraction process described below.
[0024] In addition, the control unit 33 controls the first detection unit 311 and the second detection unit 321 to correspond to each other in the inspection direction X of the article S by using a known calibration member or the like. The corresponding positions of the first detection unit 311 and the second detection unit 321 are shifted toward both ends in the inspection direction X due to the irradiator 2 being a point light source and the X-rays spreading radially. Therefore, the calibration control of the control unit 33 corrects the positional shift between the first detection unit 311 and the second detection unit 321, and reduces the image shift between the first image and the second image. Through the above process, the first image and the second image are acquired so that the pixels of the first image correspond to the pixels of the second image.
[0025] The radiation inspection device 5 is a data processing device that generates a difference image in which a region corresponding to a substance to be removed has been removed. The radiation inspection device 5 may be a computing device such as a personal computer, a microcomputer, a cloud server, or a smart device. The radiation inspection device 5 is connected to the image acquisition device 3 so that they can communicate data with each other.
[0026] The radiation inspection device 5 accepts a selection input of a region of interest, which is a region corresponding to the substance to be removed, in either the first image or the second image, and executes a correction process to eliminate the influence of the thickness of the article S. The radiation inspection device 5 then executes a subtraction process to take the difference between the pixel values of the logarithmically transformed first image and the pixel values of the logarithmically transformed second image, thereby generating a difference image in which the region corresponding to the substance to be removed has been removed. The radiation inspection device 5 then outputs the difference image to a display (not shown) included in the output device 105 described below.
[0027] In addition, the radiological inspection device 5 performs a process of evaluating whether or not the region of interest has been appropriately selected before the process of generating the difference image. Depending on the acquired first or second image, the boundaries between the multiple parts that constitute the article S may be difficult to recognize. In that case, depending on the state of region selection, regions other than the region corresponding to the substance to be removed in the first or second image may also be selected and input, and the effect of the thickness of the substance may not be appropriately eliminated, and the image of the substance may not be appropriately eliminated from the difference image. Therefore, in the radiological inspection device 5, a process of evaluating whether or not the region of interest has been appropriately selected is performed before the process of generating the difference image, so that the image of the substance to be eliminated can be appropriately eliminated in the difference image. In the following description, "eliminating the effect of the thickness of the substance to be eliminated in the image" may be simply explained as "eliminating the thickness of the substance." [Radiation inspection equipment configuration]
[0028] Next, a detailed configuration of the radiation inspection device 5 will be described. As shown in Fig. 3, the radiation inspection device 5 includes, as functional components, an acquisition unit 51, a selection reception unit 52, a thickness correction function calculation unit 53, a representative data calculation unit 54, an evaluation coefficient calculation unit 55, a notification unit 56, a difference image generation unit 57, and a storage unit 58. As shown in Fig. 4, the computer system 20 including the radiation inspection device 5 physically includes a CPU (Central Processing Unit) 101 which is a processor, a RAM (Random Access Memory) 102 which is a recording medium, a ROM (Read Only Memory) 103, a communication module 104, an output device 105, an input device 106, and the like. The above-mentioned functional units of the radiation inspection device 5 are realized by reading the radiation inspection program according to this embodiment onto hardware such as the CPU 101 and the RAM 102, and operating the communication module 104, the output device 105, and the input device 106 under the control of the CPU 101, and reading and writing data in the RAM 102, and reading data from the ROM 103. That is, the radiation inspection program of this embodiment causes the computer system 20 to function as an acquisition unit 51, a selection reception unit 52, a thickness correction function calculation unit 53, a representative data calculation unit 54, an evaluation coefficient calculation unit 55, a notification unit 56, a difference image generation unit 57, and a storage unit 58. The CPU may be a standalone hardware unit or may be implemented in a programmable logic such as an FPGA as a software processor. The RAM and ROM may also be standalone hardware units or may be built into a programmable logic such as an FPGA.
[0029] Hereinafter, detailed functions of each functional unit of the radiation inspection apparatus 5 will be described using a specific example of the image (first image, second image) P1 shown in FIG. 5 and FIG.
[0030] The acquisition unit 51 acquires a first image and a second image, which are images of X-rays transmitted through the entire object S, from the image acquisition device 3. The image P1 shown in Figs. 5 and 6 is an example of the first image or the second image acquired by the first image acquisition unit 31. The image P1 captures the object S in a state where it is irradiated with radiation having a first energy distribution or a second energy distribution. The object S in this specific example is a general-purpose connector, and has a housing S1 and a plurality of terminals S2. The housing S1 is made of resin and includes a plurality of cavities. Each terminal S2 is disposed in each cavity of the housing S1 and is made of metal. Each terminal S2 is disposed in (or occupies) a part of the cavity.
[0031] The selection receiving unit 52 receives a selection input of a region of interest. The region of interest is a region of the first image or the second image corresponding to a substance that eliminates the effect of thickness, among regions corresponding to the article S. The selection input of the region of interest is performed, for example, by displaying the first image or the second image on a display included in the output device 105, and by a user of the radiation inspection apparatus 5 selecting the region of interest on the display via a mouse or the like included in the input device 106.
[0032] In the example shown in FIG. 5, only the region of image P1 corresponding to the resin of the housing S1 is selected as the region of interest R. That is, in the example shown in FIG. 5, only the material (resin including the cavity portion excluding the terminal S2) that eliminates the effect of thickness in the image shown in image P1 is correctly selected as the region of interest R. At this time, it is preferable that the region of interest includes various thickness information. On the other hand, in the example shown in FIG. 6, the region of image P1 corresponding to the resin of the housing S1 and the terminal S2 are selected as the region of interest R. That is, in the example shown in FIG. 6, the material that eliminates the effect of thickness and other materials (metals) in the image shown in image P1 are selected as the region of interest R, and the region of interest R is not correctly selected.
[0033] The thickness correction function calculation unit 53, the representative data calculation unit 54, the evaluation coefficient calculation unit 55, and the notification unit 56 are components that realize a process of evaluating whether or not a region of interest has been appropriately selected, among the processes executed by the radiation inspection apparatus 5. Below, an overview of the process of evaluating whether or not a region of interest has been appropriately selected will be described together with an explanation of each component.
[0034] The thickness correction function calculation unit 53 calculates a thickness correction function that eliminates the influence of the thickness of the material. The thickness correction function is a function that represents the relationship between the first pixel value and the second pixel value. Here, a method for calculating the thickness correction function will be described. First, the thickness correction function calculation unit 53 performs logarithmic conversion on the first image and the second image acquired by the acquisition unit 51. Here, the logarithmic conversion is not essential, but it is preferable to perform the logarithmic conversion in creating an approximation function.
[0035] Then, the thickness correction function calculation unit 53 specifies the first pixel value and the second pixel value. The first pixel value is the pixel value of each of the first pixels in the region corresponding to the region of interest in the logarithmically converted first image. The second pixel value is the pixel value of each of the second pixels corresponding to the first pixels in the logarithmically converted second image. The second pixels corresponding to the first pixels here refer to each pixel in the region corresponding to the region of interest in the second image. That is, the thickness correction function calculation unit 53 performs logarithmic conversion on the first image and the second image, and specifies each pixel value in the region corresponding to the region of interest in each of the logarithmically converted first image and the second image. The timing of the logarithmic conversion process of the first image and the second image is not particularly limited, and may be performed, for example, immediately after acquisition by the acquisition unit 51, or may be performed, for example, after selection acceptance of the region of interest by the selection acceptance unit 52.
[0036] Then, the thickness correction function calculation unit 53 calculates the thickness correction function by approximating the relationship between the first pixel value and the second pixel value corresponding to the first pixel value. The relationship between the first pixel value and the second pixel value corresponding to the first pixel value means the relationship between the pixel value of one first pixel and the pixel value of the second pixel corresponding to the one first pixel. Specifically, for example, when the pixel value of the pixel at the top left corner of the region of interest in the first image is the first pixel value, the pixel value of the pixel at the top left corner of the region of interest in the second image is the second pixel value corresponding to the first pixel value.
[0037] In this embodiment, the thickness correction function calculation unit 53 calculates coefficients of an approximation curve by approximating a plurality of sample points on two-dimensional coordinates with an N-th order approximation curve (N is a natural number equal to or greater than 1) using, for example, the least squares method. In this way, the thickness correction function calculation unit 53 calculates a thickness correction function that is a function that represents the approximation curve. The plurality of sample points are points that represent a first pixel value and a second pixel value, and are, for example, points plotted on a two-dimensional coordinate system with the first pixel value on the X-axis and the second pixel value on the Y-axis.
[0038] Graph G1 shown in FIG. 7 is a graph in which a plurality of sample points D1 and an approximation curve C1 are plotted on a two-dimensional coordinate system. The horizontal axis (X axis) of graph G1 indicates the first pixel value, and the vertical axis (Y axis) of the graph indicates the second pixel value. Each sample point D1 is a sample point calculated corresponding to the region of interest R shown in FIG. 5, and represents a first pixel value and a second pixel value corresponding to the first pixel value. The number of sample points D1 is equal to the number of pixels in the first image (and the number of pixels in the second image) corresponding to the region of interest R. The approximation curve C1 is a quadratic thickness correction function (y=ax 2 +bx+c).
[0039] Graph G2 shown in FIG. 8 is a graph in which a plurality of sample points D2 and an approximation curve C2 are represented on a two-dimensional coordinate system. As in FIG. 7, the horizontal axis (X axis) of the graph indicates the first pixel value, and the vertical axis (Y axis) of the graph indicates the second pixel value. Each sample point D2 is a sample point calculated corresponding to the region of interest R shown in FIG. 6. As shown in FIG. 8, the plurality of sample points D2 are distributed over a wide range compared to the sample points D1 (see FIG. 7) calculated corresponding to the correctly selected region of interest R. This is because the plurality of sample points D2 are calculated based on the region of interest R that is composed of not only pixels corresponding to the resin in the image P1 but also pixels of the portion other than the resin (the portion corresponding to the terminal S2 in FIG. 6). The approximation curve C2 is a quadratic thickness correction function (y=ax 2 +bx+c). The curvature of the approximation curve C2 is larger than that of the approximation curve C1 (see FIG. 7) of the thickness correction function calculated corresponding to the correctly selected region of interest R.
[0040] The representative data calculation unit 54 calculates a plurality of representative data based on the first pixel values of the plurality of first pixels and the second pixel values of the plurality of second pixels corresponding to the plurality of first pixels. The representative data is a combination of a first representative value and a second representative value. The first representative value is a representative pixel value of the logarithmically converted first image, and the second representative value is a representative pixel value of the logarithmically converted second image. In this embodiment, the representative data is calculated by setting one first pixel value as the first representative value and setting the average value of one or more second pixel values corresponding to the one first pixel value as the second representative value. Specifically, when one first pixel value is set as the representative value and there is one second pixel value corresponding to the one first pixel, the second pixel value is set as the second representative value. When there are a plurality of second pixel values corresponding to the one first pixel, the average value of the second pixel values is set as the second representative value. The representative data calculation section 54 calculates a plurality of representative data by repeating the process of selecting the first pixel value (first representative value) at a predetermined interval, such as 0.01, and calculating the second representative value.
[0041] Graph G3 shown in Fig. 9 corresponds to graph G1 shown in Fig. 7, and is a graph in which an approximation curve C1 and a plurality of representative data F1 are represented on a two-dimensional coordinate system. The horizontal axis (X axis) of graph G3 indicates the first pixel value, and the vertical axis (Y axis) of graph G3 indicates the second pixel value. Each representative data F1 is a combination of a first representative value, which is each first pixel value corresponding to a correctly selected region of interest R (see Fig. 5), and a second representative value, which is the average value of the second pixel values corresponding to each first pixel value.
[0042] Graph G4 shown in Fig. 10 corresponds to graph G2 shown in Fig. 8, and is a graph in which an approximation curve C2 and a plurality of representative data F2 are plotted on a two-dimensional coordinate system. The horizontal axis (X axis) of graph G4 indicates the first pixel value, and the vertical axis (Y axis) of graph G4 indicates the second pixel value. The representative data F2 is a combination of a first representative value, which is each of the first pixel values in the incorrectly selected region of interest R (see Fig. 6), and a second representative value, which is the average value of the second pixel values corresponding to each of the first pixel values.
[0043] The evaluation coefficient calculation unit 55 calculates an evaluation coefficient based on the correlation between the thickness correction function and the calculated representative data. In this embodiment, the evaluation coefficient is a coefficient of determination calculated based on the thickness correction function and the representative data F1. The coefficient of determination is calculated by dividing the residual variation of all the representative data F1 by the total variation and subtracting the value from 1. Therefore, the closer the coefficient of determination is to 1, the higher the degree of match. In the example shown in FIG. 5 where the region of interest is correctly selected, the coefficient of determination calculated based on the thickness correction function and the representative data F1 (see FIG. 9) is 0.988. On the other hand, in the example shown in FIG. 6 where the region of interest is not correctly selected, the coefficient of determination calculated based on the thickness correction coefficient and the representative data F2 (see FIG. 10) is 0.889. In other words, the degree of match between the representative data F1 and the approximation curve C1 is higher than the degree of match between the representative data F2 and the approximation curve C2, and when the region of interest is correctly selected, a higher evaluation coefficient is calculated compared to when the region of interest is not correctly selected.
[0044] When the evaluation coefficient is equal to or less than a predetermined evaluation coefficient threshold, the notification unit 56 outputs error information regarding the selection input of the region of interest. The evaluation coefficient threshold is a predetermined value that is the lowest limit of the coefficient of determination that is output when the region of interest is correctly selected. The evaluation coefficient threshold is set to, for example, 0.9. As an example, the notification unit 56 outputs error information including at least one of a character and a figure indicating that the selected region is not correctly selected to a display included in the output device 105. In the example shown in FIG. 5 in which the region of interest is correctly selected, the calculated coefficient of determination is 0.988, so the notification unit 56 determines that the evaluation coefficient is not equal to or less than the evaluation coefficient threshold and does not output error information to the display. On the other hand, in the example shown in FIG. 6 in which the region of interest is not correctly selected, the calculated coefficient of determination is 0.889, so the notification unit 56 determines that the evaluation coefficient is equal to or less than the evaluation coefficient threshold and outputs error information regarding the selection input of the region of interest to the display.
[0045] If the evaluation coefficient is equal to or smaller than a predetermined evaluation coefficient threshold, the selection receiving unit 52 receives a selection input of a region of interest different from the region of interest. This allows, for example, a user of the radiation inspection apparatus 5 to reselect the region of interest on the display via a mouse or the like included in the input device 106.
[0046] The differential image generating unit 57 is a component that realizes subtraction processing that eliminates the influence of the thickness of the article S, among the processing executed by the radiation inspection apparatus 5. Below, the function of the differential image generating unit 57 will be described, along with an overview of the subtraction processing that eliminates the influence of the thickness of the article S.
[0047] When the notification unit 56 determines that the evaluation coefficient is not equal to or less than the evaluation coefficient threshold, the difference image generating unit 57 generates a difference image based on the logarithmically transformed first image and second image. The difference image is an image in which a region corresponding to a substance to be removed has been removed. The difference image generating unit 57 generates a difference image by executing a subtraction process. Specifically, as the subtraction process, the difference image generating unit 57 subtracts a value calculated by applying a thickness correction function to each pixel value of the logarithmically transformed first image from each pixel value of the logarithmically transformed second image. Alternatively, the difference image generating unit 57 subtracts a value calculated by applying a thickness correction function to each pixel value of the logarithmically transformed second image from each pixel value of the logarithmically transformed first image. Alternatively, the difference image generating unit 57 subtracts each pixel value of the logarithmically transformed second image from a value calculated by applying a thickness correction function to each pixel value of the logarithmically transformed first image. Alternatively, the difference image generating unit 57 subtracts each pixel value of the logarithmically transformed first image from a value calculated by applying a thickness correction function to each pixel value of the logarithmically transformed second image. This generates a difference image, which is an image in which the material corresponding to the region of interest in the first image or the second image has been removed. Then, the difference image generating unit 57 outputs the difference image to a display (not shown) included in the output device 105.
[0048] The difference image P2 shown in FIG. 11 is a difference image generated by the difference image generating unit 57 in an example where the region of interest R is correctly selected (see FIGS. 5, 7, and 9). In the difference image P2, the resin portion of the housing S1 is properly removed. On the other hand, the difference image P3 shown in FIG. 12 is a difference image generated when the difference image generating unit 57 executes the difference image generation process even if the evaluation coefficient is equal to or less than the evaluation coefficient threshold value in an example where the region of interest R is not correctly selected (see FIGS. 6, 8, and 10). In the difference image P3, the resin portion of the housing S1 is not properly removed.
[0049] The memory unit 58 stores the first image and the second image acquired by the acquisition unit 51, data indicating the region of interest input to the selection receiving unit 52, the thickness correction function calculated by the thickness correction function calculation unit 53, the representative data calculated by the representative data calculation unit 54, the evaluation coefficient calculated by the evaluation coefficient calculation unit 55, the difference image generated by the difference image generation unit 57, etc. [Processing of radiological inspection equipment]
[0050] Next, a radiological inspection method, which is an operation method of the radiological inspection apparatus 5 according to this embodiment (processing executed by the radiological inspection apparatus 5), will be described for each process with reference to the flowchart in Fig. 13. Fig. 13 is a flowchart showing the radiological inspection method according to this embodiment. The processing executed by the radiological inspection apparatus 5 is performed, for example, every time an item S is detected by the image acquisition device 3.
[0051] First, in S11, the acquisition unit 51 acquires a first image and a second image from the image acquisition device 3 (first step).
[0052] Next, in S12, the selection receiving unit 52 receives a selection input of the region of interest (second step).
[0053] Next, in S13, the thickness correction function is calculated by the thickness correction function calculation unit 53 (third step). Specifically, first, the first pixel values of the first pixels in the region corresponding to the region of interest in the logarithmically converted first image and the second pixel values of the second pixels corresponding to the first pixels in the logarithmically converted second image are specified. Then, the first pixel values of the first pixels and the second pixel values of the second pixels corresponding to the first pixels are approximated by a quadratic approximation curve on two-dimensional coordinates by the least squares method or the like, thereby calculating coefficients of the approximation curve. As a result, the thickness correction function, which is a function representing the approximation curve, is calculated.
[0054] Next, in S14, the representative data calculation unit 54 calculates a plurality of representative data based on the first pixel values of the plurality of first pixels and the second pixel values of the plurality of second pixels corresponding to the plurality of first pixels (fourth step). The representative data is a combination of a first representative value and a second representative value. The representative data is calculated by the representative data calculation unit 54 by setting one first pixel value as the first representative value and setting the average value of one or more second pixel values corresponding to the one first pixel value as the second representative value.
[0055] Next, in S15, the evaluation coefficient calculation unit 55 calculates an evaluation coefficient based on the correlation between the thickness correction function and the calculated representative data (fifth step). In this embodiment, the evaluation coefficient is a coefficient of determination calculated based on the thickness correction function and the calculated representative data.
[0056] Next, in S16, the notification unit 56 determines whether the evaluation coefficient is equal to or less than the evaluation coefficient threshold. If it is determined that the evaluation coefficient is equal to or less than the evaluation coefficient threshold (S16: YES), in S17, the notification unit 56 outputs error information related to the selection input of the region of interest to the display of the output device 105 (sixth step), and the process returns to S12. Then, in S12, the selection receiving unit 52 receives a selection input of a region of interest different from the region of interest selected in S12 of the previous process (seventh step).
[0057] On the other hand, if it is determined that the evaluation coefficient is not equal to or less than the evaluation coefficient threshold value (S16: NO), in S18, the difference image generating unit 57 generates a difference image in which the material corresponding to the region of interest in the first image or the second image has been removed, and the difference image is displayed on the display of the output device 105. Then, the radiation inspection process for the article S is completed. [Action and Effects]
[0058] According to the above-described radiological inspection device 5, a selection input of a region of interest in the first image or the second image is received, and a first pixel value of each of a plurality of first pixels in a region corresponding to the region of interest in the logarithmically transformed first image and a second pixel value of each of a plurality of second pixels corresponding to the plurality of first pixels in the logarithmically transformed second image are specified. Then, a thickness correction function is calculated by approximating the relationship between the first pixel value and the second pixel value corresponding to the first pixel value, and a plurality of representative data are calculated, each of which is a combination of a first representative value that is a representative value of the first pixel value and a second representative value that is a representative value of the second pixel value. Then, an evaluation coefficient is calculated based on the correlation between the thickness correction function and the plurality of representative data. Thereby, it is possible to evaluate whether or not the region of interest corresponds to a single substance based on the evaluation coefficient. Therefore, according to this embodiment, it is possible to evaluate whether or not the region of interest is appropriately selected.
[0059] In particular, in the radiation inspection device 5, the thickness correction function calculation unit 53 performs logarithmic conversion on the first image and the second image, and the representative data calculation unit 54 calculates representative data that is a combination of a first representative value that is a representative pixel value of the logarithmically converted first image and a second representative value that is a representative pixel value of the logarithmically converted second image. This makes it possible to more appropriately calculate the thickness correction function that expresses the relationship between the first pixel value and the second pixel value.
[0060] In the first embodiment, in the third step, the thickness correction function calculation unit 53 calculates the thickness correction function by approximating, on two-dimensional coordinates, a plurality of sample points that represent the first pixel values of the plurality of first pixels and the second pixel values of the plurality of second pixels corresponding to the plurality of first pixels. This makes it possible to reliably calculate the thickness correction function.
[0061] In the first embodiment, in the third step, the thickness correction function calculation unit 53 calculates coefficients of the approximation curve by approximating a plurality of sample points on two-dimensional coordinates with an N-order approximation curve. This makes it possible to calculate a thickness correction function that accurately represents the correspondence relationship between the first pixel value and the second pixel value corresponding to the first pixel value, thereby making it possible to calculate a highly reliable evaluation coefficient.
[0062] In the first embodiment, the representative data calculation unit 54 calculates the representative data in the fourth step by taking one first pixel value as the first representative value and taking the average value of one or more second pixel values corresponding to the one first pixel value as the second representative value. The first pixel value and the second pixel value may be pixel values corresponding to pixels of a substance from which the effect of thickness is to be eliminated, and may also be pixel values corresponding to pixels having noise contained in the first image and the second image. In the first embodiment, by calculating the average value of one or more first pixel values or second pixel values, the effect of noise on the calculation of the evaluation coefficient can be suppressed, and therefore the evaluation coefficient can be calculated with high accuracy.
[0063] In the first embodiment, the evaluation coefficient is a coefficient of determination, which makes it possible to calculate a highly reliable evaluation coefficient.
[0064] In the first embodiment, in the sixth step, if the evaluation coefficient is equal to or smaller than the predetermined evaluation coefficient threshold, the notification unit 56 outputs error information regarding the selection input of the region of interest. This makes it possible to prompt the user to reselect an appropriate region of interest.
[0065] In the first embodiment, when the evaluation coefficient is equal to or smaller than a predetermined evaluation coefficient threshold, the selection receiving unit 52 receives a selection input of a region of interest different from the region of interest selected in the previous selection receiving process in the seventh step. This allows the user to reselect a region of interest corresponding to a single substance, making it possible to obtain an image from which the image of the substance corresponding to the region of interest has been appropriately removed. [Second embodiment] [Radiation inspection equipment configuration]
[0066] Next, a second embodiment of the radiological inspection device 5 will be described. In the second embodiment, the notification unit 56 of the radiological inspection device 5 performs the following process as a process of outputting error information to a display included in the output device 105. That is, when the evaluation coefficient is equal to or less than a predetermined evaluation coefficient threshold, the notification unit 56 outputs a non-corresponding region as error information by superimposing it on the first image or the second image. The non-corresponding region is a region in the first image or the second image that does not correspond to a substance that eliminates the effect of thickness. For example, the notification unit 56 displays a non-corresponding region selected from the region of interest due to a user's operation error or the like on the first image or the second image.
[0067] The functional configuration of the notification unit 56 will be described below using an example of approximation using a quadratic approximation curve on a two-dimensional coordinate system with the first pixel value on the X-axis and the second pixel value on the Y-axis. First, the notification unit 56 outputs error information when the evaluation coefficient is equal to or less than the evaluation coefficient threshold. Then, the notification unit 56 calculates an error distance, which is the distance between the pixel value estimated from the approximation curve and the actual pixel value (the pixel value at each sample point).
[0068] Here, a method for calculating the error distance will be described. First, the notification unit 56 uses a thickness correction function for each first pixel value of a plurality of first pixels to specify a difference value between a second pixel value corresponding to the first pixel value and an actual second pixel value corresponding to the first pixel value. Specifically, the notification unit 56 calculates, for one first pixel value, a second pixel value estimated from an approximation curve (the equation of the approximation curve is y=ax 2 +bx+c) and the actual second pixel value corresponding to one of the first pixel values. Then, the notification unit 56 squares the difference value and takes the square root to calculate the error distance between the second pixel value estimated from the approximation curve and the actual second pixel value.
[0069] Then, the notification unit 56 determines a non-corresponding region in the first image or the second image that does not correspond to a material that eliminates the influence of thickness based on the error distance. Specifically, the notification unit 56 determines whether or not a pixel corresponding to the one first pixel value (and a pixel having a second pixel value corresponding to the one first pixel value) corresponds to a material that eliminates the influence of thickness by comparing the error distance with an error threshold. The notification unit 56 performs the process from calculating the difference value to determining whether or not the pixel corresponds to a material that eliminates the influence of thickness for all the first pixel values. Note that, when the second pixel value is the X-axis and the first pixel value is the Y-axis, the error distance between the first pixel value estimated from the approximation curve and the actual first pixel value may be calculated for one second pixel value.
[0070] The smaller the difference value between the second pixel value estimated by the approximation curve and the actual second pixel value, the higher the probability that the pixel corresponding to one first pixel value (and the second pixel value corresponding to the one first pixel value) corresponds to a material that eliminates the effect of thickness, and the larger the difference value, the lower the probability that the pixel corresponds to a material that eliminates the effect of thickness. The error threshold is a threshold for determining whether the difference value is a value indicating a pixel corresponding to a material that eliminates the effect of thickness. The error threshold is a predetermined value, and is calculated, for example, by the following method. First, before the start of the radiological inspection of the item S, such as when the radiological inspection device 5 is started, the acquisition unit 51 captures a first image or a second image of the item S. Then, the selection receiving unit 52 receives a selection input of the region of interest. At this time, the user selects a region of interest that intentionally includes a region corresponding to a material that eliminates the effect of thickness and a non-corresponding region in the first image or the second image. Then, the user determines an error threshold so that only the error distance in the pixel corresponding to the non-corresponding region is determined. In a method of determining the error threshold, for example, first, a user inputs an arbitrary candidate threshold, which is a candidate for the error threshold, into the computer system 20 via the input device 106. Then, image information (described in detail later) based on a comparison between the error distance in each first pixel value and the candidate threshold is displayed on the display. When the image information includes and displays not only a non-corresponding region but also a region corresponding to a substance that eliminates the effect of thickness, the user re-inputs the candidate threshold and the above process is repeated. When the image information displays only a region that does not correspond to a substance that eliminates the effect of thickness as a non-corresponding region, the user determines the candidate threshold as the error threshold. In this way, an appropriate candidate threshold is determined as the error threshold.
[0071] Then, the notification unit 56 outputs image information superimposed on the first image or the second image, in which a non-corresponding region that is a region of the first image or the second image that does not correspond to the material that eliminates the effect of thickness is indicated, as error information. Specifically, the notification unit 56 displays a pixel corresponding to the error distance superimposed on the first image or the second image. Image information (error information) I shown in FIG. 14 is an example in which a non-corresponding region E is superimposed on the image P1 (see FIGS. 5 and 6), which is the first image. In the example shown in FIG. 14, a region of the image P1 that corresponds to the resin (a material that eliminates the effect of thickness) of the housing S1 and a region that does not correspond to the resin (a region corresponding to the terminal S2 in FIG. 14) are selected as the region of interest. Therefore, image information I in which a portion of the terminal S2 that is a region of the selected region that does not correspond to the material that eliminates the effect of thickness is displayed on the image P1 as a non-corresponding region E is displayed on the display. Examples of the display form of the non-corresponding region E include a region with a red frame and a region filled in red. [Processing of radiological inspection equipment]
[0072] Next, a radiological inspection method, which is an operation method of the radiological inspection apparatus 5 according to this embodiment (processing executed by the radiological inspection apparatus 5), will be described for each process with reference to the flowchart of Fig. 15. Fig. 15 is a flowchart showing the radiological inspection method according to this embodiment.
[0073] The processes of S21 to S27 are the same as the processes of S11 to S17 shown in FIG. 13. After the processes of S21 to S27, in S28, the notifying unit 56 calculates an error distance between the second pixel value calculated using the thickness correction function (in other words, estimated from the approximation curve) and the actual second pixel value for each first pixel value (sixth step). Next, in S29, the notifying unit 56 compares the error distance for each first pixel value with an error threshold. As a result, a pixel corresponding to an error distance larger than the error threshold is determined as a non-corresponding region that does not correspond to the material that eliminates the effect of thickness (sixth step). Next, in S30, the notifying unit 56 displays (outputs) image information in which the non-corresponding region is superimposed on the first image or the second image as error information, and the process returns to S22 (sixth step). The process of S31 is the same as the process of S18 shown in FIG. 13. The process of notifying an error (S27) and the process of displaying image information (S30) may be performed simultaneously. That is, in the radiological inspection method, the process of notifying an error and the display of image information may be performed simultaneously. [Action and Effects]
[0074] The above-described radiation inspection device 5 of the second embodiment has the same effect as the above-described first embodiment. In the sixth step, the radiation inspection device 5 of the second embodiment calculates an error distance, which is a distance between a second pixel value corresponding to the first pixel value and an actual second pixel value corresponding to the first pixel value, using a thickness correction function for each first pixel value of a plurality of first pixels, and determines a non-corresponding area, which is an area in the first image or the second image that does not correspond to a substance that eliminates the effect of thickness, based on the error distance, and outputs the non-corresponding area superimposed on the first image or the second image as error information. This makes it easier for the user to select an appropriate region of interest. That is, the radiation inspection device 5 of the second embodiment can support the user to reselect an appropriate region of interest by displaying not only a notice of an error but also the above-described image information on the display. [Third embodiment] [Radiation inspection equipment configuration]
[0075] Next, a radiation inspection apparatus 5 according to a third embodiment will be described. In the third embodiment, a thickness correction function calculation unit 53 included in the radiation inspection apparatus 5 performs the following process. That is, the thickness correction function calculation unit 53 calculates a thickness correction function by approximating the multiple sample points on two-dimensional coordinates while suppressing the influence of outliers at the multiple sample points representing the first pixel values of the multiple first pixels and the second pixel values of the multiple second pixels corresponding to the multiple first pixels.
[0076] Specifically, in this embodiment, the thickness correction function calculation unit 53 calculates the thickness correction function by implementing the M-estimation method among the robust estimation methods. First, the thickness correction function calculation unit 53 estimates an approximation curve by approximating a plurality of sample points on two-dimensional coordinates using the least squares method or the like. Then, the thickness correction function calculation unit 53 performs weighting according to the distance between the second pixel value estimated by the approximation curve and the actual second pixel value for each first pixel value, and recalculates the approximation curve. Specifically, the thickness correction function calculation unit 53 reduces the weighting as the distance between the second pixel value estimated by the approximation curve and the actual second pixel value increases. The thickness correction function calculation unit 53 repeats the process from weighting to recalculation of the approximation curve multiple times. As a result, the influence of outliers at the multiple sample points is suppressed to determine the approximation curve, and the thickness correction function, which is a function representing the approximation curve, is calculated. [Processing of radiological inspection equipment]
[0077] Next, a radiological inspection method, which is an operation method of the radiological inspection apparatus 5 according to this embodiment (processing executed by the radiological inspection apparatus 5), will be described for each process with reference to the flowchart of Fig. 16. Fig. 16 is a flowchart showing the radiological inspection method according to this embodiment.
[0078] The processes of S41 and S42 are the same as the processes of S11 and S12 shown in FIG. 13. After the processes of S41 and S42, in S43, the thickness correction function calculation unit 53 calculates the thickness correction function by approximating the multiple sample points on two-dimensional coordinates while suppressing the influence of outliers at the multiple sample points (third step). Specifically, the thickness correction function calculation unit 53 uses the M estimation method of the above-mentioned robust estimation method to repeat the calculation of the approximation curve multiple times by the weighted least squares method, thereby determining the approximation curve. As a result, the thickness correction function, which is a function representing the approximation curve, is calculated. The processes of S44 to S48 are the same as the processes of S14 to S18 shown in FIG. 13. [Action and Effects]
[0079] The above-described radiation inspection apparatus 5 of the third embodiment achieves the same effects as those of the first embodiment. In addition, in the third step, the radiation inspection apparatus 5 of the third embodiment calculates a thickness correction function by approximating the multiple sample points on two-dimensional coordinates while suppressing the influence of outliers at multiple sample points representing the first pixel values of the multiple first pixels and the second pixel values of the multiple second pixels corresponding to the multiple first pixels. This allows the multiple sample points to be approximated with high accuracy, and therefore allows the evaluation coefficient to be calculated with high accuracy.
[0080] In particular, in the radiation inspection apparatus 5 of the third embodiment, M-estimation, which is one of the robust estimation methods, is used as a method for suppressing the influence of outliers at a plurality of sample points. This makes it possible to reliably perform highly accurate approximation of a plurality of sample points. [Variations]
[0081] The present disclosure is not limited to the above-described embodiments. For example, the approximation curve approximating the multiple sample points is not limited to the second order. For example, the thickness correction function calculation unit 53 may approximate the multiple sample points on a two-dimensional coordinate system by an N-order (N is a natural number equal to or greater than 1) approximation curve. That is, the approximation curve approximating the multiple sample points may be of third order or higher. This makes it possible to calculate a thickness correction function that accurately represents the correspondence between the first pixel value and the second pixel value corresponding to the first pixel value, thereby making it possible to calculate a highly reliable evaluation coefficient. Furthermore, the approximation of the multiple sample points may be performed by a first order approximation line.
[0082] Here, an example of the result of the correction process performed on the article S, which is a food product, by the radiation inspection apparatus 5 of the first embodiment will be shown.
[0083] FIG. 17 shows an example of the first image of the article S. The article S to be processed is a part of a plurality of lined up dumplings S3, which includes a plurality of aluminum pieces S4. FIG. 18 shows a graph of an approximation curve C3. The approximation curve C3 is a curve calculated by the radiological inspection device 5 through first-order approximation when the region of interest R is selected in the region including the dumplings S3 that do not include the aluminum pieces S4 on the first image shown in FIG. 17. Specifically, in FIG. 18, (a) shows a graph G5 showing the approximation curve C3 together with the sample points D3, and (b) shows a graph G6 showing the approximation curve C3 together with the representative data F3. In this case, the coefficient of determination is calculated to be 0.990, which is a relatively high value. FIG. 19 also shows a difference image P4 generated by the radiological inspection device 5 in this case, and a foreign object detection result image P5 obtained by thresholding the difference image. Thus, in the difference image P4 and the result image P5, the influence of the thickness of the dumpling S3 is eliminated to some extent, and the aluminum piece S4 part H1 is detected, but there are erroneous detection parts H2 and parts that should have been detected but were not detected H3. In particular, the thick parts of the dumpling S3 appear white in the difference image P4, and these parts tend not to be completely eliminated.
[0084] FIG. 20 shows a graph of the approximation curve C4. The approximation curve C4 is a curve calculated by the radiological inspection device 5 through quadratic approximation when the region of interest R is selected in the region including the dumpling S3 not including the aluminum piece S4 on the first image shown in FIG. 17. Specifically, in FIG. 20, (a) shows a graph G7 showing the approximation curve C4 together with the sample point D3, and (b) shows a graph G8 showing the approximation curve C4 together with the representative data F3. In this case, the coefficient of determination is calculated to be 0.998, which is a higher value than the case of linear approximation. In addition, FIG. 21 shows a difference image P6 generated by the radiological inspection device 5 in this case, and a foreign object detection result image P7 obtained by subjecting the difference image to threshold processing. Thus, in the difference image P6 and the result image P7, the influence of the thickness of the dumpling S3 can be totally eliminated at all brightness levels, and the location H1 of the aluminum piece S4 can be detected in its entirety.
[0085] These results reveal that, depending on the type of item S, a second-order approximation can more completely eliminate the effect of thickness in the difference image than a first-order approximation.
[0086] FIG. 22 shows a case where a region including an aluminum piece S4 is mistakenly selected as the region of interest R on the first image of the same object S as in FIG. 17. FIG. 23 shows a graph of an approximation curve C5 calculated by quadratic approximation by the radiological inspection device 5 in this case. Specifically, in FIG. 23, (a) shows a graph G9 showing the approximation curve C5 together with the sample point D4, and (b) shows a graph G10 showing the approximation curve C5 together with the representative data F4. In this case, the coefficient of determination is calculated to be 0.988, which is a relatively low value compared to the coefficient of determination of 0.998 when the region of interest R is appropriately selected because it is inappropriate. FIG. 24 shows a difference image P8 generated by the radiological inspection device 5 in this case, and a foreign object detection result image P9 obtained by subjecting the difference image to threshold processing. As described above, in the difference image P8 and the result image P9, the difference images are generated with the same brightness for the dumpling S3 and the aluminum piece S4, and it can be seen that the aluminum piece S4 cannot be detected. The threshold value of the coefficient of determination differs depending on the object, and it is desirable to change the threshold value of the coefficient of determination depending on the object to be inspected, but the method of determining the threshold value is as described above.
[0087] In each of the above-described embodiments, the thickness correction function calculation unit 53 logarithmically converts the first image and the second image, and the representative data calculation unit 54 calculates the representative data that is a combination of the first representative value, which is a representative pixel value of the logarithmically converted first image, and the second representative value, which is a representative pixel value of the logarithmically converted second image. However, the first image and the second image do not have to be logarithmically converted.
[0088] In each of the above-described embodiments, for example, the relationship between the first pixel value and the second pixel value corresponding to the first pixel value may be calculated based on a LUT (Look Up Table).
[0089] Furthermore, for example, the evaluation coefficient may be a correlation coefficient, which also makes it possible to calculate a highly reliable evaluation coefficient.
[0090] Also, for example, the representative data may be calculated by setting one second pixel value as a second representative value and setting the average value of one or more first pixel values corresponding to the one second pixel value as a first representative value.
[0091] Furthermore, for example, the representative data may be calculated by setting one first pixel value as the first representative value and setting a median of one or more second pixel values corresponding to the one first pixel value as the second representative value, or by setting one second pixel value as the second representative value and setting a median of one or more first pixel values corresponding to the one second pixel value as the first representative value. By obtaining the median of one or more first pixel values or second pixel values, the effect of noise on the calculation of the evaluation coefficient can be suppressed, and the evaluation coefficient can be calculated with high accuracy.
[0092] Furthermore, the error information displayed by the notification unit 56 is not limited to the aspects of the above-mentioned embodiments. Furthermore, the radiation inspection apparatus 5 does not have to output error information related to the selection input of the region of interest.
[0093] The processing may also be performed using other robust estimation methods, such as RANSAC, the least median method, etc.
[0094] Furthermore, each process shown in the flowcharts of each of the above-mentioned radiation inspection methods (FIGS. 13, 15, and 16) may be omitted as appropriate. Furthermore, the order of each process may be changed as appropriate.
[0095] In the method and device according to the above-mentioned embodiment, the first pixel value is a pixel value of each of a plurality of first pixels in a region of the logarithmically transformed first image corresponding to the region of interest, the second pixel value is a pixel value of each of a plurality of second pixels corresponding to the plurality of first pixels in the logarithmically transformed second image, and each of the plurality of representative data may be a combination of a first representative value which is a representative pixel value of the logarithmically transformed first image and a second representative value which is a representative pixel value of the logarithmically transformed second image. This makes it possible to more appropriately calculate a thickness correction function which expresses the relationship between the first pixel value and the second pixel value.
[0096] In the above method and device, the thickness correction function may be calculated by approximating a plurality of sample points representing the first pixel values of the plurality of first pixels and the second pixel values of the plurality of second pixels corresponding to the plurality of first pixels on a two-dimensional coordinate system, thereby making it possible to reliably calculate the thickness correction function.
[0097] In the above method and device, the coefficients of the approximation curve may be calculated by approximating a plurality of sample points on two-dimensional coordinates with an N-th order approximation curve (N is a natural number equal to or greater than 1). This makes it possible to calculate a thickness correction function that accurately represents the correspondence relationship between the first pixel value and the second pixel value corresponding to the first pixel value, thereby making it possible to calculate a highly reliable evaluation coefficient.
[0098] In the above method and device, each of the representative data may be calculated by setting one first pixel value as the first representative value and setting the average value of one or more second pixel values corresponding to the one first pixel value as the second representative value, or by setting one second pixel value as the second representative value and setting the average value of one or more first pixel values corresponding to the one second pixel value as the first representative value. The first pixel value and the second pixel value may be pixel values corresponding to pixels of a substance from which the effect of thickness is to be eliminated, or may be pixel values corresponding to pixels having noise contained in the first image and the second image. In the above method and device, the effect of noise on the calculation of the evaluation coefficient can be suppressed by calculating the average value of one or more first pixel values or second pixel values, so that the evaluation coefficient can be calculated with high accuracy.
[0099] In the above method and device, each of the representative data may be calculated by setting one first pixel value as the first representative value and setting a median of one or more second pixel values corresponding to the one first pixel value as the second representative value, or by setting one second pixel value as the second representative value and setting a median of one or more first pixel values corresponding to the one second pixel value as the first representative value. The first pixel value and the second pixel value may be pixel values corresponding to pixels of a substance from which the effect of thickness is to be eliminated, or may be pixel values corresponding to pixels having noise contained in the first image and the second image. In the above method and device, the effect of noise on the calculation of the evaluation coefficient can be suppressed by calculating the median of one or more first pixel values or second pixel values, so that the evaluation coefficient can be calculated with high accuracy.
[0100] In the above method and apparatus, the evaluation coefficient may be a coefficient of determination, which makes it possible to calculate the evaluation coefficient with high reliability.
[0101] In the above method and apparatus, the evaluation coefficient may be a correlation coefficient, which makes it possible to calculate a highly reliable evaluation coefficient.
[0102] In the above method and apparatus, if the evaluation coefficient is equal to or less than a predetermined evaluation coefficient threshold, error information regarding the selection input of the region of interest may be output, thereby urging the user to reselect an appropriate region of interest.
[0103] In the above method and device, an error distance is calculated for each first pixel value of a plurality of first pixels using a thickness correction function, which is a distance between a second pixel value corresponding to the first pixel value and an actual second pixel value corresponding to the first pixel value, and a non-corresponding region that is a region in the first image or the second image that does not correspond to a substance that eliminates the effect of thickness is determined based on the error distance, and the non-corresponding region may be superimposed on the first image or the second image and output as error information. This makes it easier for a user to select an appropriate region of interest.
[0104] In the above method and apparatus, when the evaluation coefficient is equal to or less than a predetermined evaluation coefficient threshold, a selection input of a region of interest different from the region of interest may be accepted, whereby the user can reselect a region of interest corresponding to a single substance, thereby making it possible to obtain an image in which an image of the substance corresponding to the region of interest has been appropriately removed.
[0105] In the above method and device, the thickness correction function may be calculated by approximating the sample points on two-dimensional coordinates while suppressing the influence of outliers at the sample points representing the first pixel values of the first pixels and the second pixel values of the second pixels corresponding to the first pixels. This allows the approximation of the sample points to be performed with high accuracy, and therefore allows the evaluation coefficient to be calculated with high accuracy. [Explanation of symbols]
[0106] 1...radiation inspection system, 2...irradiator (radiation source), 3...image acquisition device (detector), 5...radiation inspection device, 20...computer system, 101...CPU (processor), C1, C2...approximation curve, D1, D2...sample point, E...non-corresponding area, I...image information (error information), P1...first image, second image, R...area of interest, S...item, F1, F2...representative data.
Claims
1. a first step of acquiring a first image of an article captured in a state where the article is irradiated with radiation having a first energy distribution, and a second image of the article captured in a state where the article is irradiated with radiation having a second energy distribution different from the first energy distribution; A second step of accepting a selection input of a region of interest, which is a region corresponding to a material for which an effect of thickness is eliminated, among a region corresponding to the article in the first image or the second image; a third step of logarithmically transforming the first image and the second image, identifying first pixel values of a plurality of first pixels in a region of the logarithmically transformed first image corresponding to the region of interest, and second pixel values of a plurality of second pixels corresponding to the plurality of first pixels in the logarithmically transformed second image, and calculating a thickness correction function that represents a relationship between the first pixel values and the second pixel values by approximating the relationship between the first pixel values and the second pixel values corresponding to the first pixel values, the thickness correction function being a function that eliminates the influence of the thickness of the material; a fourth step of calculating a plurality of representative data, each of which is a combination of a first representative value that is a representative pixel value of the first image and a second representative value that is a representative pixel value of the second image, based on the first pixel values of the first pixels and the second pixel values of the second pixels corresponding to the first pixels; A fifth step of calculating an evaluation coefficient based on a correlation between the thickness correction function and the calculated representative data; Equipped with In the fourth step, each of the plurality of representative data is One of the first pixel values is set as the first representative value, and an average value of one or more of the second pixel values corresponding to the one of the first pixel values is set as the second representative value, or one of the second pixel values is set as the second representative value, and an average value of one or a plurality of the first pixel values corresponding to the one of the second pixel values is set as the first representative value, Radiological testing methods.
2. A first step of acquiring a first image of an object captured in a state where the object is irradiated with radiation having a first energy distribution, and a second image of the object captured in a state where the object is irradiated with radiation having a second energy distribution different from the first energy distribution; A second step of receiving a selection input of a region of interest, which is a region corresponding to a material for which an effect of thickness is eliminated, among a region corresponding to the article in the first image or the second image; a third step of logarithmically transforming the first image and the second image, identifying first pixel values of a plurality of first pixels in a region of the logarithmically transformed first image corresponding to the region of interest, and second pixel values of a plurality of second pixels corresponding to the plurality of first pixels in the logarithmically transformed second image, and calculating a thickness correction function that represents a relationship between the first pixel values and the second pixel values by approximating the relationship between the first pixel values and the second pixel values corresponding to the first pixel values, the thickness correction function being a function that eliminates the influence of the thickness of the material; a fourth step of calculating a plurality of representative data, each of which is a combination of a first representative value that is a representative pixel value of the first image and a second representative value that is a representative pixel value of the second image, based on the first pixel values of the first pixels and the second pixel values of the second pixels corresponding to the first pixels; A fifth step of calculating an evaluation coefficient based on a correlation between the thickness correction function and the calculated representative data; Equipped with In the fourth step, each of the plurality of representative data is One of the first pixel values is set as the first representative value, and a median value of one or more of the second pixel values corresponding to the one of the first pixel values is set as the second representative value, or one of the second pixel values is set as the second representative value, and a median of one or more of the first pixel values corresponding to the one of the second pixel values is set as the first representative value, Radiological testing methods.
3. the first pixel values are pixel values of the first pixels in a region of the first image that has been logarithmically transformed and that corresponds to the region of interest; the second pixel values are pixel values of the second pixels corresponding to the first pixels in the second image that has been logarithmically transformed, Each of the plurality of representative data is a combination of the first representative value, which is a logarithmically transformed representative pixel value of the first image, and the second representative value, which is a logarithmically transformed representative pixel value of the second image. The radiological inspection method according to claim 1 or 2.
4. In the third step, the thickness correction function is calculated by approximating, on a two-dimensional coordinate system, a plurality of sample points that represent the first pixel values of the plurality of first pixels and the second pixel values of the plurality of second pixels corresponding to the plurality of first pixels. The radiation inspection method according to any one of claims 1 to 3.
5. In the third step, the plurality of sample points are approximated on the two-dimensional coordinate system by an N-th order approximation curve (N is a natural number equal to or greater than 1) to calculate coefficients of the approximation curve. The radiological inspection method according to claim 4.
6. The evaluation coefficient is a coefficient of determination. The radiation inspection method according to any one of claims 1 to 5.
7. The evaluation coefficient is a correlation coefficient. The radiation inspection method according to any one of claims 1 to 5.
8. and a sixth step of outputting error information regarding the selection input of the region of interest when the evaluation coefficient is equal to or smaller than a predetermined evaluation coefficient threshold. The radiation inspection method according to any one of claims 1 to 7.
9. In the sixth step, Calculating an error distance, which is calculated using the thickness correction function for each of the first pixel values of the plurality of first pixels and is a distance between the second pixel value corresponding to the first pixel value and an actual second pixel value corresponding to the first pixel value; determining a non-corresponding region in the first image or the second image that does not correspond to a material that eliminates the effect of the thickness based on the error distance; outputting the error information by superimposing the non-corresponding region on the first image or the second image; The radiation inspection method according to claim 8.
10. and a seventh step of accepting a selection input of a region of interest different from the region of interest when the evaluation coefficient is equal to or smaller than a predetermined evaluation coefficient threshold. The radiation inspection method according to any one of claims 1 to 9.
11. In the third step, the thickness correction function is calculated by approximating a plurality of sample points on a two-dimensional coordinate system while suppressing an influence of an outlier at each of the first pixel values of the plurality of first pixels and each of the second pixel values of the plurality of second pixels corresponding to the plurality of first pixels. The radiation inspection method according to any one of claims 1 to 10.
12. At least one processor; the at least one processor: acquiring a first image of an article captured in a state where the article is irradiated with radiation having a first energy distribution, and a second image of the article captured in a state where the article is irradiated with radiation having a second energy distribution different from the first energy distribution; receiving a selection input of a region of interest, the region being a region corresponding to a material for which an effect of thickness is to be eliminated, from a region corresponding to the article in the first image or the second image; logarithmically transforming the first image and the second image, identifying first pixel values of a plurality of first pixels in a region of the logarithmically transformed first image corresponding to the region of interest, and second pixel values of a plurality of second pixels in the logarithmically transformed second image corresponding to the plurality of first pixels, and calculating a thickness correction function that is a function representing a relationship between the first pixel values and the second pixel values by approximating a relationship between the first pixel values and the second pixel values corresponding to the first pixel values, the thickness correction function eliminating an effect of a thickness of the material; calculating a plurality of representative data, each of which is a combination of a first representative value that is a representative pixel value of the first image and a second representative value that is a representative pixel value of the second image, based on the first pixel values of the first pixels and the second pixel values of the second pixels corresponding to the first pixels; Calculating an evaluation coefficient based on a correlation between the thickness correction function and the calculated representative data; Each of the plurality of representative data includes One of the first pixel values is set as the first representative value, and an average value of one or more of the second pixel values corresponding to the one of the first pixel values is set as the second representative value, or one of the second pixel values is set as the second representative value, and an average value of one or a plurality of the first pixel values corresponding to the one of the second pixel values is set as the first representative value, Radiation inspection equipment.
13. A method for controlling a computer system comprising: the at least one processor: acquiring a first image of an article captured in a state where the article is irradiated with radiation having a first energy distribution, and a second image of the article captured in a state where the article is irradiated with radiation having a second energy distribution different from the first energy distribution; receiving a selection input of a region of interest, the region being a region corresponding to a material for which an effect of thickness is to be eliminated, from a region corresponding to the article in the first image or the second image; logarithmically transforming the first image and the second image, identifying first pixel values of a plurality of first pixels in a region of the logarithmically transformed first image corresponding to the region of interest, and second pixel values of a plurality of second pixels in the logarithmically transformed second image corresponding to the plurality of first pixels, and calculating a thickness correction function that is a function representing a relationship between the first pixel values and the second pixel values by approximating a relationship between the first pixel values and the second pixel values corresponding to the first pixel values, the thickness correction function eliminating an effect of a thickness of the material; calculating a plurality of representative data, each of which is a combination of a first representative value that is a representative pixel value of the first image and a second representative value that is a representative pixel value of the second image, based on the first pixel values of the first pixels and the second pixel values of the second pixels corresponding to the first pixels; Calculating an evaluation coefficient based on a correlation between the thickness correction function and the calculated representative data; Each of the plurality of representative data includes One of the first pixel values is set as the first representative value, and a median value of one or more of the second pixel values corresponding to the one of the first pixel values is set as the second representative value, or one of the second pixel values is set as the second representative value, and a median of one or more of the first pixel values corresponding to the one of the second pixel values is set as the first representative value, Radiation inspection equipment.
14. the first pixel values are pixel values of the first pixels in a region of the first image that has been logarithmically transformed and that corresponds to the region of interest; the second pixel values are pixel values of the second pixels corresponding to the first pixels in the second image that has been logarithmically transformed, Each of the plurality of representative data is a combination of the first representative value, which is a logarithmically transformed representative pixel value of the first image, and the second representative value, which is a logarithmically transformed representative pixel value of the second image. The radiological inspection apparatus according to claim 12 or 13.
15. The at least one processor: calculating the thickness correction function by approximating, on a two-dimensional coordinate system, a plurality of sample points that represent the first pixel values of the plurality of first pixels and the second pixel values of the plurality of second pixels corresponding to the plurality of first pixels; The radiological inspection apparatus according to any one of claims 12 to 14.
16. The at least one processor: approximating the plurality of sample points on the two-dimensional coordinate system with an N-th order (N is a natural number equal to or greater than 1) approximation curve to calculate coefficients of the approximation curve; The radiological inspection apparatus according to claim 15.
17. The evaluation coefficient is a coefficient of determination. The radiological inspection apparatus according to any one of claims 12 to 16.
18. The evaluation coefficient is a correlation coefficient. The radiological inspection apparatus according to any one of claims 12 to 16.
19. The at least one processor: outputting error information regarding the selection input of the region of interest when the evaluation coefficient is equal to or smaller than a predetermined evaluation coefficient threshold value; The radiological inspection apparatus according to any one of claims 12 to 18.
20. The at least one processor: Calculating an error distance, which is calculated using the thickness correction function for each of the first pixel values of the plurality of first pixels and is a distance between the second pixel value corresponding to the first pixel value and an actual second pixel value corresponding to the first pixel value; determining a non-corresponding region in the first image or the second image that does not correspond to a material that eliminates the effect of the thickness based on the error distance; outputting the error information by superimposing the non-corresponding region on the first image or the second image; 20. The radiological inspection apparatus of claim 19.
21. The at least one processor: accepting a selection input of a region of interest different from the region of interest when the evaluation coefficient is equal to or smaller than a predetermined evaluation coefficient threshold; The radiological inspection apparatus according to any one of claims 12 to 20.
22. The at least one processor: calculating the thickness correction function by approximating the plurality of sample points on a two-dimensional coordinate system while suppressing the influence of outliers at the plurality of sample points representing the first pixel values of the plurality of first pixels and the second pixel values of the plurality of second pixels corresponding to the plurality of first pixels; The radiological inspection apparatus according to any one of claims 12 to 21.
23. A radiological inspection apparatus according to any one of claims 12 to 22, a radiation source that irradiates the article with radiation having the first energy distribution and radiation having the second energy distribution; a detector that detects radiation irradiated from the radiation source, transmitted through the article, and having the first energy distribution, and radiation irradiated from the radiation source, transmitted through the article, and having the second energy distribution; A radiation inspection system comprising:
24. Computer, a first step of acquiring a first image of an article captured in a state where the article is irradiated with radiation having a first energy distribution, and a second image of the article captured in a state where the article is irradiated with radiation having a second energy distribution different from the first energy distribution; A second step of accepting a selection input of a region of interest, which is a region corresponding to a material for which an effect of thickness is to be eliminated, among a region corresponding to the article in the first image or the second image; a third step of logarithmically transforming the first image and the second image, identifying first pixel values of a plurality of first pixels in a region of the logarithmically transformed first image corresponding to the region of interest, and second pixel values of a plurality of second pixels in the logarithmically transformed second image corresponding to the plurality of first pixels, and calculating a thickness correction function that represents a relationship between the first pixel values and the second pixel values by approximating the relationship between the first pixel values and the second pixel values corresponding to the first pixel values, the thickness correction function being a function that eliminates the influence of the thickness of the material; a fourth step of calculating a plurality of representative data, each of which is a combination of a first representative value that is a representative pixel value of the first image and a second representative value that is a representative pixel value of the second image, based on the first pixel values of the first pixels and the second pixel values of the second pixels corresponding to the first pixels; and a fifth step of calculating an evaluation coefficient based on a correlation between the thickness correction function and the calculated representative data; In the fourth step, each of the plurality of representative data is One of the first pixel values is set as the first representative value, and an average value of one or more of the second pixel values corresponding to the one of the first pixel values is set as the second representative value, or one of the second pixel values is set as the second representative value, and an average value of one or a plurality of the first pixel values corresponding to the one of the second pixel values is set as the first representative value, Radiology testing program.
25. A computer comprising: a first step of acquiring a first image of an article captured in a state where the article is irradiated with radiation having a first energy distribution, and a second image of the article captured in a state where the article is irradiated with radiation having a second energy distribution different from the first energy distribution; A second step of accepting a selection input of a region of interest, which is a region corresponding to a material for which an effect of thickness is to be eliminated, among a region corresponding to the article in the first image or the second image; a third step of logarithmically transforming the first image and the second image, identifying first pixel values of a plurality of first pixels in a region of the logarithmically transformed first image corresponding to the region of interest, and second pixel values of a plurality of second pixels in the logarithmically transformed second image corresponding to the plurality of first pixels, and calculating a thickness correction function that represents a relationship between the first pixel values and the second pixel values by approximating the relationship between the first pixel values and the second pixel values corresponding to the first pixel values, the thickness correction function being a function that eliminates the influence of the thickness of the material; a fourth step of calculating a plurality of representative data, each of which is a combination of a first representative value that is a representative pixel value of the first image and a second representative value that is a representative pixel value of the second image, based on the first pixel values of the first pixels and the second pixel values of the second pixels corresponding to the first pixels; and a fifth step of calculating an evaluation coefficient based on a correlation between the thickness correction function and the calculated representative data; In the fourth step, each of the plurality of representative data is One of the first pixel values is set as the first representative value, and a median value of one or more of the second pixel values corresponding to the one of the first pixel values is set as the second representative value, or one of the second pixel values is set as the second representative value, and a median of one or more of the first pixel values corresponding to the one of the second pixel values is set as the first representative value, Radiology testing program.
Citation Information
Patent Citations
Method and apparatus for x-ray image pickup as well as medium with recorded x-ray image pickup control program
JP2000121579A
X-ray inspection device
JP2012073056A
Radiography device, radiography method, and program
WO2019235087A1
