X-ray phase imaging device and image processing method
The X-ray phase imaging device and method improve contrast and visibility by selectively averaging phase contrast images based on brightness thresholds, addressing the challenge of low contrast in light-element objects.
Patent Information
- Application Number
- JP2023081946
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-05-18
- Publication Date
- 2024-11-28
AI Technical Summary
Existing X-ray imaging technologies face challenges in improving contrast and visibility, particularly for objects made of light elements where phase contrast methods struggle to distinguish features like voids due to low absorption rates.
An X-ray phase imaging device and method that involves taking multiple phase contrast images, calculating average and median brightness values, and selectively averaging images based on a threshold to enhance contrast by making bright areas brighter and dark areas darker.
Enhances image contrast and visibility by increasing the brightness difference between maximum and minimum values, effectively improving the identification of internal features like voids.
Smart Images

Figure 2024165610000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an X-ray phase imaging apparatus and an image processing method. [Background technology]
[0002] The invention described in Patent Document 1 discloses an invention related to an X-ray imaging device that acquires phase contrast information and absorption contrast information of a subject separately from X-rays detected by a detector, weights the phase contrast information, and adds the weighted information and the absorption contrast information to generate composite image information. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2013-208189 A Summary of the Invention [Problem to be solved by the invention]
[0004] It was desired to improve the contrast of the images taken by the phase contrast method.
[0005] Therefore, the present invention has been made to solve the above problems, and aims to provide an X-ray phase imaging device and an image processing method that improve the contrast and visibility of images taken by the phase contrast method. [Means for solving the problem]
[0006] An X-ray phase contrast imaging apparatus according to one embodiment of the present invention includes an X-ray source, a detector that detects X-rays irradiated from the X-ray source to an object, and an image processor that generates a phase contrast image of the object. The image processor includes a brightness calculation unit that calculates an average brightness obtained by averaging the first brightnesses for each pixel and a median value of the first brightnesses for each pixel using first brightnesses of a plurality of first images generated by an image signal output from the detector, a brightness setting unit that, for pixels in which the average brightness is higher than an arbitrarily set threshold, calculates the first brightnesses by averaging only the first images having the first brightnesses higher than the median value, and, for pixels in which the average brightness is lower than an arbitrarily set threshold, calculates the first brightnesses by averaging only the first images having the first brightnesses lower than the median value to set a second brightness for each pixel, and an image generation unit that creates a second image using the second brightnesses of each pixel obtained by the brightness setting unit.
[0007] An image processing method according to one aspect of the present invention is an image processing method for placing an object between an X-ray source and a detector, detecting X-rays irradiated from the X-ray source to the object, and generating a phase contrast image in an image processing unit using an image signal output from the detector, the image processing method including the steps of: irradiating the object with X-rays a plurality of times to generate a plurality of first images of the object; calculating an average luminance obtained by averaging first luminances for each pixel in the first images and a median value of the first luminances for each pixel using the plurality of first images; calculating an average luminance for pixels whose average luminance is higher than an arbitrarily set threshold value using only the first images having the first luminance higher than the median value, and calculating an average luminance for pixels whose average luminance is lower than an arbitrarily set threshold value using only the first images having the first luminance lower than the median value to set a second luminance for each pixel; and creating a second image using the second luminance for each pixel. Effect of the Invention
[0008] According to the present invention, it is possible to improve the contrast of an image captured by a phase contrast method and thereby improve visibility. [Brief description of the drawings]
[0009] [Figure 1] 1 is a schematic diagram of an X-ray phase imaging apparatus according to an embodiment of the present invention. [Diagram 2] FIG. 1 is an image of photography using the absorption contrast method. [Diagram 3] FIG. 1 is an image of photography using the absorption contrast method. [Figure 4] FIG. 1 is an image diagram of photography using a phase contrast method. [Diagram 5] 1 is a block diagram of an X-ray phase imaging apparatus according to an embodiment of the present invention. [Figure 6] 1 is a conceptual diagram for explaining steps of an image processing method according to an embodiment of the present invention; [Figure 7] 1 is a conceptual diagram for explaining steps of an image processing method according to an embodiment of the present invention; [Figure 8] 1 is a conceptual diagram for explaining steps of an image processing method according to an embodiment of the present invention; [Figure 9] 1 is a conceptual diagram for explaining steps of an image processing method according to an embodiment of the present invention; [Figure 10] 1 is a conceptual diagram for explaining steps of an image processing method according to an embodiment of the present invention; [Figure 11] FIG. 4 is a conceptual diagram of a phase contrast image (second image) generated by the image processing method according to the present embodiment. [Figure 12] FIG. 13 is an image of a phase contrast image (average image) obtained by only averaging. [Figure 13] 13 is a graph showing the luminance on line AA of each of the images shown in FIGS. 11 and 12. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, an X-ray phase imaging apparatus and an image processing method according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings. Note that the present invention is not limited to the following embodiments, and can be appropriately modified and implemented without changing the gist thereof.
[0011] <Overall configuration diagram of the X-ray phase imaging apparatus 1> FIG. 1 is a schematic diagram of an X-ray phase imaging apparatus 1 according to the present embodiment. As shown in FIG. 1, the X-ray phase imaging apparatus 1 includes an X-ray source 2, a detector 4 that detects X-rays irradiated from the X-ray source 2 onto a subject 3, and an image processing unit 5 that generates an image.
[0012] The X-ray source 2 is not particularly limited as long as it is a device that generates X-rays, and an existing X-ray source (X-ray tube) can be applied. As shown in FIG. 1, X-rays are irradiated from the X-ray source 2 toward the subject 3.
[0013] The detector 4 is not particularly limited as long as it is a detector that can detect X-rays transmitted through the subject 3, and an existing device can be applied. For example, the detector 4 is a flat panel detector, and a plurality of conversion elements and a plurality of pixel electrodes are arranged in an array in the X direction and the Y direction at a pixel pitch. The detector 4 converts the detected X-rays into an electrical signal, reads the converted electronic signal as an image signal, and outputs the image signal to the image processing unit 5. The image processing unit 5 generates a phase contrast image based on the image signal output from the detector 4.
[0014] The X-ray phase imaging apparatus 1 of the present embodiment is characterized in that when a plurality of phase contrast images are taken, image processing is performed so that portions with high (bright) luminance become brighter and portions with low (dark) luminance become darker, taking advantage of the fact that the luminance varies from image to image. First, the background and the process leading to the X-ray phase imaging apparatus and the image processing method of the present embodiment will be described.
[0015] <Background to the X-ray phase imaging apparatus and image processing method according to the present embodiment> Conventionally, methods have been put into practical use for non-destructive inspection of the inside of opaque objects by utilizing the property of X-rays penetrating objects.
[0016] Fig. 2 shows an image captured by the absorption contrast method. As shown in Fig. 2, the subject 6 has a structure in which, for example, metal 8 is embedded inside an opaque resin material 7. In the absorption contrast method, when X-rays are passed through the subject 6, contrast is generated in the captured image by utilizing the magnitude of the amount of X-ray absorption (or transmission). This contrast makes it possible to determine whether or not cracks, etc., have occurred in the metal 8.
[0017] The absorption contrast method is effective for objects with large atomic numbers that easily absorb X-rays. Therefore, as shown in Figure 2, it is possible to inspect defects in metal 8.
[0018] On the other hand, the absorptance is small for subjects made of light elements such as hydrogen and carbon. For this reason, as shown in Figure 3, for example, for a subject 3 made of an opaque resin material 7 that has voids 3a inside, the difference in X-ray absorptance is small, making it difficult to obtain contrast and to distinguish the voids 3a inside the subject 3.
[0019] The phase contrast method is a method for photographing objects for which it is difficult to obtain contrast. As shown in Figure 4, the phase contrast method uses the phase shift (refraction of X-rays) that occurs when X-rays pass through a subject 3 to photograph the object. As shown in Figure 4, the phase shift differs between the area where X-rays pass through voids 3a and the area where there are no voids 3a, improving visibility somewhat compared to the absorption contrast method, but the issue of low contrast remains.
[0020] As a result of extensive research, the inventors have succeeded in improving the contrast of an image by capturing multiple images of a subject and selecting the images to be used for the averaging so that bright areas become brighter and dark areas become darker when averaging the brightness of each pixel.
[0021] <Configuration of the image processing unit and image processing method according to this embodiment> 5 is a block diagram of the X-ray phase imaging apparatus 1 in this embodiment. As shown in FIG. 5, the image processing unit 5 includes an image generating unit 10, a brightness calculating unit 11, a threshold setting unit 12, and a brightness setting unit 13.
[0022] Although the image processing unit 5 is not limited to this, it is configured, for example, as a part of a processor of a personal computer connected to the detector 4. Therefore, although the image processing unit 5 is illustrated in Fig. 5 as being divided into a plurality of functional units, these functional units do not need to be realized by clearly separated programs.
[0023] In the image generating section 10 shown in FIG. 5, a phase contrast image is generated based on the image signal acquired by the detector 4.
[0024] The luminance calculation unit 11 uses a plurality of captured phase contrast images to calculate an average luminance obtained by averaging the luminance for each pixel, and a median luminance value for each pixel.
[0025] The threshold setting unit 12 sets a threshold as a reference value for dividing a plurality of images used for averaging so that bright areas become brighter and dark areas become darker. The threshold can be set arbitrarily and is not limited. A specific example will be described later.
[0026] The luminance setting unit 13 selects images to be used for averaging and sets the luminance of each pixel, using the average luminance and median obtained by the luminance calculation unit 11 and the threshold value set by the threshold setting unit 12. Then, based on the luminance of each pixel that has been set, the image generation unit 10 creates a new image that is different from the multiple images initially obtained and the average image that is simply the averaging of multiple images.
[0027] Next, an image processing method according to the present embodiment will be described below. Figures 6 to 10 are conceptual diagrams showing steps of the image processing method.
[0028] The subject 3 is placed between the X-ray source 2 and the detector 4 (see FIG. 1), and P (multiple) phase contrast images 15 are taken as shown in FIG. 6 (step 1). Although the subject 3 is not limited, the image processing method of this embodiment is suitable for improving the contrast of a phase contrast image of the subject 3 having a void 3a therein as shown in FIG. 3 and FIG. 4. Although the number of images taken is not limited, it is preferable to take several tens of images in order to obtain an appropriate contrast improvement effect. At this time, the irradiation setting of the X-ray source 2 and the setting of the detector 4 are not changed. The subject 3 is also not changed and is fixed. In this embodiment, the number of images taken is 30. Multiple images can be taken continuously at short time intervals. Hereinafter, the multiple phase contrast images captured in the first step 1 will be referred to as "first images 15."
[0029] In the luminance calculation unit 11, the number of each image 15 is p (p=variable from 1 to P), the horizontal position in the image is x, and the vertical position is y, and the luminance of each pixel in each first image 15 is calculated (step 2). The luminance calculated in step 2 is referred to as the "first luminance." The first luminance of each pixel in each first image 15 can be expressed as i(p,x,y). Note that a "pixel" is the smallest unit of an image (pixel), and is indicated by a position in x,y coordinates.
[0030] Here, the range of pixels for which the first luminance is to be calculated may be the entire area of the first image 15, or may be an arbitrarily defined limited range within the image. In this embodiment, the entire area of the first image 15 is the measurement target.
[0031] Next, the luminance calculation unit 11 calculates an average luminance (i(p,x,y)) of each pixel of the P first images 15 calculated in step 2 by averaging the first luminance (i average (x, y)) is calculated (step 3). average (x, y) can be expressed by the following equation 1.
[0032]
number
[0033] Figure 7 shows the average brightness of each pixel (i average 1 is a conceptual diagram of one average image 16 generated from (x, y) In this embodiment, the average image 16 can be generated by the image generating unit 10.
[0034] Next, the brightness calculation unit 11 uses the P first images 15 captured to calculate the median (med(x, y)) of the first brightness (i(p, x, y)) at each pixel obtained in step 2 (step 4).
[0035] FIG. 8 shows the first luminance and median of each image 15 at an arbitrary pixel. The horizontal axis of FIG. 8 indicates the image number, and the vertical axis indicates the first luminance. The "median" refers to a value that is exactly in the middle when the data of the first luminance is rearranged in order of magnitude. In this embodiment, since the number (P) of the first images 15 is 30, the middle is between the 15th and 16th images. Therefore, the first luminance of the 15th image counting from the bottom and the first luminance of the 16th image are averaged to obtain the "median". When the number of images is an even number, there is no exact middle order, so the average value of the first luminances in the upper and lower orders is set as the "median". On the other hand, when the number of first images 15 taken is an odd number, there is an exact middle order, so the first luminance of that order is set as the "median".
[0036] Next, in the next step, the threshold setting unit 12 sets a threshold used for selecting images when averaging (step 5). In this embodiment, as shown in FIG. 9, the average brightness (i average The average value of (x, y) is set as the threshold. That is, the threshold can be calculated by the following formula 2.
[0037]
number
[0038] Next, for each pixel of the average image 16 obtained in step 3, the luminance setting unit 13 compares the average luminance i average (x, y)) of that pixel with the threshold value (threshold) obtained in step 5, and classifies the cases as follows to calculate the luminance of each pixel (step 6). Note that the luminance of each pixel calculated in this step 6 is referred to as "second luminance" to distinguish it from the first luminance obtained in step 2.
[0039] [When i average (x, y)>threshold] For pixels where the average luminance i average (x, y)) is higher than the threshold value (threshold), only the first image 15 having the first luminance (i(p, x, y)) higher than the median value (med(x, y)) is used for weighted averaging, and the second luminance at that pixel (x, y) is set.
[0040] FIG. 10 shows the first luminance and the median value of each image 15 at an arbitrary pixel. The horizontal axis in FIG. 10 is the image number, and the vertical axis indicates the first luminance. For example, when the average luminance i average (x, y))c is higher than the median value (med(x, y)) shown in FIG. 10, only the first luminance (i(p, x, y)) (the first luminance located in the range a) higher than the median value (med(x, y)) shown in FIG. 10 is used for weighted averaging to obtain the second luminance. In other words, the first luminance located in the range b is thinned out and weighted averaged.
[0041] [When i average (x, y)<threshold] For pixels where the average luminance i average (x, y)) is lower than the threshold value (threshold), only the first image 15 having the first luminance (i(p, x, y)) lower than the median value (med(x, y)) is used for weighted averaging, and the second luminance at that pixel (x, y) is set.
[0042] For example, the average luminance i of the average image 16 average10, only the first luminances (i(p,x,y)) (first luminances located in range b) that are lower than the median (med(x,y)) shown in Fig. 10 are averaged to obtain the second luminance. In other words, the first luminances located in range a are thinned out and averaged. Using the second luminance of each pixel obtained in step 6 above, the image generating unit 10 creates a second image (step 7).
[0043] In this example, a subject 3 containing a spherical void (diameter approximately 0.3 mm) in an epoxy resin was observed. Thirty images of the subject 3 were taken in step 1, and a second image was obtained by performing image processing based on steps 2 to 7. FIG. 11 shows the second image 17 obtained in this example, and FIG. 12 shows the average image 16 obtained in step 3 by simply averaging the entire image. As shown in FIGS. 11 and 12, the image contrast could be improved by the image processing method of this embodiment.
[0044] Fig. 13 shows the luminance distribution on line AA of each image shown in Fig. 11 and Fig. 12. In the second image shown in Fig. 13, the maximum luminance was 16625 and the minimum luminance was 158733. Thus, the luminance difference was 751. On the other hand, in the average image shown in Fig. 13, the maximum luminance was 16546 and the minimum luminance was 15966. Thus, the luminance difference was 581. Thus, according to the image processing method of this embodiment, the difference between the maximum and minimum luminance values can be increased by about 1.5 times compared to the conventional method.
[0045] <Effects of this embodiment> According to the X-ray phase contrast imaging apparatus and image processing method of the present embodiment, it is possible to improve the contrast and visibility of an image captured by the phase contrast method.
[0046] In addition, in this embodiment, when selecting the first image 15 to be used for the arithmetic average in step 6, the median value (med(x,y)) of the first luminance is used. This allows the same number of images to be averaged regardless of whether an image with high luminance (bright image) or an image with low luminance (dark image) is used. This makes it possible to suppress differences in the noise reduction effect in the second image created in step 7 using the second luminance of each pixel. For example, when considering the case where the average value is used instead of the median value of luminance, depending on the variation in luminance of the multiple first images, the average value may be high or low, which may cause a bias in the number of images to be used for the arithmetic average. In this case, noise may be large and the improvement effect of contrast may be small. For this reason, in this embodiment, the median value of luminance is used to select the images.
[0047] <Another embodiment> In the above step 5, the average value of the average brightness of all pixels of the average image 16 is set as the threshold, but a different threshold may be set. For example, the range for obtaining the threshold may be pixels within a limited range, not all pixels. In this case, x and y in the formula 2 are set to the size of each target range. In this way, the range of pixels for obtaining the average brightness can be set arbitrarily. For example, if it is desired to measure the presence or absence of a gap near the center of the subject, the threshold can be obtained in a limited range including the center and its surroundings, rather than all pixels. Alternatively, it is possible to set the threshold by multiplying the average brightness of all pixels by an arbitrary coefficient, or to directly set the numerical value of the threshold.
[0048] Although the disclosed embodiments and their advantages have been described in detail above, those skilled in the art may make various modifications, additions, and omissions without departing from the scope of the present invention as clearly defined in the claims. [Industrial Applicability]
[0049] According to the X-ray phase contrast imaging device and image processing method of the present invention, the contrast of an image captured by the phase contrast method can be improved, and the discernibility of voids and the like present inside the subject can be improved. The X-ray phase contrast imaging device of the present invention can be widely applied in fields ranging from industrial to medical. [Explanation of symbols]
[0050] 1: X-ray phase imaging device 2:X-ray source 3, 6: Subject 3a: void 4: Detector 5: Image processing section 7: Resin material 8: Metal 10: Image generation section 11: Luminance calculation section 12: Threshold setting section 13: Brightness setting section 15: First image 16: Average image 17: Second image
Claims
1. An X-ray phase imaging apparatus, comprising: An X-ray source; and a detector for detecting X-rays irradiated from the X-ray source to an object; an image processor for generating a phase contrast image of the object; the image processing unit includes a luminance calculation unit that calculates an average luminance obtained by averaging the first luminances of a plurality of first images generated by the image signals output from the detector for each pixel, and a median value of the first luminances for each pixel; a luminance setting unit which sets a second luminance for each pixel by averaging the first luminance using only the first images having the first luminance higher than the median for pixels having the average luminance higher than a threshold value which is arbitrarily set, and averaging the first luminance using only the first images having the first luminance lower than the median for pixels having the average luminance lower than a threshold value which is arbitrarily set; and an image generating unit that generates a second image by using the second luminance of each pixel obtained by the luminance setting unit.
1. An X-ray phase imaging apparatus comprising:
2. 2. The X-ray phase-shift imaging apparatus according to claim 1, wherein the image processing unit has a threshold setting unit that sets an average value of the average luminance of each pixel within an arbitrarily set range as a threshold value.
3. An image processing method for generating a phase contrast image by an image processing unit using an image signal output from the detector, the method comprising: placing an object between an X-ray source and a detector; detecting X-rays irradiated from the X-ray source to the object; and generating a phase contrast image by an image processing unit using an image signal output from the detector, the method comprising: irradiating the object with X-rays a plurality of times to generate a plurality of first images of the object; calculating an average luminance obtained by averaging the first luminances for each pixel in the first images using the plurality of first images, and a median value of the first luminances for each pixel; a step of calculating an average of the first luminances for pixels having the average luminance higher than an arbitrarily set threshold value, using only the first images having the first luminance higher than the median value, and calculating an average of the first luminances for pixels having the average luminance lower than an arbitrarily set threshold value, using only the first images having the first luminance lower than the median value, thereby setting a second luminance for each pixel; creating a second image using a second luminance for each pixel; 13. An image processing method comprising:
4. 4. The image processing method according to claim 3, wherein an average value of average luminance of each pixel within an arbitrarily set range is set as the threshold value.
Citation Information
Patent Citations
X-ray imaging apparatus and x-ray imaging method
JP2013208189A
