Image processing device, image processing method, and program
The image processing apparatus automatically determines and displays texture information under multiple viewing conditions, addressing the inefficiency of user-input-dependent texture presentation in existing techniques.
Patent Information
- Application Number
- JP2020161332
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-09-25
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-09-25
AI Technical Summary
Existing image processing techniques require user input to change viewing conditions for expressing the texture of an object, which is inefficient and cumbersome.
An image processing apparatus that automatically determines if target data includes texture information and displays a moving image or still image based on this determination, allowing the texture of an object to be presented under multiple viewing conditions without user input.
Enables the presentation of an object's texture under various viewing conditions without requiring user input to change settings, enhancing user experience and efficiency.
Smart Images

Figure 0007570867000001 
Figure 0007570867000002 
Figure 0007570867000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an image processing technique for expressing the texture of an object. [Background technology]
[0002] With the spread of internet shopping, there is an increasing demand to express not only the color and shape of products but also their texture on the screens of PCs, tablet terminals, and smartphones. Various 3DCG techniques are used to express the texture of an object's material, paint, etc. Patent Document 1 discloses a technology for generating a two-dimensional image that expresses the texture of an object according to the positions of a light source, object, and viewpoint. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2005-122719 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, in Patent Document 1, when a user wants to check the texture of an object under a plurality of observation conditions, the user needs to input light source information, viewpoint information, and the like every time the observation conditions are changed.
[0005] An object of the present invention is to provide a process for presenting the texture of an object under a plurality of observation conditions without the user having to input information to change the observation conditions. [Means for solving the problem]
[0006] In order to solve the above problem, an image processing device according to the present invention includes an acquisition means for acquiring target data, a determination means for determining whether the target data has texture information of an object, and a display control means for displaying an image corresponding to the target data on a display means based on a determination result by the determination means, wherein the display control means: The determination means The target data The above Contains texture information of objects It was determined that In this case, the target data The object , A video including multiple frames generated by rendering using different parameters is displayed on the display means When the determination means determines that the target data does not have texture information of the object, the display control means displays a still image of the object corresponding to the target data on the display means. The present invention is characterized by the above. Effect of the Invention
[0007] According to the present invention, it is possible to present the texture of an object under a plurality of observation conditions without the user having to input information to change the observation conditions. [Brief description of the drawings]
[0008] [Figure 1] Block diagram showing the hardware configuration of an image processing device [Diagram 2] Block diagram showing the functional configuration of an image processing device [Diagram 3] 1 is a flowchart showing a process executed by an image processing device; [Figure 4] A diagram showing an example of a user interface [Diagram 5] Block diagram showing the functional configuration of an image processing device [Figure 6] A diagram showing an example of a user interface [Figure 7] 1 is a flowchart showing a process executed by an image processing device; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Note that the following embodiment does not necessarily limit the present invention. Furthermore, not all of the combinations of features described in the embodiment are necessarily essential to the solution of the present invention.
[0010] [First embodiment] <Hardware configuration of image processing device> FIG. 1 is a block diagram showing a hardware configuration of an image processing device 1. The image processing device 1 includes a CPU 101, a ROM 102, and a RAM 103. The image processing device 1 also includes a VC (video card) 104, a general-purpose I / F (interface) 105, a SATA (serial ATA) I / F 106, and a NIC (network interface card) 107. The CPU 101 executes an OS (operating system) and various programs stored in the ROM 102, a HDD (hard disk drive) 112, etc., using the RAM 103 as a work memory. The CPU 101 also controls each component via a system bus 108. Note that, in the process according to the flowchart described later, program codes stored in the ROM 102, the HDD 112, etc. are expanded in the RAM 103 and executed by the CPU 101. A display 114 is connected to the VC 104. An input device 110 such as a mouse and a keyboard is connected to the general-purpose I / F 105 via a serial bus 109. A general-purpose drive 113 that reads and writes data from and to an HDD 112 and various recording media is connected to the SATA I / F 106 via a serial bus 111. The NIC 107 inputs and outputs information to and from external devices. The CPU 101 uses the HDD 112 and various recording media mounted on the general-purpose drive 113 as storage locations for various data. The CPU 101 displays a GUI (Graphical User Interface) provided by a program on a display 114, and receives inputs such as user instructions via an input device 110.
[0011] <Functional configuration of image processing device> Fig. 2 is a block diagram showing the functional configuration of the image processing device 1. The CPU 101 functions as the functional configuration shown in Fig. 2 by using the RAM 103 as a work memory and reading and executing a program stored in the ROM 102 or the HDD 112. Note that it is not necessary for all of the processes shown below to be executed by the CPU 101, 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 101.
[0012] The image processing device 1 includes an acquisition unit 201, a determination unit 202, a generation unit 203, and a display control unit 204. The acquisition unit 201 acquires data having texture information of an object or two-dimensional still image data as target data. The data having texture information in this embodiment is data in a 3D model format and described in wavefront OBJ format. When rendering is performed using data in wavefront OBJ format, an MTL format file, which is a 3D texture format, is referenced. The two-dimensional still image data is image data in a JPG format or the like.
[0013] The determination unit 202 determines whether the target data acquired by the acquisition unit 201 is data having texture information of an object. The generation unit 203 generates moving image data in MP4 format or the like including a plurality of frames observed under different conditions for the target data determined by the determination unit 202 to have the texture information of an object. The display control unit 204 displays (automatically plays) the moving image data including a plurality of frames observed under different conditions generated by the generation unit 203 for the target data determined by the determination unit 202 to be data having texture information. The display control unit 204 displays the target data as a two-dimensional still image for the target data determined by the determination unit 202 to not be data having texture information.
[0014] <Processing flow executed by the image processing device> The process executed by the image processing device 1 will be described in detail below with reference to Fig. 3. The process shown in the flowchart in Fig. 3 starts when a user inputs an instruction via the input device 110 and the CPU 101 accepts the input instruction. Hereinafter, each step (process) is represented by adding an S before the reference number. In S301, the acquisition unit 201 acquires target data. In this embodiment, the acquisition unit 201 acquires four types of target data from a storage device such as the HDD 112 in response to an instruction input by the user.
[0015] In S302, the acquisition unit 201 sets the texture flag (flg), which is a 1-bit signal, to OFF (flg=0) for the target data. The texture flag is assigned to each target data acquired by the acquisition unit 201. In S303, the determination unit 202 determines whether or not the target data acquired in S301 is data having texture information. In S304, when the determination unit 202 determines that the target data is data having texture information, it sets (updates) the texture flag corresponding to the determined target data to ON (flg=1).
[0016] In S305, the generation unit 203 generates video data including a plurality of frames with different observation conditions for the target data with the texture flag ON. The generation of the video data can be performed using known techniques such as bump mapping, ray tracing, and photon mapping. If it is determined in S303 that the target data does not have texture information, the processes of S304 and S305 are skipped.
[0017] In S306, the display control unit 204 displays a moving image represented by the moving image data or a still image represented by the still image data based on the texture flag corresponding to the target data. When the texture flag of the target data is ON (flg=1), the display control unit 204 displays the moving image represented by the moving image data generated in S305 on the display 114. When the texture flag of the target data is OFF (flg=0), the display control unit 204 displays the two-dimensional still image represented by the still image data acquired in S301 as is on the display 114. In S307, the display control unit 204 determines whether display has been completed for all acquired target data. When display has not been completed for all acquired target data, the display control unit 204 performs the process from S302 onward for the next target data. When display has been completed for all acquired target data, the process ends.
[0018] <Display by the display control unit> The details of the processing in the display control unit 204 will be described with reference to FIG. 4. FIG. 4 is a diagram showing an example of a UI displayed on the display 114. A window 401 is a display area for displaying an image. A display image 402, a display image 403, a display image 404, and a display image 405 are images displayed for each of the four types of target data acquired in S301. In the example of FIG. 4, four types of objects with different colors and textures are displayed, and a highlighted area on the object surface indicates that lighting is reflected on the object surface. FIG. 4(a) shows a display result at a certain time A, and FIG. 4(b) shows a display result at a time B different from time A. The display image 402 and the display image 405 are display results corresponding to the target data determined to have texture information in S303, and are moving images including a plurality of frames with different observation conditions. The display image 403 and the display image 404 are display results corresponding to the target data determined to not have texture information in S303, and are two-dimensional still images. 4(a) and 4(b) for the display image 402 and the display image 405, the position of the highlighted area on the object surface changes depending on the display time. This is because the results of rendering under different observation conditions (lighting directions) are displayed depending on the display time.
[0019] The display control unit 204 synchronizes the playback start frame and frame rate of the displayed moving images, and displays them under the same observation conditions. This makes it possible to compare the colors and textures of different objects under a plurality of observation conditions. The button 406 is a button for switching between moving images and still images. When the display control unit 204 accepts the pressing of the button 406, it switches between playing and stopping the displayed moving images.
[0020] <Advantages of the First Embodiment> As described above, the image processing device in this embodiment acquires target data and determines whether the target data has texture information of an object. Based on the determination result, an image corresponding to the target data is displayed. If the target data has texture information of an object, a video including multiple images corresponding to the target data under different observation conditions is displayed. This makes it possible to present the texture of an object under multiple observation conditions without the user having to input information to change the observation conditions.
[0021] <Modification> In this embodiment, the direction of the illumination is changed as an observation condition, but any of the conditions may be changed as long as they are parameters that can be changed in CG rendering, such as the distance between the illumination and the object, the orientation of the object, the observation direction, the observation distance, etc. Also, multiple conditions may be changed in a composite manner.
[0022] [Second embodiment] In the first embodiment, a video including a plurality of frames with different observation conditions is generated for data having texture information, and is automatically played back. In this embodiment, observation conditions are set for data having texture information, and the video is played back based on the set observation conditions. Note that the hardware configuration of the image processing device in this embodiment is the same as that in the first embodiment, and therefore a description thereof will be omitted. The following mainly describes the differences between this embodiment and the first embodiment. Note that the same components as those in the first embodiment are described with the same reference numerals.
[0023] <Functional configuration of image processing device> FIG. 5 is a block diagram showing a functional configuration of the image processing device 1. The image processing device 1 includes an acquisition unit 201, an observation condition setting unit 501, a determination unit 202, a generation unit 203, and a display control unit 204. The observation condition setting unit 501 sets how to change the observation conditions. The details of the processing of the observation condition setting unit 501 will be described with reference to FIG. 6. FIG. 6 is a diagram showing an example of a UI displayed for setting the observation conditions. A window 601 is a setting area for setting the observation conditions. An area 602 is an area for setting the illumination direction, and an area 603 is an area for setting the orientation of an object. An area 604 is an area for setting the observation direction, and an area 605 is an area for setting the observation distance.
[0024] When setting how to change the illumination direction in area 602, the user presses the start button in area 602, continuously moves the light source 606 in any direction by dragging with a mouse, a finger, etc., and then presses the stop button in area 602. When setting how to change the orientation of an object in area 603, the user presses the start button in area 603, continuously rotates the coordinate axis 607 of the object in any direction by dragging with a mouse, a finger, etc., and then presses the stop button in area 603. When setting how to change the observation direction in area 604, the user presses the start button in area 604, continuously moves the camera 608 indicating the observation position in any direction by dragging with a mouse, a finger, etc., and then presses the stop button in area 604. To set how to change the observation distance in area 605, the user presses the start button in area 605, changes the position of the slider 609 indicating the observation distance as desired by dragging with a mouse or a finger, and then presses the stop button in area 605.
[0025] In response to pressing of the start button and stop button, the viewing condition setting unit 501 saves along the timeline any changes in viewing conditions designated by the user during that time. When the setting completion button in window 601 is pressed, the viewing condition setting unit 501 completes the setting of viewing conditions. Note that one or more viewing conditions may be set. Also, the initial values are applied as is to any items that have not been changed.
[0026] <Processing flow executed by the image processing device> Hereinafter, the details of the process executed by the image processing device 1 will be described with reference to Fig. 7. The process shown in the flowchart of Fig. 7 starts when the user inputs an instruction via the input device 110 and the CPU 101 accepts the input instruction. Note that the processes of S301 to S304, S306, and S307 are the same as those in the first embodiment, and therefore description thereof will be omitted.
[0027] In S701, the viewing condition setting unit 501 sets a viewing condition change method for target data. In this embodiment, the viewing condition setting unit 501 sets the same viewing condition change method for multiple target data. In S702, the generation unit 203 generates video data including multiple frames with different viewing conditions based on the set viewing condition change method.
[0028] <Effects of the second embodiment> As described above, the image processing device in this embodiment sets how to change the observation conditions when playing back a moving image, and generates moving image data based on the set observation condition change method. This allows a user to compare the colors and textures of different objects under multiple observation conditions in the order desired by the user.
[0029] <Modification> In this embodiment, the same observation condition change method is set for multiple target data, but the observation condition change method may be set separately for each target data. Also, multiple observation condition change methods may be set for one target data. This makes it possible to simultaneously check and compare the color and texture of one object under multiple observation conditions.
[0030] In addition, in this embodiment, the observation conditions are set after the target data is acquired, but the order of processing is not limited to the above example. For example, the observation conditions may be set first, and then the target data may be acquired. Also, the acquisition of the target data and the setting of the observation conditions may be performed in parallel. Also, the observation conditions may be set after the texture flag is updated.
[0031] [Other embodiments] In the above-described embodiment, moving image data is generated and displayed for target data having texture information, but continuous still image data such as GIF animation may be generated and displayed instead of moving image data. In this case, multiple still images included in the continuous still image data each correspond to a different viewing condition.
[0032] Furthermore, the data having texture information in the above-described embodiment is described in wavefront OBJ format, but the data may be in another format, such as Autodesk FBX format.
[0033] In the above-described embodiment, the generation unit 203 generates moving image data based on the determination result by the determination unit 202, but a series of still images that have been CG rendered in advance, or a moving image or a series of still images obtained by capturing an object under different observation conditions may be used. In this case, in S301, the acquisition unit 201 acquires information indicating that the texture flag is ON along with the target data that has been obtained in advance by CG rendering or capturing an image. Information indicating that the texture flag is OFF is also acquired for the still images. This allows the display control unit 204 to perform display without performing processing in the determination unit 202 and the generation unit 203.
[0034] The above-described embodiment can be provided as a program that automatically writes data into an HTML file. Data containing texture information can be referenced from an HTML file by generating an X3D format file. By generating an HTML file, it is possible to make it publicly available on the Internet and display it on a browser.
[0035] 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]
[0036] 1 Image processing device 201 Acquisition Department 202 Judgment section 204 Display control unit
Claims
1. An acquisition means for acquiring target data; A determination means for determining whether the target data has texture information of an object; a display control means for displaying an image corresponding to the target data on a display means based on a result of the determination by the determination means, when the determination means determines that the target data has texture information of the object, the display control means displays, on the display means, a moving image including a plurality of frames of the object corresponding to the target data that are generated by rendering using mutually different parameters; The image processing device is characterized in that the display control means displays a still image of the object corresponding to the target data on the display means when the determination means determines that the target data does not have texture information of the object.
2. 2. The image processing apparatus according to claim 1, wherein the parameter is at least one of a direction of illumination, a direction of the object, a viewing direction, a viewing distance, and a distance between the object and illumination.
3. a generating unit that generates moving image data representing the moving image or still image data representing the still image based on a result of the determination by the determining unit; 3. The image processing apparatus according to claim 1, wherein the display control means displays, on the display means, the moving image represented by the moving image data generated by the generating means or the still image represented by the still image data.
4. Further comprising a setting means for setting how the parameters are changed, 4. The image processing device according to claim 1, wherein the display control means displays the moving image corresponding to the target data on the display means based on the set parameter change.
5. 5. The image processing apparatus according to claim 4, wherein said setting means sets how said parameters are changed along a time axis based on an instruction from a user.
6. An image processing device as described in claim 4 or claim 5, characterized in that the setting means accepts changes in the parameters along the time axis instructed between a start instruction and an end instruction.
7. An image processing device as claimed in any one of claims 4 to 6, characterized in that the setting means accepts an instruction indicating a change in the parameter by a drag operation using a mouse or a user's finger.
8. The parameter is a direction of illumination, 8. The image processing apparatus according to claim 1, wherein the direction of the illumination is changed so that positions of highlights on the object differ among the plurality of frames.
9. The image processing device according to any one of claims 1 to 8, characterized in that, when displaying multiple moving images corresponding to the target data on the display means, the display control means synchronizes the playback start frame and frame rate between the multiple moving images.
10. 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 9.
11. An acquisition step of acquiring target data; a determination step of determining whether the target data has texture information of an object; a display control step of displaying an image corresponding to the target data on a display means based on a result of the determination step; In the display control step, when it is determined in the determination step that the target data has texture information of the object, a moving image including a plurality of frames generated by rendering the object corresponding to the target data using mutually different parameters is displayed on the display means; An image processing method characterized in that, in the display control step, if it is determined in the judgment step that the target data does not have texture information of the object, a still image of the object corresponding to the target data is displayed on the display means.
Citation Information
Patent Citations
Computer graphics system, computer graphics reproduction method and program
JP2005122719A
Radiological image processing apparatus, radiological image processing method, and program
JP2008206741A
Texture adjustment support system and texture adjustment support method
JP2018077702A
Information processing apparatus and program
JP2019102018A
Haptic feedback device and haptic feedback method
US20140062927A1
