Image processing device, image processing method, and program
The image processing device addresses the lack of distribution characteristic evaluation in glitter materials by deriving orientation and number parameters through histogram fitting, ensuring accurate assessment of glitter material distribution and shine variations.
Patent Information
- Application Number
- JP2020174427
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-10-16
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-10-16
AI Technical Summary
Existing techniques for evaluating painted surfaces with glitter materials fail to provide distribution characteristics of the glitter material, which are crucial for understanding the appearance and shine variations due to differences in orientation and number of glitter materials.
An image processing device that extracts color information from an object's image data, derives geometric conditions, and calculates distribution characteristics of glitter materials using a model based on parameters such as orientation and number, employing histogram fitting and color matching functions.
Enables the precise determination of glitter material distribution characteristics, allowing for accurate assessment of appearance variations and shine differences in painted surfaces.
Smart Images

Figure 0007570880000013 
Figure 0007570880000014 
Figure 0007570880000015
Abstract
Description
[Technical field]
[0001] The present invention relates to a technique for deriving characteristics related to a glittering material contained in an object. [Background technology]
[0002] When applying metallic or pearlescent coating to industrial products, paint containing luster materials is used. Patent Document 1 discloses a technique for evaluating the surface of an object coated with paint containing luster materials. Patent Document 1 discloses a technique for evaluating the color of the luster material separately from the color of the base material based on an image of light reflected from the coated surface. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2019-78623 A Summary of the Invention [Problem to be solved by the invention]
[0004] When evaluating a painted surface, there are cases where one wishes to know not only the color of the lustrous material but also its distribution characteristics, but Patent Document 1 has the problem that it is not possible to obtain the distribution characteristics of the lustrous material.
[0005] SUMMARY OF THE PRESENT EMBODIMENTS The present invention has an object to provide a process for obtaining the distribution characteristics of a glittering material contained in an object. [Means for solving the problem]
[0006] In order to solve the above problems, the image processing device according to the present invention includes an input unit for inputting image data obtained by imaging an object including a glittering material, and an acquisition unit for acquiring condition information representing a geometric condition when imaging the object; A histogram corresponding to the color of the bright spot in the image represented by the image data is extracted as color information of the bright material. Extraction means, based on the condition information and the color information of the glittering material, Objectand a derivation means for deriving a distribution characteristic of the lustrous material in a target area. Effect of the Invention
[0007] It is possible to obtain the distribution characteristics of the glittering material contained in the object. [Brief description of the drawings]
[0008] [Figure 1] Diagram to explain the principle of thin film interference [Diagram 2] FIG. 1 illustrates a hardware configuration of an image processing apparatus. [Diagram 3] FIG. 2 is a diagram showing the functional configuration of an image processing apparatus; [Figure 4] A diagram showing an example of a user interface [Diagram 5] A diagram showing an example of a histogram [Figure 6] A diagram showing the geometric conditions for imaging an object. [Figure 7] Diagram showing the rotation angle of the glittering material [Figure 8] 1 is a flowchart showing a process executed by an image processing device; [Figure 9] A diagram showing an example of a color chart [Figure 10] FIG. 1 is a diagram for explaining the optical path of light reflected by a glittering material. [Figure 11] A diagram showing an example of a user interface [Figure 12] A diagram showing the geometric conditions for imaging an object. [Figure 13] FIG. 2 is a diagram showing the functional configuration of an image processing apparatus; [Figure 14] 1 is a flowchart showing a process executed by an image processing device; [Figure 15] A diagram for explaining the distribution characteristics of glittering materials on a painted surface. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Each embodiment will be described below with reference to the drawings. Note that the following embodiments do not necessarily limit the present invention. Furthermore, not all of the combinations of features described in each embodiment are necessarily essential to the solution of the present invention.
[0010] [First embodiment] Among the glittering materials contained in paints used for industrial products, there are some that change color depending on the observation conditions such as the observation angle and the angle of light irradiation. Representative glittering materials include interference mica, which is made by coating mica with titanium oxide, and silica flakes, which is made by coating silica with titanium oxide. Such glittering materials change color depending on the observation conditions due to thin film interference. It is known that glittering materials that utilize thin film interference change their shine depending on the distribution in the paint. Figure 15 is a simplified diagram showing two types of paint, and glittering materials are included in the paint surface. When the orientation of the glittering materials is uniform, as in the paint shown in Figure 15(a), the colors of the glittering materials that are nearby are the same. On the other hand, when the orientation of the glittering materials is non-uniform, as in the paint shown in Figure 15(b), the angles of incidence of light and the observation angles for each glittering material are different, so the glittering materials appear in various colors. In addition, the number of glittering materials is different between Figure 15(a) and Figure 15(b), so the characteristic of the position of the bright spots changing in a sparkling manner, called glittering, is also different. That is, even if the same paint is used for coating, if the orientation or number of the glittering material varies depending on the position, the appearance will be different.
[0011] Therefore, in this embodiment, information on the distribution characteristics of the luminous material on the coating surface, such as the orientation and number of the luminous material, is derived based on image data obtained by imaging the object. Note that the target object in this embodiment is an object painted with a paint containing the luminous material, and the luminous material used changes color depending on the observation conditions due to thin film interference.
[0012] First, the principle of thin film interference occurring in luminous materials will be described with reference to FIG. 1. As shown in FIG. 1, luminous materials that utilize thin film interference are made by coating a medium with a high refractive index on a base material such as mica or silica. When light is incident on the luminous material, part of the incident light is reflected on the upper surface of the thin film. Part of the incident light is also incident on the thin film, refracted, and then reflected on the base material. After that, outside the thin film, these two reflected lights interfere with each other and are received by an imaging device or a person. In this case, if the thickness of the coating layer is d, the refractive index is n, and the refraction angle is γ, the optical path difference between these two reflected lights is 2dncosγ. The color corresponding to the wavelength λ where this optical path difference is (m+1 / 2)λ is observed by the imaging device or a person. In other words, the color corresponding to the wavelength λ that satisfies the following formula (1) is observed.
[0013]
number
[0014] Here, m = 0, 1, 2, .... For example, in the case of interference mica, titanium dioxide with a refractive index of about 2.5 is coated on the mica so that the coating layer is about 80 nm thick. Only when m = 0, λ becomes the wavelength of visible light. In this embodiment, a lustrous material is used that is controlled so that λ becomes the wavelength of visible light only when m = 0. By substituting m = 0 into formula (1), λ is expressed as in formula (2).
[0015]
number
[0016] <Hardware configuration of image processing device> The hardware configuration of the image processing device 1 in this embodiment will be described with reference to Fig. 2. In Fig. 2, the image processing device 1 includes a CPU 201, a ROM 202, and a RAM 203. The image processing device 1 also includes a VC (video card) 204, a general-purpose I / F (interface) 205, a SATA (serial ATA) I / F 206, and a NIC (network interface card) 207.
[0017] The CPU 201 executes an OS (operating system) and various programs stored in the ROM 202, HDD (hard disk drive) 212, etc., using the RAM 203 as a work memory. The CPU 201 also controls each component via a system bus 208. Note that, in the processing according to the flowchart described below, program codes stored in the ROM 202, HDD 212, etc. are expanded in the RAM 203 and executed by the CPU 201. The display device 2 is connected to the VC 204. An input device 210 such as a mouse or keyboard and an imaging device 3 are connected to the general-purpose I / F 205 via a serial bus 209. A general-purpose drive 213 that reads and writes data from the HDD 212 and various recording media is connected to the SATA I / F 206 via a serial bus 211. The NIC 207 inputs and outputs information to and from external devices. The CPU 201 uses the HDD 212 and various recording media mounted on the general-purpose drive 213 as storage locations for various data. The CPU 201 displays a GUI (Graphical User Interface) provided by a program on the display device 2, and receives inputs such as user instructions received via the input device 210.
[0018] <Functional configuration of image processing device> Fig. 3 is a block diagram showing the functional configuration of the image processing device 1. The CPU 201 functions as the functional configuration shown in Fig. 3 by using the RAM 203 as a work memory and reading and executing a program stored in the ROM 202 or the HDD 212. Note that it is not necessary for all of the processes shown below to be executed by the CPU 201, and the image processing device 1 may be configured so that part or all of the processes are executed by one or more processing circuits other than the CPU 201.
[0019] The image processing device 1 has an input unit 301, a setting unit 302, an extraction unit 303, an acquisition unit 304, a derivation unit 305, and an output unit 306. The input unit 301 inputs image data obtained by capturing an image of a target object including a luminous material. The image represented by the image data in this embodiment has RGB values (R, G, B) as pixel values for each pixel. The setting unit 302 sets a target area in the image represented by the input image data based on a user's instruction. The extraction unit 303 extracts color information of the luminous material from the target area set by the setting unit 302. The color information of the luminous material in this embodiment is an XYZ value histogram of bright spots included in the image. An example of the XYZ value histogram is shown in FIG. 5. In the graph of FIG. 5, the X value, Y value, and Z value are the horizontal axis, and the vertical axis is the frequency.
[0020] The acquisition unit 304 acquires condition information representing the geometric conditions when the target object is imaged. The acquisition unit 304 in this embodiment acquires the light-receiving angle α as the condition information. The light-receiving angle α will be described with reference to FIG. 6. FIG. 6 shows the geometric conditions when the target object is imaged using the imaging device 3. In FIG. 6, the light reflected by the luminous material contained in the target object is incident on the imaging device 3 as shown by the arrow. When a perpendicular line is drawn to the coating surface of the target object at the position where the light is reflected, the angle between the perpendicular line and the reflected light is the light-receiving angle α. In this embodiment, the light-receiving angle α is uniform within the target area set by the setting unit 302. Specifically, the angle between the perpendicular line to the coating surface at the center of the target area and the reflected light is the light-receiving angle α. It is not necessary to use the light-receiving angle α at the center of the target area, and for example, the light-receiving angle α at a point other than the center of the target area may be used.
[0021] The derivation unit 305 derives the distribution characteristics of the luminous material by fitting the XYZ value histogram calculated using the parameters of the model related to the distribution characteristics of the luminous material to the XYZ value histogram extracted by the extraction unit 303. As described with reference to FIG. 15, the orientation and number of the luminous material affect the appearance of the object, so the orientation and number of the luminous material are modeled with multiple parameters. The number of the luminous material can be modeled with one parameter, M. The model of the orientation of the luminous material will be described with reference to FIG. 7. As shown in FIG. 7, the luminous material is rotated right by θ degrees with respect to the direction parallel to the coating surface. The orientation of the luminous material is modeled by assuming the distribution of the rotation angle θ of each luminous material. For example, it is assumed that the rotation angle θ of the luminous material follows the probability density function of a normal distribution as shown in Equation (3). In this case, the mean μ and the standard deviation σ are parameters related to the model of the orientation of the luminous material. In addition, in equation (3), the probability density function of the rotation angle θ is f(θ).
[0022]
number
[0023] A method for calculating the XYZ value histogram using the above-mentioned parameters (μ, σ, M) will be described with reference to FIG. 10. FIG. 10 shows the geometric conditions when the incident light is reflected by the luminous material and the reflected light is received by the imaging device 3. The angle between the incident light and the perpendicular line to the coating layer surface is β. Since a medium with a high refractive index is used for the coating layer, the incident light that enters the coating layer is refracted. This refraction angle is γ. The refracted light is reflected by the base material. The angle between this reflected light and the perpendicular line to the coating surface is α', and the angle between the reflected light refracted when it leaves the coating surface and the perpendicular line to the coating surface is the above-mentioned light-receiving angle α. If the refractive index of the paint contained in the coating surface is n and the refractive index of air is 1, then according to Snell's law, formula (4) is established.
[0024]
number
[0025] Similarly, if the refractive index of the coating layer is n2, then formula (5) holds.
[0026]
number
[0027] Moreover, equation (6) also holds.
[0028]
number
[0029] By substituting equation (6) into equation (5), equation (7) holds.
[0030]
number
[0031] By substituting equation (7) into equation (2), equation (8) holds.
[0032]
number
[0033] Based on formulas (4) and (8), the wavelength λ corresponding to the color observed by the imaging device 3 can be calculated using the refractive index n of the paint, the thickness d of the coating layer, the light-receiving angle α, and the rotation angle θ. In this embodiment, the refractive indexes n and n2 and the thickness d of the coating layer are predetermined constants. The derivation unit 305 calculates an XYZ value histogram by applying a color matching function to the calculated wavelength λ, and performs fitting to the XYZ value histogram extracted by the extraction unit 303 while adjusting the parameters (μ, σ, M).
[0034] Specifically, the derivation unit 305 generates an arbitrary number N of random numbers as θ that follow a probability density function f(θ) in the range of (-π,π) for a certain parameter combination (μ', σ', M'). Furthermore, by substituting θ into equation (8), N λ can be calculated. When calculating λ, α' is calculated using equation (4) based on the light-receiving angle α acquired by the acquisition unit 304, and the calculated value is substituted into equation (8). The derivation unit 305 calculates an XYZ value histogram by applying a color matching function to the calculated wavelength λ. However, since this XYZ value histogram has an area corresponding to an arbitrary number N, the XYZ value histogram is multiplied by M / N to obtain an area corresponding to M parameters.
[0035] The derivation unit 305 adjusts the parameters (μ, σ, M) so that the calculated XYZ value histogram has a high similarity to the XYZ value histogram extracted by the extraction unit 303. The derivation unit 305 calculates the area of the region where the histograms overlap and the Kullback-Leibler divergence for each of the X value, Y value, and Z value histograms, and determines the sum of the values as the similarity. The derivation unit 305 calculates the similarity for several parameter combinations, and determines the parameter combination corresponding to the highest similarity among the calculated similarities as the derivation result of the distribution characteristics of the glittering material. The parameter combination may be determined using a known optimization method such as a genetic algorithm method, a Levenberg-Marquardt method, or a Gauss-Newton method.
[0036] The output unit 306 outputs distribution information that represents the distribution characteristics of the metallic pigment derived by the derivation unit 305 .
[0037] <Processing performed by the image processing device> FIG. 8 is a flowchart showing the processing executed by the image processing device 1. Hereinafter, each step (process) is represented by adding an S before the reference symbol. In S801, the input unit 301 inputs image data based on a user's instruction. An example of a UI for receiving the user's instruction is shown in FIG. 4. The input area 401 is an area where the user inputs a file path to image data stored in the HDD 212 or the like. The input unit 301 reads the image data indicated by the input file path, and displays an image represented by the image data in the image display area 402.
[0038] In S802, the setting unit 302 sets a target area in an image represented by the input image data based on a user's instruction. Specifically, the setting unit 302 accepts a user's area designation using the input device 210 in the image display area 402. The method of setting the target area is not limited to a method based on a user's instruction, and for example, position information of the target area in the image may be stored in the HDD 212 or the like in advance, and the setting unit 302 may read the position information from the HDD 212 or the like. According to this method, in a factory line inspection or the like in which a desired target area is always set in the same position, the user can set the target area without having to specify the area multiple times. The target area is set in a shape such as a circle or a rectangle.
[0039] In S803, the extraction unit 303 converts the pixel values of the pixels included in the target region set in S802. Specifically, the extraction unit 303 converts the RGB values (R, G, B) into XYZ values (X, Y, Z) using the following formula (9).
[0040]
number
[0041] The coefficients a0 to a8 included in the matrix used as information indicating the color conversion rule are derived in advance, for example, by imaging a color chart shown in FIG. 9 using the imaging device 3 and measuring using a spectroradiometer. The imaging and measurement of the color chart are performed in a lighting environment similar to the lighting environment when imaging the target object. When deriving the coefficients a0 to a8, the average value of the RGB values is calculated for each of the 24 patches in the captured image. The coefficients a0 to a8 are derived by the least squares method so that the XYZ values obtained by converting each of the calculated average values of the RGB values using equation (9) approach the measured values (XYZ values) of the corresponding patches.
[0042] In S804, the extraction unit 303 detects bright spots in the target area. Specifically, the extraction unit 303 sets the average value of the Y values in the target area as a threshold value, and performs binarization processing on the Y values of each pixel using the set threshold value. Through the binarization processing, the Y value becomes 1, which indicates a high brightness area, or 0, which indicates a non-high brightness area. The extraction unit 303 detects pixels with a Y value of 1 as pixels that constitute bright spots. When a bright spot is composed of multiple pixels, the extraction unit 303 calculates the connected components, and calculates the average values of the X value, Y value, and Z value in the connected components. In this embodiment, the Y value is binarized only for detecting bright spots, so the value before binarization is used for the Y value used in calculating the average value in the connected components and for subsequent processing.
[0043] In S805, the extraction unit 303 extracts color information of the luminous material based on the bright spots detected in S804. Specifically, the extraction unit 303 creates a histogram of the X value, Y value, and Z value of the bright spots. Here, the area of each of the XYZ value histograms is the number of detected bright spots.
[0044] In S806, the acquisition unit 304 acquires condition information representing the geometric conditions when capturing an image of the target object. Specifically, the acquisition unit 304 acquires the receiving angle α determined by the target area set in S802 and the orientation and positional relationship of the imaging device 3. The acquisition unit 304 in this embodiment acquires a value input by a user as the receiving angle α. Note that, similar to the setting of the target area, the receiving angle α measured using a measuring device may be stored in advance in the HDD 212 or the like, and the acquisition unit 304 may read the receiving angle α from the HDD 212 or the like. In addition, when the target object faces the imaging device 3 directly, the acquisition unit 304 may calculate the receiving angle α based on the image. Specifically, the acquisition unit 304 calculates the distance [Pixel] between the center of the target area in the image and the principal point, and multiplies it by the pixel pitch to acquire the distance [mm] on the sensor. The acquisition unit 304 calculates the arctan (distance [mm] on the sensor / focal length [mm]) as the receiving angle α. Also, for example, trilateration may be performed using a Time Of Flight (TOF) sensor or the like to calculate the light-receiving angle α.
[0045] In S807, the derivation unit 305 fits the XYZ value histogram calculated using the parameters of the model related to the distribution characteristics of the luminous material to the XYZ value histogram extracted as color information in S805. The derivation unit 305 derives the parameters (μ, σ, M) as distribution information representing the distribution characteristics of the luminous material by fitting the histogram. In S808, the output unit 306 outputs the distribution information representing the distribution characteristics of the luminous material derived by the derivation unit 305 to the display device 2. Specifically, the output unit 306 displays the parameters (μ, σ, M) in the result display area 403 shown in FIG. 4. Note that the method of outputting the distribution information is not limited to the method of displaying it on the display device 2, and it may be output by writing it into a csv file or a txt file stored in the HDD 212 or the like, for example.
[0046] <Advantages of the First Embodiment> As described above, the image processing device in this embodiment inputs image data obtained by imaging an object containing a luminous material. Condition information representing the geometric conditions when imaging the object is acquired. Based on the image data, color information of the luminous material in a target area of the object is extracted. Based on the condition information and the color information of the luminous material, the distribution characteristics of the luminous material in the target area are derived. In this way, the distribution characteristics of the luminous material contained in the object can be obtained.
[0047] <Modification> In this embodiment, the parameters that specify the distribution characteristics of the luminous material are the orientation and number of the luminous material, but it may be only the orientation of the luminous material. In other words, the fitting parameters are (μ, σ). In this case, since it is necessary to align the areas of the histograms before calculating the similarity, each histogram is normalized so that the area is 1.
[0048] In addition, in this embodiment, a luminous material is used in which λ is controlled to be the wavelength of visible light only when m = 0, but a luminous material controlled to be the wavelength of visible light may also be used when m = 1 or more. In this case, m = 0, 1, 2, ... is substituted into formula (1) to calculate the wavelength λ included in the range of visible light.
[0049] In addition, in the present embodiment, the extraction unit 303 calculates the average values of the X, Y, and Z values in the connected components when the bright spot is composed of multiple pixels, but the statistics may be medians, etc., instead of average values. In this case, since it is difficult to normalize the histograms by the number of bright materials, the similarity is calculated after normalizing each histogram so that the area is 1.
[0050] In the present embodiment, the derivation unit 305 uses a normal distribution as a model for the distribution of the rotation angle θ, but other distributions may be used. For example, if it is assumed that the paint contains multiple types of lustrous materials, a mixed Gaussian distribution or a von Mises distribution may be used.
[0051] In addition, when the derivation unit 305 uses an optimization method such as the Levenberg-Marquardt method, a solution may not be determined if there is only one target region for multiple parameters. In this case, the target region set by the setting unit 302 may be divided, and the XYZ value histograms of each region obtained by the division may be calculated to ensure the number of data. In addition, the setting unit 302 may set multiple target regions based on a user's instruction.
[0052] In addition, in this embodiment, XYZ values are used as color information, but RGB values and L * a * b * Values in other color spaces such as RGB values may also be used.
[0053] In the present embodiment, the image represented by the input image data has RGB values for each pixel, but the image may have values in other color spaces as pixel values.Furthermore, the image may have values corresponding to wavelength regions other than RGB, such as spectral information, or values of three or more channels as pixel values.
[0054] [Second embodiment] In the first embodiment, the distribution characteristics of the luminous material contained in the target area are derived and output to the display device. In this embodiment, the difference in the distribution characteristics of the luminous material between two target areas with different observation conditions is evaluated. Note that the hardware configuration of the image processing device in this embodiment is the same as that of the first embodiment, so a description thereof will be omitted. Below, the differences between this embodiment and the first embodiment will be mainly described. Note that the same configuration as that of the first embodiment will be described with the same reference numerals.
[0055] <Evaluation of distribution characteristics of glittering materials> As shown in FIG. 11, by comparing color information of the luminous material between an area 1101 in a target object and an area 1102 different from the area 1101, the difference in distribution characteristics of the luminous material between the two areas is considered to be evaluated. FIG. 12 shows the geometric conditions when imaging each target area using an imaging device 3. As shown in FIG. 12, the light-receiving angle α1 corresponding to the area 1101 is different from the light-receiving angle α2 corresponding to the area 1102. As shown in Equation (4) and Equation (8), the observed color of the luminous material is affected by the light-receiving angle α and the rotation angle θ. When comparing color information of the luminous material between two areas, it is not possible to determine whether the difference is due to a difference in the light-receiving angle or a difference in the distribution characteristics of the luminous material.
[0056] Therefore, in this embodiment, the distribution characteristic of the luminous material in region 1101 is derived, and based on the derived distribution characteristic, color information of the luminous material when region 1101 is imaged under observation conditions (light-receiving angle α2) corresponding to region 1102 is calculated (hereinafter referred to as virtual color information). The calculated virtual color information of the luminous material in region 1101 is compared with the color information of the luminous material in region 1102 to evaluate the difference in distribution characteristics of the luminous material between the two regions. In this way, by matching the observation conditions and comparing the color information of the luminous material, the difference in distribution characteristics of the luminous material between the two regions can be evaluated with high accuracy.
[0057] <Functional configuration of image processing device> 13 is a block diagram showing the functional configuration of the image processing device 1. The image processing device 1 has an input unit 301, a setting unit 302, an extraction unit 303, an acquisition unit 304, a derivation unit 305, a calculation unit 1301, an evaluation unit 1302, and an output unit 306. The calculation unit 1301 calculates virtual color information of the shining material in the region 1101 based on the distribution characteristics of the shining material in the region 1101 and the geometric conditions corresponding to the region 1102. The evaluation unit 1302 calculates the similarity between the virtual color information of the shining material in the region 1101 and the color information of the shining material in the region 1102 as an evaluation value.
[0058] <Processing performed by the image processing device> 14 is a flowchart showing the processing executed by the image processing device 1. In S1401, the input unit 301 inputs image data based on a user's instruction. In S1402, the setting unit 302 sets the areas 1101 and 1102 as target areas in the image represented by the input image data based on the user's instruction.
[0059] In S1403, the extraction unit 303 converts RGB values (R, G, B) into XYZ values (X, Y, Z) for each of the target regions set in S1402. In S1404, the extraction unit 303 detects bright spots in each of the target regions. In S1405, the extraction unit 303 extracts color information of the shining material corresponding to each of the target regions based on the bright spots detected in S1404.
[0060] In S1406, the acquisition unit 304 acquires condition information representing the geometric conditions when capturing an image of a target object for each target region. Specifically, the acquisition unit 304 acquires the above-mentioned light-receiving angle α1 and light-receiving angle α2. In S1407, the derivation unit 305 fits the XYZ value histogram calculated using the parameters of the model related to the distribution characteristics of the lustrous material to the XYZ value histogram extracted as color information corresponding to the region 1101. The derivation unit 305 uses a normal distribution as f(θ) as in the first embodiment. The parameters determined here are (μ1, σ1, M1).
[0061] In S1408, the calculation unit 1301 calculates virtual color information of the luminous material corresponding to the region 1101 based on distribution information indicating the distribution characteristics of the luminous material corresponding to the region 1101 and condition information indicating the geometric condition corresponding to the region 1102. Specifically, the calculation unit 1301 generates N random numbers of a rotation angle θ based on f(θ) shown in formula (10).
[0062]
number
[0063] Furthermore, the following equations (11) and (12) hold true.
[0064]
number
[0065]
number
[0066] The calculation unit 1301 calculates N wavelengths λ by substituting the generated N θ into equation (12). The calculation unit 1301 calculates an XYZ value histogram based on the calculated wavelength λ and the color matching function, and normalizes the calculated XYZ value histogram by multiplying it by M1 / N.
[0067] In S1409, the evaluation unit 1302 calculates, as an evaluation value, the similarity between the XYZ value histogram calculated as the virtual color information in S1408 and the XYZ value histogram corresponding to the area 1102 extracted in S1405. As described above, the similarity can be the area of the area where the histograms overlap, Kullback-Leibler divergence, or the like. In S1410, the output unit 306 outputs the evaluation value calculated by the evaluation unit 1302 to the display device 2.
[0068] <Effects of the second embodiment> As described above, the image processing device in this embodiment calculates color information for two target regions with different observation conditions when the observation conditions of one target region are matched to the observation conditions of the other target region. Based on the calculated color information, the difference in the distribution characteristics of the lustrous material between the two regions is evaluated. This makes it possible to evaluate with high accuracy the difference in the distribution characteristics of the lustrous material between two regions, such as between products or parts.
[0069] <Modification> In this embodiment, the virtual color information is calculated so that the observation condition of the region 1101 is matched to the observation condition of the region 1102, but the virtual color information of each target region may be calculated so that both the observation condition of the region 1101 and the observation condition of the region 1102 are matched to the target observation condition. In this case, in S1407, the derivation unit 305 derives the distribution characteristics of the luminous material for each of the region 1101 and the region 1102. In S1408, the calculation unit 1301 calculates virtual color information when each target region is imaged under the target observation condition. The target observation condition may be acquired as condition information by the acquisition unit 304 in S1406, for example. In S1409, the evaluation unit 1302 calculates the similarity between the virtual color information of the region 1101 and the virtual color information of the region 1102 as an evaluation value. This makes it possible to evaluate the difference in the distribution characteristics of the luminous material between two regions under any observation condition.
[0070] In addition, in this embodiment, the color information of the luminous material is compared to evaluate the difference in the distribution characteristic of the luminous material between the two regions, but the distribution characteristics of the luminous material may be directly compared without calculating the virtual color information. In this case, in S1407, the derivation unit 305 derives the distribution characteristics of the luminous material for each of the regions 1101 and 1102. The process of S1408 is not performed, and in S1409, the evaluation unit 1302 calculates the difference between the distribution information (μ1, σ1, M1) corresponding to the region 1101 and the distribution information (μ2, σ2, M2) corresponding to the region 1102 as an evaluation value. Specifically, the evaluation unit 1302 calculates |σ1-σ2|, |μ1-μ2|, and |M1-M2| as the evaluation values. This makes it possible to evaluate the difference in the distribution characteristic of the luminous material between the two regions even if the image processing device 1 does not have the calculation unit 1301 that calculates the virtual color information.
[0071] In addition, in this embodiment, the difference in distribution characteristics of the glittering material between two regions is evaluated, but the number of target regions is not limited to two, and may be three or more.
[0072] [Other embodiments] The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions. [Explanation of symbols]
[0073] 1 Image processing device 301 Input section 303 Extraction part 304 Acquisition Department 305 Derivation part
Claims
1. An input means for inputting image data obtained by imaging an object including a glittering material; An acquisition means for acquiring condition information representing a geometric condition when capturing an image of the object; An extraction means for extracting a histogram corresponding to the color of a bright point in an image represented by the image data as color information of the bright material; A derivation means for deriving a distribution characteristic of the shining material in a target area of the object based on the condition information and color information of the shining material; 13. An image processing device comprising:
2. 2. The image processing apparatus according to claim 1, wherein the glittering material is a glittering material whose color changes depending on observation conditions due to thin-film interference.
3. 3. The image processing device according to claim 1, wherein the deriving means derives the distribution characteristic of the granular material by performing fitting to the histogram using a parameter that specifies the distribution characteristic of the granular material.
4. The image processing apparatus according to claim 3 , wherein the parameters include an orientation of the glittering material in the target region.
5. The image processing apparatus according to claim 4 , wherein the parameters are a direction of the glittering material and a number of the glittering materials included in the target region.
6. 6. The image processing apparatus according to claim 1, wherein the extraction means detects the bright points by binarizing pixel values of the image.
7. The acquisition means acquires the condition information corresponding to each of the plurality of target regions, The deriving means derives a distribution characteristic of the shining material for each of the plurality of target regions, 7. The image processing device according to claim 1, further comprising an evaluation means for evaluating differences in distribution characteristics of the tungsten lacquer material between a plurality of the target regions based on the condition information and the distribution characteristics of the tungsten lacquer material.
8. A program for causing a computer to function as each of the means of the image processing apparatus according to any one of claims 1 to 7.
9. An input step of inputting image data obtained by imaging an object including a glittering material; An acquisition step of acquiring condition information representing a geometric condition when the object is imaged; an extraction step of extracting a histogram corresponding to the color of the bright point in the image represented by the image data as color information of the bright material; A derivation step of deriving a distribution characteristic of the shining material in a target area of the object based on the condition information and color information of the shining material; 13. An image processing method comprising:
Citation Information
Patent Citations
Automobile model panel for paint color observation, and base material for automobile model panel
JP2003241670A
Image processing system, image processing method, and program
JP2008176740A
Coating film structure analyzer and coating film structure analysis method
JP2014215169A
Coating color evaluation device and coating color evaluation method
JP2019078623A
