IMAGE ANALYSIS DEVICE, IMAGE ANALYSIS METHOD, AND IMAGE ANALYSIS PROGRAM
The image analysis device addresses the lack of intermediate data output in spectral analysis by performing multivariate analysis on each pixel, generating an analysis image that allows users to verify the correctness of spectral data results.
Patent Information
- Application Number
- JP2020170963
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-10-09
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-10-09
AI Technical Summary
Existing image analysis devices do not output intermediate data for spectral analysis, making it difficult for users to verify the correctness of spectral data results.
An image analysis device that includes a spectral image acquisition unit, range acquisition unit, analysis unit, and analysis image generation unit to perform multivariate analysis on each pixel, generating an analysis image with intermediate data for verification.
Enables users to verify the correctness of spectral data results by displaying intermediate analysis data, allowing for more confident determination of measurement target characteristics.
Smart Images

Figure 0007543824000003 
Figure 0007543824000004 
Figure 0007543824000002
Abstract
Description
[Technical field]
[0001] The present invention relates to an image analysis device, an image analysis method, and an image analysis program. [Background technology]
[0002] 2. Description of the Related Art Conventionally, there has been known an image analyzing device that captures an image of an object using a spectroscopic camera and analyzes the resulting spectroscopic image (see, for example, Patent Document 1). The image analysis device (measurement device) described in Patent Document 1 includes an optical sensor unit capable of capturing 16-band spectral images. In this measurement device, the optical sensor unit captures three-band spectral images, for example, corresponding to red (R), blue (B), and green (G), and synthesizes these images to generate a real-time image, which is displayed on the display unit. When a part of the real-time image is designated by the user, a range of, for example, 10×10 including the designated position is set as a colorimetric area, and a 16-band spectral image of only that colorimetric area is captured. Then, the average light intensity value of all pixels of the spectral image of the colorimetric area obtained by the colorimetric result is calculated for each wavelength, and output as spectral data. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2014-153066 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, in the above-mentioned Patent Document 1, although the spectral data showing the color of the colorimetric area is output as the measurement result, the intermediate data is not output. In other words, the measurement value of each pixel in the colorimetric area and the spectral data of each pixel are not output, and the user cannot judge whether the output spectral data is correct or not. [Means for solving the problem]
[0005] The image analysis device of the first aspect of the present disclosure includes a spectroscopic image acquisition unit that acquires spectroscopic images of multiple wavelengths of an image of a measurement target, a range acquisition unit that acquires a target range in each of the spectroscopic images, an analysis unit that performs multivariate analysis of each pixel based on the gradation value for each wavelength of each pixel in the target range, and an analysis image generation unit that generates an analysis image including the analysis results of the multivariate analysis for each pixel in the target range.
[0006] An image analysis method according to a second aspect of the present disclosure is an image analysis method in which a computer analyzes spectroscopic images of multiple wavelengths obtained by capturing an image of a measurement object, wherein the computer functions as a spectroscopic image acquisition unit, a range acquisition unit, an analysis unit, and an analysis image generation unit, and performs the following steps: a spectroscopic image acquisition step in which the spectroscopic image acquisition unit acquires the spectroscopic images of the multiple wavelengths obtained by capturing an image of the measurement object; a range acquisition step in which the range acquisition unit acquires a target range in each of the spectroscopic images; an analysis step in which the analysis unit performs multivariate analysis of each pixel based on the gradation value for each wavelength of each pixel in the target range; and an analysis image generation step in which the analysis image generation unit generates an analysis image including the analysis results of the multivariate analysis for each pixel in the target range.
[0007] The image analysis program according to the third aspect of the present disclosure is a program readable and executable by a computer, and causes the computer to function as the image analysis device according to any one of claims 1 to 7. [Brief description of the drawings]
[0008] [Figure 1] 1 is a block diagram showing a schematic configuration of an analysis system according to an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a diagram showing the functional configuration of a terminal control unit according to the embodiment. [Diagram 3] 4 is a flowchart showing an image analysis method in the analysis system of the present embodiment. [Figure 4] FIG. 4 is a diagram showing an example of an analysis image according to the present embodiment. [Diagram 5] FIG. 11 is a diagram showing another example of the analysis image of the embodiment. [Figure 6] FIG. 11 is a diagram showing another example of the analysis image of the embodiment. [Figure 7] FIG. 4 is a diagram showing an example of an analysis image displayed on the display of the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] An embodiment of the present disclosure will be described below. FIG. 1 is a block diagram showing a schematic configuration of an analysis system 1 according to the present embodiment. The analysis system 1 includes a measurement device 2 and a terminal device 3, which are configured to be able to communicate with each other, and constitutes the image analysis device of the present disclosure. In this analysis system 1, the measurement device 2 captures measurement target light (incident light) from the measurement target X and outputs the captured image to the terminal device 3. As a result, a color image of the measurement target X is displayed on a display 31 (display unit) connected to the terminal device 3. Furthermore, when a user operates the terminal device 3 to specify a range in the color image displayed on the display 31 where measurement is to be performed, the terminal device 3 sets the specified range as a target range. Then, the measurement device 2 captures spectral images of the measurement target X for multiple wavelengths. The terminal device 3 performs image analysis of the target range based on the captured spectral images of the multiple wavelengths, and outputs the analysis results and the features of the target range obtained by the analysis results to the display 31.
[0010] Here, the image analysis in the present disclosure is a process of analyzing the components of each pixel based on the gradation value of each pixel of a plurality of spectral images. The components to be analyzed are index values for determining the characteristics of the measurement object X, and differ depending on the characteristics to be determined. For example, when determining the color characteristics in the target range of the measurement object X, the index values of the color components of each pixel in the target range are analyzed. Examples of the index values of the color components include color system parameters such as RGB values, L*a*b* values, and xyz values. Furthermore, when determining the material of the measurement object X as a characteristic, the components included in the target range of the measurement object X are analyzed as index values. For example, when determining the ingredients used in a dish, etc. as a characteristic, each nutrient, water content, etc. included in the target range are analyzed as index values. In the former case of determining color, it is sufficient to acquire multiple spectral images of multiple spectral wavelengths in the visible light range, and in the case of determining the material or physical properties of an object, spectral images of multiple spectral wavelengths in the ultraviolet and infrared ranges are acquired. In this embodiment, as an example, the analysis system 1 performs an analysis process for determining the color of a measurement object, and each component will be described in detail below.
[0011] [Configuration of measuring device 2] As shown in FIG. 1, the measurement device 2 includes a spectroscopic imaging section 21, a color imaging section 22, a light source 23, a communication section 24, and a measurement control section 25. The spectroscopic imaging unit 21 captures a spectroscopic image of the measurement target light from the measurement target X. The spectroscopic imaging unit 21 includes an incident optical system 211, a spectroscopic element 212, an imaging optical system 213, and an imaging element 214. The incident optical system 211 guides the measurement light from the measurement object X to the spectroscopic element 212. The incident optical system 211 is composed of, for example, a plurality of lenses that configure an image-side telecentric optical system, and collimates the chief ray of the measurement light to make it incident on the spectroscopic element 212.
[0012] The spectroscopic element 212 separates light of a predetermined wavelength from the measurement light and emits it toward the image sensor 214. The spectroscopic element 212 is not particularly limited as long as it is an element that can separate light of a predetermined wavelength and change the wavelength (spectroscopic wavelength) to be separated. For example, in this embodiment, a Fabry-Perot etalon is used as the spectroscopic element 212. This Fabry-Perot etalon is an element that includes a pair of reflective films facing each other and a gap changer that changes the size of the gap between the reflective films. In such a Fabry-Perot etalon, the gap changer changes the size of the gap between the pair of reflective films, so that light of a wavelength corresponding to the gap can be transmitted from the measurement light. Alternatively, the spectroscopic element 212 may be an Acousto-Optic Tunable Filter (AOTF), a Liquid crystal tunable filter (LCTF), or the like.
[0013] The imaging optical system 213 is configured by, for example, a plurality of lenses, and forms an image of the light of the spectral wavelengths transmitted through the spectroscopic element 212 on the image sensor 214 . The imaging element 214 is composed of, for example, a CMOS (Complementary Metal-Oxide Semiconductor) sensor or a CCD (Charge-Coupled Device) sensor, and receives light of a predetermined spectral wavelength that has passed through the incident optical system 211, the spectroscopic element 212, and the imaging optical system 213, and outputs a spectral image.
[0014] The color image capturing unit 22 is a normal RGB camera that captures a color image of the measurement target X. That is, although not shown, the color imaging unit 22 includes an incident optical system into which the measurement light is incident, an imaging optical system that forms an image of the measurement light on an imaging element configured by a CCD, a CMOS, or the like, and an imaging element, and the imaging element has RGB color filters arranged in a Bayer array, for example. As a result, the color imaging unit 22 captures a color image including the gradation values of each color of R (red), G (green), and B (blue) as pixel values. In the present embodiment, an example in which the color imaging unit 22 is provided is shown, but is not limited thereto. For example, the spectral imaging unit 21 captures a spectral image of one wavelength (e.g., 680 nm) in the red wavelength range, a spectral image of one wavelength (e.g., 550 nm) in the green wavelength range, and a spectral image of one wavelength (e.g., 400 nm) in the blue wavelength range. Then, a color image may be synthesized by synthesizing these three spectral images. When such a synthesized image is used, the configuration of the color imaging unit 22 can be eliminated.
[0015] The light source 23 emits light toward the measurement object X, and the measurement device 2 measures, that is, captures, the image light reflected by the measurement object X as the measurement light. The light source 23 emits uniform light for the wavelength range of the spectral image captured by the spectral imaging unit 21. For example, the analysis system 1 of this embodiment analyzes the color of the measurement target X. In this case, the spectral imaging unit 21 switches the wavelength of light dispersed by the spectral element 212 at a predetermined wavelength interval in the visible light range of, for example, 400 nm to 700 nm, and captures a spectral image of each wavelength. Therefore, it is preferable to use a white light source as the light source 23, which has a substantially uniform amount of light for each wavelength in the visible light range. Furthermore, when the analysis system 1 performs an analysis process using the near-infrared range, it is necessary to capture a spectral image for each wavelength in the near-infrared range, so it is preferable to use a light source having a substantially uniform amount of light for each wavelength in the near-infrared range as the light source 23.
[0016] The communication unit 24 communicates with the terminal device 3 and other external devices. The communication method of the communication unit 24 is not particularly limited, and may be, for example, wired communication or wireless communication such as wireless LAN.
[0017] The measurement control unit 25 has various functions for controlling the measurement device 2. Specifically, the measurement control unit 25 functions as a memory unit 251, a spectroscopic control unit 252, a color imaging control unit 253, and a light source control unit 254. Each of these functional components is configured by a combination of an arithmetic circuit such as a CPU provided on a circuit board, a storage circuit such as a memory, and various driver circuits.
[0018] The storage unit 251 stores various programs and various data for controlling the measurement device 2. For example, as the various data, a drive table for controlling the spectroscopic element 212 is recorded. In the case where a Fabry-Perot etalon is used as the spectroscopic element 212 as described above and the gap between a pair of reflective films is controlled by an electrostatic actuator, the relationship between the spectroscopic wavelength and the voltage value applied to the electrostatic actuator is recorded in the drive table. In addition, as the various data, information on the measurement wavelength when measuring the measurement target X, such as the measurement start wavelength, the wavelength change interval, and the measurement end wavelength, may be recorded. In addition, the storage unit 251 records the spectroscopic images and color images captured by the spectroscopic imaging unit 21 and the color imaging unit 22.
[0019] The spectroscopic control unit 252 controls the spectroscopic element 212 based on the drive table stored in the storage unit 251, and causes the spectroscopic element 212 to separate light of a desired spectral wavelength. In addition, the spectroscopic control unit 252 controls the image sensor 214 of the spectroscopic imaging unit 21 to capture a spectroscopic image.
[0020] The color imaging control unit 253 controls the color imaging unit 22 to capture a color image. The light source control unit 254 controls turning on and off the light source 23 based on, for example, an instruction from a user.
[0021] [Configuration of terminal device 3] As shown in FIG. 1, the terminal device 3 is a computer including a display 31, an input unit 32, a terminal communication unit 33, a terminal storage unit 34, and a terminal control unit 35 as hardware components. The display 31 is a display unit of the present disclosure, and may be any of various display devices such as a liquid crystal display, an organic electroluminescence display, etc. In the present embodiment, an example is shown in which the terminal device 3 includes the display 31, but the display 31 may be configured separately from the terminal device 3 and connected to the terminal device 3 so as to be able to communicate with it. The input unit 32 accepts operations by a user and outputs an operation signal corresponding to the operation to the terminal control unit 35. The input unit 32 may be a touch panel integrally configured with the display 31, or various input devices such as a mouse or a keyboard may be used. The terminal communication unit 33 communicates with the measurement device 2 and other external devices. The communication method of the terminal communication unit 33 is not particularly limited, and may be wired communication or wireless communication.
[0022] The terminal storage unit 34 records various data and various programs used in the arithmetic processing performed by the terminal control unit 35. Specifically, the terminal storage unit 34 stores spectral images and color images for a plurality of spectral wavelengths obtained from the measurement device 2, an analysis image generated by the analysis processing, an image analysis program for controlling the analysis system 1, and the like.
[0023] The terminal control unit 35 reads and executes various programs recorded in the terminal storage unit 34, thereby executing various functions and controlling the terminal device 3 and the analysis system 1. FIG. 2 is a diagram showing the functional configuration of the terminal control unit 35. The terminal control unit 35 reads and executes the image analysis program recorded in the terminal memory unit 34, and thereby functions as a display control unit 351, a spectroscopic image acquisition unit 352, a color image acquisition unit 353, a range acquisition unit 354, an analysis unit 355, a feature determination unit 356, an analysis image generation unit 357, and a selection acquisition unit 358, etc., as shown in FIG. 2.
[0024] The display control unit 351 controls the display of images on the display 31. Examples of images displayed on the display 31 include a color image captured by the color imaging unit 22 of the measurement device 2, an analysis image generated by the analysis image generating unit 357, and features of the measurement target X determined by the feature determining unit 356. In addition, an operation screen for operating the analysis system 1, notification information for notifying the user of the operating status of the measurement device 2, etc. may be displayed.
[0025] The spectroscopic image acquisition unit 352 outputs a command to capture a spectroscopic image to the measurement device 2. As a result, the spectroscopic imaging unit 21 of the measurement device 2 captures spectroscopic images for a plurality of spectroscopic wavelengths and outputs them to the terminal device 3. Then, the spectroscopic image acquisition unit 352 acquires the spectroscopic images output from the measurement device 2 and stores them in the terminal storage unit 34.
[0026] The color image acquisition unit 353 outputs a command to capture a color image to the measurement device 2. As a result, the color imaging unit 22 of the measurement device 2 captures a color image of the measurement object X and outputs it to the terminal device 3. Then, the color image acquisition unit 353 acquires the spectral image output from the measurement device 2. In this embodiment, the acquired color image is displayed on the display 31 as a real-time image by the display control unit 351. That is, until a stop command is input by the user, the color imaging unit 22 continues to capture an image of the measurement object X at a predetermined sampling frequency and updates the real-time image displayed on the display 31.
[0027] The range acquisition unit 354 acquires a range (target range) for analyzing the measurement target X. Specifically, when a desired target range is specified by the user for the color image of the measurement target X displayed on the display 31, the range acquisition unit 354 acquires it as the target range of a spectroscopic image corresponding to the color image. The target range may be specified as a predetermined range centered on a point specified by the user, or may be a range freely set by the user, for example, by a drag operation.
[0028] The analysis unit 355 specifies the target range acquired by the range acquisition unit 354 in the spectroscopic images of the multiple spectral wavelengths, and performs analysis processing based on the gradation values of the pixels in the target range of each spectroscopic image. Specifically, the analysis unit 355 functions as a spectrum analysis unit 355A, an index calculation unit 355B, a classification unit 355C, and a boundary setting unit 355D. The spectrum analysis unit 355A calculates the spectrum for each pixel based on the grayscale value of each pixel in the target range of each spectral image. The index calculation unit 355B analyzes an index value for determining the characteristics in the target range of the measurement target X based on the calculated spectrum. Specifically, the index calculation unit 355B calculates an index value for each pixel. As described above, the spectrum for each pixel, that is, the gradation value for each spectral wavelength, is obtained, so the index calculation unit 355B performs multivariate analysis processing using the gradation values for each spectral wavelength as variables. The multivariate analysis processing is not particularly limited, and various analysis methods such as principal component analysis and correspondence analysis can be used. In addition, the analysis method may be specified by the user. When measuring a spectral image for 16 bands of spectral wavelengths using the measurement device 2, 16 gradation values are obtained as variable parameters for each pixel. The spectrum analysis unit 355A and the index calculation unit 355B perform multivariate analysis of these 16 variable parameters to calculate the spectral spectrum and index values.
[0029] Classification unit 355C associates pixel analysis data having similar index values in the target range and classifies them into the same group. For group classification, for example, each pixel analysis data may be classified into a number of classifications designated by the user, or the pixel analysis data may be automatically classified into a predetermined number of groups by clustering the analysis results by index calculation unit 355B. The boundary setting unit 355D sets a boundary between each group classified by the classification unit 355C. In this embodiment, an analysis image in a three-axis coordinate system with each index value as an axis is generated based on three index values, as will be described in detail later. The boundary setting unit 355D sets a boundary separating each group when points corresponding to the pixel analysis data are plotted in the three-axis coordinate system of the analysis image. The boundary may be a flat surface or a curved surface.
[0030] Based on the index value of each pixel analysis data, feature determination unit 356 determines the feature of measurement target X at the pixel in the target range that corresponds to that pixel analysis data. For example, in this embodiment, it determines what color each pixel in the target range is. The feature determination unit 356 may also determine the features of the entire target range. That is, the number of pixels included in a pixel group having the same feature is counted from the features of each pixel included in the target range, and the feature of the pixel group with the largest number of pixels is determined as the feature of the target range. The pixel group having the same feature may be a collection of pixels classified into the same group by the classification unit.
[0031] The analysis image generating unit 357 generates an analysis image by plotting each pixel analysis data obtained by the multivariate analysis by the analysis unit 355 on a three-axis coordinate system. At this time, the analysis image generating unit 357 may display the features specified by the feature determining unit 356 in the analysis image. For example, if the feature determining unit 356 determines that the points are "red," each plot point is displayed as a red dot, and if the feature determining unit 356 determines that the points are "blue," each plot point is displayed as a blue dot.
[0032] When a specific plot point is selected by the user in the analysis image displayed on the display 31, the selection acquisition unit 358 acquires the plot point.
[0033] [Analysis system operation] FIG. 3 is a flowchart showing an image analysis method in the analysis system 1 of this embodiment. In the analysis system 1 of this embodiment, when performing image analysis of the measurement target X, the user first performs an input operation to capture an image of the measurement target X to be measured. This causes the terminal device 3 to output a command signal to the measurement device 2 to command the measurement device 2 to perform image capture processing of a color image. As a result, the color imaging unit 22 of the measurement device 2 captures a color image of the measurement target X and outputs the captured color image to the terminal device 3. When a color image is captured by the measurement device 2, the terminal device 3 displays the color image on the display 31 (step S1). Note that, although an example in which a color image is captured by the color imaging unit 22 provided in the measurement device 2 is shown in this embodiment, a color image may be generated by combining the spectral images captured by the spectral imaging unit 21. Furthermore, the terminal device 3 displays on the display 31 guidance information to specify a target range. When the user performs an input operation to specify a target range on the color image, the range acquisition unit 354 acquires the set and input target range on the color image (step S2: range acquisition step). As described above, the target range may be a range within a predetermined distance from a point specified by the user, or may be a range specified by the user through a dragging operation or the like. Furthermore, multiple target ranges may be specified.
[0034] Thereafter, the terminal device 3 outputs a spectral imaging command to execute a spectral imaging process to the measurement device 2. As a result, the spectral imaging unit 21 of the measurement device 2 captures a spectral image of a preset spectral wavelength for a predetermined measurement wavelength range (step S3: spectral image acquisition step). For example, in this embodiment, in order to determine the color of the measurement target X, a visible light range from 700 nm to 400 nm is set as the measurement wavelength range, and spectral images of 16 bands at 20 nm intervals are captured. Specifically, the spectroscopic control unit 252 of the measurement control unit 25 that has received the spectroscopic imaging command reads out the drive table from the storage unit 251, and sequentially applies drive voltages corresponding to each wavelength at 20 nm intervals from 700 nm to 400 nm to the gap changing unit of the spectroscopic element 212. As a result, image light at each spectroscopic wavelength at 20 nm intervals from 700 nm to 400 nm that has passed through the spectroscopic element 212 is sequentially captured by the image sensor 214. In step S3, a spectral image corresponding to the entire color image captured in step S1 may be captured, or only a spectral image of the target range specified in step S2 may be captured from the color image captured in step S1. When a spectral image of the target range is captured, it is possible to suppress the capacity pressure of the terminal storage unit 34 and to quickly capture the spectral image.
[0035] Thereafter, when the terminal device 3 receives the spectral images of the respective spectral wavelengths from the measurement device 2, the analysis unit 355 performs an analysis step. Specifically, the spectral analysis unit 355A calculates the spectral spectrum for each pixel, that is, the light intensity for each spectral wavelength, based on the grayscale value of each pixel in the target range of each spectral image (step S4). Then, the index calculation unit 355B performs a multivariate analysis process based on the calculated spectrum, and calculates an index value or a feature vector (step S5). Note that, depending on the process, a group of parameters required for the multivariate analysis process may be determined in advance based on a plurality of known spectroscopic images. As described above, the index value can be selected depending on the analysis target item of the measurement target X. For example, in this embodiment, RGB values are calculated as index values to determine the color of the target range. Here, RGB values are exemplified as index values used for color determination, but xyz values or L*a*b* values may also be used. In addition, in this embodiment, color determination is exemplified, but as described above, in the case of determining characteristics such as the material and physical properties of the measurement target X, the composition amounts of various components contained in the measurement target X, for example, the amounts of each of the first component, second component, and third component, may be analyzed as index values. These index values are calculated for each pixel in the target range and are recorded as pixel analysis data in the terminal storage unit 34. For example, if the target range includes pixels A and B, and the RGB values, which are index values for color judgment for pixel A, are expressed as r=r A , g=g A , b=b A is calculated, and for pixel B, r = r B , g=g B , b=b B When is calculated, the pixel analysis data D for pixel A is A (r A ,g A ,b A ) and pixel analysis data D for pixel B B (r B ,g B ,b B ) are calculated, associated with position information indicating the pixel position, and stored in the terminal storage unit 34.
[0036] Next, the classification unit 355C of the analysis unit 355 judges whether the pixel analysis data or feature vectors of each pixel in the target range are classified into the same system (step S6). That is, it judges whether the target range is a range including the same feature configuration. For example, in this embodiment, it judges whether the target range is the same system color. If the result of the determination in step S6 is No, classification unit 355C classifies the pixel analysis data into a plurality of groups (step S7). For example, in this embodiment, the pixels are classified into color groups of a plurality of colors of the same family, such as red, blue, and green. In this case, the classification unit 355C calculates, for example, the distance (for example, Mahalanobis distance or Euclidean distance) from the color reference data for the pixel analysis data of each pixel, and sets the plurality of pixel analysis data with the greatest distance as the reference data. Then, for each pixel analysis data, the reference data with the smallest distance is identified from among the reference data, and the pixel analysis data is classified into the group of the identified reference data. The reference data may be preset. For example, in this embodiment, red reference data for red, green reference data for green, and blue reference data for blue may be set, and each pixel analysis data may be classified based on the distance from each reference data to each pixel analysis data.
[0037] After that, the boundary setting unit 355D sets a boundary for each of the classified groups (step S8). For example, the boundary setting unit 355D forms a surface that separates each group, which is a boundary surface that passes through the midpoint of a line segment that connects pixel analysis data that is closest to other groups. The boundary surface may be a plane perpendicular to the line segment that passes through the midpoint, or may be a curved surface that passes through the midpoint.
[0038] After step S8, or if the determination in step S6 is YES, the feature determining unit 356 determines the features in the target range based on each pixel analysis data (step S9). If the answer is YES in step S6, that is, if all pixel analysis data in the target range are within a predetermined distance and not classified into groups, the characteristics of the target range to be measured are determined based on the average of the pixel feature data or a representative value of the pixel feature data (e.g., reference data). If step S6 returns NO, the pixel analysis data is classified into a plurality of groups in steps S7 and S8. In this case, feature determination unit 356 determines the features for each group based on the pixel feature data of each group. For example, the feature for the group is determined based on the average of the pixel analysis data belonging to the group or a representative value (e.g., reference data) of the pixel analysis data belonging to the group.
[0039] Thereafter, the analysis image generating unit 357 generates an analysis image by plotting each pixel feature data in a three-axis coordinate system based on the analyzed index value (step S10: analysis image generating step). 4 to 6 are diagrams showing examples of the analysis image. FIG. 4 shows an analysis image in which a single target range is specified in step S2, and the pixel analysis data within the target range is not classified into groups. FIG. 5 shows an analysis image in which two target ranges are specified in step S2, and the pixel analysis data within the target ranges are not classified into groups. FIG. 6 shows an analysis image in which a single target range is specified in step S2, and the pixel analysis data within the target range are not classified into two groups.
[0040] When there is one target range, as in Figures 4 and 6, the analysis image generation unit 357 generates an analysis image 50 in which plot points 52 are displayed on a three-axis coordinate system graph 51, with the values of each index value as the axes, where the pixel analysis data, which is the analysis result of the multivariate analysis, is plotted. For example, in this embodiment, R, G, and B are analyzed from the spectrum by principal component analysis. In this case, as shown in Fig. 4, each pixel analysis data is plotted on a three-axis coordinate system graph 51 with R, G, and B as the axes. Furthermore, as shown in Figs. 4 to 6, the analysis method and the analysis components obtained by the analysis may be displayed on the analysis image 50. In addition, when determining the material or physical properties of the measurement object X as a feature, four or more index values may be calculated. For example, when determining ingredients contained in a dish, the amounts of multiple components such as water, carbohydrates, lipids, proteins, and iron are calculated as index values. In this case, for example, a three-axis coordinate system based on three index values specified by a user may be generated, and the sum of each component amount contained in the target range may be calculated, and the top three components with the largest sums may be specified as index values represented in the three-axis coordinate system.
[0041] Moreover, it is preferable that the analysis image generating unit 357 generates an analysis image 50 that also displays the color image 53 captured in step S1. In this case, the target range 54 specified by the user is superimposed on the color image 53. Furthermore, the analysis image generating unit 357 displays the features determined by the feature determining unit 356 on the analysis image 50. For example, in this embodiment, plot points 52 of the pixel analysis data are displayed according to the color of the measurement object X determined by the feature determining unit 356. This allows the user to recognize the color of the target range 54 of the measurement object X from the plot points 52 on the three-axis coordinate system graph 51. Note that the determination result by the feature determining unit 356 may be displayed superimposed on the target range 54 of the color image 53.
[0042] In step S2, when multiple target ranges 54 are specified, the analysis image generating unit 357 displays each of the target ranges 54A and 54B specified by the user on the color image 53, as shown in Fig. 5. Here, one target range 54 will be described as a first target range 54A, and the other target range as a second target range 54B. The analysis image generating unit 357 displays, on the three-axis coordinate system graph 51, a first plot point 52A of the first pixel analysis data corresponding to the first target range 54A and a second plot point 52B of the second pixel analysis data corresponding to the second target range 54B. In this case, it is preferable that the first plot point 52A and the second plot point 52B are displayed in different display forms. For example, the first plot point 52A is displayed as a "circular" point, and the second plot point 52B is displayed as a "square" point. In addition, when the result of the determination of the feature by the feature determining unit 356 using the first pixel analysis data and the result of the determination of the feature using the second pixel analysis data are different from each other, the first plot point 52A and the second plot point 52B may be displayed according to each feature. For example, when the first target range 54A is determined to be red and the second target range 54B is determined to be blue, the first plot point 52A may be displayed in red and the second plot point 52B may be displayed in blue. In this case, it is more preferable to indicate which target range each plot point corresponds to, for example, by displaying the first target range 54A in a frame of the same color as the first plot point 52A and the second target range 54B in a frame of the same color as the second plot point 52B.
[0043] In step S2, when a single target range 54 is specified and the pixel analysis data belonging to the target range is classified into a plurality of groups, the analysis image generation unit 357 displays the plot points 52 corresponding to each group in a different display form on the three-axis coordinate system graph 51 as shown in Fig. 6. For example, the example in Fig. 6 is an example in which the pixel analysis data is classified into two groups, and a third plot point 52C belonging to one group and a fourth plot point 52D belonging to the other group are displayed. In addition, the analysis image generation unit 357 displays the boundary image 55 set by the boundary setting unit 355D on the three-axis coordinate system graph 51. Furthermore, the analysis image generating unit 357 may clearly display the target range 54 of the color image 53 in different display forms for the pixels corresponding to the third plot point 52C and the pixels corresponding to the fourth plot point 52D. For example, in FIG. 6, when the characteristic determining unit 356 determines that the color characteristic of the group of the third plot point 52C is red and that of the group of the fourth plot point 52D is blue, each pixel is replaced with a representative color of each color. That is, the pixel corresponding to the third plot point 52C in the target range 54 of the color image 53 is displayed in a red representative color (e.g., R=255, G=0, B=0) with a high luminance of a predetermined value or more. Similarly, the pixel corresponding to the fourth plot point 52D in the target range 54 is displayed in a blue representative color (e.g., R=0, G=0, B=255) with a high luminance of a predetermined value or more.
[0044] After step S10, the display control unit 351 causes the display 31 to display the generated analysis image 50 as shown in FIG. 4 to FIG. 6 (step S11). Furthermore, the selection acquisition unit 358 determines whether or not a given plot point 52 on the three-axis coordinate system graph 51 has been selected by an input operation by the user (step S12). If the result of the determination in step S12 is Yes, the selection acquisition unit 358 acquires the selected plot point 52 as a selected point. Then, the display control unit 351 displays a pixel corresponding to the selected point as a corresponding pixel 56 (step S13). Fig. 7 is a diagram showing an example of the analysis image 50 displayed on the display after the process in step S13. For example, when one of the plot points 52 is selected as a selected point 52E for the analysis image 50, the display control unit 351 displays a pixel in the target range 54 corresponding to the selected point 52E as a corresponding pixel 56, as shown in Fig. 7. The corresponding pixel 56 is a pixel that visually indicates the pixel corresponding to the selected plot point 52, and for example, the pixel is displayed blinking or at a luminance value that is different by a predetermined value or more from the surrounding pixels.
[0045] [Effects of this embodiment] The analysis system 1 of this embodiment includes a measurement device 2 and a terminal device 3. A terminal control unit 35 of the terminal device 3 reads and executes an image analysis program stored in a terminal storage unit 34, thereby functioning as a spectroscopic image acquisition unit 352, a range acquisition unit 354, an analysis unit 355, and an analysis image generation unit 357. The spectroscopic image acquisition unit 352 acquires spectroscopic images of a plurality of spectroscopic wavelengths obtained by capturing an image of the measurement target X. The range acquisition unit 354 acquires a target range 54 in each spectroscopic image. The analysis unit 355 performs a multivariate analysis of each pixel based on the gradation value for each spectroscopic wavelength of each pixel in the target range 54. The analysis image generation unit 357 generates an analysis image including the analysis result of the multivariate analysis for each pixel in the target range 54. In such an analysis system 1, by displaying the analysis image generated by the analysis image generating unit 357, it is possible to not only display the features of the target range 54 to the user, but also to show what analysis results were used to perform feature determination in the target range. In other words, when determining the features of the measurement target X, the user cannot determine whether the determined features are correct by simply displaying the final feature determination results. In contrast, by displaying the analysis results, which are intermediate data for determining the features, as in this embodiment, as analysis image 50, the user can confirm what analysis results the determined features are based on and can determine whether the feature determination is correct.
[0046] In this embodiment, the analysis unit 355 functions as an index calculation unit 355B, and calculates a plurality of index values indicating the characteristics of each pixel based on the gradation value for each spectral wavelength of each pixel. The analysis image generation unit 357 then generates an analysis image 50 in which plot points 52 indicating the analysis results (pixel analysis data) for each pixel are plotted on a three-axis coordinate system graph 51 formed by coordinate axes corresponding to each index value. In this way, by displaying the index values calculated by the results of the multivariate analysis on the coordinates, the user can easily check the analysis results and judge whether the feature determination results are good or bad. In other words, when the plot points 52 are discrete in the three-axis coordinate system, even if the feature determination unit 356 determines the feature of the target range 54, the reliability of the determination is low, and conversely, when the plot points 52 are close to each other, the reliability of the feature determined by the feature determination unit 356 can be judged to be high.
[0047] In this embodiment, analysis unit 355 functions as classification unit 355C, and further classifies each pixel analysis data into a plurality of groups based on the pixel analysis data for each pixel in target range 54. Then, analysis image generation unit 357 displays plot points 52 in a different display form for each classified group. As a result, even if there are multiple parts with different characteristics within the target range, groups corresponding to each characteristic can be set and plot points 52C, 52D can be displayed in different display forms for each group, as shown in Fig. 6. Therefore, by checking such analysis image 50, the user can easily check each pixel analysis data corresponding to the multiple characteristics determined by characteristic determination unit 356, and can properly judge the quality of each characteristic determination.
[0048] In this embodiment, the analysis image generating section 357 generates an analysis image 50 that displays a boundary image 55 that indicates the boundary between different groups. That is, the analysis unit 355 also functions as a boundary setting unit 355D, and sets the boundaries between the groups when each pixel object data is classified into a plurality of groups by the classification unit 355C. Then, the analysis image generation unit 357 displays the boundary image 55 corresponding to the set boundary on the three-axis coordinate system graph 51. This allows the user to easily confirm what threshold was used to classify the pixel analysis data when multiple features are determined from the target range 54.
[0049] In this embodiment, the terminal control unit 35 of the terminal device 3 functions as a feature determination unit 356. This feature determination unit 356 determines features in the target range 54 based on the analysis result of the multivariate analysis by the analysis unit 355. Then, the analysis image generation unit 357 generates an analysis image 50 including the analysis result by the analysis unit 355 and the features determined by the feature determination unit 356. For example, in this embodiment, the plot points 52 are displayed in a color determined for the target range 54 to generate an analysis image 50 including the features of the target range. This allows the user to view plot points 52 corresponding to pixel target data, which is the result of multivariate analysis for each pixel in the target range 54, and the characteristics of the target range determined by the results of the multivariate analysis in the analysis image 50.
[0050] In this embodiment, the terminal control unit 35 of the terminal device 3 also functions as a color image acquisition unit 353, which acquires a color image of the measurement target X. Then, the analysis image generation unit 357 generates an analysis image including a three-axis coordinate system graph 51 and a color image 53 in which a target range 54 is displayed. This allows the user to easily recognize which target range 54 in the color image 53 each plot point 52 in the three-axis coordinate system graph 51 corresponds to.
[0051] In this embodiment, the terminal control unit 35 of the terminal device 3 functions as a display control unit 351 and a selection acquisition unit 358. The display control unit 351 displays the analysis image 50 on the display 31. When the selection acquisition unit 358 receives an operation by the user to select a specific plot point 52 on the analysis image 50 displayed on the display 31, the selection acquisition unit 358 acquires the selected plot point 52 as a selected point 52E. Then, the display control unit 351 displays a pixel in the color image 53 that corresponds to the selected point 52E as a corresponding pixel 56. This allows the user to know individually which pixel in the color image 53 the plot points 52 displayed on the three-axis coordinate system graph 51 correspond to.
[0052] [Modifications of the embodiment] The present invention is not limited to the above-described embodiment, and modifications and improvements within the scope of the present invention that can achieve the object of the present invention are included in the present invention. (Variation 1) In the above embodiment, an example was shown in which the color imaging unit 22 continuously captures color images at a predetermined cycle and continuously updates the color images displayed on the display 31 as real-time images with the captured images, but this is not limited to this. For example, the color image capturing unit 22 may capture a color image and the spectral image capturing unit 21 may capture spectral images for a plurality of spectral wavelengths at the same time, and these images may be recorded in the terminal storage unit 34 or the storage unit 251. In this case, the user can read out the image stored in the terminal storage unit 34 at any timing and display it on the display 31, and can specify the target range 54 from the displayed color image. In addition, since the spectral image is also captured when the color image is captured, it is not necessary to capture the spectral image after the target range 54 is acquired by the range acquisition unit 354, and it is sufficient to read out the spectral image corresponding to the color image from the terminal storage unit 34 or the storage unit 251 and perform the same analysis processing as in the above embodiment.
[0053] (Variation 2) In the above embodiment, it has been described that when a plurality of target ranges 54 are set by the user, the analysis image generating unit 357 displays the first plot points 52A and the second plot points 52B on the three-axis coordinate system graph 51 as shown in Fig. 5. In this case, the analysis image generating unit 357 may display a boundary image 55 between the group of the first plot points 52A and the group of the second plot points 52B as shown in Fig. 6. In other words, the boundary setting unit 355D may set a boundary based on each first pixel analysis data belonging to the first target range 54A and each second pixel analysis data belonging to the second target range 54B, and the analysis image generation unit 357 may display the set boundary on the three-axis coordinate system graph 51.
[0054] (Variation 3) In the above embodiment, the selection acquisition unit 358 acquires any one of the plot points 52 on the three-axis coordinate system graph 51 as the selected point 52E, but this is not limiting. For example, the selection acquisition unit 358 may acquire a pixel designated by the user within the target range 54 of the color image 53 as the selected point. In this case, the display control unit 351 may read out pixel analysis data corresponding to the selected point from the device storage unit 34, and display the corresponding plot point 52 on the three-axis coordinate system graph 51 so as to visually indicate it as the target plot point.
[0055] (Variation 4) In the above embodiment, when a plurality of target ranges 54 are specified and the pixel analysis data included in each target range 54 is classified into a plurality of groups, the plot points 52 displayed on the three-axis coordinate system graph 51 may be displayed in a different form for each group, as shown in Fig. 5. In other words, the plot points 52 may be displayed in a different form for each target range and for each group.
[0056] (Variation 5) In the above embodiment, the feature determination process is performed by the feature determination unit 356, but the feature determination unit 356 may not be provided. In this case, the features of the measurement object X are not displayed in the analysis image 50, and the user himself / herself determines the features of the target range 54 of the measurement object X based on the analysis results. At this time, as described above, the analysis results of each pixel of the target range 54 are displayed in the analysis image 50, so that the user can easily determine the features of the target range.
[0057] (Variation 6) In the above embodiment, an example was shown in which the analysis image 50 includes a three-axis coordinate system graph 51 corresponding to three index values, but this is not limiting. For example, a two-axis coordinate system graph corresponding to two index values may be included, or an analysis image 50 using a coordinate system with four or more axes may be displayed. In addition, the index values of each pixel analysis data may be displayed as numerical values in text or table format. Furthermore, although an example has been shown in which a color image of the measurement target X to be imaged is displayed as the analysis image, the analysis image may be one in which a color image is not displayed.
[0058] [Summary of the invention] The image analysis device of the first aspect of the present disclosure includes a spectroscopic image acquisition unit that acquires spectroscopic images of multiple wavelengths of an image of a measurement target, a range acquisition unit that acquires a target range in each of the spectroscopic images, an analysis unit that performs multivariate analysis of each pixel based on the gradation value for each wavelength of each pixel in the target range, and an analysis image generation unit that generates an analysis image including the analysis results of the multivariate analysis for each pixel in the target range.
[0059] In this way, by displaying the analysis image generated by the analysis image generating unit, it is possible to show the user what analysis results have been obtained in the target range. In other words, when determining the characteristics of a measurement object, if only the final characteristic determination result is simply displayed, the user cannot determine whether the determined characteristics are correct or not. In contrast, in this embodiment, it is possible to obtain an analysis image showing the analysis result, which is intermediate data for determining the characteristics, and the user can determine the characteristics of the measurement object based on the analysis result.
[0060] In the image analysis device of this embodiment, it is preferable that the analysis unit calculates a plurality of index values indicating characteristics of each of the pixels based on the gradation values for each of the wavelengths of each of the pixels, and the analysis image generation unit generates the analysis image in which plot points indicating the analysis results for each of the pixels are plotted in a coordinate system constituted by coordinate axes corresponding to each of the index values. In this way, by displaying the index values calculated from the results of multivariate analysis on a coordinate system, the user can easily check the analysis results and, as a result, easily determine the characteristics of the measurement object in the target range. In other words, when the plot points are discrete in the three-axis coordinate system, it can be determined that the measurement object contains various characteristics, and conversely, when the plot points are close to each other, it can be determined that the characteristics of the measurement object are fixed.
[0061] In the image analysis device of this aspect, it is preferable that the analysis unit further classifies each of the pixels in the target range into a plurality of groups based on the analysis results for each of the pixels, and the analysis image generation unit displays the plot points in a different display form for each of the classified groups. This allows the plot points to be displayed in different display formats for each group, even if there are multiple parts with different characteristics within the target range. Therefore, by checking such an analysis image, the user can easily confirm that the target range contains multiple characteristics.
[0062] In the image analysis device of this aspect, it is preferable that the analysis image generation section generates the analysis image displaying a boundary image showing boundaries between the different groups. This allows the user to easily confirm what threshold value was used to classify the pixel analysis data when multiple features are determined from the target range.
[0063] It is preferable that the image analysis device of this aspect further includes a feature determination unit that determines features in the target range based on the analysis results by the multivariate analysis, and the analysis image generation unit generates the analysis image including the analysis results and the features. This allows the user to check the results of the multivariate analysis for each pixel in the target range, as well as the characteristics of the target range determined by the multivariate analysis results, in the analysis image. Therefore, the user does not need to determine the characteristics of the target range based on the analysis results. In addition, since the analysis results of the multivariate analysis are displayed in the analysis image, the user can check for himself or herself whether the results of the characteristics determined by the characteristic determination unit are correct, based on the analysis results.
[0064] It is preferable that the image analysis device of this aspect further includes a color image acquisition unit that acquires a color image of the object to be measured, and the analysis image generation unit generates the analysis image including the color image in which the object range is displayed. This allows the user to easily recognize which target range in the color image corresponds to each plot point indicating the analysis result displayed on the analysis image.
[0065] In the image analysis device of this embodiment, the analysis unit calculates a plurality of index values indicating characteristics of each of the pixels based on the gradation values for each of the wavelengths of each of the pixels, and the analysis image generation unit generates the analysis image in which plot points indicating the analysis results for each of the pixels are plotted in a coordinate system formed by coordinate axes corresponding to each of the index values, and the image analysis device further includes a display control unit that displays the analysis image on a display unit, and a selection acquisition unit that acquires the selected plot point as a selected point when a user's operation to select a specific plot point is received for the analysis image displayed on the display unit, and it is preferable that the display control unit displays a pixel in the color image corresponding to the selected point as a corresponding pixel. This allows the user to know individually which plot points plotted in the coordinate system in the analysis image correspond to which pixel in the color image.
[0066] An image analysis method according to a second aspect of the present disclosure is an image analysis method in which a computer analyzes spectroscopic images of multiple wavelengths obtained by capturing an image of a measurement object, wherein the computer functions as a spectroscopic image acquisition unit, a range acquisition unit, an analysis unit, and an analysis image generation unit, and performs the following steps: a spectroscopic image acquisition step in which the spectroscopic image acquisition unit acquires the spectroscopic images of the multiple wavelengths obtained by capturing an image of the measurement object; a range acquisition step in which the range acquisition unit acquires a target range in each of the spectroscopic images; an analysis step in which the analysis unit performs multivariate analysis of each pixel based on the gradation value for each wavelength of each pixel in the target range; and an analysis image generation step in which the analysis image generation unit generates an analysis image including the analysis results of the multivariate analysis for each pixel in the target range. Thus, similarly to the first aspect described above, by displaying the analysis image generated by the analysis image generating unit, it is possible to show the user what analysis results have been obtained in the target range.
[0067] The image analysis program according to the third aspect of the present disclosure is a program readable and executable by a computer, and causes the computer to function as the image analysis device according to any one of claims 1 to 7. Thus, similarly to the first aspect described above, by displaying the analysis image generated by the analysis image generating unit, it is possible to show the user what analysis results have been obtained in the target range. [Explanation of symbols]
[0068] 1...analysis system (image analysis device), 2...measuring device, 3...terminal device, 21...spectral imaging unit, 22...color imaging unit, 31...display (display unit), 34...terminal memory unit, 35...terminal control unit, 50...analysis image, 51...3-axis coordinate system graph, 52, 52A, 52B, 52C, 52D...plot points, 52E...selection point, 53...color image, 54.54A, 54B...target range, 55...boundary image, 56...corresponding pixel, 351...display control unit, 352...spectral image acquisition unit, 353...color image acquisition unit, 354...range acquisition unit, 355...analysis unit, 355A...spectral analysis unit, 355B...index calculation unit, 355C...classification unit, 355D...boundary setting unit, 356...feature determination unit, 357...analysis image generation unit, 358...selection acquisition unit, X...measurement object.
Claims
1. a spectroscopic image acquisition unit for acquiring spectroscopic images of a plurality of wavelengths obtained by capturing an image of a measurement target; a range acquisition unit for acquiring a target range in each of the spectroscopic images; an analysis unit that performs a multivariate analysis of each pixel based on the gradation value for each wavelength of each pixel in the target range; an analysis image generating unit that generates an analysis image including an analysis result of the multivariate analysis for each pixel in the target range; Equipped with The analysis unit calculates at least three index values indicating characteristics of each of the pixels based on the gradation value for each of the wavelengths of each of the pixels; The image analysis device is characterized in that the analysis image generation unit generates the analysis image by plotting plot points indicating the analysis results for each pixel in a three-axis coordinate system formed by coordinate axes corresponding to each of the index values.
2. 2. The image analysis device according to claim 1, The analysis unit further classifies each of the pixels in the target range into a plurality of groups based on the analysis result for each of the pixels in the target range; the analysis image generating unit displays the plot points in different display forms for each of the classified groups; 1. An image analysis device comprising:
3. 3. The image analysis device according to claim 2, the analysis image generating unit generates the analysis image displaying a boundary image showing a boundary between the different groups.
1. An image analysis device comprising:
4. 4. The image analysis device according to claim 1, a feature determination unit that determines features of the target range based on the analysis result of the multivariate analysis; The analysis image generating unit generates the analysis image including the analysis result and the feature.
1. An image analysis device comprising:
5. 5. The image analysis device according to claim 1, a color image acquisition unit for acquiring a color image of the measurement object, the analysis image generating unit generates the analysis image including the color image in which the target range is displayed.
1. An image analysis device comprising:
6. 6. The image analysis device according to claim 5, The analysis unit calculates a plurality of index values indicating characteristics of each of the pixels based on the gradation value for each of the wavelengths of each of the pixels; the analysis image generating unit generates the analysis image by plotting plot points indicating the analysis results for each of the pixels in a coordinate system configured by coordinate axes corresponding to each of the index values; a display control unit that displays the analysis image on a display unit; When a user's operation to select a predetermined plot point on the analysis image displayed on the display unit is accepted, the selected plot point is acquired as a selected point. A selection acquisition unit for selecting the selection information; the display control unit causes a pixel in the color image corresponding to the selected point to be displayed as a corresponding pixel.
1. An image analysis device comprising:
7. An image analysis method for analyzing a spectroscopic image of a measurement target at a plurality of wavelengths by a computer, comprising: The computer functions as a spectroscopic image acquisition unit, a range acquisition unit, an analysis unit, and an analysis image generation unit, an image acquiring step in which the spectroscopic image acquiring unit acquires the spectroscopic images of the plurality of wavelengths obtained by capturing an image of the measurement target; a range acquisition step in which the range acquisition unit acquires a target range in each of the spectroscopic images; an analysis step in which the analysis unit performs a multivariate analysis of each pixel based on the gradation value for each wavelength of each pixel in the target range; an analysis image generating step in which the analysis image generating unit generates an analysis image including an analysis result of the multivariate analysis for each pixel in the target range; Implemented the following: In the analyzing step, the analyzing unit calculates at least three index values indicating characteristics of each of the pixels based on the gradation value for each of the wavelengths of each of the pixels; An image analysis method characterized in that, in the analysis image generation step, the analysis image generation unit generates the analysis image in which plot points indicating the analysis results for each of the pixels are plotted in a three-axis coordinate system constituted by coordinate axes corresponding to each of the index values.
8. A program readable and executable by a computer, causing the computer to function as the image analysis device according to any one of claims 1 to 6.
2. An image analysis program comprising:
Citation Information
Patent Citations
Image processing method and device, and program for image processing method
JP2004206498A
Colorimetric method and colorimetric device
JP2014153066A
Method and apparatus for grain classification
JP2015040818A
Spectroscopic characterization of seafood
US20150204833A1
Facilitating the compositing of video images
US6496599B1
