Texture image generation method and apparatus
By analyzing fabric images to extract basic patterns and similarity information, virtual fabric texture images are generated, solving the problem of time-consuming and labor-intensive virtual fabric texture generation in existing technologies. This achieves efficient and low-cost reflection of the visual characteristics of virtual fabrics and is suitable for generating high-quality texture images in small devices.
Patent Information
- Application Number
- CN202280004727.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-07-05
- Filing Date
- 2022-07-06
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-07-06
AI Technical Summary
Existing technologies require significant time and human resources to generate virtual fabric texture images and struggle to effectively reflect the visual characteristics of actual fabrics, especially for large-sized fabrics, where commercial equipment is prohibitively expensive.
By analyzing fabric images, basic patterns and similarity information are extracted, repetition count and orientation information are generated, texture images are corrected, and actual fabrics are scanned using a small device. Then, blurring, fast Fourier transform, and multi-band fusion methods are used to generate near-realistic virtual fabric texture images.
It enables the realistic and effective reflection of the visual characteristics of actual fabrics in virtual fabrics, reduces the generation time and manpower requirements, lowers equipment costs, and is suitable for small devices to scan and generate high-quality virtual fabric texture images.
Smart Images

Figure CN115803787B_ABST
Abstract
Description
Technical Field
[0001] The following embodiments relate to a method and apparatus for generating texture images. Background Technology
[0002] Fabrics manufactured using weaving methods can have regular patterns. Typically, pattern extraction methods are based on human visual intuition. Textures can be generated by synthesizing the extracted patterns. To use actual fabrics in virtual simulations, it may be necessary to create the fabric as a texture. However, generating a texture may require repeating many operations. Therefore, virtual simulations of various real-world fabrics can require significant time and human resources.
[0003] Virtual fabric used for clothing simulation can consist of parts that express physical properties (e.g., a mesh) and parts that express visual properties. Typically, the parts expressing visual properties can be textures. Textures can consist of parts that represent the fabric's color and normal maps that represent unevenness. Summary of the Invention
[0004] Technical methods for solving problems
[0005] According to one embodiment, a method for generating a texture image of a virtual fabric may include the following steps: generating similarity information between a basic pattern included in an analysis object region and multiple sub-regions that divide the analysis object region; generating at least one of repetition number information and repetition direction information of the basic pattern based on the similarity information; and arranging multiple basic patterns in a predetermined region based on the basic pattern, the repetition number information, and the repetition direction information to generate a texture image of the virtual fabric.
[0006] According to one embodiment, the analysis target area may include a region determined based on a selected area in an input image including fabric, as determined by user input.
[0007] According to one embodiment, the step may further include: correcting the texture image based on at least one of paper pattern correction information, overlapping area information, and brightness correction information.
[0008] According to one embodiment, the selected region may include a region determined based on information entered by the user in the input image.
[0009] According to one embodiment, the selected area may include a region in the texture image that includes a basic paper pattern as a repeating object.
[0010] According to one embodiment, the input image includes at least one of a color image and a normal image, and the similarity information can be determined based on at least one of the following: each first similarity information between a basic paper pattern in the color image and a plurality of sub-regions that are at least part of a selected region; and each second similarity information between a basic paper pattern in the normal image and a plurality of sub-regions that are at least part of a selected region.
[0011] According to one embodiment, similarity information can be determined based on a weighted sum of first similarity information and second similarity information.
[0012] According to one embodiment, the repetition count information may include information about the number of sub-regions in the analysis object region that have a similarity to the basic pattern that is above a predetermined standard.
[0013] According to one embodiment, the repeating direction information may include direction-related information, the direction being determined based on the distribution direction of sub-regions in the analysis object area that have a similarity to the basic pattern of more than a predetermined standard.
[0014] According to one embodiment, the repeating direction information may include: a first direction, which, based on the position of the basic pattern, distributes sub-regions with a similarity to the basic pattern of a predetermined standard or higher; and a second direction, which, based on the position of the basic pattern, distributes sub-regions with a similarity to the basic pattern of a predetermined standard or higher.
[0015] According to one embodiment, the step of generating a texture image may include the following steps: determining the position of a basic paper pattern; determining a first direction and a second direction based on the position and repetition direction information of the basic paper pattern; calculating a first repetition number of a plurality of sub-regions distributed along the first direction and a second repetition number of a plurality of sub-regions distributed along the second direction based on the repetition number information and the repetition direction information; and repeating the basic paper pattern based on the first direction, the second direction, the first repetition number and the second repetition number to generate a texture image.
[0016] According to one embodiment, the step of generating at least one of repetition number information and repetition direction information may include the following steps: blurring similarity information to eliminate noise; extracting only regions with similarity above a threshold based on the blurred similarity information; using fast Fourier transform to transform the similarity information of the extracted regions above the threshold; and obtaining at least one of repetition number information and repetition direction information based on the transformed similarity information.
[0017] According to one embodiment, the step of correcting a texture image based on paper pattern correction information may include the following steps: converting the angle between a first direction and a second direction into perpendicularity; aligning a plurality of basic paper patterns arranged in the generated texture image based on the first direction and the second direction; correcting the first reference line to a straight line when the first reference line along the first direction is a curve, so that the first reference line is perpendicular to the second direction; and correcting the second reference line to a straight line when the second reference line along the second direction is a curve, so that the second reference line is perpendicular to the first direction.
[0018] According to one embodiment, the step of correcting the texture image based on the overlapping region information may include the following steps: segmenting the texture image into multiple patches; rearranging the multiple patches; determining whether there are discontinuous areas of the paper pattern in the areas where the rearranged multiple patches are in contact with each other; determining the overlapping area of the multiple patches based on the presence or absence of the discontinuous areas of the paper pattern; and overlapping the multiple patches based on the overlapping area.
[0019] According to one embodiment, the method may further include the step of using a multi-band fusion approach to smooth multiple patches.
[0020] According to one embodiment, the step of correcting a texture image based on brightness correction information may include the following steps: correcting the brightness of multiple basic paper patterns based on brightness correction information to resolve the brightness inconsistency among the multiple basic paper patterns included in the texture image.
[0021] According to one embodiment, the method for generating a texture image of a virtual fabric may further include the following steps: outputting a simulation result of a 3D avatar wearing a 3D garment generated based on the texture image to a screen.
[0022] According to one embodiment, the method for generating a texture image of a virtual fabric may further include the steps of: receiving user input relating to controlling the size of the texture image; and controlling the size of the texture image represented on the 3D garment according to the size control input of the texture image.
[0023] An electronic device according to another embodiment may include a processor, wherein the processor is configured to: generate similarity information between a basic pattern included in an analysis object region and a plurality of sub-regions that divide the analysis object region; generate at least one of repetition number information and repetition direction information of the basic pattern based on the similarity information; and arrange the plurality of basic patterns in a predetermined region based on the basic pattern, the repetition number information and the repetition direction information to generate a texture image of a virtual fabric. Attached Figure Description
[0024] Figure 1 The accompanying drawings illustrate a method for generating a textured image according to one embodiment.
[0025] Figure 2 The accompanying drawings illustrate the analysis object area, selected area, and basic pattern area according to one embodiment.
[0026] Figure 3 The accompanying drawings illustrate similarity information according to one embodiment.
[0027] Figure 4 The accompanying drawings illustrate the repetition number information and repetition direction information according to one embodiment.
[0028] Figure 5 The accompanying drawings illustrate a method for generating a textured image according to an embodiment.
[0029] Figure 6 The accompanying drawings illustrate a method for correcting a texture image based on pattern correction information according to an embodiment.
[0030] Figure 7 The accompanying drawings illustrate a method for correcting a texture image based on overlapping region information according to an embodiment.
[0031] Figure 8 The accompanying drawings illustrate the overlapping area according to one embodiment.
[0032] Figure 9 The accompanying drawings illustrate a method for generating a corrected texture image by removing overlapping regions according to an embodiment.
[0033] Figure 10 The accompanying drawings illustrate a method for correcting a texture image based on brightness correction information according to an embodiment.
[0034] Figure 11 A flowchart illustrating a method for generating textures according to one embodiment.
[0035] Figure 12 The accompanying drawings illustrate a 3D clothing simulation that reflects a textured image according to one embodiment.
[0036] Figures 13a and 13b are drawings illustrating a method for outputting at least one of an input image and a texture image to a screen according to an embodiment.
[0037] Figure 14 The accompanying drawings illustrate a method for adjusting the size of a texture image in a 3D clothing simulation according to an embodiment.
[0038] Figure 15 A block diagram illustrating an electronic device according to various embodiments. Detailed Implementation
[0039] The specific structural or functional descriptions disclosed in this specification are for illustrative purposes only and are not limited to the embodiments described herein.
[0040] The terms "first" or "second" can be used to describe multiple constituent elements; however, these terms are only used to distinguish one constituent element from the others. For example, a first constituent element can be named a second constituent element, and similarly, a second constituent element can also be named a first constituent element.
[0041] When describing a component as "connected" or "coupled" to another component, it can mean directly connected to or attached to that other component; however, it can also be understood as implying the presence of other components between them. Conversely, when describing a component as "directly connected" or "directly coupled" to another component, it can be understood as implying the absence of other components between them. Expressions describing the relationship between components, such as "between," "directly between," or "adjacent," "directly adjacent," etc., should be interpreted similarly.
[0042] Unless otherwise specified in the text, singular expressions include plural meanings. In this specification, terms such as "comprising" or "having" are used to indicate the presence of the features, numbers, steps, operations, constituent elements, accessories, or combinations thereof described in the specification, and do not exclude the presence of one or more other features, numbers, steps, operations, constituent elements, accessories, or combinations thereof, or additional functions.
[0043] Unless otherwise defined, all terms used herein, including technical or scientific terms, shall have the ordinary meaning as understood by one of ordinary skill in the art. Terms that are commonly used and are identical to their dictionary definitions shall be understood to have a meaning consistent with the general content of the relevant art, and shall not be overly idealized or interpreted as having a formal meaning unless expressly stated in this application.
[0044] The embodiments will now be described in detail with reference to the accompanying drawings. The same reference numerals in each drawing denote the same constituent elements.
[0045] Figure 1 The accompanying drawings illustrate a method for generating a textured image according to one embodiment.
[0046] The present invention may include a method for realistically and effectively reflecting the visual characteristics of the actual fabric into the virtual fabric during the process of converting the actual fabric into a virtual fabric.
[0047] To reflect the visual characteristics of real-world fabric in virtual fabric, precise texture images can only be obtained using specialized scanners such as VIZOO. Due to issues such as size and cost, such devices may be difficult to commercialize. Furthermore, the actual fabric used for scanning may also be very large (e.g., over 1 yard).
[0048] However, according to the present invention, a small device can be used to scan actual fabrics. Furthermore, scanned images of actual fabrics of relatively small size can be used to generate near-realistic virtual fabrics.
[0049] The method for generating texture images of virtual fabrics will be described in detail below.
[0050] According to one embodiment, the processor 1210 can analyze and extract paper patterns that are repeatedly displayed in a scanned image of a fabric. According to one embodiment, the processor 1210 can synthesize the extracted paper patterns to generate a texture image and correct the generated texture image. Thus, the processor 1210 can generate a texture image that reflects the visual characteristics of the fabric. The method for generating and correcting the texture image will now be described in detail.
[0051] Figure 1 The diagram shows an input image 110, a paper pattern extraction unit 120, a determination of the analysis object area 121, acquisition of similarity information 122, repetition number information 123, repetition direction information 124, a texture image 130, a texture generation unit 140, paper pattern correction information 141, overlapping area information 142, brightness correction information 143, and a corrected texture image 150.
[0052] According to one embodiment, the input image 110 may be an image including fabric. According to one embodiment, the input image 110 may include a color image and / or a plain image. According to one embodiment, the fabric may include fabric used as a clothing material. The input image 110 may include an image obtained from an image acquisition device. The image acquisition device may be any device capable of acquiring images including fabric. The image acquisition device may include a camera, scanner, etc., but is not limited thereto.
[0053] According to one embodiment, the pattern extraction unit 120 may include a module for extracting a pattern from an input image 110. In this invention, the pattern may be a repeating visual feature in a fabric. The processor 1210 may use the pattern extraction unit 120 to extract the pattern from the input image 110. According to one embodiment, the processor 1210 may use the pattern extraction unit 120 to generate a texture image 130 from the input image 110.
[0054] According to one embodiment, the paper sample extraction unit 120 can determine the area to be analyzed (121). (Refer to...) Figure 2The analysis object region 210 is described. According to one embodiment, the analysis object region 210 may include at least a portion of the input image 110. According to one embodiment, the selected region 230 may include a region selected by a user. According to one embodiment, the processor 1210 may determine the selected region 230 in the input image 110 based on user input information. The user input information may include information related to the user-selected region. According to one embodiment, a user may select a region from the input image for extracting a paper pattern. According to one embodiment, the processor 1210 may determine the selected region 230 and then determine the analysis object region 210 from the input image 110 based on the selected region 230. For example, when determining the selected region 230, the processor 1210 may determine an analysis object region 210 that is four times larger than the selected region. According to one embodiment, the processor 1210 may determine a basic paper pattern region 250 from the selected region 230 and / or the analysis object region 210. According to one embodiment, the basic paper pattern region 250 may include unit paper patterns for generating a texture image. Therefore, the processor 1210 may copy and arrange multiple basic paper pattern regions 250 to generate a texture image.
[0055] When a basic pattern region 250 according to one embodiment is determined, the processor 1210 can calculate each similarity information between the basic pattern region 250 and at least a portion of the analysis object region 210 to analyze how much the basic pattern region 250 is repeated in the analysis object region 210. Therefore, the processor 1210 can analyze in which direction the basic pattern region 250 is repeated and how much in the analysis object region 210, thereby analyzing the entire pattern.
[0056] According to one embodiment, the paper pattern extraction unit 120 can obtain similarity information 370 (122). (Refer to...) Figure 3 The similarity information 340 is described in detail. According to one embodiment, the basic pattern region 250 may be at least a portion of the analysis object region 210. According to another embodiment, the basic pattern region 250 may be at least a portion of a selected region 230. According to one embodiment, the processor 1210 may generate similarity information (370) between the basic pattern region 250 and each of the plurality of sub-regions 211, 212, 213 included in the analysis object region 210. Figure 3 The number of sub-regions shown is merely an example, and this disclosure is not limited thereto.
[0057] According to one embodiment, processor 1210 can perform a similarity check 310 to check the similarity between the basic pattern region 250 and the sub-regions 211, 212, 213. According to one embodiment, processor 1210 can generate similarity information 370 through the similarity check 310. According to one embodiment, microprocessor 1210 can generate each similarity information between the basic pattern region 250 and the sub-regions 211, 212, 213 based on a crosscorrelation coefficient method.
[0058] An input image according to one embodiment may include at least one of a color image and a normal image. A color image according to one embodiment may include color information of the input image. A normal image according to one embodiment may include normal vector information for each pixel included in the input image. A processor 1210 according to one embodiment may use the color image to generate similarity information 370. A processor 1210 according to one embodiment may use the normal image to generate similarity information 370. A processor 2120 according to one embodiment may use both the color image and the normal image to generate similarity information 370. A processor 1210 according to one embodiment may use similarity information detected in the normal image to correct similarity information not detected in the color image.
[0059] According to one embodiment, similarity information 370 can be determined based on at least one of first similarity information 330 between the basic pattern region of a color image and a plurality of sub-regions that are at least part of a selected region and second similarity information 350 between the basic pattern region of a normal image and a plurality of sub-regions that are at least part of a selected region.
[0060] According to one embodiment, similarity information 370 can be determined based on a weighted sum of first similarity information 330 and second similarity information 350. For example, if the color pattern of the fabric included in the input image includes various colors, similarity information 370 can be generated by applying a greater weight to the first similarity information 330 than to the second similarity information 350. In this case, processor 1210 can determine the first similarity information 330 as similarity information 370. That is, processor 12110 can disregard the second similarity information 350. As another example, if the color pattern of the fabric includes a small number of colors, or if the differences between each color are small, processor 1210 can generate similarity information 370 by applying a greater weight to the second similarity information 350 than to the first similarity information 330. As yet another example, if the fabric includes various colors but does not include repeating patterns, processor 1210 can generate similarity information 370 by applying a greater weight to the second similarity information 350 than to the first similarity information 330.
[0061] According to one embodiment, the pattern extraction unit 120 can obtain repetition number information 123. According to one embodiment, the pattern extraction unit 120 can obtain repetition direction information 124. (Refer to...) Figure 4 The method for generating repetition number information 123 and repetition direction information 124 is described in detail. According to one embodiment, a processor 1210 can generate at least one of the repetition number information 123 and repetition direction information 124 of a basic pattern region based on similarity information 370. According to one embodiment, the processor 1210 can process... Figure 3 The similarity information 170 generated in the process is post-processed to generate repetition number information 123 and / or repetition direction information 124.
[0062] According to one embodiment, the processor 1210 can blur similarity information 370 to eliminate noise. Blurring according to one embodiment can refer to softening or blurring specific regions of an image. Blurring according to one embodiment can include Gaussian blur.
[0063] According to one embodiment, the processor 1210 can calculate a similarity threshold to extract only regions and / or points in the analysis object region 210 that have a similarity to the basic pattern region 250 of a specific criterion or higher. According to one embodiment, the similarity threshold can be determined using a histogram-based thresholding method. Therefore, the processor 1210 can identify regions above the similarity threshold as regions similar to the basic pattern region.
[0064] According to one embodiment, processor 1210 can perform a Fast Fourier Transform 410 on the similarity information 370. Processor 1210 can generate a Fourier Transform image 430 by performing a Fast Fourier Transform on the similarity information 370. The Fourier Transform image 430 according to one embodiment may include positional information of sub-regions similar to the basic pattern region 250.
[0065] According to one embodiment, the processor 1210 can perform a pattern repetition direction check 450 on the Fourier transform image 430. Furthermore, the processor 1210 can also perform a pattern repetition count check on the Fourier transform image 410.
[0066] According to one embodiment, the processor 1210 can obtain repeating direction information 124.
[0067] According to one embodiment, the repeating direction information 124 may include direction-related information determined based on the distribution direction of sub-regions in the analysis object region 210 that have a similarity to the basic pattern region 250 of a predetermined standard (e.g., a similarity threshold).
[0068] According to one embodiment, the repeating direction information 124 may include a first direction and a second direction, wherein the first direction is based on the position of the basic pattern region 250 and distributes sub-regions with a similarity to the basic pattern region 250 of a predetermined standard or higher; wherein the second direction is based on the position of the basic pattern region 250 and distributes sub-regions with a similarity to the basic pattern region 250 of a predetermined standard or higher. For example, the position of the basic pattern region 250 may include the region and / or point where the first direction 471 and the second direction 472 intersect. For example, the first direction may be a horizontal direction based on the position of the basic pattern region 250. Furthermore, the second direction may be a vertical direction based on the position of the basic pattern region 250. According to one embodiment, the first reference line along the first direction and the second reference line along the second direction may be a straight line or a curve bent according to the curvature of the fabric included in the input image.
[0069] According to one embodiment, the repetition count information may include information about the number of sub-regions in the analysis object region 210 that have a similarity to the basic pattern region 250 of a predetermined standard (e.g., a similarity threshold). According to another embodiment, the repetition count information 123 may include information about the number of sub-regions in the selected region 230 that have a similarity to the basic pattern region 250 of a predetermined standard.
[0070] According to one embodiment, the repetition number information 123 can be determined based on a first repetition number of a plurality of sub-regions distributed along a first direction and a second repetition number of a plurality of sub-regions distributed along a second direction. For example, Figure 4 The first repetition number of the multiple sub-regions distributed along the first direction 471 can be 10. In this case, it can mean that the sub-regions similar to the basic pattern region 250 are repeated 11 times (1 basic pattern region + 10 sub-regions) along the first direction (e.g., horizontal direction) in the analysis object region. As another example, Figure 4 The second repetition number of the multiple sub-regions distributed along the second direction 472 can be 10. In this case, it can mean that the sub-regions similar to the basic pattern region 250 are repeated 11 times (1 basic pattern region + 10 sub-regions) in the analysis object region along the second direction (e.g., the vertical direction). If the first repetition number is 10 and the second repetition number is 10, the processor 1210 can obtain information that there are a total of 121 (11 * 11) substrate pattern region repetitions in the analysis object region 210.
[0071] According to one embodiment, the paper pattern extraction unit 120 can generate a texture image 510 (e.g., ...). Figure 5 Texture image 510). (Refer to...) Figure 5 The generation of texture image 130 according to one embodiment is described in detail. In one embodiment... Figure 5 In the image 130, a texture image 510 may be shown. A basic pattern region 250 may be included in the texture image 130. A processor 1210 may determine the position of the basic pattern region 250. According to one embodiment, the processor 1210 may determine a first direction 471 and a second direction 472 based on the position of the basic pattern region 250 and the repeating direction information 124. According to one embodiment, the processor 1210 may calculate a first repeating number of a plurality of sub-regions distributed along the first direction and a second repeating number of a plurality of sub-regions distributed along the second direction 472 based on the repeating number information 123 and the repeating direction 124.
[0072] According to one embodiment, the processor 1210 can repeatedly configure a basic paper pattern area based on a first direction 471, a second direction 472, a first repetition number, and a second repetition number, thereby generating a texture image 510 (e.g., Figure 5 Texture image 510). For example, in Figure 5 In the first direction 471, the first repetition number of the sub-regions distributed along the first direction 471 can be 7, and the second repetition number of the sub-regions distributed along the second direction 472 can be 8. Therefore, a total of 8 basic pattern regions (1 basic pattern region + 7 sub-regions) can be repeated along the first direction. Furthermore, a total of 9 basic pattern regions (1 basic pattern region + 8 sub-regions) can be repeated along the second direction 472. Therefore, the texture image 510 (e.g., Figure 5 The texture image 510 may include an image in which a total of 72 basic paper pattern areas 250 are repeatedly arranged.
[0073] According to one embodiment, there may be an angle 530 between the first direction 471 and the second direction 472.
[0074] According to one embodiment, the texture generation unit 140 may include a module for correcting the texture image 130. According to one embodiment, the texture generation unit may generate a corrected texture image 150 based on at least one of pattern correction information 141, overlapping area information 142, and brightness correction information 143.
[0075] According to one embodiment, an angle 530 may exist between the first direction 471 and the second direction 472. When the angle 530 is not a right angle, the texture image 510 (e.g., Figure 5 Pattern misalignment may occur in the texture image 510. For example, pattern misalignment may occur during the acquisition of the input image. Depending on the viewpoint of the image acquisition device observing the actual fabric, the fabric included in the input image may be deformed, but is not limited to this. As another example, pattern misalignment may also occur when wrinkles exist in the actual fabric. See reference Figure 6 In the event of pattern misalignment, the angle 530 between the first direction 471 and the second direction 472 may not be a right angle. Therefore, it may be necessary to correct the pattern misalignment by adjusting the angle 530 between the first direction 471 and the second direction 472 to a right angle. By correcting the pattern misalignment, the problem of repeated inconsistencies or discontinuities in the basic pattern appearing in the texture image during pattern repetition can be resolved. The following will refer to... Figure 6 The method for correcting texture image 130 is described in detail.
[0076] According to one embodiment, the processor 1210 can correct the texture image 610 based on pattern correction information. The pattern correction information according to one embodiment may include information needed to correct pattern misalignment. For example... Figure 6 As shown, when the angle 530 between the first direction 471 and the second direction 472 is not a right angle, paper pattern misalignment may occur in the texture image 130. Therefore, the processor 1210 can convert the angle 530 between the first direction 472 and the second direction 472 into a right angle.
[0077] When the first reference line along the first direction 471 is a curve, the processor 1210 according to one embodiment can correct the first reference line to make it perpendicular to the second direction. For example, when there is a curve in the fabric included in the input image 110, the first reference line can be a curve. In this case, the processor 1210 can correct the first reference line, which is a curve, to a straight line.
[0078] When the second reference line along the second direction 472 is a curve, the processor 1210 according to one embodiment can correct the second reference line to make it perpendicular to the first direction. For example, when there is a curve in the fabric included in the input image 110, the second reference line can be a curve. In this case, the processor 1210 can correct the second reference line, which is a curve, to a straight line.
[0079] According to one embodiment, the processor 1210 can correct a texture image based on overlapping region information 142. (Refer to...) Figure 7 A method for correcting texture images based on overlapping region information 142 is described in detail.
[0080] When multiple basic pattern areas are arranged in the overlapping area information 142 according to one embodiment, discontinuous patterns may appear in the areas where the multiple basic pattern areas intersect. For example, a discontinuous pattern may be a seamline. To eliminate such discontinuous patterns, the overlapping area between adjacent basic pattern areas can be determined so that the basic pattern areas overlap each other. Through this process, factors affecting the continuity of the pattern can be eliminated.
[0081] According to one embodiment, the processor 1210 can segment the texture image 130 into multiple patches. For example, a patch may correspond to a basic paper pattern area. As another example, a patch may include multiple basic paper pattern areas. When the texture image 130 is segmented into four regions according to one embodiment, a first patch 710, a second patch 730, a third patch 750, and a fourth patch 770 can be generated. According to one embodiment, the texture image 130 may have the same size as the analysis object region. Since the analysis object region 210 includes a selected region 230, the selected region can be determined based on the position information of the selected region 230 in the texture image 130. When the texture image 130 is segmented into multiple patches, the processor 1210 according to one embodiment can perform segmentation based on the selected region 230. Therefore, the first patch 710 may be included in the selected region corresponding to the first patch 710. Accordingly, the second patch 730, the third patch 750, and the fourth patch 770 may also be included in the selected region.
[0082] According to one embodiment, processor 1210 can rearrange multiple patches. As shown in 701, according to one embodiment, processor 1210 can rearrange each patch included in texture image 130 into a first patch 711, a second patch 731, a third patch 751, and a fourth patch 771. Therefore, as shown in 701, patches 720, 740, 760, and 780 in selected areas can also be rearranged into areas 721, 741, 761, and 781.
[0083] In the overlapping portions of the rearranged first patch 711, second patch 731, third patch 751, and fourth patch 771, discontinuous paper patterns (e.g., seam lines) can be generated. For example, by rearranging, the areas between the first patch 711 and the second patch 731, between the first patch 711 and the third patch 751, between the second patch 731 and the fourth patch 771, and between the third patch 751 and the fourth patch 771 can overlap again. When repeated... Figure 7 When the image 700 is shown, the adjacent portions can be adjacent to each other. Therefore, in order to remove discontinuous patterns (e.g., seam lines) appearing in new adjacent areas due to the repetition of image 700, overlapping areas can be generated and synthesized between the first patch 711 and the second patch 731, between the first patch 711 and the third patch 751, between the second patch 731 and the fourth patch 771, and between the third patch 751 and the fourth patch 771. According to one embodiment, the processor 1210 can determine whether there are discontinuous patterns between the first patch 711 and the second patch 731, between the first patch 711 and the third patch 751, between the second patch 731 and the fourth patch 771, and between the third patch 751 and the fourth patch 771. If there are discontinuous patterns, the processor 1210 can determine the overlapping areas of the patches. For example, when there are discontinuous patterns between the first patch 711 and the third patch 751, the processor 1210 can generate a second overlapping area 781. Furthermore, the patches can be rearranged to overlap with the second overlapping region 781. The same process can be performed on other adjacent regions. For example, processor 1210 can generate a third overlapping region 782 where the first patch 711 overlaps with the second patch 731. As another example, processor 1210 can generate a fourth overlapping region 783 where the second patch 731 overlaps with the fourth patch 771. As yet another example, processor 1210 can generate a first overlapping region 780 where the third patch 751 overlaps with the fourth patch 771.
[0084] According to one embodiment, processor 1210 can search for overlapping regions in a patch. (See also...) Figure 8 Processor 1210 can search for overlapping regions (830) in patch 810. Search results can be as follows: Figure 8 As shown. Therefore, the processor 1210 can use information about the overlapping region 850 of the search to overlap multiple patches.
[0085] According to one embodiment, the processor 1210 can overlap multiple patches based on overlapping regions. (See also...) Figure 9The processor 1210 can overlap patches based on each overlapping region 850 of the first patch 710, the second patch 730, the third patch 750, and the fourth patch 750. According to another embodiment, the processor 1210 can overlap patches based on each overlapping region 850 of the rearranged first patch 711, the second patch 731, the third patch 751, and the fourth patch 771. When the processor 1210 of one embodiment overlaps multiple patches, a multi-image synthesis method can be used for the overlap. The multi-image synthesis method of one embodiment can refer to a method for obtaining noise-free image matching and synthesis results during the synthesis of images acquired by multiple cameras.
[0086] According to one embodiment, processor 1210 can perform a smoothing operation to smooth overlapping patches. According to one embodiment, processor 1210 can use a multi-band blending method to smooth multiple patches.
[0087] According to one embodiment, the processor 1210 can correct a texture image based on brightness correction information 143. (Refer to...) Figure 10 A method for correcting a texture image based on brightness correction information 143 is described in detail. Figure 10 The first patch 1011 and the second patch 1012 shown may each have different brightness. In this case, if the brightness of the patches is not the same, it may not be possible to represent the natural brightness variation of the texture image as a whole. Therefore, it may be necessary to apply uniform brightness to the entire texture image. Therefore, the processor 1210 can use brightness correction information 143 to solve the problem of inconsistent brightness in the texture image processed by copying multiple basic pattern areas 250. According to one embodiment, the brightness correction information 143 may include information for correcting regional brightness inconsistencies caused by illumination. For example, as shown in 1030, the brightness may be higher in the upper left corner but lower in the lower right corner. This brightness variation trend can be represented as the brightness variation direction 1010. Therefore, it may be necessary to correct the brightness of the patches (or basic pattern areas) included in the texture image.
[0088] According to one embodiment, the processor 1210 can correct the brightness of multiple basic pattern regions based on brightness correction information 143 to reduce brightness inconsistencies among the multiple basic pattern regions included in the texture image. According to one embodiment, the processor 1210 can correct the brightness of the basic pattern regions using a sliding window approach. For example, the processor 1210 can move the basic pattern regions according to the brightness correction direction 1020 and correct the brightness on a per-basic-pattern-region basis.
[0089] Processor 1210 can easily extract repeating patterns of fabric using a method for generating and correcting texture images according to one embodiment. Processor 1210 can also apply the fabric to a virtual simulation by generating and correcting the resulting texture representation composed of repeating patterns. Therefore, processor 1210 can visually represent the texture of the fabric included in the input image during garment simulation.
[0090] Figure 2 The accompanying drawings illustrate the analysis object area, selected area, and basic pattern area according to one embodiment.
[0091] Figure 2 The analysis object area 210, the selected area 230, and the basic pattern area 250 are shown.
[0092] An analysis target region 210 according to one embodiment may include at least a portion of an input image 110. A selected region 230 according to one embodiment may include a region selected by a user. A processor 1210 according to one embodiment may determine the selected region 230 in the input image 110 based on information input by the user. The user input information may include information related to the region selected by the user. According to one embodiment, a user may select a region from the input image for extracting a paper pattern. A processor 1210 according to one embodiment may determine the selected region 230 and then determine the analysis target region 210 from the input image 110 based on the selected region 210. For example, when the selected region 230 is determined, the processor 1210 may determine an analysis target region 210 that is four times larger than the selected region. A processor 1210 according to one embodiment may determine a basic paper pattern region 250 from the selected region 230 and / or the analysis target region 210. A basic paper pattern region 250 according to one embodiment may include unit paper patterns for generating a texture image. Therefore, the processor 1210 may copy and arrange multiple basic paper pattern regions 250 to generate a texture image.
[0093] Figure 3 The accompanying drawings illustrate similarity information according to one embodiment.
[0094] Figure 3 The analysis object area 210, multiple sub-regions 211, 212, 213, basic pattern area 250, similarity check 310, first similarity information 330, second similarity information 350 and similarity information 370 are shown.
[0095] According to one embodiment, the paper pattern extraction unit 120 can obtain similarity information 370 (122). (Refer to...) Figure 3The similarity information 340 is described in detail. According to one embodiment, the basic pattern region 250 may be at least a portion of the analysis object region 210. According to another embodiment, the basic pattern region 250 may be at least a portion of a selected region 230. According to one embodiment, the processor 1210 may generate similarity information (370) between the basic pattern region 250 and each of the plurality of sub-regions 211, 212, 213 included in the analysis object region 210. Figure 3 The number of sub-regions shown is merely an example, and this disclosure is not limited thereto.
[0096] According to one embodiment, processor 1210 can perform a similarity check 310 to check the similarity between the basic pattern region 250 and the sub-regions 211, 212, 213. According to one embodiment, processor 1210 can generate similarity information 370 through the similarity check 310. According to one embodiment, microprocessor 1210 can generate each similarity information between the basic pattern region 250 and the sub-regions 211, 212, 213 based on a crosscorrelation coefficient method.
[0097] An input image according to one embodiment may include at least one of a color image and a normal image. A color image according to one embodiment may include color information of the input image. A normal image according to one embodiment may include normal vector information for each pixel included in the input image. A processor 1210 according to one embodiment may use the color image to generate similarity information 370. A processor 1210 according to one embodiment may use the normal image to generate similarity information 370. A processor 2120 according to one embodiment may use both the color image and the normal image to generate similarity information 370. A processor 1210 according to one embodiment may use similarity information detected in the normal image to correct similarity information not detected in the color image.
[0098] According to one embodiment, similarity information 370 can be determined based on at least one of first similarity information 330 between the basic pattern region of a color image and a plurality of sub-regions that are at least part of a selected region and second similarity information 350 between the basic pattern region of a normal image and a plurality of sub-regions that are at least part of a selected region.
[0099] According to one embodiment, similarity information 370 can be determined based on a weighted sum of first similarity information 330 and second similarity information 350. For example, if the color pattern of the fabric included in the input image includes various colors, similarity information 370 can be generated by applying a greater weight to the first similarity information 330 than to the second similarity information 350. In this case, processor 1210 can determine the first similarity information 330 as similarity information 370. That is, processor 12110 can disregard the second similarity information 350. As another example, if the color pattern of the fabric includes a small number of colors, or if the differences between each color are small, processor 1210 can generate similarity information 370 by applying a greater weight to the second similarity information 350 than to the first similarity information 330. As yet another example, if the fabric includes various colors but does not include repeating patterns, processor 1210 can generate similarity information 370 by applying a greater weight to the second similarity information 350 than to the first similarity information 330.
[0100] Figure 4 The accompanying drawings illustrate the repetition number information and repetition direction information according to one embodiment.
[0101] Figure 4 Similarity information 370, fast Fourier transform 410, Fourier transform image 430, paper pattern repetition direction check 450, repetition direction information 470, first direction 471 and second direction 472 are shown.
[0102] According to one embodiment, the processor 1210 can generate at least one of the repetition number information 123 and the repetition direction information 124 of the basic pattern region based on the similarity information 370. The processor 1210 according to one embodiment can process... Figure 3 The similarity information 170 generated in the process is post-processed to generate repetition number information 123 and / or repetition direction information 124.
[0103] According to one embodiment, the processor 1210 can blur similarity information 370 to eliminate noise. Blurring according to one embodiment can refer to softening or blurring specific regions of an image. Blurring according to one embodiment can include Gaussian blur.
[0104] According to one embodiment, the processor 1210 can calculate a similarity threshold to extract only regions and / or points in the analysis object region 210 that have a similarity to the basic pattern region 250 of a specific criterion or higher. According to one embodiment, the similarity threshold can be determined using a histogram-based thresholding method. Therefore, the processor 1210 can identify regions above the similarity threshold as regions similar to the basic pattern region.
[0105] According to one embodiment, processor 1210 can perform a Fast Fourier Transform 410 on the similarity information 370. Processor 1210, according to one embodiment, can generate a Fourier Transform image 430 by performing a Fast Fourier Transform on the similarity information 370. The Fourier Transform image 430, according to one embodiment, may include positional information of sub-regions similar to the basic pattern region 250.
[0106] According to one embodiment, the processor 1210 can perform a pattern repetition direction check 450 on the Fourier transform image 430. Furthermore, the processor 1210 can also perform a pattern repetition count check on the Fourier transform image 410.
[0107] According to one embodiment, the processor 1210 can obtain repeating direction information 124.
[0108] According to one embodiment, the repeating direction information 124 may include direction-related information determined based on the distribution direction of sub-regions in the analysis object region 210 that have a similarity to the basic pattern region 250 of a predetermined standard (e.g., a similarity threshold).
[0109] According to one embodiment, the repeating direction information 124 may include a first direction and a second direction, wherein the first direction is based on the position of the basic pattern region 250 and distributes sub-regions with a similarity to the basic pattern region 250 of a predetermined standard or higher; wherein the second direction is based on the position of the basic pattern region 250 and distributes sub-regions with a similarity to the basic pattern region 250 of a predetermined standard or higher. For example, the position of the basic pattern region 250 may include the region and / or point where the first direction 471 and the second direction 472 intersect. For example, the first direction may be a horizontal direction based on the position of the basic pattern region 250. Furthermore, the second direction may be a vertical direction based on the position of the basic pattern region 250. According to one embodiment, the first reference line along the first direction and the second reference line along the second direction may be a straight line or a curve bent according to the curvature of the fabric included in the input image.
[0110] According to one embodiment, the repetition count information may include information about the number of sub-regions in the analysis object region 210 that have a similarity to the basic pattern region 250 of a predetermined standard (e.g., a similarity threshold). According to another embodiment, the repetition count information 123 may include information about the number of sub-regions in the selected region 230 that have a similarity to the basic pattern region 250 of a predetermined standard.
[0111] According to one embodiment, the repetition number information 123 can be determined based on a first repetition number of a plurality of sub-regions distributed along a first direction and a second repetition number of a plurality of sub-regions distributed along a second direction. For example, Figure 4 The first repetition number of the multiple sub-regions distributed along the first direction 471 can be 10. In this case, it can mean that the sub-regions similar to the basic pattern region 250 are repeated 11 times (1 basic pattern region + 10 sub-regions) along the first direction (e.g., horizontal direction) in the analysis object region. As another example, Figure 4 The second repetition number of the multiple sub-regions distributed along the second direction 472 can be 10. In this case, it can mean that the sub-regions similar to the basic pattern region 250 are repeated 11 times (1 basic pattern region + 10 sub-regions) in the analysis object region along the second direction (e.g., the vertical direction). If the first repetition number is 10 and the second repetition number is 10, the processor 1210 can obtain information that there are a total of 121 (11 * 11) substrate pattern region repetitions in the analysis object region 210.
[0112] Figure 5 The accompanying drawings illustrate a method for generating a textured image according to an embodiment.
[0113] Figure 5 The texture image 510, the basic paper pattern area 250, the first direction 471, the second direction 472, the angle 530, and the position 550 of the basic paper pattern area are shown.
[0114] According to one embodiment Figure 5 The texture image 510 can be shown in the image. A basic paper pattern region 250 can be included in the texture image 510. The processor 1210 can determine the position of the basic paper pattern region 250. According to one embodiment, the processor 1210 can determine a first direction 471 and a second direction 472 based on the position of the basic paper pattern region 250 and the repeating direction information 124. According to one embodiment, the processor 1210 can calculate a first repeating number of a plurality of sub-regions distributed along the first direction and a second repeating number of a plurality of sub-regions distributed along the second direction 472 based on the repeating number information 123 and the repeating direction 124.
[0115] According to one embodiment, the processor 1210 can repeatedly configure a basic paper pattern area based on a first direction 471, a second direction 472, a first repetition number, and a second repetition number to generate a texture image 510. For example, in Figure 5 In the first direction 471, the first repetition number of the sub-region can be 7, while... Figure 5In the first direction, the second repetition number of the sub-regions distributed along the second direction 472 can be 8. Therefore, a total of 8 basic pattern regions (1 basic pattern region + 7 sub-regions) can be repeated along the first direction. Furthermore, a total of 9 basic pattern regions (1 basic pattern region + 8 sub-regions) can be repeated along the second direction 472. Therefore, the texture image 510 can include an image in which a total of 72 basic pattern regions 250 are repeatedly arranged.
[0116] According to one embodiment, there may be an angle 530 between the first direction 471 and the second direction 472.
[0117] Figure 6 The accompanying drawings illustrate a method for correcting a texture image based on pattern correction information according to an embodiment.
[0118] Figure 6 Texture image 130, texture image 610 corrected based on paper pattern correction information, and corrected texture image 630 are shown.
[0119] According to one embodiment, the processor 1210 can correct the texture image 610 based on pattern correction information. The pattern correction information according to one embodiment may include information needed to correct pattern misalignment. For example... Figure 6 As shown, when the angle 530 between the first direction 471 and the second direction 472 is not a right angle, paper pattern misalignment may occur in the texture image 130. Therefore, the processor 1210 can convert the angle 530 between the first direction 472 and the second direction 472 into a right angle.
[0120] When the first reference line along the first direction 471 is a curve, the processor 1210 according to one embodiment can correct the first reference line to make it perpendicular to the second direction. For example, when there is a curve in the fabric included in the input image 110, the first reference line can be a curve. In this case, the processor 1210 can correct the first reference line, which is a curve, to a straight line.
[0121] When the second reference line along the second direction 472 is a curve, the processor 1210 according to one embodiment can correct the second reference line to make it perpendicular to the first direction. For example, when there is a curve in the fabric included in the input image 110, the second reference line can be a curve. In this case, the processor 1210 can correct the second reference line, which is a curve, to a straight line.
[0122] Figure 7 The accompanying drawings illustrate a method for correcting a texture image based on overlapping region information according to an embodiment.
[0123] Figure 7Multiple patches 710, 730, 750, and 770 are shown; multiple patches 720, 740, 760, and 780 are shown in a selected area; multiple patches 711, 731, 751, and 771 are shown in a rearranged selected area; multiple patches 721, 741, 761, and 781 are shown in a rearranged selected area; and multiple overlapping areas 780, 781, 782, and 783 are shown.
[0124] According to one embodiment, the processor 1210 can segment the texture image 130 into multiple patches. For example, a patch may correspond to a basic paper pattern area. As another example, a patch may include multiple basic paper pattern areas. When the texture image 130 is segmented into four regions according to one embodiment, a first patch 710, a second patch 730, a third patch 750, and a fourth patch 770 can be generated. According to one embodiment, the texture image 130 may have the same size as the analysis object region. Since the analysis object region 210 includes a selected region 230, the selected region can be determined based on the position information of the selected region 230 in the texture image 130. When the texture image 130 is segmented into multiple patches, the processor 1210 according to one embodiment can perform segmentation based on the selected region 230. Therefore, the first patch 710 may be included in the selected region corresponding to the first patch 710. Accordingly, the second patch 730, the third patch 750, and the fourth patch 770 may also be included in the selected region.
[0125] According to one embodiment, processor 1210 can rearrange multiple patches. As shown in 701, according to one embodiment, processor 1210 can rearrange each patch included in texture image 130 into a first patch 711, a second patch 731, a third patch 751, and a fourth patch 771. Therefore, as shown in 701, patches 720, 740, 760, and 780 in selected areas can also be rearranged into areas 721, 741, 761, and 781.
[0126] In the overlapping portions of the rearranged first patch 711, second patch 731, third patch 751, and fourth patch 771, discontinuous paper patterns (e.g., seam lines) can be generated. For example, by rearranging, the areas between the first patch 711 and the second patch 731, between the first patch 711 and the third patch 751, between the second patch 731 and the fourth patch 771, and between the third patch 751 and the fourth patch 771 can overlap again. When repeated... Figure 7When the image 700 is shown, the adjacent portions can be adjacent to each other. Therefore, in order to remove discontinuous patterns (e.g., seam lines) appearing in new adjacent areas due to the repetition of image 700, overlapping areas can be generated and synthesized between the first patch 711 and the second patch 731, between the first patch 711 and the third patch 751, between the second patch 731 and the fourth patch 771, and between the third patch 751 and the fourth patch 771. According to one embodiment, the processor 1210 can determine whether there are discontinuous patterns between the first patch 711 and the second patch 731, between the first patch 711 and the third patch 751, between the second patch 731 and the fourth patch 771, and between the third patch 751 and the fourth patch 771. If there are discontinuous patterns, the processor 1210 can determine the overlapping areas of the patches. For example, when there are discontinuous patterns between the first patch 711 and the third patch 751, the processor 1210 can generate a second overlapping area 781. Furthermore, the patches can be rearranged to overlap with the second overlapping region 781. The same process can be performed on other adjacent regions. For example, processor 1210 can generate a third overlapping region 782 where the first patch 711 overlaps with the second patch 731. As another example, processor 1210 can generate a fourth overlapping region 783 where the second patch 731 overlaps with the fourth patch 771. As yet another example, processor 1210 can generate a first overlapping region 780 where the third patch 751 overlaps with the fourth patch 771.
[0127] Figure 8 The accompanying drawings illustrate the overlapping area according to one embodiment.
[0128] Figure 8 Patch 810, search overlapping region 830, and overlapping region 850 are shown.
[0129] According to one embodiment, processor 1210 can search for overlapping regions in a patch. (See also...) Figure 8 Processor 1210 can search for overlapping regions 830 in patch 810. Search results can be as follows: Figure 8 As shown. Therefore, the processor 12110 can use information about the overlapping region 850 being searched to overlap multiple patches.
[0130] Figure 9 The accompanying drawings illustrate a method for generating a corrected texture image by removing overlapping regions according to an embodiment.
[0131] Figure 9 The diagram shows the first patch 710, the second patch 730, the third patch 750, the fourth patch 770, the overlapping region 850, and the corrected texture image 910.
[0132] According to one embodiment, the processor 1210 can overlap multiple patches based on overlapping regions. (See also...) Figure 9 The processor 1210 can overlap patches based on each overlapping region 850 of the first patch 710, the second patch 730, the third patch 750, and the fourth patch 750. According to another embodiment, the processor 1210 can overlap patches based on each overlapping region 850 of the rearranged first patch 711, the second patch 731, the third patch 751, and the fourth patch 771. When the processor 1210 overlaps multiple patches according to another embodiment, a multi-image synthesis method can be used for the overlap. The multi-image synthesis method according to one embodiment can refer to a method for obtaining borderless noise-free image matching and synthesis results during the synthesis of images acquired by multiple cameras.
[0133] According to one embodiment, processor 1210 can perform a smoothing operation to smooth overlapping patches. According to one embodiment, processor 1210 can use a multi-band blending method to smooth multiple patches.
[0134] Figure 10 The accompanying drawings illustrate a method for correcting a texture image based on brightness correction information according to an embodiment.
[0135] Figure 10 The brightness change direction 1010, the first patch 1011, the second patch 1012, the brightness correction direction 1020, and the brightness change degree 1030 are shown.
[0136] According to one embodiment, the processor 1210 can correct a texture image based on brightness correction information 143. (Refer to...) Figure 10 A method for correcting a texture image based on brightness correction information 143 is described in detail. Figure 10 The first patch 1011 and the second patch 1012 shown may each have different brightness. In this case, if the brightness of the patches is not the same, it may not be possible to represent the natural brightness variation of the texture image as a whole. Therefore, it may be necessary to apply uniform brightness to the entire texture image. Thus, the processor 1210 can use brightness correction information 143 to solve the problem of inconsistent brightness in the texture image processed by copying multiple basic pattern areas 250. According to one embodiment, the brightness correction information 141 may include information for correcting regional brightness inconsistencies caused by illumination. For example, as shown in 1030, the brightness may be higher in the upper left corner but lower in the lower right corner. This brightness variation trend can be represented as the brightness variation direction 1010. Therefore, it may be necessary to correct the brightness of the patches (or basic pattern areas) included in the texture image.
[0137] According to one embodiment, the processor 1210 can correct the brightness of multiple basic pattern regions based on brightness correction information 143 to reduce brightness inconsistencies among the multiple basic pattern regions included in the texture image. According to one embodiment, the processor 1210 can correct the brightness of the basic pattern regions using a sliding window approach. For example, the processor 1210 can move the basic pattern regions according to the brightness correction direction 1020 and correct the brightness on a per-basic-pattern-region basis.
[0138] Figure 11 A flowchart illustrating a method for generating textures according to one embodiment.
[0139] An electronic device 1200 according to one embodiment (e.g., Figure 12 The electronic device 1200 can determine a selected area in the input image 1110 that includes fabric.
[0140] According to one embodiment, the electronic device 1200 can determine the analysis object region 1120 in an input image based on a selected region.
[0141] According to one embodiment, the electronic device 1200 can generate similarity information (1130) between a basic pattern area of at least a portion of the analysis object area and each of a plurality of sub-regions included in the analysis object area.
[0142] According to one embodiment, the electronic device 1200 can generate at least one of the repetition number information of the basic pattern area and the repetition direction information of the basic pattern area based on similarity information (1140).
[0143] According to one embodiment, the electronic device 1200 can generate a texture image (1160) by arranging a plurality of basic pattern regions in a predetermined area based on at least one of a basic pattern region, the position of the basic pattern region, the number of repetitions, and the repetition direction information.
[0144] Figure 12 The accompanying drawings illustrate a 3D clothing simulation that reflects a textured image according to one embodiment.
[0145] Figure 12 The diagram shows a 3D simulation screen 1310, a fabric type 1320, a size 1330, an input image display object 1350, a texture image display object 1360, an input image and texture image display object 1370, an open object 1390, a stored object 1391, an applied object 1392, a canceled object 1393, and an input image 1380.
[0146] The 3D simulation screen 1310 can be a screen for outputting 3D clothing, with a texture image based on the input image 1380 applied to the 3D clothing. According to one embodiment, the processor 1210 can generate 3D clothing based on the texture image and output the 3D simulation to the screen 1310. Therefore, when the input image or texture image changes, the processor 1210 can generate a 3D clothing corresponding to the input image or texture image and output it to the 3D simulation screen 1310.
[0147] Fabric type 1320 can be an object that the processor 1210 can receive from user input regarding fabric type information. For example, the user can input the fabric type through fabric type 1320. Fabric types may include, for example, plain, repeat pattern, random color pattern, and non-fabric.
[0148] Size 1330 can be an object that displays the size of the input image or texture image.
[0149] The input image display object 1350 can be an object for outputting an input image to a screen. When the processor 1210 according to one embodiment receives a selection input from the input image display object 1350, it can output the input image 1380 to the screen.
[0150] The texture image display object 1360 can be an object used to output a texture image to the screen. The texture image display object 1360 will be described in detail with reference to Figure 13a below.
[0151] The input image and texture image display object 1370 can be an object used to simultaneously output an input image and a texture image to the screen. The input image and texture image display object 1370 will be described in detail with reference to Figure 13b below.
[0152] Open object 1390 can be an object used to load other input images or texture images. Store object 1391 can be an object used to store the current input image or texture image. Apply object 1392 can be an object used to generate 3D clothing based on the input image or texture image. Cancel object 1393 can be an object used to stop the process of generating 3D clothing based on the input image or texture image.
[0153] Figures 13a and 13b are drawings illustrating a method for outputting at least one of an input image and a texture image to a screen according to an embodiment.
[0154] When a selection input is received for a texture image display object 1360, a processor 1210 according to one embodiment can output a texture image 1410 to the screen.
[0155] When a selection input is received for the input image and texture image display object 1370, the processor 1210 according to one embodiment can output the input image 1420 and texture image 1430 to the screen.
[0156] Through this process, users can output at least one of the input image and texture image to the screen and confirm the simulation results of applying at least one of the input image and texture image to the 3D clothing through the screen.
[0157] Figure 14 The accompanying drawings illustrate a method for adjusting the size of a texture image in a 3D clothing simulation according to an embodiment.
[0158] Figure 14 The diagram shows a portion of the 3D clothing, a texture image 1520, a selected area 1530, and a texture image 1540 corresponding to the selected area.
[0159] According to one embodiment, processor 1210 can generate 3D clothing using at least a portion of a textured image. A user can only use a portion of the textured image generated based on an input image for clothing design. Therefore, processor 1210 can generate 3D clothing based on at least a portion of the textured image. Furthermore, processor 1210 can output a simulation result on a screen, where a 3D clone is wearing the 3D clothing generated based on at least a portion of the textured image. For example, processor 1210 can receive a selected region 1530 from the user, which is a portion of a textured image 1520. Processor 1210 can output a textured image 1540 corresponding to the selected region to the screen based on the selected region 1530. Processor 1210 can generate 3D clothing based on the textured image 1540 corresponding to the selected region and can output a 3D clone wearing the 3D clothing to the screen.
[0160] According to one embodiment, the processor 1210 can adjust the size of a texture image. The processor 1210 can also adjust the size of a texture image represented in a 3D garment. When adjusting the size of the texture image, the size of patterns and designs represented in the 3D garment can be adjusted. For example, the processor 1210 can receive a selection input for a portion 1510 of the 3D garment. The portion 1510 of the 3D garment can be a design (e.g., a front design). According to one embodiment, the processor 1210 can adjust the size of the texture image relative to the portion 1510 of the 3D garment. In this case, the size of the texture image displayed on the portion of the 3D garment can be adjusted. For example, if the user zooms in on the texture image, the size of the texture image displayed on the portion of the 3D garment may increase. If the texture image includes a design, the design may become larger.
[0161] Figure 15 A block diagram illustrating an electronic device according to various embodiments.
[0162] Figure 15 A block diagram illustrating an electronic device according to an embodiment. (Refer to...) Figure 15 An electronic device 1200 according to one embodiment includes a memory 1220, a processor 1210, and a communication interface 1230. The memory 1220, the processor 1210, and the communication interface 1230 can be connected to each other via a communication bus 1240.
[0163] The memory 1220 can store various information generated during the processing executed by the processor 1210. Additionally, the memory 1220 can store other various data and programs. The memory 1220 may include volatile or non-volatile memory. The memory 1220 may include a high-capacity storage medium, such as a hard disk, and store various types of data.
[0164] Additionally, the processor 1210 can be a hardware-implemented data processing device consisting of circuits with a physical structure that performs desired operations. For example, the desired operations may include code or instructions included in a program. Hardware-implemented classification devices may include microprocessors, central processing units (CPUs), graphics processing units (GPUs), processor cores, multi-core processors, multiprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), and neural processing units (NPUs), etc.
[0165] The processor 1210 can execute programs and control the automated stock trading device. The program code executed by the processor 1210 can be stored in the memory 1220.
[0166] The embodiments described above can be implemented using hardware components, software components, and / or combinations of hardware and software components. For example, the apparatus and components described in the embodiments can be implemented using, for example, a processor, controller, arithmetic logic unit (ALU), digital signal processor, microcomputer, field-programmable array (FPA), programmable logic unit (PLU), microprocessor, or any other device capable of executing and responding to instructions, and can be embodied using more than one general-purpose computer or special-purpose computer. The processing device can execute an operating system (OS) and more than one application software running within said operating system. Furthermore, the processing device responds to the execution of the software, thereby accessing, storing, manipulating, processing, and generating data. For ease of understanding, the description is presented as having only one processing device, but those skilled in the art will understand that a processing device can include multiple processing elements and / or multiple types of processing elements. For example, a processing device can include multiple processors or one processor and one controller. Furthermore, it can also include other processing configurations similar to parallel processors.
[0167] Software can include computer programs, code, instructions, or a combination of more than one of these, enabling a processing device to operate in a desired manner, or to command the processing device individually or collectively. To interpret or provide commands or data to the processing device, the software and / or data can be permanently or temporarily embodied in any type of device, component, physical device, virtual equipment, computer storage medium or device, or transmitted signal wave. Software is distributed across a network-connected computer system and can be stored or executed in a distributed manner. Software and data can be stored on more than one computer read / write storage medium.
[0168] The method according to the embodiments is embodied in the form of program instructions executable by various computer means and recorded in a computer read / write medium. The computer read / write medium may include program instructions, data files, data structures, etc., individually or in combination. The program instructions recorded on the medium may be instructions specifically designed and configured to implement the embodiments, or instructions that can be used by a person skilled in the art of computer software based on commonly known instructions. The computer read / write recording medium may include magnetic media such as hard disks, floppy disks, and magnetic tapes; optical media similar to CD-ROMs and DVDs; magneto-optical media similar to floppy disks; and hardware devices specifically configured to store and execute program instructions, such as read-only memory (ROM), random access memory (RAM), and flash memory. Examples of program instructions include not only machine language code generated by a compiler, but also high-level language code executable by a computer using an interpreter or similar means.
[0169] To perform the operations of the embodiments, the hardware device can be configured to implement the operations with one or more software modules, or vice versa.
[0170] In summary, the embodiments have been described with reference to the limited accompanying drawings. Those skilled in the art can make various modifications and variations based on the description. For example, appropriate results can be obtained by performing the described techniques in a different order than the described methods, and / or by combining or integrating the described systems, structures, devices, circuits, and other constituent elements in a different manner than the described methods, or by replacing or substituting them with other constituent elements or equivalents.
[0171] Therefore, other embodiments, other implementations, and equivalents within the scope of the claims are all within the scope of the claims of this invention.
Claims
1. A method for generating a texture image of a virtual fabric, characterized in that, Includes the following steps: Generate similarity information between the basic paper pattern included in the analysis object area and each of the multiple sub-regions that divide the analysis object area; Based on the similarity information, generate the repetition number information and repetition direction information of the basic paper pattern; and Based on the basic paper pattern, the repetition number information, and the repetition direction information, multiple basic paper patterns are arranged in a predetermined area to generate a texture image of a virtual fabric. The steps for generating the repetition number information and the repetition direction information include the following steps: The similarity information is blurred to eliminate noise; Based on the similarity information obtained from the fuzzy processing, only regions with a similarity to the basic paper pattern that is above a certain threshold are extracted. A Fast Fourier Transform is used to extract similarity information only from regions above the threshold; and The repetition count information and the repetition direction information are obtained based on the similarity information of the transformation, and... The repetition information includes information about the number of sub-regions in the analysis object region whose similarity to the basic paper pattern is above the threshold.
2. The method for generating a texture image of a virtual fabric according to claim 1, characterized in that, The analysis target area includes regions determined based on selected areas identified by user input in an input image that includes fabric.
3. The method for generating a texture image of a virtual fabric according to claim 1, characterized in that, It also includes the following steps: The texture image is corrected based on at least one of the paper pattern correction information, overlapping area information, and brightness correction information.
4. The method for generating a texture image of a virtual fabric according to claim 2, characterized in that, The selected region includes a region determined based on information entered by the user in the input image.
5. The method for generating a texture image of a virtual fabric according to claim 2, characterized in that, The selected area includes the region in the texture image that contains a basic paper pattern as a repeating object.
6. The method for generating a texture image of a virtual fabric according to claim 2, characterized in that, The input image includes at least one of a color image and a normal image. The similarity information is determined based on at least one of the first similarity information and the second similarity information: The first similarity information is the similarity information between the basic paper pattern in the color image and each of the multiple sub-regions that are at least part of the selected region; The second similarity information is the similarity information between the basic paper pattern in the normal image and each of the multiple sub-regions that are at least part of the selected region.
7. The method for generating a texture image of a virtual fabric according to claim 6, characterized in that, The similarity information is determined based on a weighted sum of the first similarity information and the second similarity information.
8. The method for generating a texture image of a virtual fabric according to claim 1, characterized in that, The repeating direction information includes direction-related information, and the direction is determined based on the distribution direction of sub-regions in the analysis object area that have a similarity of more than a predetermined standard with the basic paper pattern.
9. The method for generating a texture image of a virtual fabric according to claim 1, characterized in that, The repeating direction information includes: In the first direction, based on the position of the basic paper pattern, sub-regions with a similarity to the basic paper pattern exceeding a predetermined standard are distributed: and The second direction is based on the position of the basic paper pattern, and it distributes sub-regions with a similarity to the basic paper pattern that is above a predetermined standard.
10. The method for generating a texture image of a virtual fabric according to claim 1, characterized in that, The steps for generating the texture image include the following: Determine the location of the basic paper pattern; The first direction and the second direction are determined based on the position of the basic paper pattern and the repeating direction information; Based on the repetition number information and the repetition direction information, calculate the first repetition number of multiple sub-regions distributed along the first direction and the second repetition number of multiple sub-regions distributed along the second direction; and The basic paper pattern is repeatedly arranged based on the first direction, the second direction, the first repetition number, and the second repetition number to generate a texture image.
11. The method for generating a texture image of a virtual fabric according to claim 3, characterized in that, The step of correcting the texture image based on the paper pattern correction information includes the following steps: Convert the angle between the first direction and the second direction to perpendicular; Align multiple basic paper patterns arranged in the generated texture image based on the first direction and the second direction; When the first reference line along the first direction is a curve, the first reference line is corrected to a straight line so that the first reference line is perpendicular to the second direction; and When the second reference line along the second direction is a curve, the second reference line is corrected to be a straight line so that the second reference line is perpendicular to the first direction.
12. The method for generating a texture image of a virtual fabric according to claim 3, characterized in that, The step of correcting the texture image based on the overlapping region information includes the following steps: The texture image is divided into multiple patches, each of which corresponds to one or more basic paper pattern regions; Rearrange the multiple patches; Determine whether there are discontinuous areas in the paper pattern in the areas where the rearranged patches are in contact with each other; Based on the presence or absence of the discontinuous areas in the paper pattern, the overlapping area of the multiple patches is determined; and The multiple patches are overlapped based on the overlapping region.
13. The method for generating a texture image of a virtual fabric according to claim 12, characterized in that, It also includes the following steps: A multi-band fusion method is used to smooth the multiple patches.
14. The method for generating a texture image of a virtual fabric according to claim 3, characterized in that, The step of correcting the texture image based on the brightness correction information includes the following steps: The brightness of the plurality of basic paper patterns is corrected based on the brightness correction information to resolve the brightness inconsistency among the plurality of basic paper patterns included in the texture image.
15. The method for generating a texture image of a virtual fabric according to claim 1, characterized in that, It also includes the following steps: The simulation results of the 3D clothing generated based on the texture image being worn on the 3D clone will be output to the screen.
16. The method for generating a texture image of a virtual fabric according to claim 1, characterized in that, It also includes the following steps: Receive user input related to controlling the size of the texture image; and The size of the texture image represented on the 3D clothing is controlled based on the size control input of the texture image.
17. A non-transitory computer-readable recording medium storing instructions that, when executed by a processor, cause the processor to perform the method of claim 1.
18. An electronic device, characterized in that, Including processors, The processor is configured to: Generate similarity information between the basic paper pattern included in the analysis object area and each of the multiple sub-regions that divide the analysis object area; Based on the similarity information, the repetition number information and repetition direction information of the basic paper pattern are generated; as well as Based on the basic paper pattern, the repetition number information, and the repetition direction information, multiple basic paper patterns are arranged in a predetermined area to generate a texture image of a virtual fabric. The processor is further configured to: fuzz the similarity information to eliminate noise; extract only regions with a similarity of at least a threshold to the basic paper pattern based on the fuzzed similarity information; use a fast Fourier transform to transform the similarity information of the extracted regions above the threshold; and obtain the repetition count information and the repetition direction information based on the transformed similarity information. The repetition information includes information about the number of sub-regions in the analysis object region whose similarity to the basic paper pattern is above the threshold.
