Image processing method, image processing device, and image processing program
The method calculates pixel-specific relationships and adjusts filter parameters to optimize noise removal in images with varying brightness, addressing the challenge of incomplete noise removal in conventional edge-preserving smoothing filters by ensuring effective noise removal across the entire image.
Patent Information
- Application Number
- PCT/JP2023/043532
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-22
- Filing Date
- 2023-12-05
- Publication Date
- 2024-09-26
AI Technical Summary
Conventional edge-preserving smoothing filters face challenges in effectively removing noise from images with various brightness distributions, leading to incomplete noise removal across the entire image.
An image processing method that calculates the relationship between brightness values and statistical values, such as standard deviation, for each pixel, and adjusts the parameters of an edge-preserving smoothing filter, like a bilateral filter, to optimize noise removal based on these values, ensuring effective noise removal across the entire image.
This approach allows for targeted noise removal corresponding to the statistical value of each pixel, effectively eliminating noise while preserving image edges, even in images with diverse brightness distributions.
Smart Images

Figure JP2023043532_26092024_PF_FP
Abstract
Description
Image processing method, image processing device, and image processing program
[0001] The present invention relates to an image processing method, an image processing device, and an image processing program.
[0002] Conventionally, bilateral filters, which are a type of edge-preserving smoothing filter, have been used as filters for removing noise from images (see, for example, Non-Patent Documents 1 and 2). In order to obtain a good image, the parameters of the bilateral filter are adjusted.
[0003] Akihiro Yoza and four others, "Parameter Determination of Bilateral Filters in Medical Images," 2019, IEEJ Transactions on Electronics, Information and Systems, Vol. 139, No. 9, pp. 1008-1014; Hayato Hashii and three others, "Parameter Tuning of Bilateral Filters Based on Hellinger Distance," 26th Fuzzy System Symposium, Hiroshima, September 13-15, 2010
[0004] Conventional noise reduction techniques using edge-preserving smoothing filters as described above tend to have difficulty in reducing noise across an entire image with a wide range of brightness distributions. Therefore, there is a need for effective noise reduction across the entire image.
[0005] The present disclosure has been made in consideration of the above-mentioned problems, and aims to provide an image processing method, an image processing device, and an image processing program that can effectively remove noise from the entire image.
[0006] An image processing method according to a first aspect of the embodiment includes a calculation step of calculating the relationship between luminance values in an image and statistical values of the luminance values; an acquisition step of acquiring an image to be processed; a setting step of specifying statistical values for each pixel of the image based on the luminance values and the relationship for each pixel of the image, and setting parameters of an edge-preserving smoothing filter for each pixel of the image based on the specified statistical values; and a processing step of processing the image using the edge-preserving smoothing filter whose parameters have been set for each pixel of the image.
[0007] Alternatively, an image processing device according to a second aspect of the embodiment includes a relationship calculation unit that calculates the relationship between luminance values in an image and statistical values of luminance values, and an image processing unit that processes the image to be processed, wherein the image processing unit identifies statistical values for each pixel of the image based on the luminance values and the relationship for each pixel of the image, sets parameters of an edge-preserving smoothing filter for each pixel of the image based on the identified statistical values, and processes the image using the edge-preserving smoothing filter whose parameters have been set for each pixel of the image.
[0008] Alternatively, an image processing program according to a third aspect of the embodiment causes a processor to function as a relationship calculation unit that calculates the relationship between luminance values in an image and statistical values of luminance values, and an image processing unit that processes the image to be processed, wherein the image processing unit identifies statistical values for each pixel of the image based on the luminance values and the relationship for each pixel of the image, sets parameters of an edge-preserving smoothing filter for each pixel of the image based on the identified statistical values, and processes the image using the edge-preserving smoothing filter whose parameters have been set for each pixel of the image.
[0009] According to any one of the first to third aspects, parameters suitable for the luminance value of each pixel of the image are set, and the image to be processed is processed using an edge-preserving smoothing filter that reflects the set parameters for each pixel. This allows noise removal processing that corresponds to the statistical value of the luminance values of each pixel of the image. As a result, noise can be effectively removed from the entire image.
[0010] According to any aspect of this embodiment, noise removal can be effectively achieved across the entire image.
[0011] FIG. 1 is a configuration diagram of an image acquisition device 1 that is an image processing device according to a first embodiment. FIG. 2 is a diagram showing the hardware configuration of a control device in FIG. 1. FIG. 3 is a block diagram showing the functional configuration of the control device in FIG. 1. FIG. 4 is a diagram showing an example of an X-ray image acquired by the image acquisition unit in FIG. 3. FIG. 5 is a flowchart showing the procedure of observation processing by the image acquisition device 1. FIG. 6 is a diagram showing an example of an X-ray image acquired by the image acquisition device 1 according to the first embodiment. FIG. 7 is a diagram showing an example of an X-ray image acquired by the image acquisition device 1 according to the first embodiment. FIG. 8 is a block diagram showing the functional configuration of an optical image processing system 1A that is an image processing device according to a second embodiment. FIG. 9 is a diagram showing an example of an optical image G1 acquired by the image acquisition unit in FIG. 8. FIG. 10 is a flowchart showing the procedure of observation processing by the optical image processing system 1A.
[0012] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In each drawing, the same or corresponding parts are designated by the same reference numerals, and duplicated explanations will be omitted. [First Embodiment]
[0013] FIG. 1 is a configuration diagram of an image acquisition device 1, which is an image processing device according to a first embodiment. As shown in FIG. 1 , the image acquisition device 1 irradiates an object F conveyed in a conveying direction TD with X-rays (energy rays, radiation) and acquires an X-ray image (radiation image) of the object F based on the X-rays transmitted through the object F. The image acquisition device 1 uses the X-ray image to perform foreign body inspection, weight inspection, and product inspection of the object F. Examples of applications include food inspection, baggage inspection, circuit board inspection, battery inspection, and material inspection. The image acquisition device 1 includes a belt conveyor (conveying means) 60, an X-ray irradiator (generation source) 50, an X-ray detection camera (imaging device, detection unit) 10, a control device 20, a display device 30, and an input device (input unit) 40 for various inputs. Note that, in the embodiment of the present disclosure, the image may be an image captured using energy rays transmitted through the object F. The energy ray may be, for example, radiation such as X-rays and gamma rays, or any of visible light, infrared rays, ultraviolet rays, and electron beams. In this embodiment, the image is a radiation image such as an X-ray image, but may be other images.
[0014] The belt conveyor 60 has a belt portion on which the object F is placed. By moving the belt portion in the conveying direction TD, the object F is conveyed in the conveying direction TD at a predetermined conveying speed. The conveying speed of the object F is, for example, 48 m / min. The belt conveyor 60 can change the conveying speed, for example, to 24 m / min, 96 m / min, or other speeds as needed. The belt conveyor 60 can also change the height position of the belt portion as needed to change the distance between the X-ray irradiator 50 and the object F. Note that examples of the object F conveyed by the belt conveyor 60 include various items, such as meat, seafood, agricultural products, confectionery, and other foods; rubber products such as tires; resin products, metal products, and mineral resources; waste; and electronic components and electronic circuit boards. The X-ray irradiator 50 is a device that irradiates (outputs) X-rays onto the object F as an X-ray source. The X-ray irradiator 50 is a point light source that irradiates diffused X-rays in a fixed irradiation direction over a predetermined angular range. The X-ray irradiator 50 is disposed above the belt conveyor 60 at a predetermined distance from the belt conveyor 60 so that the X-ray irradiation direction is directed toward the belt conveyor 60 and the diffused X-rays cover the entire width direction of the object F (a direction intersecting the conveying direction TD). The irradiation range of the X-ray irradiator 50 is a predetermined divided range in the length direction of the object F (a direction parallel to the conveying direction TD). As the object F is conveyed in the conveying direction TD on the belt conveyor 60, X-rays are irradiated over the entire length direction of the object F. The tube voltage and tube current of the X-ray irradiator 50 are set by the control device 20. The X-ray irradiator 50 irradiates the belt conveyor 60 with X-rays of a predetermined energy and radiation dose according to the set tube voltage and tube current. A filter 51 that transmits X-rays in a predetermined wavelength range is provided near the belt conveyor 60 side of the X-ray irradiator 50. The filter 51 is not necessarily required and may be omitted as appropriate.
[0015] The X-ray detection camera 10 detects X-rays that have passed through the object F among the X-rays irradiated onto the object F by the X-ray irradiator 50, and outputs a signal that detects an image based on the X-rays. The X-ray detection camera 10 is a dual-line X-ray camera in which two sets of X-ray detection components are arranged. In the image acquisition device 1 according to this embodiment, X-ray images are generated (detected) based on X-rays detected on each line (first line and second line) of the dual-line X-ray camera. Then, by performing averaging or addition processing on the two generated X-ray images, a clearer (brighter) image can be acquired with a smaller X-ray dose than when an X-ray image is generated based on X-rays detected on a single line. The X-ray detection camera 10 may be a single-line X-ray camera in which one set of X-ray detection components is arranged, a multi-line X-ray camera in which two or more sets of X-ray detection components are arranged, or a configuration in which two or more single-line X-ray cameras are arranged.
[0016] The X-ray detection camera 10 includes a filter 19, scintillators 11a and 11b, line scan cameras 12a and 12b, a sensor control unit 13, amplifiers 14a and 14b, AD converters 15a and 15b, correction circuits 16a and 16b, output interfaces 17a and 17b, and an amplifier control unit 18. The scintillator 11a, line scan camera 12a, amplifier 14a, AD converter 15a, correction circuit 16a, and output interface 17a are electrically connected to each other and constitute a first line. The scintillator 11b, line scan camera 12b, amplifier 14b, AD converter 15b, correction circuit 16b, and output interface 17b are electrically connected to each other and constitute a second line. The line scan camera 12a of the first line and the line scan camera 12b of the second line are arranged side by side along the transport direction TD. In the following, the configuration common to the first line and the second line will be described by taking the configuration of the first line as a representative.
[0017] The scintillator 11a is fixed on the line scan camera 12a by adhesive or the like, and converts X-rays that have passed through the object F into scintillation light. The scintillator 11a outputs the scintillation light to the line scan camera 12a. The filter 19 transmits X-rays in a predetermined wavelength range toward the scintillator 11a. The filter 19 is not necessarily required and may be omitted as appropriate.
[0018] The line scan camera 12a detects scintillation light from the scintillator 11a, converts it into an electric charge, and outputs the detected light as a detection signal (electrical signal) to the amplifier 14a. The line scan camera 12a has a plurality of line sensors arranged in parallel in a direction intersecting the transport direction TD. The line sensors are, for example, charge-coupled device (CCD) image sensors or complementary metal-oxide semiconductor (CMOS) image sensors, and include a plurality of photodiodes.
[0019] The sensor control unit 13 controls the line scan cameras 12a and 12b to repeatedly capture images at a predetermined detection period so that the line scan cameras 12a and 12b can capture images of X-rays that have passed through the same region of the object F. The predetermined detection period may be set common to the line scan cameras 12a and 12b based on, for example, the distance between the line scan cameras 12a and 12b, the speed of the belt conveyor 60, the distance between the X-ray irradiator 50 and the object F on the belt conveyor 60 (FOD (Focus Object Distance)), and the distance between the X-ray irradiator 50 and the line scan cameras 12a and 12b (FDD (Focus Detector Distance)). Alternatively, the predetermined period may be set individually for each of the line scan cameras 12a and 12b based on the pixel width of the photodiode in a direction perpendicular to the pixel array direction of the line sensor of each of the line scan cameras 12a and 12b. In this case, the difference (delay time) in the detection cycles between the line scan cameras 12a and 12b may be determined based on the distance between the line scan cameras 12a and 12b, the speed of the belt conveyor 60, the distance (FOD) between the X-ray irradiator 50 and the object F on the belt conveyor 60, and the distance (FDD) between the X-ray irradiator 50 and the line scan cameras 12a and 12b, and individual cycles may be set for each. The amplifier 14a amplifies the detection signal at a predetermined set amplification factor to generate an amplified signal and outputs the amplified signal to the AD converter 15a. The set amplification factor is set by the amplifier control unit 18. The amplifier control unit 18 sets the set amplification factors of the amplifiers 14a and 14b based on predetermined imaging conditions.
[0020] The AD converter 15a converts the amplified signal (voltage signal) output by the amplifier 14a into a digital signal and outputs it to the correction circuit 16a. The correction circuit 16a performs predetermined corrections, such as signal amplification, on the digital signal and outputs the corrected digital signal to the output interface 17a. The output interface 17a outputs the digital signal to the outside of the X-ray detection camera 10. Although the AD converter, correction circuit, and output interface are shown as being separate components in FIG. 1, they may also be integrated into one.
[0021] The control device 20 is a computer such as a PC (Personal Computer). The control device 20 generates an X-ray image based on digital signals (amplified signals) output from the X-ray detection camera 10 (more specifically, the output interfaces 17a and 17b). The control device 20 generates one X-ray image by averaging or adding the two digital signals output from the output interfaces 17a and 17b. The generated X-ray image is subjected to a noise removal process (described later) as an image to be processed, and then output to and displayed on the display device 30. The control device 20 also controls the X-ray irradiator 50, the amplifier control unit 18, and the sensor control unit 13. Note that the control device 20 in this embodiment is an independent device provided outside the X-ray detection camera 10, but may be integrated into the X-ray detection camera 10.
[0022] FIG. 2 shows the hardware configuration of the control device 20. As shown in FIG. 2, the control device 20 is physically a computer or the like including processors such as a CPU (Central Processing Unit) 101 and a GPU (Graphic Processing Unit) 105, storage media such as a RAM (Random Access Memory) 102 and a ROM (Read Only Memory) 103, a communication module 104, and an input / output module 106, all of which are electrically connected to one another. The control device 20 may include, as the input device 40 and the display device 30, a display, keyboard, mouse, touch panel display, or the like, or may include a data recording device such as a hard disk drive or semiconductor memory. The control device 20 may also be composed of multiple computers.
[0023] FIG. 3 is a block diagram showing the functional configuration of the control device 20. The control device 20 includes an image acquisition unit 201, a relational calculation unit 202, a noise map generation unit 203, a parameter setting unit (image processing unit) 204, a filter processing unit (image processing unit) 205, and an image storage unit 207. The functional units of the control device 20 shown in FIG. 3 are realized by loading a program (the image processing program of this embodiment) onto hardware such as the CPU 101, GPU 105, and RAM 102, thereby operating the communication module 104 and input / output module 106 under the control of the CPU 101 and GPU 105 and reading and writing data from and to the RAM 102. The CPU 101 and GPU 105 of the control device 20 execute the computer program to cause the control device 20 to function as the functional units of FIG. 3 and sequentially execute processes corresponding to the image processing method described below. The CPU 101 and GPU 105 may be standalone hardware, or either one of them may be used. The CPU 101 and GPU 105 may be implemented in programmable logic such as an FPGA, as in a software processor. The RAM and ROM may be standalone hardware or may be built into programmable logic such as an FPGA. All of the various data required to execute this computer program and all of the various data generated by the execution of this computer program are stored in built-in memory such as the ROM 103 and RAM 102, or in storage media such as a hard disk drive or solid-state drive.
[0024] The functions of each functional unit of the control device 20 will be described in detail below.
[0025] The image acquisition unit 201 acquires an image in which an energy ray is irradiated onto the object F and the energy ray transmitted through the object F is captured. Specifically, the image acquisition unit 201 generates an X-ray image based on a digital signal (amplified signal) output from the X-ray detection camera 10 (more specifically, the output interfaces 17a and 17b). The image acquisition unit 201 averages or adds the two digital signals output from the output interfaces 17a and 17b to generate one X-ray image, and stores the generated X-ray image in the image storage unit 207. FIG. 4 is a diagram showing an example of an X-ray image G1 acquired by the image acquisition unit 201.
[0026] The relationship calculation unit 202 calculates the relationship between the luminance values (hereinafter also referred to as pixel values) in the X-ray image acquired by the image acquisition unit 201 and the statistical value of the luminance values as follows. In this embodiment, a noise evaluation value that evaluates the spread of noise values, i.e., a noise sigma value that is the standard deviation of pixel values, is used as the statistical value of pixel values. Alternatively, the variance of pixel values may be used as the statistical value of pixel values.
[0027] That is, the relationship calculation unit 202 calculates, by simulation, first relationship data indicating the relationship between pixel values and the standard deviation of pixel values. The relationship between pixel values and the standard deviation of pixel values used in the simulation by the relationship calculation unit 202 is expressed by the following equations (1) to (4).
[0028] In the above formulas (1) to (3), the variable Noise is the standard deviation of pixel values, the variable Signal is the signal value of a pixel (pixel value), the constant F is the noise factor, and the variable E m is the average energy of the X-ray, the constant M is the multiplication factor by the scintillator, and the constant coeff Mis information indicating a multiplication factor adjustment coefficient for adjusting the multiplication factor of the scintillator, constant C is information indicating the coupling efficiency between the line scan camera 12a and the scintillator 11a or between the line scan camera 12b and the scintillator 11b in the X-ray detection camera 10, and constant Q is information indicating the quantum efficiency of the line scan camera 12a or the line scan camera 12b.
[0029] In the above formula (1), the constant cf is a conversion coefficient for converting pixel signal values into electric charges in the line scan camera 12 a or 12 b, and the constant R is information indicating the readout noise in the line scan camera 12 a or 12 b. The conversion coefficient cf and the readout noise R are determined by the gain setting in the line scan camera 12 a or 12 b.
[0030] In the above formula (1), the constant M Si is the multiplication factor of the line scan camera (silicon) when X-rays incident on the scintillator 11a or 11b are incident on the line scan camera 12a or 12b without being converted into visible light, and is a constant rate si is the silicon direct incidence rate, which indicates the probability that X-rays incident on the scintillator 11a or scintillator 11b will be incident on the line scan camera 12a or line scan camera 12b without being converted into visible light, and is the constant C S is information indicating a shading correction value, and the constant offset is information indicating a camera offset indicating the offset value of the line scan cameras 12a and 12b. In the above formula (1), the constant N is information indicating the number of sensors. The constant N may be information indicating, for example, the number of line scan cameras (number of lines), or may be information indicating the binning setting of the line scan camera 12a or the line scan camera 12b. In the above formula (1), coeff noise is a noise adjustment coefficient for adjusting noise. In the above equations (2) and (4), the constant F p is the blur coefficient, which indicates the blur, and the constant coeff Fpare pieces of information indicating a blur coefficient adjustment coefficient for adjusting a coefficient indicating blur.
[0031] Here, when using the above formulas (1) to (4), the relational calculation unit 202 substitutes the pixel value of each pixel of the X-ray image acquired by the image acquisition unit 201 for the variable Signal, and sets the other parameters in the above formulas (1) to (4) based on information input from the user accepted by the input device 40. Then, the relational calculation unit 202 acquires the variable Noise calculated using the above formulas (1) to (4) as a numerical value of the standard deviation of the pixel values of each pixel of the X-ray image. Note that the parameters in the above formulas (1) to (4) may be set based on information accepted from the user, or may be set by reading out data stored in the RAM 102, ROM 103, or the like within the control device 20 based on the accepted information.
[0032] For example, the relational calculation unit 202 receives the following information from the user: Measurement camera model Gain setting Number of binnings, number of lines Mean X-ray energy E m ・Camera offset offset ・Silicon direct generation rate rate si Shading correction value C S ・Noise adjustment coefficient coeff noise ・Multiplication factor adjustment coefficient coeff M ・Blur coefficient adjustment coefficient coeff Fp Then, based on the received information "measurement camera model", the relation calculation unit 202 calculates the scintillator multiplication factor M, the coupling efficiency C, the blur coefficient F, etc., which are stored in association with the "measurement camera model" from the control device 20. p , and quantum efficiency Q. For example, when the "measurement camera model" is "camera 1", the relation calculation unit 202 reads out the parameters such as the scintillator multiplication factor M=10, the coupling efficiency C=0.7, and the blur coefficient F p = 0.9 and quantum efficiency Q = 0.9 are read out, and if the "measurement camera model" is "camera 2", the parameters of scintillator multiplication factor M = 100, coupling efficiency C = 0.8, and blur coefficient F p= 0.8 and the quantum efficiency Q = 0.7. Similarly, the relational calculation unit 202 reads out parameters such as the conversion coefficient cf and the readout noise R, which are stored in association with the "gain setting", from the control device 20 based on the received information "gain setting", and reads out parameters such as the number of sensors N, which are stored in association with the "binning number, number of lines", from the control device 20 based on the received information "binning number, number of lines". Furthermore, the relational calculation unit 202 calculates other X-ray mean energy E m The parameters such as the above are set based on information received from the user.
[0033] The relationship calculation unit 202 may set some of the other parameters in the above formulas (1) to (4) by calculating them based on information received from the user. For example, the relationship calculation unit 202 may set the average energy E m can be obtained by calculation. As an example, the relational calculation unit 202 calculates the average energy of X-rays (radiation) transmitted through the object F based on the condition information input by the user. The condition information is information indicating either the conditions of the energy ray generation source or the imaging conditions when irradiating the object F with energy rays and imaging the object F. Note that the relational calculation unit 202 may accept the input of the condition information as a direct input of information such as numerical values, or as a selective input of information such as numerical values set in advance in an internal memory. The relational calculation unit 202 may accept the input of the above-mentioned condition information from the user, and may acquire some of the condition information (tube voltage, etc.) according to the detection result of the control state by the control device 20.
[0034] The condition information is, for example, information indicating the operating conditions of the X-ray irradiator (generation source) 50 when capturing an X-ray image of the object F, or the imaging conditions of the X-ray detection camera 10. Examples of the operating conditions include all or some of the type of X-ray source, tube voltage, tube current, target angle, target material, etc. The condition information indicating the imaging conditions may include all or some of the following: the material, thickness, and density of the filters 51, 19 arranged between the X-ray irradiator 50 and the X-ray detection camera 10; the distance (FDD) between the X-ray irradiator 50 and the X-ray detection camera 10; the type and thickness of the window material of the X-ray detection camera 10; and information on the scintillators 11a, 11b of the X-ray detection camera 10 (e.g., thickness, material, density, multiplication factor, surface reflectance, diffusion coefficient, or absorption coefficient); X-ray detection camera information (e.g., gain setting value, circuit noise value, saturated charge amount, conversion coefficient value (e- / count), camera line rate (Hz) or line speed (m / min)); and information on the object F (measured substance, thickness, density).
[0035] For example, the relational calculation unit 202 calculates the spectrum of X-rays detected by the X-ray detection camera 10 using, for example, a known approximation formula such as Tucker's, based on information included in the condition information, such as the tube voltage, target angle, target material, material and thickness of the filters 51 and 19 and whether or not they are present, type of window material of the X-ray detection camera 10 and whether or not it is present, and material and thickness of the scintillators 11a and 11b of the X-ray detection camera 10. The relational calculation unit 202 further calculates a spectral intensity integral and a photon number integral from the X-ray spectrum, and calculates the average energy value of the X-rays by dividing the spectral intensity integral by the photon number integral. Note that the calculation of the X-ray spectrum may also use known approximation formulas such as those by Kramers or Birch et al.
[0036] Furthermore, the relationship calculation unit 202 may derive the first relationship data indicating the relationship between pixel values and the standard deviation of pixel values based on an image obtained by actually capturing an image. As an example, the relationship calculation unit 202 may acquire an X-ray image (test image) captured by irradiating a jig with X-rays. The jig may be a flat plate-like member or the like whose thickness and material are known. The relationship calculation unit 202 may derive the relationship data indicating the relationship between pixel values and the standard deviation of pixel values from the acquired test image.
[0037] The following describes how the relationship calculation unit 202 derives first relationship data representing the relationship between pixel values and the standard deviation of pixel values from an X-ray image of a jig. For example, the jig may be a member whose thickness changes stepwise in one direction. First, the relationship calculation unit 202 derives noise-free pixel values (hereinafter referred to as true pixel values) for each step of the jig in a test image of the jig, and derives the standard deviation of the pixel values based on the true pixel values. Specifically, the relationship calculation unit 202 derives the average value of pixel values at a certain step of the jig. Then, the relationship calculation unit 202 sets the derived average value of pixel values as the true pixel value for that step. The relationship calculation unit 202 derives the difference between each pixel value and the true pixel value at that step as a noise value. The relationship calculation unit 202 derives the standard deviation of pixel values from the derived noise value for each pixel value.
[0038] The relationship calculation unit 202 then derives first relationship data based on the relationship between the true pixel values and the standard deviation of the pixel values. Specifically, the relationship calculation unit 202 derives the true pixel values and the standard deviation of the pixel values for each jig step. The relationship calculation unit 202 plots the derived relationship between the true pixel values and the standard deviation of the pixel values on a graph and draws an approximation curve, thereby deriving a relationship graph that represents the relationship between the pixel values and the standard deviation of the pixel values. Note that the approximation curve may be an exponential approximation, a linear approximation, a logarithmic approximation, a polynomial approximation, a power approximation, or the like.
[0039] Instead of an X-ray image captured of a jig as the test image, the relationship calculation unit 202 may use a plurality of X-ray images captured with varying brightness in a state where no object is present. In this case, a plurality of test images obtained while varying the output intensity of the X-ray irradiator 50 or a plurality of test images obtained while varying the exposure time of the X-ray detection camera 10 are used. Then, the relationship calculation unit 202 can derive a relationship graph that represents the relationship between pixel values and their standard deviations in the same manner as described above.
[0040] The noise map generating unit 203 identifies the value of the standard deviation from the pixel value of each pixel of the X-ray image based on the first relationship data indicating the relationship between the pixel value of each pixel of the X-ray image and the standard deviation of the pixel values calculated by the relationship calculating unit 202. The noise map generating unit 203 generates a noise map, which is data that associates the derived standard deviation with each pixel of the X-ray image.
[0041] The parameter setting unit 204 sets parameters to be used in the edge-preserving smoothing filter for each pixel based on the noise map generated by the noise map generation unit 203. In this embodiment, a bilateral filter is used as the edge-preserving smoothing filter. That is, the parameter setting unit 204 sets a parameter to be used in the edge-preserving smoothing filter for each pixel based on the standard deviation value σ associated with each pixel on the noise map by 2×σ 2 is calculated for each pixel, and the calculated value for each pixel is 2 × σ 2 A parameter map is generated, which is data that associates the above with each pixel.
[0042] The filter processing unit 205 processes the X-ray image stored in the image storage unit 207, and performs noise removal processing using a bilateral filter in which parameters calculated for each pixel by the parameter setting unit 204 are set. Specifically, the position of each pixel in the X-ray image, which is a two-dimensional image, is represented by (i, j) (i, j: natural numbers), the pixel value of each pixel in the X-ray image to be processed is represented by f(i, j), the pixel value of each pixel in the X-ray image to be output is represented by g(i, j), and the control parameter in the spatial direction is represented by σ 1 , the control parameter in the brightness direction is σ 2In this case, the filter processing unit 205 executes noise removal processing using a bilateral filter by calculating the following equation (5) for all pixels of the X-ray image. At this time, when calculating the pixel value g(i, j) of each pixel, the filter processing unit 205 refers to the parameter map generated by the parameter setting unit 204 and calculates the pixel value g(i, j) of each pixel by using the parameter 2×σ 2 the parameters in the above equation (5); and the previously set common parameters are substituted into the spatial direction control parameters σ in the above equation (5). 1 Calculate the pixel value by setting
[0043] The filter processing unit 205 stores the X-ray image that has been subjected to the noise removal process in the image storage unit 207. At this time, the filter processing unit 205 may display the X-ray image that has been subjected to the noise removal process on the display device 30, or may operate to transmit the X-ray image to an external device.
[0044] Next, the procedure for observing an energy beam transmission image of the object F using the image acquisition device 1 according to this embodiment, i.e., the flow of the image processing method according to this embodiment, will be described. Fig. 5 is a flowchart showing the procedure for observing the object F using the image acquisition device 1.
[0045] First, the control device 20 receives information for parameter setting from the user via the input device 40 (step S101, input step). Next, the object F is set in the image acquisition device 1, an image of the object F is captured, and the control device 20 acquires an X-ray image of the object F (step S102, acquisition step). Next, the control device 20 calculates first relationship data indicating the relationship between pixel values and standard deviations based on the information received in step S101 (step S103: calculation step).
[0046] Next, the control device 20 generates a noise map and a parameter map based on the X-ray image acquired in step S102 and the first relationship data (step S104: setting step). Furthermore, the control device 20 sets bilateral filter parameters for each pixel based on the parameter map, and performs noise reduction processing on the X-ray image using the set bilateral filter (step S105: processing step). Finally, the control device 20 stores the X-ray image after noise reduction processing (step S106).
[0047] In the image acquisition device 1 according to the first embodiment described above, control parameters suitable for the luminance values of each pixel of an X-ray image are set, and the X-ray image to be processed is processed using an edge-preserving smoothing filter that reflects the set control parameters for each pixel. This allows noise removal processing corresponding to the standard deviation of the luminance values of each pixel of the X-ray image. As a result, noise can be effectively removed from the entire image while preserving the edges of the image.
[0048] It has been known for some time that a bilateral filter, which is an edge-preserving smoothing filter, is effective in removing Gaussian noise. The bilateral filter is a filter for applying a weighted Gaussian filter to each local region. In this embodiment, the control parameter σ in the luminance direction of the bilateral filter is 2 By setting for each pixel according to the standard deviation of the pixel values, it becomes possible to optimize the weight value for each local region.
[0049] In this embodiment, the first relational data is calculated by simulation, which allows appropriate parameters to be set for each pixel of the X-ray image, and allows noise to be appropriately removed from the entire image.
[0050] In this embodiment, the first relationship data is calculated based on information input by the user, which allows appropriate parameters to be set for each pixel of the X-ray image using the input information, thereby enabling appropriate noise removal from the entire image.
[0051] In this embodiment, the first relational data is also calculated based on the acquired test image. By analyzing the test image, this process makes it possible to set appropriate parameters for each pixel of the X-ray image, thereby making it possible to appropriately remove noise from the entire image.
[0052] In this embodiment, a bilateral filter is used as the edge-preserving smoothing filter. In this case, by setting a control parameter in the luminance direction based on the standard deviation of pixel values for each pixel, noise in the entire image can be appropriately removed.
[0053] 6 and 7 show X-ray images acquired by the image acquisition device 1 of an object F whose thickness changes stepwise. In Fig. 6, part (a) shows the X-ray image before noise removal processing, and part (b) shows the X-ray image after noise removal processing. In Fig. 7, parts (a) and (b) show the brightness direction control parameter σ 2 The figure shows an X-ray image after noise removal processing when the control parameter σ is set to a fixed value for the entire X-ray image. These results show that noise removal is optimized for all thicknesses according to this embodiment (part (b) of FIG. 6). On the other hand, 2 When the value of σ is set to a fixed value, an image with a blurred portion (part (a) of FIG. 7) or an image with insufficient noise removal (part (b) of FIG. 7) is obtained. [Second Embodiment]
[0054] FIG. 8 is a block diagram showing the functional configuration of an optical image processing system 1A, which is an image processing device according to the second embodiment. As shown in FIG. 8, the optical image processing system 1A is a system that acquires an optical image of an object F based on light L from the object F. The light L is, for example, light emitted from the object F, light transmitted through the object F, light reflected from the object F, or scattered light from the object F. Examples of the light L include ultraviolet light, visible light, and infrared light. Hereinafter, the light may be referred to as observation light. The optical image processing system 1A includes a camera (imaging device, detection unit) 82, an optical image processing module 83, a display device 84, and an input device (input unit) 85.
[0055] The camera 82 captures an optical image by capturing light L from an object F. The camera 82 has a photodetector 121 and an image control unit 122. The photodetector 121 is an imaging element having a plurality of pixels. Examples of the photodetector 121 include a CCD (Charge Coupled Device) image sensor, a CMOS (Complementary Metal-Oxide Semiconductor) image sensor, a photodiode, an InGaAs sensor, a TDI (Time Delay Integration)-CCD image sensor, a TDI-CMOS image sensor, a camera tube, an EM (Electron Multiplying)-CCD image sensor, an EB (Electron Bombarded)-CMOS image sensor, a SPAD (Single Photon Avalanche Diode, SPPC (Single-Pixel Photon Counter), an MPPC (Multi-Pixel Photon Counter, SiPM (Silicon Photomultiplier)), a HPD (Hybrid Photo Detector), an APD (Avalanche Photodiode), and a photomultiplier tube (PMT (Photomultiplier Tube)). The photodetector 121 may be an I.D. The photodetector 121 may be a combination of an image intensifier (IM) or a micro-channel plate (MCP). Examples of the shape of the photodetector 121 include an area sensor, a line sensor that acquires an image by line scanning, a TDI sensor, and a point sensor that acquires an image by two-dimensional scanning. The camera 82 captures an image of light L from an object F that is imaged by an imaging optical system 124 through an objective lens 123, and outputs a digital signal based on the image capture result to the image control unit 122.
[0056] The image control unit 122 performs image processing based on the digital signal from the photodetector 121. The image control unit 122 is configured with, for example, a central processing unit (CPU), a graphics processing unit (GPU), a field-programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system on a chip (SoC). The image control unit 122 generates image data based on the digital signal received from the photodetector 121, performs predetermined image processing on the generated image data, and outputs the image data to the optical image processing module 83.
[0057] The optical image processing module 83 is a computer such as a PC (Personal Computer). The optical image processing module 83 performs image processing on image data output from the camera 82 to generate a noise-removed optical image. The optical image processing module 83 is connected to the camera 82, the display device 84, and the input device (input unit) 85 via wired or wireless communication so as to be able to communicate with each other. The generated optical image is subjected to a noise removal process (described later) and then output to the display device 84, where it is displayed. Various input information, such as imaging conditions of the object F, is input to the optical image processing module 83 from the input device 85 based on user operations. The optical image processing module 83 also controls the camera 82. Note that although the optical image processing module 83 in the second embodiment is an independent device provided outside the camera 82, it may also be integrated inside the camera 82. For example, the optical image processing module 83 may be a module equivalent to processing circuits implemented in the camera, such as a CPU and a GPU. The optical image processing module 83 has the hardware configuration shown in FIG. 2, similar to the first embodiment.
[0058] As shown in Fig. 8 , the optical image processing module 83 includes an image acquisition unit 131, a relational calculation unit 132, a noise map generation unit 133, a parameter setting unit (image processing unit) 134, a filter processing unit (image processing unit) 135, and an image storage unit 136. The functional units of the optical image processing module 83 shown in Fig. 8 are realized by loading a program (the image processing program of the second embodiment) onto hardware such as the CPU 101, GPU 105, and RAM 102 (Fig. 2), thereby operating the communication module 104 and the input / output module 106 under the control of the CPU 101 and GPU 105 and reading and writing data from and to the RAM 102. The CPU 101 and GPU 105 of the optical image processing module 83 execute the computer program to cause the optical image processing module 83 to function as the functional units shown in Fig. 8 and sequentially perform processes corresponding to an image processing method described below.
[0059] The functions of each functional unit of the optical image processing module 83 will be described in detail below.
[0060] The image acquisition unit 131 acquires an optical image obtained by capturing light from the object F. Specifically, the image acquisition unit 131 acquires an optical image output from the camera 82. The image acquisition unit 131 then stores the acquired optical image in the image storage unit 136 each time. Figure 9 is a diagram showing an example of an optical image G1 acquired by the image acquisition unit 131.
[0061] The relationship calculation unit 132 calculates the relationship between pixel values in the optical image acquired by the image acquisition unit 131 and the statistical value of pixel values as follows. In this embodiment, as in the first embodiment, a noise sigma value, which is the standard deviation of pixel values, is used as the statistical value of pixel values. First, the relationship calculation unit 132 accepts information input from a user using the input device 85. The accepted information includes, for example, information on the type of camera 82 and information indicating the gain of the camera 82. Then, when the information on the type of camera 82 indicates a CMOS, CCD, PD, InGaAs, TDI CCD, TDI CMOS, or a camera that does not perform image multiplication such as an image pickup tube, the relationship calculation unit 132 calculates first relationship data indicating the relationship between pixel values and the standard deviation of pixel values by simulation using the following formula (6): In the above equation, the variable Noise is the standard deviation of the pixel values, the variable Signal is the signal value of the pixel (pixel value), the constant Cf is the conversion coefficient for converting the pixel signal value into charge in the camera 82, the constant D is the dark current noise in the camera 82, and the constant R is the readout noise in the camera 82.
[0062] When using the above formula (6), the relational calculation unit 132 substitutes the pixel value of each pixel of the optical image acquired by the image acquisition unit 131 for the variable Signal, and sets the other parameters in the above formula (6) based on information input by the user via the input device 85. The relational calculation unit 132 then acquires the variable Noise calculated using the above formula (6) as a numerical value of the standard deviation of the pixel values of each pixel of the optical image. Note that the parameters in the above formula (6) may be set based on information received from the user, may be set by reading data stored in the RAM 102, ROM 103, or the like within the control device 20 based on the received information, or may be preset as fixed values within the control device 20.
[0063] On the other hand, when the information on the type of camera 82 indicates a camera that performs multiplication such as EMCCD, PMT, MPPC (SiPM), SSPD, or APD, the relationship calculation unit 132 calculates first relationship data indicating the relationship between pixel values and the standard deviation of pixel values by simulation using the following equation (7). In the above formula, the constant F is the noise factor of the camera 82, and G is the gain of the camera 82. At this time, the relation calculation unit 132 sets the variables and constants in the above formula (7) in the same manner as above. However, if the type information of the camera 82 indicates a photon-counting camera such as a PMT, the constant R is set to 0 in the above formula (7).
[0064] On the other hand, when the type information of the camera 82 indicates a camera that performs avalanche multiplication such as an MPPC or an APD, the relationship calculation unit 132 calculates first relationship data indicating the relationship between pixel values and the standard deviation of pixel values by simulation using the following equation (8). In the above formula, the constant q is the charge per electron, and the constant I L is the photocurrent when constant M = 1, and constant I dg is the current generated inside the substrate of the camera 82, constant B is the bandwidth, constant M is the multiplication factor, constant F is the excess noise factor, and constant I ds is the surface leakage current, and the constant k is the ionization rate ratio. In this case, the relational calculation unit 132 sets the variables and constants in the above equation (8) in the same manner as above. However, when holes are injected into the avalanche layer in the camera 82, the constant k in the above equation (7) is set to 1 / k.
[0065] Furthermore, the relationship calculation unit 132 may derive the first relationship data indicating the relationship between pixel values and the standard deviation of pixel values based on an image obtained by actually capturing an image. As an example, the relationship calculation unit 132 may acquire an optical image (test image) captured by the camera 82 of a jig. The jig may be a flat plate-like member or the like with a known concentration. The relationship calculation unit 132 may derive the relationship data indicating the relationship between pixel values and the standard deviation of pixel values from the acquired test image.
[0066] The following describes how the relationship calculation unit 132 derives first relationship data representing the relationship between pixel values and the standard deviation of pixel values from an optical image of a jig. The jig may be, for example, a member whose density changes stepwise in one direction. First, the relationship calculation unit 132 derives pixel values (hereinafter referred to as true pixel values) for each step of the jig in a test image of the jig, assuming that there is no noise, and then derives the standard deviation of the pixel values based on the true pixel values. Specifically, the relationship calculation unit 132 derives the average value of pixel values for a given step of the jig. Then, the relationship calculation unit 132 sets the derived average value of pixel values as the true pixel value for that step. The relationship calculation unit 132 derives the difference between each pixel value and the true pixel value for that step as a noise value. The relationship calculation unit 132 derives the standard deviation of pixel values from the derived noise value for each pixel value.
[0067] The relationship calculation unit 132 then derives first relationship data based on the relationship between the true pixel values and the standard deviation of the pixel values. Specifically, the relationship calculation unit 132 derives the true pixel values and the standard deviation of the pixel values for each jig step. The relationship calculation unit 132 plots the derived relationship between the true pixel values and the standard deviation of the pixel values on a graph and draws an approximation curve, thereby deriving a relationship graph that represents the relationship between the pixel values and the standard deviation of the pixel values. Note that the approximation curve may be an exponential approximation, a linear approximation, a logarithmic approximation, a polynomial approximation, a power approximation, or the like.
[0068] Instead of an optical image captured of a jig as the test image, the relationship calculation unit 132 may use a plurality of optical images captured with varying brightness in a state where no object is present. In this case, a plurality of test images obtained while varying the illumination intensity in the detection range of the camera 82, or a plurality of test images obtained while varying the exposure time of the camera 82, are used. Then, the relationship calculation unit 132 can derive a relationship graph that represents the relationship between pixel values and the standard deviation of pixel values, in the same manner as the procedure described above.
[0069] The noise map generation unit 133, like the noise map generation unit 203 in the first embodiment, generates a noise map based on the optical image and the first relational data calculated by the relational calculation unit 132. The parameter setting unit 134, like the parameter setting unit 204 in the first embodiment, generates a parameter map based on the noise map generated by the noise map generation unit 133. The filter processing unit 135, like the filter processing unit 205 in the first embodiment, performs noise removal processing on the optical image using a bilateral filter in which parameters are set for each pixel on the parameter map generated by the parameter setting unit 134.
[0070] Next, the procedure for observation processing of an optical image of the object F using the optical image processing system 1A according to this embodiment, i.e., the flow of the image processing method according to this embodiment, will be described. Fig. 10 is a flowchart showing the procedure for observation processing by the optical image processing system 1A.
[0071] First, the optical image processing module 83 receives information for parameter setting from the user via the input device 85 (step S201, input step). Next, the object F is set in the optical image processing system 1A, an image of the object F is captured, and the optical image processing module 83 acquires an optical image of the object F (step S202, acquisition step). Next, the optical image processing module 83 calculates first relationship data indicating the relationship between pixel values and standard deviations based on the information received in step S201 (step S203: calculation step).
[0072] Next, the optical image processing module 83 generates a noise map and a parameter map based on the optical image acquired in step S202 and the first relationship data (step S204: setting step). Furthermore, the optical image processing module 83 sets bilateral filter parameters for each pixel based on the parameter map, and performs noise reduction processing on the optical image using the set bilateral filter (step S205: processing step). Finally, the optical image processing module 83 stores the optical image after noise reduction processing (step S106).
[0073] The optical image processing system 1A according to the second embodiment described above also performs noise removal processing corresponding to the standard deviation of the luminance values of each pixel in the optical image, thereby effectively removing noise from the entire image.
[0074] [Modification]
[0075] Although various embodiments of the present invention have been described above, the embodiments of the present invention are not limited to the above-described embodiments.
[0076] In the image acquisition device 1 according to the first embodiment and the optical image processing system 1A according to the second embodiment described above, a bilateral filter is used as an edge-preserving smoothing filter when performing noise removal processing on an image. As a modification, these embodiments may use other edge-preserving smoothing filters, such as a smoothing filter that uses an NLM (Non-Local Means Filter), a wavelet, or a TV (Total Variation Filter).
[0077] A modified example of the first embodiment using an NLM filter will be described below. The NLM filter is a non-local area averaging filter that increases the weight if the surrounding pixels are similar to the pixel of interest, and decreases the weight if the surrounding pixels are not similar to the pixel of interest, and uses the weight to perform a weighted average of the surrounding pixels when calculating the pixel value of the pixel of interest.
[0078] The filter processing unit 205 of the control device 20 calculates a weighting parameter w(p, q) of a peripheral pixel q with respect to a pixel of interest p used in the NLM filter by the following equation (9). In the above formula (9), v(p) is a vector for the similarity of the pixel of interest, v(q) is a vector for the similarity of the surrounding pixels, and σ is the noise standard deviation of the image. Such a weighting parameter w(p, q) is calculated so that it becomes larger as the similarity between the surrounding pixels and the pixel of interest increases. When calculating the weighting parameter w(p, q) for each pixel of interest in the above formula (9), the filter processing unit 205 refers to the parameter map generated by the parameter setting unit 204 and calculates the weighting parameter w(p, q) for each pixel of interest on the parameter map, using the parameter 2×σ 2 is expressed as "2σ 2 Furthermore, the filter processing unit 205 performs noise removal processing on the X-ray image using an NLM filter to which the weighting parameters w(p, q) calculated for each pixel of interest and each peripheral pixel are applied.
[0079] In this modification, the parameters of the NLM filter are also optimized for each pixel using the standard deviation of the pixel values of each pixel, thereby effectively removing noise while preserving the edges of the entire image.
[0080] A modified example of the first embodiment in which a smoothing filter using a wavelet is used will be described. Noise removal processing using a smoothing filter using a wavelet is performed by sequentially performing wavelet transform, contraction, and inverse wavelet transform. Contraction involves threshold processing of wavelet coefficients, and inverse wavelet transform involves using the thresholded wavelet coefficients.
[0081] The filter processing unit 205 of the control device 20 performs noise removal processing on the X-ray image as a processing target, using a smoothing filter that uses a wavelet with parameters set for each pixel. During the contraction processing, the filter processing unit 205 refers to the standard deviation value associated with each pixel on the noise map, and determines a threshold value for each pixel from that value.
[0082] Even with this modification, the threshold value used in the wavelet-based smoothing filter is optimized for each pixel using the standard deviation of the pixel values of each pixel, thereby effectively removing noise while preserving the edges of the entire image.
[0083] In the above embodiment, the calculating step may calculate the relationship between the luminance value and the statistical value by simulation. In the above embodiment, the relationship calculation unit may calculate the relationship between the luminance value and the statistical value by simulation. This makes it possible to set appropriate parameters for each pixel of the image using the simulation, and to appropriately remove noise from the entire image.
[0084] In addition, the above embodiment may further include an input step of accepting information input from a user, and the calculation step may calculate the relationship between the luminance value and the statistical value based on the input information.In addition, the above embodiment may further include an input unit that accepts information input from a user, and the relationship calculation unit may calculate the relationship between the luminance value and the statistical value based on the input information.With the above configuration, it is possible to set appropriate parameters for each pixel of the image using the input information, and it is possible to appropriately remove noise from the entire image.
[0085] In the above embodiment, a detection unit that detects an image to be processed may be further provided. According to the above configuration, noise in an image acquired in the image detection device can be effectively removed.
[0086] Furthermore, the above embodiment may further include a separate acquisition step of acquiring a test image, and the calculation step may calculate the relationship between the luminance value and the statistical value based on the acquired test image. Furthermore, in the above embodiment, the relationship calculation unit may calculate the relationship between the luminance value and the statistical value based on a measured test image. With this configuration, appropriate parameters can be set for each pixel of the image by analyzing the test image, and noise can be appropriately removed from the entire image.
[0087] In the above embodiment, the statistical value may be the standard deviation or variance, which allows the parameters of the edge-preserving smoothing filter to be set to appropriate values for each pixel, thereby enabling appropriate noise removal across the entire image.
[0088] In the above embodiment, the edge-preserving smoothing filter may be a bilateral filter or a non-local means filter, which can appropriately remove noise from the entire image by setting parameters based on the statistics of the luminance values of each pixel.
[0089] The image processing method of the embodiment is [1] "an image processing method comprising: a calculation step of calculating a relationship between luminance values in an image and statistical values of the luminance values; an acquisition step of acquiring an image to be processed; a setting step of specifying the statistical values for each pixel of the image based on the luminance values for each pixel of the image and the relationship, and setting parameters of an edge-preserving smoothing filter for each pixel of the image based on the specified statistical values; and a processing step of processing the image using the edge-preserving smoothing filter with the parameters set for each pixel of the image."
[0090] The image processing method of the embodiment may be [2] "the image processing method according to the above [1], wherein in the calculation step, the relationship between the luminance value and the statistical value is calculated by simulation."
[0091] The image processing method of the embodiment may be [3] "the image processing method described in [2] above, further comprising an input step of accepting information input from a user, and in the calculation step, calculating the relationship between the brightness value and the statistical value based on the input information."
[0092] The image processing method of the embodiment may be [4] "the image processing method described in [1] above, further comprising another acquisition step of acquiring a test image, wherein the calculation step calculates the relationship between the brightness value and the statistical value based on the acquired test image."
[0093] The image processing method of the embodiment may be [5] "the image processing method according to any one of the above [1] to [4], wherein the statistical value is a standard deviation or a variance."
[0094] The image processing method of the embodiment may be [6] "the image processing method according to any one of the above [1] to [5], wherein the edge-preserving smoothing filter is a bilateral filter or a non-local means filter."
[0095] The image processing device of the embodiment is [7] "an image processing device comprising: a relationship calculation unit that calculates the relationship between luminance values in an image and statistical values of the luminance values; and an image processing unit that processes an image to be processed, wherein the image processing unit identifies the statistical value for each pixel of the image based on the luminance value for each pixel of the image and the relationship, sets parameters of an edge-preserving smoothing filter for each pixel of the image based on the identified statistical value, and processes the image using the edge-preserving smoothing filter in which the parameters have been set for each pixel of the image."
[0096] The image processing device of the embodiment may be [8] "the image processing device according to the above [7], wherein the relationship calculation unit calculates the relationship between the luminance value and the statistical value by simulation."
[0097] The image processing device of the embodiment may be [9] "an image processing device as described in [8] above, further comprising an input unit that accepts input of information from a user, and the relationship calculation unit calculates the relationship between the brightness value and the statistical value based on the input information."
[0098] The image processing device of the embodiment may be
[10] "the image processing device according to any one of [7] to [9] above, further comprising a detection unit that detects the image to be processed."
[0099] The image processing device of the embodiment may be
[11] "the image processing device described in [7] above, in which the relationship calculation unit calculates the relationship between the brightness value and the statistical value based on a measured test image."
[0100] The image processing device of the embodiment may be
[12] "the image processing device according to any one of [7] to
[11] above, wherein the statistical value is a standard deviation or a variance."
[0101] The image processing device of the embodiment may be
[13] "the image processing device according to any one of [7] to
[12] above, wherein the edge-preserving smoothing filter is a bilateral filter or a non-local means filter."
[0102] 1...image acquisition device, 1A...optical image processing system, 20...control device, 40, 85...input device (input section), 10...X-ray detection camera (detection section), 82...camera (detection section), 83...optical image processing module, 132, 202...relational calculation section, 134, 204...parameter setting section (image processing section), 135, 205...filter processing section (image processing section), F...object.
Claims
1. An image processing method comprising: a calculation step of calculating a relationship between luminance values in an image and statistical values of the luminance values; an acquisition step of acquiring an image to be processed; a setting step of identifying the statistical values for each pixel of the image based on the luminance values of each pixel of the image and the relationship, and setting parameters of an edge-preserving smoothing filter for each pixel of the image based on the identified statistical values; and a processing step of processing the image using the edge-preserving smoothing filter whose parameters have been set for each pixel of the image.
2. The image processing method according to claim 1, wherein in said calculation step, the relationship between said luminance value and said statistical value is calculated by simulation.
3. The image processing method according to claim 2, further comprising an input step of accepting information input from a user, wherein in said calculation step, the relationship between said luminance value and said statistical value is calculated based on said input information.
4. The image processing method according to claim 1, further comprising another acquisition step of acquiring a test image, wherein in said calculation step, the relationship between said brightness value and said statistical value is calculated based on said acquired test image.
5. The image processing method according to any one of claims 1 to 4, wherein the statistical value is a standard deviation or a variance.
6. The image processing method according to any one of claims 1 to 5, wherein the edge-preserving smoothing filter is a bilateral filter or a non-local means filter.
7. An image processing apparatus comprising: a relationship calculation unit that calculates the relationship between luminance values in an image and statistical values of the luminance values; and an image processing unit that processes an image to be processed, wherein the image processing unit identifies the statistical value for each pixel of the image based on the luminance value for each pixel of the image and the relationship, sets parameters of an edge-preserving smoothing filter for each pixel of the image based on the identified statistical value, and processes the image using the edge-preserving smoothing filter with the parameters set for each pixel of the image.
8. The image processing device according to claim 7, wherein the relationship calculation unit calculates the relationship between the luminance value and the statistical value by simulation.
9. The image processing device according to claim 8, further comprising an input unit that accepts information input from a user, wherein the relationship calculation unit calculates the relationship between the luminance value and the statistical value based on the input information.
10. The image processing device according to any one of claims 7 to 9, further comprising a detection unit that detects the image to be processed.
11. The image processing device according to claim 7, wherein the relationship calculation unit calculates the relationship between the luminance value and the statistical value based on a measured test image.
12. The image processing device according to any one of claims 7 to 11, wherein the statistical value is a standard deviation or a variance.
13. The image processing device according to any one of claims 7 to 12, wherein the edge-preserving smoothing filter is a bilateral filter or a non-local means filter.
14. An image processing program that causes a processor to function as a relationship calculation unit that calculates the relationship between luminance values in an image and statistical values of the luminance values, and an image processing unit that processes an image to be processed, wherein the image processing unit identifies the statistical value for each pixel of the image based on the luminance value for each pixel of the image and the relationship, sets parameters of an edge-preserving smoothing filter for each pixel of the image based on the identified statistical value, and processes the image using the edge-preserving smoothing filter with the parameters set for each pixel of the image.
Citation Information
Patent Citations
Noise reducer
JP2006087030A
Image processing apparatus and image processing method
JP2010178302A
Image processing apparatus
JP2010252265A
Image processing device, imaging device, and image processing program
JP2017130168A
Image processing based on local noise statistics
US20070009175A1
