The present disclosure relates to a technology for representing the material appearance of a physical object.
In recent years, with improvement in printing and CG technology, the material appearance representation of products is becoming possible. In material appearance representation, measured data of reflection characteristics that change depending on an illumination direction and a watching direction is used, and, generally, approximate data according to diffuse reflection information, specular reflection information, and surface asperity information is used.
Material appearance information on the material appearance of a product has a larger amount of data than representation with a still image, so a reduction in the amount of data is expected. Japanese Patent Laid-Open No. 2005-149390 describes a related art in a data compression technology for material appearance information.
In Japanese Patent Laid-Open No. 2005-149390, a subject image is decomposed into constituent elements with substantially the same feature quantities in accordance with the feature quantities of material appearance information data, and the material appearance information data is compressed by associating representative values of the feature quantities with the decomposed constituent elements. However, with the technology described in Japanese Patent Laid-Open No. 2005-149390, there are concerns about occurrence of artifact (occurrence of image quality degradation) in the case of material appearance that the appearance changes even when the feature quantities are similar depending on a way of selecting representative values.
Some embodiments of the present disclosure are contemplated in view of such an inconvenience and provide a process for reducing the amount of data of material appearance information with suppressed image quality degradation at the time of material appearance reproduction.
An information processing apparatus according to an aspect of the present disclosure includes one or more memories and one or more processors. The one or more processors and the one or more memories are configured to acquire material appearance information including specular reflection information, convert the specular reflection information to an intensity of perception in accordance with visual characteristics for a gloss intensity, and resample the intensity of perception.
Further features of various embodiments will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
Hereinafter, embodiments of the present disclosure will be described with reference to the attached drawings. The following embodiments are not always intended to limit every embodiment. Not all combinations of features that will be described in the following embodiments are indispensable for solutions of every embodiment. In the following embodiments of the present disclosure, like reference signs are assigned to the same components.
Initially, a first embodiment will be described.
Initially, the reflection characteristics of a physical object for representing material appearance will be described.
Next, the visual characteristics of a human, which is focused on in the present embodiment, will be described. In the present embodiment, the sensitivity of each of the diffuse reflection intensity 105 and the specular reflection intensity 106 to a gloss intensity perceived by a human is focused. Specifically, in the present embodiment, sensitivity to the specular reflection intensity 106, which changes with the diffuse reflection intensity 105, is focused.
In the Lcd space, a visual characteristic curve that represents visual sensitivity to a reflection intensity is expressed by a contrast gloss c shown in the following equation (1).
In equation (1), ρd (0≤ρd≤1) is a diffuse reflection intensity 105. In equation (1), ρs (0≤ρs≤1) is a specular reflection intensity 106.
In the present embodiment, the amount of data of material appearance information is reduced by resampling the specular reflection intensity ρs with the intensity of perception in accordance with the above-described visual characteristics to the specular reflection intensity ρs according to the diffuse reflection intensity ρd. At this time, as the diffuse reflection intensity ρd increases, a bit number (amount of data) used to represent the specular reflection intensity ρs can be reduced.
Specifically, in the present embodiment, an information processing apparatus that reduces the amount of data of material appearance information by resampling the specular reflection intensity ρs using a visual characteristic curve corresponding to the minimum value of the diffuse reflection intensity ρd will be described.
The CPU 201 runs an operating system (OS) and various programs stored in the ROM 202, a hard disk drive (HDD) 27, or the like by using the RAM 203 as a work memory. The CPU 201 also controls the components via a system bus 207. A process according to a flowchart (described later) is, for example, executed in a manner such that computer-executable instructions stored in the ROM 202 (or the HDD 27) is loaded into the RAM 203 and run by the CPU 201.
An input device 23, such as a mouse and a keyboard, and a printer 24 are connected to the general purpose I/F 204 via a serial bus 22.
A general purpose drive 28 is connected to the SATA I/F 205. The general purpose drive 28 reads and writes the HDD 27 and various recording media via the serial bus 26. The CPU 201 uses the HDD 27 and various recording media mounted on the general purpose drive 28 as storage locations for various pieces of data.
A display 25 is connected to the VC 206. The CPU 201 displays a user interface (UI), provided by computer-executable instructions, on the display 25 and receives input information, indicating user's instructions, obtained via the input device 23.
As shown in
The material appearance information acquisition unit 501 acquires material appearance information including information indicating a diffuse reflection intensity ρd(x,y) and information indicating a specular reflection intensity ρs(x,y). Here, the information indicating the diffuse reflection intensity ρd(x,y) is information that belongs to diffuse reflection information, and the information indicating the specular reflection intensity ρs(x,y) is information that belongs to specular reflection information.
The specular reflection intensity conversion unit 502 converts the specular reflection intensity ρs(x,y) to a specular reflection perception intensity ρc(x,y) in accordance with visual characteristics (visual characteristic curve) for a gloss intensity, corresponding to a minimum value of the diffuse reflection intensity ρd(x,y).
The resampling unit 503 resamples the specular reflection perception intensity ρc(x,y) converted by the specular reflection intensity conversion unit 502 to create specular reflection information ρscomp (x,y) with a reduced amount of data used.
Process that is Executed by Information Processing Apparatus 2
In S601, the material appearance information acquisition unit 501 acquires material appearance information including information indicating a diffuse reflection intensity ρd(x,y) and information indicating a specular reflection intensity ρs(x,y) from the data storage locations in accordance with the instructions from the user.
Here, a further description of
Subsequently, in S602, the specular reflection intensity conversion unit 502 converts the specular reflection intensity ρs(x,y) acquired in S601 to a specular reflection perception intensity ρc(x,y) in accordance with the visual characteristic curve corresponding to the minimum value of the diffuse reflection intensity ρd(x,y) acquired in S601. The details of S602 will be described below.
Initially, the specular reflection intensity conversion unit 502 acquires a minimum value ρdmin of the diffuse reflection intensity ρd(x,y) according to the following equation (2).
Subsequently, the specular reflection intensity conversion unit 502 converts the specular reflection intensity ρs(x,y) to the specular reflection perception intensity ρc(x,y) by using the visual characteristic curve corresponding to the minimum value ρdmin of the diffuse reflection intensity ρd(x,y). In the present embodiment, the contrast gloss c in the Lcd space is used for the visual characteristic curve. Specifically, the specular reflection intensity conversion unit 502 calculates the specular reflection perception intensity ρc(x,y) by converting the specular reflection intensity ρs(x,y) using the following equation (3).
Subsequently, in S603, the resampling unit 503 resamples the specular reflection perception intensity ρc(x,y) converted in S602. Specifically, the resampling unit 503 sets a sampling width d of the specular reflection perception intensity ρc(x,y) and calculates a resampled specular reflection perception intensity ρcre (x,y) according to the following equation (4).
In equation (4), floor( ) is a function that rounds down to the nearest whole number. In equation (4), the sampling width d is set in accordance with, for example, a differential threshold of the contrast gloss c. The sampling width d may be separately designated by the user. In the present embodiment, the sampling width d is set to 0.01.
Subsequently, in S604, the resampling unit 503 calculates a bit number used to represent the values of the resampled specular reflection perception intensity ρcre(x,y) calculated in S603 and holds specular reflection information ρscomp(x,y) in accordance with the bit number. The details of S604 will be described below.
Initially, the resampling unit 503 calculates a specular reflection perception intensity ρ′cre, obtained by resampling the maximum value of the contrast gloss c where the diffuse reflection intensity ρd(x,y) is a minimum value ρdmin using the following equation (5).
In equation (5), ρ′cre is a maximum value that the resampled specular reflection perception intensity ρcre(x,y) can take. With a bit number used to the representation, it is possible to represent the value of the resampled specular reflection perception intensity ρsre(x,y) with the minimum number of bits. The resampling unit 503 also calculates a resampling bit number b used to represent a resampled specular reflection perception intensity according to the following equation (6).
b=ceil(log2ρ′c
In equation (6), ceil( ) is a function that rounds up to the nearest whole number. Subsequently, the resampling unit 503 sets specular reflection information ρscomp(x,y) in accordance with the resampling bit number b used to represent the values of the resampled specular reflection perception intensity ρ′cre(x,y). Specifically, the resampling unit 503 holds binary specular reflection information ρscomp (x,y) in which values at positions of the resampled specular reflection perception intensity ρ′cre (x,y) are listed in units of the resampling bit number b.
When the process of S604 ends, the process of the flowchart shown in
In the information processing apparatus 2 according to the first embodiment, the specular reflection intensity ρs(x,y) is converted to the specular reflection perception intensity ρc(x,y) in accordance with the visual characteristics (visual characteristic curve) corresponding to the minimum value of the diffuse reflection intensity ρd(x,y). In the information processing apparatus 2 according to the first embodiment, the amount of data of material appearance information is reduced by resampling the converted specular reflection perception intensity ρc(x,y). With resampling in accordance with the above-described human visual characteristics (visual characteristic curve), it is possible to reduce the amount of data of material appearance information with less image quality degradation at the time of material appearance reproduction.
In the present embodiment, even when the minimum value of the diffuse reflection intensity ρd(x,y) is zero, the resampling bit number is seven, so a reduction in the amount of data by about 13% is possible.
Next, a second embodiment will be described. In the following description of the second embodiment, the description of the same matter as that of the above-described first embodiment is omitted, and a matter different from that of the above-described first embodiment will be mainly described.
In the first embodiment, the specular reflection intensity ρs(x,y) is resampled uniformly over an entire image by using visual characteristics (visual characteristic curve) corresponding to the minimum value of the diffuse reflection intensity ρd(x,y). Also, a different visual characteristic curve may be used depending on a position. Therefore, in the second embodiment, an information processing apparatus that resamples the specular reflection intensity ρs(x,y) by using visual characteristics (visual characteristic curve) according to the diffuse reflection intensity ρd(x,y) at each position will be described.
The hardware components of the information processing apparatus 2 according to the second embodiment are similar to the hardware components of the information processing apparatus 2 according to the first embodiment, shown in
Here, the logical components of the information processing apparatus 2 according to the second embodiment will be described with reference to
The specular reflection intensity conversion unit 502 converts the specular reflection intensity ρs(x,y) to a specular reflection perception intensity ρc(x,y) in accordance with visual characteristics (visual characteristic curve) corresponding to the diffuse reflection intensity ρd(x,y) at each position (x,y). The resampling unit 503 resamples the specular reflection perception intensity ρc(x,y) converted by the specular reflection intensity conversion unit 502 to create specular reflection information ρscomp (x,y) with a reduced amount of data used.
Process that is Executed by Information Processing Apparatus 2
In S601, the material appearance information acquisition unit 501, as in the case of the first embodiment, acquires material appearance information including information indicating a diffuse reflection intensity ρd(x,y) and information indicating a specular reflection intensity ρs(x,y) from the data storage locations in accordance with instructions from the user.
Subsequently, in S801, the specular reflection intensity conversion unit 502 executes S802 for all the positions (x,y) that are the entire region.
Subsequently, in S802, the specular reflection intensity conversion unit 502 converts the specular reflection intensity ρs(x,y) acquired in S601 to a specular reflection perception intensity ρc(x,y) in accordance with the visual characteristic curve corresponding to the diffuse reflection intensity ρd(x,y) acquired in S601. Here, as in the case of the first embodiment, the specular reflection intensity conversion unit 502 calculates the specular reflection perception intensity ρc(x,y) by converting the specular reflection intensity ρs(x,y) using the following equation (7) with the use of the contrast gloss c in the Lcd space for the visual characteristic curve.
Subsequently, in S803, the resampling unit 503 resamples the specular reflection perception intensity ρc(x,y) converted through S801 and S802. The detailed process of S803 is similar to S603 in the first embodiment, so the description thereof is omitted.
Subsequently, in S804, the resampling unit 503 executes S805 over all the positions (x,y) that are the entire region.
In S805, the resampling unit 503 calculates a bit number used to represent the values of the resampled specular reflection perception intensity ρcre(x,y) calculated in S803 and holds specular reflection information ρscomp (x,y) in accordance with the bit number. The details of S805 will be described below.
Initially, the resampling unit 503 calculates a specular reflection perception intensity ρ′cre (ρd(x,y)), obtained by resampling the maximum value of the contrast gloss c for the diffuse reflection intensity ρd(x,y) according to the following equation (8).
In equation (8), ρ′cre (ρd(x,y)) is a maximum value that the resampled specular reflection perception intensity ρcre(x,y) for the diffuse reflection intensity ρd(x,y) can take. With a bit number used to the representation, it is possible to represent the value of the resampled specular reflection perception intensity ρcre(x,y) with the minimum number of bits. Initially, the resampling unit 503 calculates a resampling bit number b(ρd(x,y)) used for the resampled specular reflection perception intensity ρcre (x,y) for the diffuse reflection intensity ρd(x,y) according to the following equation (9).
b(ρd(x,y))=ceil(log2ρ′c
Subsequently, the resampling unit 503 sets the resampling bit number used to represent the values of the resampled specular reflection perception intensity ρ′cre(x,y) to b(ρd(x,y)). Specifically, the resampling unit 503 holds binary specular reflection information ρscomp (x,y) in which values of the resampled specular reflection perception intensity ρ′cre(x,y) are listed by using the resampling bit number b(ρd(x,y)).
When the process of S804 and S805 ends, the process of the flowchart shown in
In the information processing apparatus 2 according to the second embodiment, the specular reflection intensity ρs(x,y) is converted to the specular reflection perception intensity ρc(x,y) in accordance with the visual characteristics (visual characteristic curve) corresponding to the diffuse reflection intensity ρd(x,y) at each position (x,y). In the information processing apparatus 2 according to the second embodiment, the amount of data of material appearance information is reduced by resampling the converted specular reflection perception intensity ρc(x,y). In the second embodiment, a further larger amount of data is reduced by independently determining a bit number used for each pixel (set an independent bit number for each position) according to a diffuse reflection intensity as compared to the first embodiment in which the same bit number is set over the entire region.
Next, a third embodiment will be described. In the following description of the third embodiment, the description of the same matter as that of the above-described first and second embodiments is omitted, and a matter different from that of the above-described first and second embodiments will be mainly described.
In the first embodiment and the second embodiment, the information processing apparatus that reduces the amount of data of information indicating a specular reflection intensity ρs(x,y) in accordance with visual characteristics (visual characteristic curve) has been described. In the third embodiment, a system that includes an information processing apparatus and an image generating apparatus that reconstructs information indicating an original specular reflection intensity from information indicating a specular reflection intensity reduced in the amount of data by the information processing apparatus and that generates an image when light source information and geometrical information are given from the user will be described.
The information processing apparatus 2 according to the third embodiment, shown in
As shown in
Hereinafter, the logical components 501 to 503 of the information processing apparatus 2 according to the third embodiment, shown in
Initially, the logical components of the information processing apparatus 2 according to the third embodiment, shown in
The material appearance information acquisition unit 501 acquires material appearance information including information indicating a diffuse reflection intensity ρd(x,y), information indicating a specular reflection intensity ρs(x,y), information indicating a specular reflection width σl(x,y), and information indicating a normal line N(x,y). Here, the information indicating a specular reflection width σl(x,y) is information indicating the spread of specular reflection.
The specular reflection intensity conversion unit 502, as in the case of the first embodiment, converts the specular reflection intensity ρs(x,y) to a specular reflection perception intensity ρc(x,y) in accordance with visual characteristics (visual characteristic curve) for a gloss intensity, corresponding to a minimum value of the diffuse reflection intensity ρd(x,y).
The resampling unit 503, as in the case of the first embodiment, resamples the specular reflection perception intensity ρc(x,y) converted by the specular reflection intensity conversion unit 502 to create specular reflection information ρscomp(x,y) with a reduced amount of data used.
Next, the logical components of the image generating apparatus 3 according to the third embodiment, shown in
The specular reflection intensity reconstruction unit 901 reconstructs (decodes) information indicating a specular reflection intensity expressed by an original physical quantity from the specular reflection information ρscomp (x,y) reduced in the amount of data, by using the visual characteristic curve corresponding to the minimum value ρdmin of the diffuse reflection intensity ρd(x,y).
The geometrical information acquisition unit 902 acquires geometrical information including information indicating a view vector V=(Vx,Vy,Vz).
The light source information acquisition unit 903 acquires light source information including information indicating a light source vector L=(Lx,Ly,Lz) and information indicating a light source intensity E.
The image generating unit 904 generates an image by using the information indicating the specular reflection intensity ρs(x,y) reconstructed by the specular reflection intensity reconstruction unit 901, the material appearance information, the geometrical information, and the light source information. Here, the material appearance information includes the information indicating the diffuse reflection intensity ρd(x,y), the information indicating the specular reflection width σl(x,y), and the information indicating the normal line N(x,y). The geometrical information includes the information indicating the view vector V. The light source information includes the information indicating the light source vector L and the information indicating the light source intensity E.
In the information processing system 1 shown in
Process that is Executed by Information Processing Apparatus 2 and Image Generating Apparatus 3
In S1001, the material appearance information acquisition unit 501 acquires material appearance information from the data storage locations in accordance with instructions from the user. Specifically, in S1001, the material appearance information acquisition unit 501 acquires material appearance information including information indicating a diffuse reflection intensity ρd(x,y), information indicating a specular reflection intensity ρs(x,y), information indicating a specular reflection width σl(x,y), and information indicating a normal line N(x,y).
In response to pressing down of a material appearance information read button 1105 shown in
Here, a further description of
Subsequently, S602, S603, and S604 are similar to the process in the first embodiment, shown in
Subsequently, in S1002, the specular reflection intensity reconstruction unit 901 reconstructs a specular reflection intensity ρx′s(x,y) as a physical quantity from the specular reflection information ρscomp (x,y). Specifically, initially, the specular reflection intensity reconstruction unit 901 reads data in units of resampling bit number b from the specular reflection information ρscomp (x,y) and obtains a specular reflection perception intensity ρ′c(x,y) before resampling by using the sampling width d according to the following equation (10).
ρ′c(x,y)=dρs
Subsequently, the specular reflection intensity reconstruction unit 901 reconstructs a specular reflection intensity ρ′s(x,y) in a physical quantity expressed by the following equation (11) from the specular reflection perception intensity ρ′c(x,y) in accordance with the visual characteristic curve.
Subsequently, in S1003, the geometrical information acquisition unit 902 acquires geometrical information including information indicating a view vector V=(Vx,Vy,Vz). In S1003, the light source information acquisition unit 903 acquires light source information including information indicating a light source vector L=(Lx,Ly,Lz) and information indicating a light source intensity E.
The geometrical information acquisition unit 902 sets the storage location of data (information) designated by the user for the view vector V=(Vx,Vy,Vz) indicated by the reference sign 1106 in
Here, a further description of
Subsequently, in S1004, the image generating unit 904 generates an output image I(x,y) by using the information indicating the specular reflection intensity ρ's(x,y) reconstructed in S1102, the material appearance information, the geometrical information, and the light source information. Here, the material appearance information includes the information indicating the specular reflection width al(x,y) and the information indicating the normal line N(x,y), acquired in S1001. The geometrical information includes the information indicating the view vector V acquired in S1003. The light source information includes the information indicating the light source vector L and the information indicating the light source intensity E, acquired in S1003.
Specifically, the image generating unit 904 calculates and generates an output image I(x,y) according to equation (12) based on Lambert's cosine law for diffuse reflection and a model of Blinn-Phong for specular reflection.
I(x,y)=E(ρd(x,y)dot(N(x,y),L)+ρ′s(x,y)dot(N(x,y),H)1-σl(x,y)) (12)
In equation (12), dot(⋅,⋅) represents the inner product of vectors, and, when the inner product is negative, is replaced with 0. In equation (12), H is a vector (half vector) intermediate between the light source vector L and the view vector V and is calculated according to H=(L+V)/|L+V|.
When the process of S1004 ends, the process of the flowchart shown in
In the information processing apparatus 2 according to the third embodiment, the specular reflection intensity ρs(x,y) is converted to the specular reflection perception intensity ρc(x,y) in accordance with the visual characteristics (visual characteristic curve) corresponding to the minimum value of the diffuse reflection intensity ρd(x,y). Subsequently, in the information processing apparatus 2 according to the third embodiment, the specular reflection information ρscomp(x,y) reduced in the amount of data is created by resampling the converted specular reflection perception intensity ρc(x,y). In the image generating apparatus 3 according to the third embodiment, information indicating an original specular reflection intensity is reconstructed from the specular reflection information ρscomp (x,y) reduced in the amount of data in the information processing apparatus 2 by using the visual characteristic curve corresponding to the minimum value of the diffuse reflection intensity ρd(x,y). Subsequently, in the image generating apparatus 3 according to the third embodiment, an image is generated by using the information indicating the reconstructed specular reflection intensity, the material appearance information, the geometrical information, and the light source information. Thus, it is possible to generate a material appearance image for the geometrical information and the light source information, given from the user, from the specular reflection information reduced in the amount of data in the information processing apparatus 2.
Next, a fourth embodiment will be described. In the following description of the fourth embodiment, the description of the same matter as that of the above-described first to third embodiments is omitted, and a matter different from that of the above-described first to third embodiments will be mainly described.
In the third embodiment, the image generating apparatus 3 that generates an image using specular reflection information generated in the information processing apparatus 2 according to the first embodiment has been described. In the fourth embodiment, the image generating apparatus 3 that generates an image using specular reflection information generated in the information processing apparatus 2 according to the second embodiment will be described.
The hardware components of the information processing apparatus 2 according to the fourth embodiment are similar to the hardware components of the information processing apparatus 2 according to the first embodiment, shown in
The hardware components of the image generating apparatus 3 according to the fourth embodiment are similar to the hardware components of the image generating apparatus 3 according to the third embodiment. The logical components of the image generating apparatus 3 according to the fourth embodiment are similar to the logical components of the image generating apparatus 3 according to the third embodiment, shown in
The specular reflection intensity reconstruction unit 901 according to the fourth embodiment reconstructs a specular reflection intensity ρ's(x,y) expressed by an original physical quantity from the specular reflection information ρscomp(x,y) reduced in the amount of data using the visual characteristic curve corresponding to the diffuse reflection intensity ρs(x,y) at each position.
The image generating unit 904 according to the fourth embodiment generates an image by using the reconstructed specular reflection intensity ρ's(x,y), the diffuse reflection intensity ρd(x,y), the specular reflection width al(x,y), the normal line N(x,y), the view vector V, the light source vector V, and the light source intensity E.
Process that is Executed by Information Processing Apparatus 2 and Image Generating Apparatus 3
In S1001, the material appearance information acquisition unit 501, as in the case of the third embodiment, acquires material appearance information from the data storage locations in accordance with instructions from the user. Specifically, in S1001, the material appearance information acquisition unit 501 acquires material appearance information including information indicating a diffuse reflection intensity ρd(x,y), information indicating a specular reflection intensity ρs(x,y), information indicating a specular reflection width al(x,y), and information indicating a normal line N(x,y).
Subsequently, S801, S802, S803, S804, and S805 are similar to the process in the second embodiment, shown in
Subsequently, in S1201, the specular reflection intensity reconstruction unit 901 reconstructs a specular reflection intensity ρ's(x,y) as a physical quantity from the specular reflection information ρscomp (x,y). Specifically, initially, the specular reflection intensity reconstruction unit 901 reads data in units of resampling bit number b(ρd(x,y)) according to the diffuse reflection intensity ρd(x,y) from the specular reflection information ρscomp (x,y). Subsequently, the specular reflection intensity reconstruction unit 901 obtains a specular reflection perception intensity ρ′c(x,y) before resampling by using the sampling width d according to equation (10). Subsequently, the specular reflection intensity reconstruction unit 901 reconstructs a specular reflection intensity ρ's(x,y) in a physical quantity from the specular reflection perception intensity ρ′c(x,y) in accordance with the visual characteristic curve by according to equation (11).
Subsequently, in S1003, the geometrical information acquisition unit 902 and the light source information acquisition unit 903, as in the case of the third embodiment, respectively acquire geometrical information and light source information.
Subsequently, in S1202, the image generating unit 904 generates an output image I(x,y) by using the information indicating the specular reflection intensity ρ's(x,y) reconstructed in S1201, the material appearance information, the geometrical information, and the light source information. Here, the material appearance information includes the information indicating the diffuse reflection intensity ρd(x,y) acquired in S1001, the information indicating the specular reflection width al(x,y), and the information indicating the normal line N(x,y). The geometrical information includes the information indicating the view vector V=(Vx,Vy,Vz) acquired in S1003. The light source information includes the information indicating the light source vector L=(Lx,Ly,Lz) and the information indicating the light source intensity E, acquired in S1003.
When the process of S1202 ends, the process of the flowchart shown in
In the information processing apparatus 2 according to the fourth embodiment, the specular reflection intensity ρs(x,y) is converted to the specular reflection perception intensity ρc(x,y) in accordance with the visual characteristics (visual characteristic curve) corresponding to the diffuse reflection intensity ρd(x,y) at each position (x,y). Then, in the information processing apparatus 2 according to the fourth embodiment, the specular reflection information ρscomp (x,y) reduced in the amount of data is created by resampling the converted specular reflection perception intensity ρc(x,y). In the image generating apparatus 3 according to the fourth embodiment, information indicating an original specular reflection intensity is reconstructed from the specular reflection information ρscomp (x,y) reduced in the amount of data in the information processing apparatus 2 by using the visual characteristic curve corresponding to the diffuse reflection intensity at each position. Subsequently, in the image generating apparatus 3 according to the fourth embodiment, an image is generated by using the information indicating the reconstructed specular reflection intensity, the material appearance information, the geometrical information, and the light source information. Thus, it is possible to generate a material appearance image for the geometrical information and the light source information, given from the user, from the specular reflection information reduced in the amount of data in the information processing apparatus 2.
Next, a fifth embodiment will be described. In the following description of the fifth embodiment, the description of the same matter as that of the above-described first to fourth embodiments is omitted, and a matter different from that of the above-described first to fourth embodiments will be mainly described.
Next, visual characteristics to a glossiness (a degree of gloss, which is a kind of the intensity of perception felt by a human) that changes according to the specular reflection width 107 shown in
As shown in
In the present embodiment, information indicating the specular reflection width 107 is converted to a glossiness in accordance with the above-described visual characteristics between the specular reflection width 107 and a glossiness, the redundancy of the region in which the specular reflection width 107 is wide is removed, and resampling is performed with a low bit number. With this procedure, it is possible to reduce the amount of data of material appearance information with reduced image quality degradation.
Specifically, in the present embodiment, the information processing apparatus that reduces the amount of data of material appearance information by way of resampling of the specular reflection width 107 using the visual characteristic curve between the specular reflection width 107 and a glossiness will be described.
The hardware components of the information processing apparatus 2 according to the fifth embodiment are similar to the hardware components of the information processing apparatus 2 according to the first embodiment, shown in
As shown in
The specular reflection width information acquisition unit 1501 acquires, for example, specular reflection width information input from the user via the input device 23. The specular reflection width information is information that belongs to specular reflection information included in material appearance information. Specifically, the specular reflection width information acquisition unit 1501 acquires specular reflection width information including information indicating a specular reflection width map σ(x,y). In the specular reflection width map σ(x,y), x represents a selected position in a horizontal direction of two-dimensional data, y represents a selected position in a vertical direction of the two-dimensional data, and (x,y) represents a value of a position designated by x and y.
The gloss map conversion unit 1502 converts the specular reflection width map σ(x,y) acquired by the specular reflection width information acquisition unit 1501 to a gloss map G(x,y) concerned with the intensity of perception felt by a human in accordance with conversion information of a visual characteristic curve held by the conversion information holding unit 1504. Specifically, the gloss map conversion unit 1502 converts the specular reflection width map σ(x,y) to the gloss map G(x,y) in accordance with conversion information of the visual characteristic curve from the specular reflection width 107 to the glossiness, held by the conversion information holding unit 1504.
The resampling unit 1503 creates a low tone gloss map LG(x,y) by resampling the gloss map G(x,y) obtained by the gloss map conversion unit 1502.
The conversion information holding unit 1504 holds conversion information of the visual characteristic curve that represents the relationship between specular reflection width 107 and glossiness. The conversion information held by the conversion information holding unit 1504 includes conversion information from the specular reflection width 107 to a glossiness and conversion information from a glossiness to the specular reflection width 107.
Process that is Executed by Information Processing Apparatus 2
In S1701, the specular reflection width information acquisition unit 1501 acquires specular reflection width information including information indicating a specular reflection width map σ(x,y) from a data storage location in accordance with the instructions from the user.
Subsequently, in S1702, the gloss map conversion unit 1502 converts the specular reflection width map σ(x,y) acquired in S1701 to the gloss map G(x,y) using conversion information from the specular reflection width 107 to a glossiness, held by the conversion information holding unit 1504.
Subsequently, in S1703, the resampling unit 1503 creates a low tone gloss map LG(x,y) by resampling the gloss map G(x,y) obtained in S1702.
Specifically, the resampling unit 1503 initially sets the sampling width d of the gloss map G(x,y) and calculates an intermediate low tone gloss map LG′(x,y) according to the following equation (13).
In equation (13), floor( ) is a function that rounds down to the nearest whole number.
The sampling width d is calculated according to the following equation (14) in accordance with a bit number Bn used for sampling. In equation (13), m denotes the maximum value of a value that the gloss map G(x,y) can take. The bit number Bn may be separately designated from the user. In the present embodiment, Bn is set to 8, d is set to 256, and m is set to 100.
d=2Bn (14)
Subsequently, the resampling unit 1503 creates binary data in which values at positions of the calculated intermediate low tone gloss map LG′(x,y) are listed, as a low tone gloss map LG(x,y).
When the process of S1703 ends, the process of the flowchart shown in
In the information processing apparatus 2 according to the fifth embodiment, the amount of data of material appearance information is reduced by resampling the specular reflection width 107 using the visual characteristic curve for the specular reflection width 107 that belongs to the specular reflection information. With resampling in accordance with the visual characteristic curve, it is possible to reduce the amount of data of material appearance information with less image quality degradation at the time of material appearance reproduction.
Next, a sixth embodiment will be described. In the following description of the sixth embodiment, the description of the same matter as that of the above-described first to fifth embodiments is omitted, and a matter different from that of the above-described first to fifth embodiments will be mainly described.
In the fifth embodiment, the information processing apparatus that reduces the amount of data of specular reflection width information in accordance with visual characteristics (visual characteristic curve) has been described. In the sixth embodiment, a system that includes an information processing apparatus and an image generating apparatus that reconstructs original specular reflection width information from specular reflection width information reduced in the amount of data by the information processing apparatus and that generates an image when light source information and geometrical information are given from the user will be described.
The information processing apparatus 2 according to the sixth embodiment, shown in
As shown in
The specular reflection width information reconstruction unit 1901 reconstructs (decodes) a specular reflection width map σ′(x,y) from a low tone gloss map LG(x,y) created by the resampling unit 1503 using conversion information from a glossiness to the specular reflection width 107, held by the conversion information holding unit 1504.
The geometrical information acquisition unit 1902 acquires geometrical information including information indicating a view vector V=(Vx,Vy,Vz).
The light source information acquisition unit 1903 acquires light source information including information indicating a light source vector L=(Lx,Ly,Lz) and information indicating a light source intensity E.
The normal line information acquisition unit 1904 acquires normal line information including information indicating a normal line map N(x,y).
The specular reflection intensity information acquisition unit 1905 acquires specular reflection intensity information including information indicating a specular reflection intensity map ρs(x,y).
The diffuse reflection intensity information acquisition unit 1906 acquires diffuse reflection intensity information including information indicating a diffuse reflection intensity map ρd(x,y).
The image generating unit 1907 generates an image by using the specular reflection width map σ′(x,y), the specular reflection intensity map ρs(x,y), the diffuse reflection intensity map ρd(x,y), the normal line map N(x,y), the view vector V, the light source vector L, and the light source intensity E.
In the information processing system 1 shown in
Process that is Executed by Information Processing Apparatus 2 and Image Generating Apparatus 3
Initially, in S1701, the specular reflection width information acquisition unit 1501, as in the case of the fifth embodiment, acquires specular reflection width information including information indicating a specular reflection width map σ(x,y) from a data storage location in accordance with the instructions from the user.
Subsequently, in S1702, the gloss map conversion unit 1502, as in the case of the fifth embodiment, converts the specular reflection width map σ(x,y) acquired in S1701 to the gloss map G(x,y) using conversion information from the specular reflection width 107 to a glossiness.
Subsequently, in S1703, the resampling unit 1503, as in the case of the fifth embodiment, creates a low tone gloss map LG(x,y) by resampling the gloss map G(x,y) obtained in S1702.
Subsequently, in S2001, the specular reflection width information reconstruction unit 1901 reconstructs a specular reflection width map σ′(x,y) from a low tone gloss map LG(x,y) created in S1703 using conversion information from a glossiness to the specular reflection width 107, held by the conversion information holding unit 1504.
Subsequently, in S2002, the geometrical information acquisition unit 1902 acquires geometrical information including information indicating the view vector V from the data storage location in accordance with instructions from the user. Subsequently, in S2002, the light source information acquisition unit 1903 acquires light source information including information indicating the light source vector L and information indicating the light source intensity E from the data storage location in accordance with instructions from the user. In S2002, the normal line information acquisition unit 1904 acquires normal line information including information indicating a normal line map N(x,y) from the data storage location in accordance with instructions from the user. In S2002, the specular reflection intensity information acquisition unit 1905 acquires specular reflection intensity information including information indicating a specular reflection intensity map ρs(x,y) from the data storage location in accordance with instructions from the user. In S2002, the diffuse reflection intensity information acquisition unit 1906 acquires diffuse reflection intensity information including information indicating a diffuse reflection intensity map ρd(x,y) from the data storage location in accordance with instructions from the user.
In response to pressing down of a read button 2108 shown in
In response to pressing down of the read button 2108 shown in
Here, a further description of
In S2003, the image generating unit 1907 generates an image by using the specular reflection width map σ′(x,y), the specular reflection intensity map ρs(x,y), the diffuse reflection intensity map ρd(x,y), the normal line map N(x,y), the view vector V, the light source vector L, and the light source intensity E. Specifically, the image generating unit 904 calculates and generates an output image I(x,y) by using equation (12) based on Lambert's cosine law for diffuse reflection and a model of Blinn-Phong for specular reflection.
When the process of S2003 ends, the process of the flowchart shown in
Next, a seventh embodiment will be described. In the following description of the seventh embodiment, the description of the same matter as that of the above-described first to sixth embodiments is omitted, and a matter different from that of the above-described first to sixth embodiments will be mainly described.
The seventh embodiment is a mode in which a process is executed for each position (each pixel) of the specular reflection width map σ(x,y) in the fifth embodiment.
The hardware components of the information processing apparatus 2 according to the seventh embodiment are similar to the hardware components of the information processing apparatus 2 according to the first embodiment, shown in
Process that is Executed by Information Processing Apparatus 2
Initially, in S2201, the information processing apparatus 2 according to the seventh embodiment executes a series of processing of S2202 and of S1701 to S1703 for each x where the number of data in a horizontal direction of the specular reflection width map σ(x,y) is W (x=0, 1, . . . , W).
In S2202, the information processing apparatus 2 according to the seventh embodiment executes a series of processing of S1701 to S1703 for each y where the number of data in a vertical direction of the specular reflection width map σ(x,y) is H (y=0, 1, . . . , H).
The steps of S1701 to S1703 of
Next, an eighth embodiment will be described. In the following description of the eighth embodiment, the description of the same matter as that of the above-described first to seventh embodiments is omitted, and a matter different from that of the above-described first to seventh embodiments will be mainly described.
Hereinafter, the visual characteristics of a human, which is focused on in the present embodiment, will be described. In the present embodiment, the sensitivity of each of the specular reflection intensity 106 and the specular reflection width 107 in
In the present embodiment, the amount of data of material appearance information is reduced by resampling the specular reflection intensity 106 and the specular reflection width 107 in a space linear to the intensity of perception in accordance with visual characteristics of the above-described specular reflection intensity 106 and specular reflection width 107 to a gloss intensity. At this time, as the specular reflection intensity 106 increases, it is possible to reduce a bit number used to represent the specular reflection width 107, and, as the specular reflection width 107 reduces, it is possible to reduce a bit number used to represent the specular reflection intensity 106.
In the present embodiment, an information processing apparatus that reduces the amount of data of material appearance information by resampling the specular reflection intensity 106 using a visual characteristic curve of the specular reflection width 107 for a gloss intensity will be described.
The hardware components of the information processing apparatus 2 according to the eighth embodiment are similar to the hardware components of the information processing apparatus 2 according to the first embodiment, shown in
As shown in
The material appearance information acquisition unit 2401 acquires material appearance information including information indicating a specular reflection intensity ρs(x,y) corresponding to the specular reflection intensity 106 of
The specular reflection information conversion unit 2402 converts the specular reflection intensity ρs(x,y) to the intensity of perception ρsp(x,y) of specular reflection intensity in accordance with visual characteristics (visual characteristic curve) of the specular reflection intensity ρs(x,y) for a gloss intensity for a mean value of the specular reflection width ρl(x,y).
The resampling unit 2403 creates specular reflection information ρscomp (x,y) reduced in the amount of data used, by resampling the intensity of perception ρsp(x,y) of specular reflection intensity obtained by the specular reflection information conversion unit 2402.
Process that is Executed by Information Processing Apparatus 2
In S2501, the material appearance information acquisition unit 2401 acquires material appearance information including information indicating a specular reflection intensity ρs(x,y) and information indicating a specular reflection width ρl(x,y) from the data storage location in accordance with instructions from the user.
Here, a further description of
Subsequently, in S2502, the specular reflection information conversion unit 2402 converts the specular reflection intensity ρs(x,y) acquired in S2501 to the intensity of perception ρsp(x,y) of specular reflection intensity in accordance with a visual characteristic curve corresponding to the mean value of the specular reflection width ρl(x,y) acquired in S2501. The details of S2502 will be described below.
Initially, the specular reflection information conversion unit 2402 acquires a mean value ρlave of the specular reflection width ρl(x,y) according to the following equation (15).
Subsequently, the specular reflection information conversion unit 2402 converts the specular reflection intensity ρs(x,y) to the intensity of perception ρsp(x,y) of specular reflection intensity by using the visual characteristic curve corresponding to the mean value ρlave of specular reflection width. In the present embodiment, the specular reflection intensity ρs(x,y) is converted to the intensity of perception ρsp(x,y) of specular reflection intensity according to the visual characteristic curve expressed by the following equation (16).
ρsp(x,y)=√{square root over (k1f(ρs(x,y))+k2(g(ρl
In equation (16), f(ρs) and g(ρl) are respectively expressed by the following equations (17) and (18).
In equations (16) to (18), kn (n is a natural number) is a coefficient or a constant in equation and is determined so as to fit to the intensity of perception of a human. A value of k is obtained such that a coefficient of correlation between a psychophysical quantity obtained from equations (16) to (18) for the specular reflection intensity and the specular reflection width, obtained by measuring samples with different degrees of the specular reflection intensity ρs(x,y) or the specular reflection width ρl(x,y), and a subjective evaluation value obtained by a subjective evaluation experiment increases.
Subsequently, in S2503, the resampling unit 2403 resamples the intensity of perception ρsp(x,y) of specular reflection intensity, obtained in S2502. Specifically, the resampling unit 2403 sets a sampling width d of the intensity of perception ρsp(x,y) of specular reflection intensity and calculates a resampled specular reflection intensity perception intensity ρspre(x,y) according to the following equation (19).
In equation (19), floor( ) is a function that rounds down to the nearest whole number. In equation (19), the sampling width d is set in accordance with a differential threshold of the intensity of perception ρsp of specular reflection intensity. The sampling width d may be separately designated by the user.
Subsequently, in S2504, the resampling unit 2403 calculates a bit number used to represent the values of the resampled specular reflection intensity perception intensity ρspre(x,y) obtained in S2503 and holds specular reflection information ρscomp(x,Y) in accordance with the bit number. The details of S2504 will be described below.
Initially, the resampling unit 2403, for the mean value ρlave of specular reflection width, obtains the maximum value and the minimum value of the resampled specular reflection intensity perception intensity ρsp, in a range (0 to 65535) that the specular reflection intensity can take, according to the following equations (20) and (21).
A difference between ρspre_max in equation (20) and ρspre_min in equation (21) is the maximum range that the resampled specular reflection intensity perception intensity ρspre(x,y) can take. With a bit number used for the representation, it is possible to represent the value of the resampled specular reflection intensity perception intensity ρspre(x,y) without excess. The resampling unit 2403 also calculates a resampling bit number bit_num used to represent the resampled specular reflection intensity perception intensity ρsp re (x,y) according to the following equation (22).
In equation (22), ceil( ) is a function that rounds up to the nearest whole number. Subsequently, the resampling unit 2403 sets specular reflection information ρscomp(x,y) in accordance with the resampling bit number bit_num used to represent the values of the resampled specular reflection intensity perception intensity ρspre(x,y). Specifically, the resampling unit 2403 holds binary specular reflection information ρscomp (x,y) in which values at positions of the resampled specular reflection intensity perception intensity ρspre (x,y) are listed in units of the resampling bit number bit_num.
When the process of S2504 ends, the process of the flowchart shown in
In the information processing apparatus 2 according to the eighth embodiment, the specular reflection intensity ρs(x,y) is converted to the intensity of perception ρsp(x,y) of specular reflection intensity in accordance with the visual characteristics (visual characteristic curve) corresponding to the mean value of the specular reflection width ρl(x,y). In the information processing apparatus 2 according to the eighth embodiment, the amount of data of material appearance information is reduced by resampling the converted intensity of perception ρsp(x,y) of specular reflection intensity. With resampling in accordance with the above-described human visual characteristics (visual characteristic curve), it is possible to reduce the amount of data of material appearance information with less image quality degradation at the time of material appearance reproduction.
Next, a ninth embodiment will be described. In the following description of the ninth embodiment, the description of the same matter as that of the above-described first to eighth embodiments is omitted, and a matter different from that of the above-described first to eighth embodiments will be mainly described.
In the eighth embodiment, the specular reflection intensity ρs(x,y) is resampled by using visual characteristics (visual characteristic curve) corresponding to the mean value of the specular reflection width ρl(x,y). In the ninth embodiment, an information processing apparatus that resamples the specular reflection width ρl(x,y) by using visual characteristics (visual characteristic curve) corresponding to the mean value of the specular reflection intensity ρs(x,y) will be described.
The hardware components of the information processing apparatus 2 according to the ninth embodiment are similar to the hardware components of the information processing apparatus 2 according to the first embodiment, shown in
Here, the logical components of the information processing apparatus 2 according to the ninth embodiment will be described with reference to
Process that is Executed by Information Processing Apparatus 2
In S2701, the material appearance information acquisition unit 2401 acquires material appearance information including information indicating a specular reflection intensity ρs(x,y) and information indicating a specular reflection width ρl(x,y) from the data storage location in accordance with instructions from the user. In the present embodiment, the information indicating the specular reflection intensity ρs(x,y) and the information indicating the specular reflection width ρl(x,y) are expressed in a 16-bit gray scale image format, and a value of each of the specular reflection intensity and the specular reflection width is associated with a range of 0 to 65535 in pixel value.
Subsequently, in S2702, the specular reflection information conversion unit 2402 converts the specular reflection width ρl(x,y) to the intensity of perception ρlp(x,y) of specular reflection width in accordance with a visual characteristic curve corresponding to the mean value of the specular reflection intensity ρs(x,y) acquired in S2701. The details of S2702 will be described below.
Initially, the specular reflection information conversion unit 2402 acquires a mean value ρsave of the specular reflection intensity ρs(x,y) according to the following equation (23).
Subsequently, the specular reflection information conversion unit 2402 converts the specular reflection width ρl(x,y) to the intensity of perception ρlp(x,y) of specular reflection width by using the visual characteristic curve corresponding to the mean value ρsave of the specular reflection intensity. In the present embodiment, the specular reflection width ρl(x,y) is converted to the intensity of perception ρlp(x,y) of specular reflection width according to the visual characteristic curve expressed by the following equation (24).
ρlp(x,y)=√{square root over (k1f(ρs
In equation (24), f(ρs) and g(ρl) are respectively expressed by equations (17) and (18) described above.
Subsequently, in S2703, the resampling unit 2403 resamples the intensity of perception ρlp(x,y) of specular reflection width, obtained in S2702. Specifically, the resampling unit 2403 sets a sampling width d of the intensity of perception ρlp(x,y) of specular reflection width and calculates a resampled specular reflection width perception intensity ρlp re (x,y) according to the following equation (25).
In equation (25), floor( ) is a function that rounds down to the nearest whole number. In equation (25), the sampling width d is set in accordance with a differential threshold of the intensity of perception ρlp of specular reflection width. The sampling width d may be separately designated by the user.
Subsequently, in S2704, the resampling unit 2403 calculates a bit number used to represent the values of the resampled specular reflection width perception intensity ρlpre(x,y) obtained in S2703 and holds specular reflection information ρlcomp(x,y) in accordance with the bit number. The details of S2704 will be described below.
Initially, the resampling unit 2403, for the mean value ρsave of the specular reflection intensity, obtains the maximum value and the minimum value of the resampled specular reflection width perception intensity ρlpre(x,y) in a range (0 to 65535) that the specular reflection width can take, according to the following equations (26) and (27).
ρlp
ρlp
In equation (26), g(0)=1 (maximum value that the function g can take). A difference between ρlpre_max in equation (26) and ρlpre_min in equation (27) is the maximum range that the resampled specular reflection width perception intensity ρlpre(x,y) can take. With a bit number used for the representation, it is possible to represent the value of the resampled specular reflection width perception intensity ρlpre (x,y) with the minimum number of bits. The resampling unit 2403 also calculates a resampling bit number bit_num used to represent the resampled specular reflection width perception intensity ρlpre (x,y) according to the following equation (28).
In equation (28), ceil( ) is a function that rounds up to the nearest whole number. Subsequently, the resampling unit 2403 sets specular reflection information ρlcomp (x,y) in accordance with the resampling bit number bit_num used to represent the values of the resampled specular reflection width perception intensity ρlpre (x,y). Specifically, the resampling unit 2403 holds binary specular reflection information ρlcomp (x,y) in which values at positions of the resampled specular reflection width perception intensity ρlpre(x,y) are listed in units of the resampling bit number bit_num.
In the information processing apparatus 2 according to the ninth embodiment, the specular reflection width ρl(x,y) is converted to the intensity of perception ρlp(x,y) of specular reflection width in accordance with the visual characteristics (visual characteristic curve) corresponding to the mean value of the specular reflection intensity ρs(x,y). In the information processing apparatus 2 according to the ninth embodiment, the amount of data of material appearance information is reduced by resampling the converted intensity of perception ρlp(x,y) of specular reflection width. With resampling in accordance with the above-described human visual characteristics (visual characteristic curve), it is possible to reduce the amount of data of material appearance information with less image quality degradation at the time of material appearance reproduction.
Next, a tenth embodiment will be described. In the following description of the tenth embodiment, the description of the same matter as that of the above-described first to ninth embodiments is omitted, and a matter different from that of the above-described first to ninth embodiments will be mainly described.
In the eighth embodiment, the specular reflection intensity ρs(x,y) is uniformly resampled over the entire image by using a visual characteristic curve corresponding to the mean value of the specular reflection width ρl(x,y). In the ninth embodiment, the specular reflection width ρl(x,y) is uniformly resampled over the entire image by using a visual characteristic curve corresponding to the mean value of the specular reflection intensity ρs(x,y). Also, a different visual characteristic curve may be used depending on a position. Therefore, in the tenth embodiment, an information processing apparatus that resamples the specular reflection intensity ρs(x,y) by using visual characteristics (visual characteristic curve) according to the specular reflection width ρl(x,y) at each position will be described.
The hardware components of the information processing apparatus 2 according to the tenth embodiment are similar to the hardware components of the information processing apparatus 2 according to the first embodiment, shown in
Here, the logical components of the information processing apparatus 2 according to the tenth embodiment will be described with reference to
Process that is Executed by Information Processing Apparatus 2
In S2501, the material appearance information acquisition unit 2401, as in the case of the eighth embodiment, acquires material appearance information including information indicating a specular reflection intensity ρs(x,y) and information indicating a specular reflection width ρl(x,y) from the data storage location in accordance with instructions from the user.
Subsequently, in S2801, the specular reflection information conversion unit 2402 executes S2802 for all the positions (x,y) that are the entire region.
In S2802, the specular reflection information conversion unit 2402 converts the specular reflection intensity ρs(x,y) acquired in S2501 to the intensity of perception ρsp(x,y) of specular reflection intensity in accordance with a visual characteristic curve corresponding to the specular reflection width ρl(x,y) acquired in S2501. In the present embodiment, the specular reflection intensity ρs(x,y) is converted to the intensity of perception ρsp(x,y) of specular reflection intensity according to the visual characteristic curve expressed by the following equation (29).
ρsp(x,y)=√{square root over (k1f(ρs(x,y))+k2(g(ρl(x,y)))2)} (29)
Subsequently, in S2803, the resampling unit 2403 resamples the intensity of perception ρsp(x,y) of specular reflection intensity, converted through S2801 and S2802. The detailed process of S2803 is similar to S2503 in the eighth embodiment, so the description thereof is omitted, but the intensity of perception of specular reflection intensity obtained by resampling is defined as a resampled specular reflection intensity perception intensity ρspre(x,y).
Subsequently, in S2804, the resampling unit 2403 executes S2805 over all the positions (x,y) that are the entire region.
Subsequently, in S2805, the resampling unit 2403 calculates a bit number used to represent the values of the resampled specular reflection intensity perception intensity ρspre(x,y) obtained in S2803 and holds specular reflection information ρscomp(x,y) in accordance with the bit number. The details of S2805 will be described below.
Initially, the resampling unit 2403, for the specular reflection width ρl(x,y), obtains the maximum value and the minimum value of the resampled specular reflection intensity perception intensity ρspre(x,y) in a range (0 to 65535) that the specular reflection intensity can take, according to the following equations (30) and (31).
A difference between ρspre max(x,y) in equation (30) and ρspre min(x,y) in equation (31) is the maximum range that the resampled specular reflection intensity perception intensity ρspre(x,y) for the specular reflection width ρl(x,y) takes at each position. With a bit number used for the representation, it is possible to represent the value of the resampled specular reflection intensity perception intensity ρspre(x,y) with the minimum number of bits. The resampling unit 2403 also calculates a resampling bit number bit_num(x,y) used to represent the resampled specular reflection intensity perception intensity ρspre(x,y) according to the following equation (32).
Subsequently, the resampling unit 2403 sets specular reflection information ρscomp(x,y) in accordance with the resampling bit number bit_num used to represent the values of the resampled specular reflection intensity perception intensity ρspre(x,y). Specifically, the resampling unit 2403 holds binary specular reflection information ρscomp (x,y) in which values of the resampled specular reflection intensity perception intensity ρspre(x,y) are listed by using the resampling bit number bit_num(x,y).
When the process of S2805 ends, the process of the flowchart shown in
In the information processing apparatus 2 according to the tenth embodiment, the specular reflection intensity ρs(x,y) is converted to the intensity of perception ρsp(x,y) of specular reflection intensity in accordance with the visual characteristics (visual characteristic curve) corresponding to the specular reflection width ρl(x,y) at each position (x,y). In the information processing apparatus 2 according to the tenth embodiment, the amount of data of material appearance information is reduced by resampling the converted intensity of perception ρsp(x,y) of specular reflection intensity. In the tenth embodiment, a further larger amount of data is reduced by independently determining a bit number used for each pixel (set an independent bit number for each position) according to a specular reflection intensity as compared to the eighth embodiment.
Next, an eleventh embodiment will be described. In the following description of the eleventh embodiment, the description of the same matter as that of the above-described first to tenth embodiments is omitted, and a matter different from that of the above-described first to tenth embodiments will be mainly described.
In the eighth to tenth embodiments, the information processing apparatus that reduces the amount of data of specular reflection information in accordance with visual characteristics (visual characteristic curve) has been described. In the eleventh embodiment, a system that includes an information processing apparatus and an image generating apparatus that reconstructs original specular reflection information from specular reflection information reduced in the amount of data by the information processing apparatus and that generates an image when light source information and geometrical information are given from the user will be described.
The information processing apparatus 2 according to the eleventh embodiment, shown in
As shown in
At this time, the image generating apparatus 3 according to the eleventh embodiment functions as logical components 2901 to 2904 shown in
Hereinafter, the logical components 2401 to 2403 of the information processing apparatus 2 according to the eleventh embodiment, shown in
Initially, the logical components of the information processing apparatus 2 according to the eleventh embodiment, shown in
The material appearance information acquisition unit 2401 acquires material appearance information including information indicating a diffuse reflection intensity ρd(x,y), information indicating a specular reflection intensity ρs(x,y), information indicating a specular reflection width al(x,y), and information indicating a normal line N(x,y).
The specular reflection information conversion unit 2402 converts the specular reflection intensity ρs(x,y) to the intensity of perception ρsp(x,y) of specular reflection intensity in accordance with visual characteristics (visual characteristic curve) of the specular reflection intensity ρs(x,y) for a gloss intensity for a mean value of the specular reflection width ρl(x,y).
The resampling unit 2403 creates specular reflection information ρscomp (x,y) reduced in the amount of data used, by resampling the intensity of perception ρsp(x,y) of specular reflection intensity obtained by the specular reflection information conversion unit 2402.
Next, the logical components of the image generating apparatus 3 according to the eleventh embodiment, shown in
The specular reflection information reconstruction unit 2901 reconstructs a specular reflection intensity ρ's(x,y) expressed by an original physical quantity from the specular reflection information ρscomp (x,y) reduced in the amount of data using the visual characteristic curve of the specular reflection intensity for the mean value of the specular reflection width ρl(x,y).
The geometrical information acquisition unit 2902 acquires geometrical information including information indicating a view vector V=(Vx,Vy,Vz).
The light source information acquisition unit 2903 acquires light source information including information indicating a light source vector L=(Lx,Ly,Lz) and information indicating a light source intensity E.
The image generating unit 2904 generates an image by using the information indicating the specular reflection intensity ρ's(x,y) reconstructed by the specular reflection information reconstruction unit 2901, the material appearance information, the geometrical information, and the light source information. Here, the material appearance information includes the information indicating the diffuse reflection intensity ρd(x,y), the information indicating the specular reflection width al(x,y), and the information indicating the normal line N(x,y). The geometrical information includes the information indicating the view vector V. The light source information includes the information indicating the light source vector L and the information indicating the light source intensity E.
In the information processing system 1 shown in
Process that is Executed by Information Processing Apparatus 2 and Image Generating Apparatus 3
In S3001, the material appearance information acquisition unit 2401 acquires material appearance information from the data storage locations in accordance with instructions from the user. Specifically, in S3001, the material appearance information acquisition unit 2401 acquires material appearance information including information indicating a diffuse reflection intensity ρd(x,y), information indicating a specular reflection intensity ρs(x,y), information indicating a specular reflection width σl(x,y), and information indicating a normal line N(x,y). The UI screen 1100 shown in
Here, a further description of
Subsequently, S2502, S2503, and S2504 are similar to the process in the eighth embodiment, shown in
Subsequently, in S3002, the specular reflection information reconstruction unit 2901 reconstructs a specular reflection intensity ρ's(x,y) as a physical quantity from the specular reflection information ρscomp (x,y). Specifically, the specular reflection information reconstruction unit 2901 reads data in units of resampling bit number b from the specular reflection information ρscomp (x,y) and obtains an intensity of perception ρ′sp(x,y) of specular reflection intensity before resampling according to the sampling width d using the following equation (33).
ρ′sp(x,y)=dρs
Subsequently, the specular reflection information reconstruction unit 2901 reconstructs a specular reflection intensity ρ's(x,y) in a physical quantity that can be expressed by the following equation (34) from the intensity of perception ρ′sp(x,y) of specular reflection intensity in accordance with the visual characteristic curve.
Subsequently, in S3003, the geometrical information acquisition unit 2902 acquires geometrical information including information indicating a view vector V=(Vx,Vy,Vz). In S3003, the light source information acquisition unit 2903 acquires light source information including information indicating a light source vector L=(Lx,Ly,Lz) and information indicating a light source intensity E. The UI screen 1100 shown in
Subsequently, in S3004, the image generating unit 2904 generates an output image I(x,y) by using the information indicating the specular reflection intensity ρ's(x,y) reconstructed in S3002, the material appearance information, the geometrical information, and the light source information. Here, the material appearance information includes the information indicating the diffuse reflection intensity ρd(x,y), the information indicating the specular reflection width σl(x,y), and the information indicating the normal line N(x,y). The geometrical information includes the information indicating the view vector V. The light source information includes the information indicating the light source vector L and the information indicating the light source intensity E. Specifically, the image generating unit 2904 calculates and generates an output image I(x,y) according to equation (35) based on Lambert's cosine law for diffuse reflection and a model of Blinn-Phong for specular reflection.
I(x,y)=E(ρd(x,y)dot(N(x,y),L)+ρ′s(x,y)dot(N(x,y),H)1-ρ
In equation (35), dot(⋅,⋅) represents the inner product of vectors, and, when the inner product is negative, is replaced with 0. In equation (35), H is a vector (half vector) intermediate between the light source vector L and the view vector V and is calculated according to H=(L+V)/|L+V|.
When the process of S3004 ends, the process of the flowchart shown in
In the information processing apparatus 2 according to the eleventh embodiment, the specular reflection intensity ρs(x,y) is converted to the intensity of perception ρsp(x,y) of specular reflection intensity in accordance with the visual characteristics (visual characteristic curve) corresponding to the mean value of the specular reflection width ρl(x,y). Subsequently, in the information processing apparatus 2 according to the eleventh embodiment, the specular reflection information ρscomp(x,y) reduced in the amount of data is created by resampling the converted intensity of perception ρsp(x,y) of specular reflection intensity. In the image generating apparatus 3 according to the eleventh embodiment, information indicating an original specular reflection intensity is reconstructed from the specular reflection information ρscomp(x,y) reduced in the amount of data by using the visual characteristic curve corresponding to the mean value of the specular reflection width ρl(x,y). Subsequently, in the image generating apparatus 3 according to the eleventh embodiment, an image is generated by using the information indicating the reconstructed specular reflection intensity, the material appearance information, the geometrical information, and the light source information. Thus, it is possible to generate a material appearance image for the geometrical information and the light source information, given from the user, from the specular reflection information reduced in the amount of data in the information processing apparatus 2.
Next, a twelfth embodiment will be described. In the following description of the twelfth embodiment, the description of the same matter as that of the above-described first to eleventh embodiments is omitted, and a matter different from that of the above-described first to eleventh embodiments will be mainly described.
In the eleventh embodiment, the image generating apparatus 3 that generates an image using specular reflection information generated in the information processing apparatus 2 according to the eighth embodiment has been described. In the twelfth embodiment, the image generating apparatus 3 that generates an image using specular reflection information generated in the information processing apparatus 2 according to the tenth embodiment will be described.
The hardware components of the information processing apparatus 2 according to the twelfth embodiment are similar to the hardware components of the information processing apparatus 2 according to the first embodiment, shown in
The hardware components of the image generating apparatus 3 according to the twelfth embodiment are similar to the hardware components of the image generating apparatus 3 according to the eleventh embodiment. The logical components of the image generating apparatus 3 according to the twelfth embodiment are similar to the logical components of the image generating apparatus 3 according to the eleventh embodiment, shown in
The specular reflection information reconstruction unit 2901 according to the twelfth embodiment reconstructs a specular reflection intensity ρ's(x,y) expressed by an original physical quantity from the specular reflection information ρscomp(x,y) reduced in the amount of data using the visual characteristic curve corresponding to the specular reflection width ρl(x,y) at each position.
The image generating unit 2904 according to the twelfth embodiment generates an image by using the reconstructed specular reflection intensity ρ's(x,y), the diffuse reflection intensity ρd(x,y), the specular reflection width al(x,y), the normal line N(x,y), the view vector V, the light source vector V, and the light source intensity E.
Process that is Executed by Information Processing Apparatus 2 and Image Generating Apparatus 3
In S2501, the material appearance information acquisition unit 2401, as in the case of the eighth embodiment, acquires material appearance information including information indicating a specular reflection intensity ρs(x,y) and information indicating a specular reflection width ρl(x,y) from the data storage location in accordance with instructions from the user.
Subsequently, S2801, S2802, S2803, S2804, and S2805 are similar to the process in the tenth embodiment, shown in
Subsequently, in S3101, the specular reflection information reconstruction unit 2901 reconstructs a specular reflection intensity ρ's(x,y) as a physical quantity from the specular reflection information ρscomp (x,y). Specifically, initially, the specular reflection information reconstruction unit 2901 reads data in units of resampling bit number bit_num(x,y) according to the specular reflection width ρl(x,y) from the specular reflection information ρscomp (x,y). Subsequently, the specular reflection information reconstruction unit 2901 obtains an intensity of perception ρ′sp(x,y) of specular reflection intensity before resampling by using the sampling width d using equation (33). Subsequently, the specular reflection information reconstruction unit 2901 reconstructs a specular reflection intensity ρ′s(x,y) in a physical quantity expressed by equation (34) from the intensity of perception p′sp(x,y) of specular reflection intensity in accordance with the visual characteristic curve.
Subsequently, in S3102, the geometrical information acquisition unit 2902 acquires geometrical information including information indicating a view vector V=(Vx,Vy,Vz). In S3102, the light source information acquisition unit 2903 acquires light source information including information indicating a light source vector L=(Lx,Ly,Lz) and information indicating a light source intensity E. The UI screen 1100 shown in
Subsequently, in S3103, the image generating unit 2904 generates an output image I(x,y) by using the information indicating the specular reflection intensity ρ's(x,y) reconstructed in S3101, the material appearance information, the geometrical information, and the light source information. Here, the material appearance information includes the information indicating the diffuse reflection intensity ρd(x,y), the information indicating the specular reflection width al(x,y), and the information indicating the normal line N(x,y). The geometrical information includes the information indicating the view vector V. The light source information includes the information indicating the light source vector L and the information indicating the light source intensity E. Specifically, the image generating unit 2904 calculates and generates an output image I(x,y) according to equation (35).
When the process of S3103 ends, the process of the flowchart shown in
In the information processing apparatus 2 according to the twelfth embodiment, the specular reflection intensity ρs(x,y) is converted to the intensity of perception ρsp(x,y) of specular reflection intensity in accordance with the visual characteristics (visual characteristic curve) corresponding to the diffuse reflection width σl(x,y) at each position (x,y). Subsequently, in the information processing apparatus 2 according to the twelfth embodiment, the specular reflection information ρscomp(x,y) reduced in the amount of data is created by resampling the converted intensity of perception ρsp(x,y) of specular reflection intensity. In the image generating apparatus 3 according to the twelfth embodiment, information indicating an original specular reflection intensity is reconstructed from the specular reflection information ρscomp(x,y) reduced in the amount of data by using the visual characteristic curve corresponding to the diffuse reflection width al(x,y) at each position (x,y). Subsequently, in the image generating apparatus 3 according to the twelfth embodiment, an image is generated by using the information indicating the reconstructed specular reflection intensity, the material appearance information, the geometrical information, and the light source information. Thus, it is possible to generate a material appearance image for the geometrical information and the light source information, given from the user, from the specular reflection information reduced in the amount of data in the information processing apparatus 2.
In the above-described embodiments, a normal line that represents the orientation of a physical object surface (which may be shape information of a subject) is used. Also, a height map may be used. Then, the height map is differentiated inside and converted to a normal line, and then a process is executed.
In the above-described embodiments, the diffuse reflection intensity ρd, the specular reflection intensity ρs, and the specular reflection width al are handled in a gray scale. Also, a diffuse reflection intensity, a specular reflection intensity, and a specular reflection width may be input for each of RGB, and then the data amount reduction process may be applied. In this case, for example, the data amount reduction process may be applied one by one for the colors of RGB.
In the first to fourth embodiments, the contrast gloss c in an Lcd space is used at the time of converting the specular reflection intensity to the intensity of perception. Also, another visual characteristic curve may be used.
In the above-described embodiments, the function of the visual characteristic curve is used at the time of converting the specular reflection intensity or the specular reflection width to the intensity of perception. Also, a LUT that represents a correspondence between intensity and intensity of perception may be generated, and conversion may be performed in accordance with the LUT.
In the above-described embodiments, it is assumed that material appearance information includes information indicating a diffuse reflection intensity, information indicating a specular reflection intensity, information indicating a specular reflection width, and information indicating a normal line. Also, material appearance information may include another piece of information according to material appearance intended to be expressed, such as an anisotropic map indicating a distribution direction of specular reflection.
In the above-described embodiments, an 8-bit image format or a 16-bit image format is used for material appearance information. Also, information in another format (such as a binary file in which pieces of data are listed, and text data) may be used as material appearance information.
In the above-described embodiments, a Blinn-Phong model is used as a model equation of specular reflection light in editing model material appearance. Also, another model equation, such as a Torrance-Sparrow model and approximation using a Gaussian function, may be used.
In some of the above-described embodiments, specular reflection width information is used as input. Also, reflection characteristic data of a physical object as shown in
In some of the above-described embodiments, a specular reflection width is handled in a 16-bit gray scale image. Also, another image format (such as an 8-bit image format) or information in another format (such as a binary file in which pieces of data are listed and text data) may be used. In some of the above-described embodiments, the specular reflection width is set to a range of 0[Deg] to 90[Deg]; however, the range of the specular reflection width may be selectively designated.
In the above-described embodiments, a method of reducing the amount of data for each of the specular reflection intensity and the specular reflection width has been described. Also, the amount of data may be reduced for both the specular reflection intensity and the specular reflection width.
According to the embodiments of the present disclosure, it is possible to reduce the amount of data of material appearance information with reduced image quality degradation at the time of material appearance reproduction.
Some embodiment(s) of the present disclosure can also be realized by a computer of a system or apparatus that reads out and executes computer-executable instructions (e.g., one or more programs) recorded on a storage medium (which may also be referred to more fully as a ‘non-transitory computer-readable storage medium’) to perform the functions of one or more of the above-described embodiment(s) and/or that includes one or more circuits (e.g., application specific integrated circuit (ASIC)) for performing the functions of one or more of the above-described embodiment(s), and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer-executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment(s) and/or controlling the one or more circuits to perform the functions of one or more of the above-described embodiment(s). The computer may comprise one or more processors (e.g., central processing unit (CPU), micro processing unit (MPU)) and may include a network of separate computers or separate processors to read out and execute the computer-executable instructions. The computer-executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™), a flash memory device, a memory card, and the like.
While the present disclosure has described exemplary embodiments, it is to be understood that some embodiments are not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims priority to Japanese Patent Application No. 2022-116600, which was filed on Jul. 21, 2022 and which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2022-116600 | Jul 2022 | JP | national |