Image analysis device, image analysis method, and program
The image analysis device improves displacement analysis accuracy by using phase-only correlation with sub-pixel offset reference images and edge-preserving filters, addressing noise and complexity issues in industrial working machines.
Patent Information
- Application Number
- JP2023032529
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-03-03
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2043-03-03
AI Technical Summary
Existing image analysis techniques struggle to accurately analyze high-speed displacement of industrial working machines due to increased noise and reduced image size, which degrades analysis accuracy, especially when markers cannot be attached and surface features are complex.
An image analysis device and method that utilizes a phase-only correlation method with multiple reference images offset in sub-pixel units, combined with edge-preserving smoothing filters, to calculate displacement amounts by averaging basic displacement values.
This approach enhances displacement analysis accuracy by reducing noise influence and maintaining feature integrity, enabling high-precision analysis of complex surfaces and high-speed displacements.
Smart Images

Figure 0007553134000001
Abstract
Description
[Technical field]
[0001] The present invention relates to an image analysis device, an image analysis method, and a program, and more particularly to an image analysis device, an image analysis method, and a program for analyzing the displacement of an object. [Background technology]
[0002] Conventionally, a technique for analyzing the displacement of a subject by image analysis has been developed. For example, in Patent Document 1, a stress variation distribution of a structure is measured based on the displacement of the subject measured by image analysis. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2007-205875 A Summary of the Invention [Problem to be solved by the invention]
[0004] In Patent Document 1, the displacement of an object to be analyzed, which is a subject, is analyzed using a digital image correlation method (DIC). In the digital image correlation method, the displacement of the object to be analyzed is calculated based on the correlation between a reference image and an image to be analyzed. Due to the recent trend toward higher resolution of captured images and improved computing speed of computers, the range of applications of such object displacement analysis by image analysis is expanding. Accordingly, there is a demand for an image analysis technique that can perform displacement analysis of an object at higher speed and with higher accuracy.
[0005] However, it is difficult to actually perform accurate displacement analysis of industrial work machines and the like using the digital image correlation method. For example, when analyzing high-speed displacement, such as vibration analysis of machine tools, it is necessary to capture the analysis target at high speed. If the exposure time is shortened to capture images at high speed, image noise increases and analysis accuracy decreases. In addition, when performing analysis at high speed using the digital image correlation method, it is common to reduce the image size to reduce the calculation load. However, as the image size becomes smaller, the effect of noise increases and analysis accuracy decreases.
[0006] In addition, many industrial work machines have complex surface shapes and surface properties that are not suitable for marker attachment. Therefore, it is often difficult to attach markers for displacement analysis. In addition, surface shapes, colors, etc. are limited from a performance perspective, which can make it difficult to extract features for image analysis. Due to these factors, it is difficult to improve the accuracy of displacement analysis using image analysis.
[0007] The present invention has been made in consideration of the above-mentioned circumstances, and has an object to provide an image analysis device, an image analysis method, and a program that can improve the accuracy of displacement analysis of an object. [Means for solving the problem]
[0008] In order to achieve the above object, an image analyzing apparatus according to a first aspect of the present invention comprises: a target image acquisition unit for acquiring a target image that is an image to be analyzed; A storage unit that stores a plurality of reference images that constitute a reference image group; a calculation unit that calculates a displacement amount of the analysis object based on the object image and the reference image, The reference image group includes: Contains multiple different images offset within one pixel range, The calculation unit is Based on a plurality of the reference images and the target image, Calculate the basic displacement, which is the amount of displacement, The amount of displacement of the analysis object is calculated based on the plurality of calculated basic amounts of displacement.
[0010] In addition, the image analysis device a reference image generating unit configured to generate a plurality of the reference images based on the acquired original images of the reference images; This may also be the case.
[0011] Moreover, the calculation unit calculating the basic displacement amount by a phase-only correlation method based on the plurality of reference images and the target image; This may also be the case.
[0012] Moreover, the calculation unit filtering the reference image and the target image with an edge-preserving smoothing filter to calculate a displacement amount of the analysis target; This may also be the case.
[0013] Moreover, the calculation unit The basic displacement amounts are averaged to calculate the displacement amount of the analysis object. This may also be the case.
[0014] In addition, in an image analysis method according to a second aspect of the present invention, The image analysis device Calculating a basic displacement amount, which is a displacement amount of the analysis target, for each of the reference images based on a target image which is an image to be analyzed and a plurality of reference images including a plurality of different images offset within a range of one pixel; The amount of displacement of the analysis object is calculated based on the plurality of calculated basic amounts of displacement.
[0015] Moreover, the program according to the third aspect of the present invention comprises: Computer, a target image acquisition unit that acquires a target image that is an image to be analyzed; Contains multiple different images offset within 1 pixel range A storage unit that stores a plurality of reference images that constitute a reference image group; a calculation unit that calculates a basic displacement amount, which is a displacement amount of the analysis object, for each of the reference images based on a plurality of the reference images and the object image, and calculates the displacement amount of the analysis object based on the calculated plurality of basic displacement amounts; Function as. Effect of the Invention
[0016] According to the image analysis device, image analysis method, and program of the present invention, the correlation between each of a plurality of reference images and the image to be analyzed is calculated to perform displacement analysis of the object to be analyzed, thereby making it possible to improve the accuracy of displacement analysis of the object to be analyzed by image analysis. [Brief description of the drawings]
[0017] [Figure 1] 1 is a functional block diagram of an image analysis device according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a conceptual diagram showing a flow of image analysis according to the embodiment. [Diagram 3] 4 is a flowchart showing a flow of image analysis according to the embodiment. [Figure 4] 11A and 11B are conceptual diagrams illustrating an example of reference image generation by offset processing. [Diagram 5] 1A is an example of an image to be analyzed, and FIG. 1B is a graph showing the relationship between the number of reference images and the error for the image to be analyzed in FIG. [Figure 6] 13A is an example of an image to be analyzed, and FIG. 13B is a graph showing an error in the image to be analyzed of FIG. 13A in the case of a normal POC and in the case of the MFPOC according to the embodiment. [Figure 7] 7 is a graph showing an error in a normal POC and an MFPOC according to the embodiment in an analysis target image in which the image in FIG. 6(A) is subjected to the effect of noise; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] An image analyzing device 1 according to an embodiment of the present invention will be described below with reference to the drawings. As shown in the functional block diagram of Fig. 1, the image analyzing device 1 according to the present embodiment is connected to a camera unit 20, and performs displacement analysis of an analysis target, which is a subject, based on a target image It captured by the camera unit 20.
[0019] The image analysis device 1 is, for example, a computer device, and includes a control unit 11, a storage unit 12, a display unit 13, and an input unit 14, as shown in FIG.
[0020] The control unit 11 is composed of a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), etc., and controls the operation of the image analysis device 1. The control unit 11 also analyzes the displacement state of the analysis target based on the target image It captured by the camera unit 20. The control unit 11 loads various operation programs and data stored in the ROM, storage unit 12, etc. of the control unit 11 into the RAM and operates the CPU and GPU, thereby realizing each function of the control unit 11 shown in FIG. 1. In this way, the control unit 11 operates as a reference image generation unit 111, a target image acquisition unit 112, and a calculation unit 113.
[0021] The reference image generating unit 111 generates a reference image group consisting of a plurality of reference images Ir to be compared with the target image It for analysis. The reference images Ir are a plurality of different images obtained by photographing the subject to be analyzed. The reference images Ir may be a plurality of images photographed in time series, or may be a plurality of images photographed at different positions. The reference image generating unit 111 according to this embodiment offsets the original image acquired from the camera unit 20 in sub-pixel units in the x-axis direction and the y-axis direction, respectively.
[0022] The target image acquisition unit 112 controls the camera unit 20 to capture a target image It, which is an image having the analysis target as a subject. The target image acquisition unit 112 also acquires image data of the captured target image It from the camera unit 20.
[0023] The calculation unit 113 analyzes the displacement state of the analysis target based on the image data of the target image It acquired by the target image acquisition unit 112. The analysis of the displacement state is performed, for example, for each analysis element obtained by dividing the analysis target into a plurality of parts. More specifically, the captured image is divided into ranges of a predetermined size to be used as analysis elements, and the displacement state for each analysis element is calculated. The method of calculating the displacement state is not particularly limited. The calculation unit 113 according to this embodiment calculates the amount of displacement of each analysis element using a digital image correlation method. This allows the calculation unit 113 to calculate the displacement state of the analysis target. The calculation unit 113 may also calculate vibration information such as the speed, distortion, and trajectory of each analysis element based on the time change in the amount of displacement.
[0024] The memory unit 12 is a non-volatile memory such as a hard disk or a flash memory, and stores a program for calculating the displacement state of the analysis object based on the reference image Ir and the target image It, displacement information of the analysis object calculated by the calculation unit 113, etc.
[0025] The display unit 13 is a display device, such as a liquid crystal display, provided in the image analyzing device 1, which is a computer device. The display unit 13 displays the analysis results, such as the displacement state of the analysis target calculated by the calculation unit 113, various analysis conditions, and the like.
[0026] The input unit 14 is an input device for inputting instructions to start and end analysis, settings related to generation of the reference image Ir, etc. The input unit 14 is a keyboard, a touch panel, a mouse, or the like provided in the image analyzing device 1.
[0027] The camera unit 20 is an imaging device that captures a target image It that includes an analysis target. For example, when analyzing the vibration state of the analysis target, the camera unit 20 captures an image including the analysis target at a predetermined frame rate and outputs image data of the target image It at each time.
[0028] Next, image analysis using the image analyzing device 1 will be described with reference to the conceptual diagram of Fig. 2 showing the flow of image analysis processing and the flowchart of Fig. 3. In this embodiment, the image analysis processing will be described as an example in which the displacement state of an industrial work machine, which is the analysis target, is analyzed.
[0029] First, as a reference image setting step, a reference image Ir is set. Specifically, the reference image generating unit 111 controls the camera unit 20 to capture an image of the analysis target in a still state before the action. Then, the reference image generating unit 111 acquires data of the captured image from the camera unit 20 (step S11).
[0030] The reference image generating unit 111 generates a reference image group consisting of a plurality of different reference images Ir by using the image acquired in step S11 as an original image (step S12). The reference image Ir according to this embodiment is an image generated by offsetting the original image. Specifically, the reference image generating unit 111 generates an image as the reference image Ir by offsetting the original image by −0.5 to +0.5 pixels in sub-pixel units (0.1 pixel intervals) in the x-coordinate direction and the y-coordinate direction, respectively. In this case, 121 reference images Ir are generated by combining the offset in the x-axis direction and the offset in the y-axis direction. The offset amount when generating the reference image Ir by offsetting the original image is not particularly limited, but by using an image offset in sub-pixel units as described above, minute displacements at the sub-pixel level can be analyzed with high accuracy.
[0031] The offset process in sub-pixel units can be performed, for example, in the following procedure (FIG. 4). The reference image generating unit 111 enlarges the original image by 10 times in each of the x-axis direction and the y-axis direction. For the enlargement, nearest neighbor interpolation, bilinear interpolation, bicubic interpolation, etc. can be used. In the example of FIG. 4, bilinear interpolation is used. This makes it possible to perform accurate interpolation without excessively increasing the amount of calculation. The reference image generating unit 111 offsets the enlarged original image and reduces it to the size of the original image (1 / 10 times). This makes it possible to generate an offset image in sub-pixel units.
[0032] 5B is a graph showing an example of the relationship between the number of reference images Ir and the error when generating reference images Ir by offset processing the original image for the analysis target image shown in FIG. 5A. In this example, the offset interval of the reference images Ir is 0.1 pixels, and the number N of the reference images Ir is N=(2k+1) 2 , k∈(3,10), the error is calculated. As shown in FIG. 5(B), the error becomes smaller as the variable k, i.e., the number of images N, becomes larger, and when k becomes a certain value or more, the effect of reducing the error becomes small. In this example, for all images, the error becomes sufficiently small when k=5, i.e., the offset range of -0.5 to +0.5 pixels, and it is considered that the effect of reducing the error relative to the calculation load is large.
[0033] The reference image generating unit 111 stores a reference image group consisting of the generated reference images Ir in the storage unit 12. After the reference images Ir are generated and the reference image setting is completed, the operation of the analysis target is started and image analysis of the analysis target is started.
[0034] As a pre-processing step, the target image acquisition section 112 controls the camera unit 20 to capture an image of the analysis target in motion. Then, the target image acquisition section 112 acquires image data of the target image It from the camera unit 20 (step S13).
[0035] The calculation unit 113 performs a filtering process on the target image It acquired by the target image acquisition unit 112 in step S13 (step S14). The filtering process is performed to improve the analysis accuracy, and the filter to be applied can be appropriately selected from a variety of filters based on the characteristics of the target image It.
[0036] For example, in order to remove noise from the target image It, a smoothing algorithm such as a Gaussian filter can be used. However, when a Gaussian filter is applied, it is considered that the features of the target image It, such as the edges to be analyzed, are smoothed, and the analysis accuracy may decrease. Therefore, in this embodiment, a filtering process is performed using an edge-preserving smoothing filter. By using an edge-preserving smoothing filter, noise can be removed while preserving the features of the target image It, so that the accuracy of image analysis by the digital image correlation method can be improved. The edge-preserving smoothing filter to be used is not particularly limited, and various filters such as a median filter, a guided filter, and a bilateral filter can be used. In this embodiment, a filtering process is performed using a bilateral filter.
[0037] The filtering process may be performed on the reference image Ir. In this case, the reference image generating unit 111 performs a filtering process on the original image using an edge-preserving smoothing filter similar to that used on the target image It, and then performs an offset process or the like to generate a plurality of reference images Ir.
[0038] Next, as an analysis step, the calculation unit 113 performs image analysis to calculate the displacement of the analysis target based on the filtered target image It and the reference image Ir stored in the storage unit 12. As described above, the calculation unit 113 calculates the displacement amount (hereinafter also referred to as basic displacement amount) between the target image It and each reference image Ir by using, for example, a digital image correlation method (step S15). More specifically, the calculation unit 113 calculates the displacement amount of the target image It by using a phase only correlation method (POC).
[0039]
number
[0040] In this embodiment, since the reference image Ir offset in sub-pixel units is used, in step S15, the calculation unit 113 removes the influence of the offset and calculates the basic displacement amount (e in the following formula l ) is calculated.
number
[0041] The calculation unit 113 calculates the amount of displacement of the analysis target based on the basic displacement amount calculated in step S15 (step S16). The method of calculating the amount of displacement based on the basic displacement amount is not particularly limited, and for example, an average such as an arithmetic average, a weighted average, or a geometric average can be used. In the present embodiment, the amount of displacement is calculated by arithmetic averaging of the basic displacement amounts. This reduces the influence of biased information contained in the reference image Ir, such as the influence of noise contained in the reference image Ir, and allows for more accurate image analysis, compared to the case where a displacement is calculated by a digital image correlation method using one reference image Ir.
[0042] Thereafter, image analyzing device 1 performs image analysis in steps S13 to S16 until the vibration analysis is completed (NO in step S17). When a termination condition is satisfied, such as the completion of a predetermined analysis time set at the start of image analysis or input of an instruction to end analysis by the user (YES in step S17), image analyzing device 1 ends the analysis process.
[0043] The following describes the results of verification of the image analysis method according to the above embodiment. The following table shows examples of processing times when a normal POC is performed using OpenCV, an image processing library, when POC using OpenCV with multiple reference images is processed by the CPU of a computer device, and when POC using multiple reference images according to the present embodiment (hereinafter also referred to as MFPOC) is processed in parallel using a GPU (NVIDIA Geforce RTX 2080Ti). In this example, for comparison, the image size to be analyzed is changed to 64 x 64 pixels, 128 x 128 pixels, and 256 x 256 pixels, and the processing speed is measured.
[0044] [Table 1] As shown in the above table, by using parallel processing with a GPU, displacement analysis by MFPOC using multiple reference images can be performed in the same processing time as normal POC. Therefore, it is considered possible to perform vibration analysis of the analysis target by sequentially analyzing the target images It taken in time series.
[0045] FIG. 6(B) is a graph showing the error when the different images shown in FIG. 6(A) are processed by the normal POC and the MFPOC. In addition, the normal POC was processed with different image sizes to confirm the relationship between the image size and the magnitude of the error. As shown in FIG. 6(B), the normal POC has a tendency that the analysis error increases as the image size becomes smaller. In addition, it is considered that the error tends to increase as the characteristics of the image to be analyzed, specifically the characteristics such as the edges of the subject, become less clear. In contrast, the MFPOC according to the present embodiment can reduce the error even with a small image size. In addition, the MFPOC can stably perform analysis with small errors on various images to be analyzed.
[0046] FIG. 7 is a graph showing the error when the effects of noise are added to the multiple images shown in FIG. 6(A) and processed by normal POC and MFPOC. The added noise is Poisson noise simulating shot noise and Gaussian noise simulating readout noise. The image size is 64×64 pixels, which is a size that is highly influenced by noise. As shown in FIG. 7, normal POC has a tendency to have large errors due to the effects of noise. In contrast, MFPOC has small and stable errors, and generally has smaller analysis errors than the noise-free image in normal POC shown in FIG. 6(B).
[0047] As described above, according to the image analysis device 1 and the image analysis method of the present embodiment, a basic displacement amount is calculated for each of a plurality of reference images from the correlation with the image to be analyzed, and the displacement of the analysis target is calculated based on the basic displacement amount, so that it is possible to perform displacement analysis by image analysis with high accuracy.
[0048] Furthermore, in this embodiment, the digital image correlation method is applied using multiple reference images Ir that are offset within a range of one pixel, i.e., in sub-pixel units, making it possible to analyze the displacement of the object to be analyzed with high accuracy at the sub-pixel level.
[0049] In this embodiment, the original image is offset to generate multiple reference images Ir, but this is not limited to the above. For example, multiple images captured in time series may be used as the reference images Ir. This reduces the effect of noise contained in each reference image Ir, and improves the analysis accuracy.
[0050] In addition, in this embodiment, the reference image generating unit 111 generates the reference image Ir at the start of the analysis process, but this is not limited to this. For example, image analysis may be performed using a reference image group consisting of a plurality of reference images Ir that are generated in advance and stored in the storage unit 12. This can simplify the process at the start of image analysis. In addition, since image analysis can be performed using a common reference image Ir, it becomes easier to compare image analysis data for each analysis.
[0051] In the present embodiment, the target image acquisition unit 112 acquires the target image It photographed by the camera unit 20 and performs image analysis, but this is not limited to the above. For example, the target image It to be analyzed may be stored in the storage unit 12 in advance, and the calculation unit 113 may perform image analysis by offline processing using the target image It stored in the storage unit 12.
[0052] In the present embodiment, the reference image Ir and the target image It are divided into analysis elements for analysis, but the present invention is not limited to this. For example, the reference image Ir and the target image It may be images of a predetermined region of interest set in advance among images captured by the camera unit 20. This allows image analysis to be performed only on one or more regions of interest set in advance, allowing image analysis to be performed at high speed with a smaller calculation load.
[0053] Moreover, the image analysis device according to the above embodiment can be realized by using a normal computer system. For example, a computer program for executing the image analysis according to the above embodiment can be distributed via a network such as the Internet, and the computer program can be installed on a computer to cause the normal computer system to function as the image analysis device that executes the above image analysis. [Industrial Applicability]
[0054] The present invention is suitable for image analysis of the displacement of an industrial work machine, and is particularly suitable for sequential image analysis of the vibration of an object whose vibration is difficult to measure directly by a pickup or the like. [Explanation of symbols]
[0055] 1 image analysis device, 11 control unit, 111 reference image generation unit, 112 target image acquisition unit, 113 calculation unit, 12 storage unit, 13 display unit, 14 input unit, 20 camera unit
Claims
1. a target image acquisition unit for acquiring a target image that is an image to be analyzed; A storage unit that stores a plurality of reference images that constitute a reference image group; a calculation unit that calculates a displacement amount of the analysis object based on the object image and the reference image, The reference image group includes: A plurality of different images offset within one pixel; The calculation unit is Calculating a basic displacement amount, which is a displacement amount of the analysis target, for each of the reference images based on a plurality of the reference images and the target image; Calculating the amount of displacement of the analysis object based on the plurality of calculated basic displacement amounts.
1. An image analysis device comprising:
2. a reference image generating unit configured to generate a plurality of the reference images based on the acquired original images of the reference images; 2. The image analysis device according to claim 1 .
3. The calculation unit is calculating the basic displacement amount by a phase-only correlation method based on the plurality of reference images and the target image; 2. The image analysis device according to claim 1 .
4. The calculation unit is filtering the reference image and the target image with an edge-preserving smoothing filter to calculate a displacement amount of the analysis target; 2. The image analysis device according to claim 1 .
5. The calculation unit is The basic displacement amounts are averaged to calculate the displacement amount of the analysis object.
2. The image analysis device according to claim 1 .
6. An image analysis device comprising: Calculating a basic displacement amount, which is a displacement amount of the analysis target, for each of the reference images based on a target image which is an image to be analyzed and a plurality of reference images including a plurality of different images offset within a range of one pixel; Calculating the amount of displacement of the analysis object based on the plurality of calculated basic displacement amounts.
1. An image analysis method comprising:
7. Computer, a target image acquisition unit that acquires a target image that is an image to be analyzed; a storage unit for storing a plurality of reference images constituting a reference image set including a plurality of different images offset within one pixel; a calculation unit that calculates a basic displacement amount, which is a displacement amount of the analysis object, for each of the reference images based on a plurality of the reference images and the object image, and calculates the displacement amount of the analysis object based on the calculated plurality of basic displacement amounts; A program that functions as a
Citation Information
Patent Citations
Position shift correcting device
JP2000105828A
Image pickup device with blur preventing function
JP2001251552A
Position correcting method for infrared thermoelastic stress measurement
JP2007205875A
Instrument and method for measuring amount of displacement
JP2010230423A
Vibration analyzer, method for analyzing vibration, and program
JP2022139623A
