CN103366393A - Method for generating hollow embossment in combination with multiple input ways - Google Patents
Method for generating hollow embossment in combination with multiple input ways Download PDFInfo
- Publication number
- CN103366393A CN103366393A CN2013102758137A CN201310275813A CN103366393A CN 103366393 A CN103366393 A CN 103366393A CN 2013102758137 A CN2013102758137 A CN 2013102758137A CN 201310275813 A CN201310275813 A CN 201310275813A CN 103366393 A CN103366393 A CN 103366393A
- Authority
- CN
- China
- Prior art keywords
- sigma
- partiald
- relief
- hollow
- line
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000009877 rendering Methods 0.000 claims abstract description 22
- 238000005457 optimization Methods 0.000 claims abstract description 9
- 230000006835 compression Effects 0.000 claims description 3
- 238000007906 compression Methods 0.000 claims description 3
- 230000000007 visual effect Effects 0.000 claims description 3
- 238000004519 manufacturing process Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
Images
Landscapes
- Processing Or Creating Images (AREA)
Abstract
本发明公开了一种结合多输入方式的镂空浮雕生成方法,由三维模型出发,依次获取三维模型的线条图、渲染图和深度图,然后通过优化方法合成并生成最后的镂空浮雕。该结合多输入方式的镂空浮雕生成方法,较传统手工制作省时省力,而且易于保存、编辑,并且可以加工成浮雕物品。
The invention discloses a multi-input method for generating hollow reliefs. Starting from a three-dimensional model, the line drawing, rendering picture and depth map of the three-dimensional model are sequentially obtained, and then the final hollow relief is synthesized and generated through an optimization method. The hollow relief generation method combined with multiple input methods saves time and labor compared with traditional manual production, is easy to save and edit, and can be processed into relief objects.
Description
技术领域technical field
本发明涉及计算机图形学技术领域,尤其是涉及一种结合多输入方式镂空浮雕生成方法。The invention relates to the technical field of computer graphics, in particular to a method for generating hollow reliefs combined with multiple input methods.
背景技术Background technique
数字浮雕产生技术目前可以分为基于图像的浮雕生成技术、基于直接3D建模的浮雕生成技术以及基于模型操作的浮雕生成技术。基于图像的浮雕生成技术生成的浮雕不能正确的产生浮雕高度,且不具备实际意义;基于直接3D建模的浮雕生成技术比较繁琐,一切都需要从头做起,制作大量的数字浮雕不切实际。目前还没有针对镂空浮雕的生成技术。Digital relief generation technology can be divided into image-based relief generation technology, relief generation technology based on direct 3D modeling, and relief generation technology based on model manipulation. The relief generated by the image-based relief generation technology cannot generate the relief height correctly, and has no practical significance; the relief generation technology based on direct 3D modeling is cumbersome, everything needs to be done from scratch, and it is impractical to produce a large number of digital reliefs. There are currently no generative techniques for hollow reliefs.
发明内容Contents of the invention
本发明所要解决的技术问题是:提供一种结合多输入方式镂空浮雕生成方法,较传统手工制作省时省力,而且易于保存、编辑,并且可以加工成浮雕物品。The technical problem to be solved by the present invention is to provide a method for generating hollow reliefs combined with multiple input methods, which saves time and labor compared with traditional manual production, and is easy to save and edit, and can be processed into relief objects.
为解决上述技术问题,本发明的技术方案是:一种结合多输入方式镂空浮雕生成方法,由三维模型出发,依次获取三维模型的线条图、渲染图和深度图,然后通过优化方法合成并生成最后的镂空浮雕。In order to solve the above-mentioned technical problems, the technical solution of the present invention is: a method for generating hollow reliefs combined with multiple input methods, starting from the 3D model, sequentially obtaining the line drawing, rendering picture and depth map of the 3D model, and then synthesizing and generating the three-dimensional model through an optimization method The final openwork relief.
进一步的,在获取三维模型的线条图的步骤中,包括获取轮廓线和其他线条;Further, in the step of obtaining the line drawing of the three-dimensional model, including obtaining contour lines and other lines;
轮廓线获取方法:n(p)·v=0 (1)Contour acquisition method: n(p) v=0 (1)
p是曲面上的点,n是法线,v是观察向量,通过投影曲面可见部分到图像平面上,就可以提取轮廓线以及骨架线;p is a point on the surface, n is the normal line, and v is the observation vector. By projecting the visible part of the surface onto the image plane, the contour line and skeleton line can be extracted;
其他线条是指脊线和谷线:Other lines refer to ridges and valleys:
Kr=0,and
借助于公式(2)、(3)、(4)可以提取脊线和谷线,然而提取的线条过多,不适合最终的镂空浮雕生成,可以通过拉普拉斯算子对其进行光滑,With the help of formulas (2), (3), and (4), the ridges and valleys can be extracted. However, the extracted lines are too many and are not suitable for the final hollow relief generation. They can be smoothed by the Laplacian operator.
进一步的,在获取三维模型的渲染图步骤中,采用兰伯特渲染图输入,兰伯特渲染图提供重要的视觉信息以生成产生镂空浮雕的高度,Further, in the step of obtaining the rendering image of the 3D model, the Lambert rendering image is used as input, and the Lambert rendering image provides important visual information to generate the height of the hollow relief,
I=α(n(p)·m(p)) (6)。I=α(n(p) m(p)) (6).
进一步的,在获取三维模型的深度图步骤中,三维模型可以提供高度信息。Further, in the step of acquiring the depth map of the 3D model, the 3D model can provide height information.
进一步的,权利要求2-4中所述的三种获取均由同一视点和同一投影平面获得,定义浮雕网格的像素值为其四个邻居像素的平均值,Further, the three acquisitions described in claims 2-4 are all obtained from the same viewpoint and the same projection plane, and the pixel value of the defined relief grid is the average value of its four neighbor pixels,
其梯度由公式(8)求得Its gradient is obtained by formula (8)
公式(7)、(8)结合后面的公式重建镂空浮雕的表面;Formulas (7), (8) reconstruct the surface of the hollow relief in conjunction with the following formulas;
首先通过线条输入方程获取线条图,First get the line plot by entering the equation with the line,
再通过兰伯特渲染图方程获取渲染图,Then obtain the rendering image through the Lambert rendering image equation,
然后通过深度方程获取深度图,Then the depth map is obtained by the depth equation,
最后通过能量减小优化法合成镂空浮雕,Finally, the hollow relief is synthesized by the energy reduction optimization method,
W=wdEd+wLEL+wwEw (12)W=w d E d +w L E L +w w E w (12)
约束条件:
s.t.h<0,-h<hmax (13)sth<0, -h<h max (13)
求解:Solve:
其中h*=-θlog(1-θh(x,y)),θ控制压缩程度where h * = -θlog(1-θh(x,y)), θ controls the degree of compression
采用了上述技术方案,本发明的有益效果为:Adopt above-mentioned technical scheme, the beneficial effect of the present invention is:
本发明的创新性在于首次提出提取三维模型的线条图作为生成镂空浮雕的首要任务,提取的线条图可以生成镂空浮雕的轮廓,然而为了实现浮雕之间的平滑过渡,同时提取三维模型的渲染图和高度图。结合基于能量最小的优化算法生成最终的三维镂空浮雕。基于三维模型的镂空浮雕生成方法较传统手工制作省时省力,而且易于保存、编辑,并且可以加工成浮雕物品。The innovation of the present invention lies in that it is the first time to propose to extract the line drawing of the three-dimensional model as the primary task of generating the hollow relief. The extracted line drawing can generate the outline of the hollow relief. However, in order to realize the smooth transition between the reliefs, the rendering of the three-dimensional model is extracted at the same time. and a heightmap. Combined with an optimization algorithm based on energy minimization to generate the final 3D hollow relief. The method of hollow relief generation based on 3D model saves time and effort compared with traditional manual production, and is easy to save and edit, and can be processed into relief objects.
附图说明Description of drawings
图1是本发明实施例的镂空浮雕生成原理图;Fig. 1 is the schematic diagram of the generation of the hollow relief of the embodiment of the present invention;
图2是本发明实施例的镂空浮雕曲面的像素示意图;Fig. 2 is a pixel schematic diagram of a hollow relief curved surface according to an embodiment of the present invention;
图3(a)、(b)、(c)、(d)分别是本发明实施例的镂空浮雕效果图,其中左侧为输入三维模型,右侧为生成的镂空浮雕模型;Fig. 3 (a), (b), (c), (d) are respectively the hollow relief renderings of the embodiment of the present invention, wherein the left side is the input three-dimensional model, and the right side is the generated hollow relief model;
具体实施方式Detailed ways
下面结合附图和实施例对本发明进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
如图1、图2和图3共同所示,一种结合多输入方式镂空浮雕生成方法,由三维模型出发,依次获取三维模型的线条图、渲染图和深度图,然后通过优化方法合成并生成最后的镂空浮雕。本发明的创新性在于首次提出提取三维模型的线条图作为生成镂空浮雕的首要任务,提取的线条图可以生成镂空浮雕的轮廓,然而为了实现浮雕之间的平滑过渡,同时提取三维模型的渲染图和高度图。结合基于能量最小的优化算法生成最终的三维镂空浮雕。As shown in Fig. 1, Fig. 2 and Fig. 3 together, a method for generating hollowed-out reliefs combined with multiple input methods starts from the 3D model and sequentially obtains the line drawing, rendering picture and depth map of the 3D model, and then synthesizes and generates them through an optimization method The final openwork relief. The innovation of the present invention lies in that it is the first time to propose to extract the line drawing of the three-dimensional model as the primary task of generating the hollow relief. The extracted line drawing can generate the outline of the hollow relief. However, in order to realize the smooth transition between the reliefs, the rendering of the three-dimensional model is extracted at the same time. and a heightmap. Combined with an optimization algorithm based on energy minimization to generate the final 3D hollow relief.
在获取三维模型的线条图的步骤中,包括获取轮廓线和其他线条;In the step of obtaining the line drawing of the three-dimensional model, including obtaining contour lines and other lines;
轮廓线获取方法:n(p)·v=0 (1)Contour acquisition method: n(p) v=0 (1)
p是曲面上的点,n是法线,v是观察向量,通过投影曲面可见部分到图像平面上,就可以提取轮廓线以及骨架线;p is a point on the surface, n is the normal line, and v is the observation vector. By projecting the visible part of the surface onto the image plane, the contour line and skeleton line can be extracted;
其他线条是指脊线和谷线:Other lines refer to ridges and valleys:
Kr=0,and
借助于公式(2)、(3)、(4)可以提取脊线和谷线,然而提取的线条过多,不适合最终的镂空浮雕生成,可以通过拉普拉斯算子对其进行光滑,With the help of formulas (2), (3), and (4), the ridges and valleys can be extracted. However, the extracted lines are too many and are not suitable for the final hollow relief generation. They can be smoothed by the Laplacian operator.
在获取三维模型的渲染图步骤中,采用兰伯特渲染图输入,兰伯特渲染图提供重要的视觉信息以生成产生镂空浮雕的高度,In the step of obtaining the rendering of the 3D model, the Lambert rendering is used as input, and the Lambert rendering provides important visual information to generate the height of the hollow relief,
I=α(n(p)·m(p)) (6)。I=α(n(p) m(p)) (6).
在获取三维模型的深度图步骤中,三维模型可以提供高度信息。In the step of obtaining the depth map of the 3D model, the 3D model can provide height information.
上述的三种获取均由同一视点和同一投影平面获得,定义浮雕网格的像素值为其四个邻居像素的平均值,The above three acquisitions are obtained from the same viewpoint and the same projection plane, and the pixel value of the defined relief grid is the average value of its four neighbor pixels,
公式(7)、(8)结合后面的公式重建镂空浮雕的表面;Formulas (7), (8) reconstruct the surface of the hollow relief in conjunction with the following formulas;
其梯度由公式(8)求得Its gradient is obtained by formula (8)
首先通过线条输入方程获取线条图,First get the line plot by entering the equation with the line,
再通过兰伯特渲染图方程获取渲染图,Then obtain the rendering image through the Lambert rendering image equation,
然后通过深度方程获取深度图,Then the depth map is obtained by the depth equation,
最后通过能量减小优化法合成镂空浮雕,Finally, the hollow relief is synthesized through the energy reduction optimization method,
W=wdEd+wLEL+wwEw (12)W=w d E d +w L E L +w w E w (12)
约束条件:
s.f.h<0,-h<hmax (13)sfh<0, -h<h max (13)
求解:Solve:
其中h*=-θlog(1-θh(x,y)),θ控制压缩程度where h * = -θlog(1-θh(x,y)), θ controls the degree of compression
综上所述,基于三维模型的镂空浮雕生成方法较传统手工制作省时省力,而且易于保存、编辑,并且可以加工成浮雕物品。To sum up, the method of hollow relief generation based on 3D model saves time and effort compared with traditional manual production, and is easy to save and edit, and can be processed into relief objects.
本发明不局限于上述具体的实施方式,本领域的普通技术人员从上述构思出发,不经过创造性的劳动,所作出的种种变换,均落在本发明的保护范围之内。The present invention is not limited to the above-mentioned specific implementation manners, and various transformations made by those skilled in the art starting from the above-mentioned concept without creative work all fall within the protection scope of the present invention.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310275813.7A CN103366393B (en) | 2013-06-28 | 2013-06-28 | One generates method in conjunction with multi input mode hollow out embossment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310275813.7A CN103366393B (en) | 2013-06-28 | 2013-06-28 | One generates method in conjunction with multi input mode hollow out embossment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103366393A true CN103366393A (en) | 2013-10-23 |
| CN103366393B CN103366393B (en) | 2016-06-29 |
Family
ID=49367658
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310275813.7A Expired - Fee Related CN103366393B (en) | 2013-06-28 | 2013-06-28 | One generates method in conjunction with multi input mode hollow out embossment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103366393B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103617652A (en) * | 2013-11-02 | 2014-03-05 | 西北农林科技大学 | Visual saliency-based bas-relief generating method |
| CN107784626A (en) * | 2017-11-21 | 2018-03-09 | 西北农林科技大学 | A kind of 3-dimensional digital intaglio rilevato generation method based on single image |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6424351B1 (en) * | 1999-04-21 | 2002-07-23 | The University Of North Carolina At Chapel Hill | Methods and systems for producing three-dimensional images using relief textures |
| CN102405485A (en) * | 2009-02-24 | 2012-04-04 | 来得维有限公司 | stereoscopic display system |
| WO2012168572A1 (en) * | 2011-06-09 | 2012-12-13 | Mbda France | Method and device for automatically determining the contours of heights of the relief of a geographical area |
-
2013
- 2013-06-28 CN CN201310275813.7A patent/CN103366393B/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6424351B1 (en) * | 1999-04-21 | 2002-07-23 | The University Of North Carolina At Chapel Hill | Methods and systems for producing three-dimensional images using relief textures |
| CN102405485A (en) * | 2009-02-24 | 2012-04-04 | 来得维有限公司 | stereoscopic display system |
| WO2012168572A1 (en) * | 2011-06-09 | 2012-12-13 | Mbda France | Method and device for automatically determining the contours of heights of the relief of a geographical area |
Non-Patent Citations (2)
| Title |
|---|
| 李博等: "基于三维模型拉普拉斯分解的浮雕生成算法", 《计算机集成制造系统》 * |
| 龚奇伟等: "STL模型自动镂空的算法与应用", 《计算机辅助设计与图形学学报》 * |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103617652A (en) * | 2013-11-02 | 2014-03-05 | 西北农林科技大学 | Visual saliency-based bas-relief generating method |
| CN103617652B (en) * | 2013-11-02 | 2017-02-22 | 西北农林科技大学 | Visual saliency-based bas-relief generating method |
| CN107784626A (en) * | 2017-11-21 | 2018-03-09 | 西北农林科技大学 | A kind of 3-dimensional digital intaglio rilevato generation method based on single image |
| CN107784626B (en) * | 2017-11-21 | 2020-11-17 | 西北农林科技大学 | Three-dimensional digital concave-convex relief generating method based on single image |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103366393B (en) | 2016-06-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104008564B (en) | A kind of human face expression cloning process | |
| CN102663766B (en) | Non-photorealistic based art illustration effect drawing method | |
| CN102509333B (en) | Action-capture-data-driving-based two-dimensional cartoon expression animation production method | |
| CN105303616B (en) | Embossment modeling method based on single photo | |
| Zhang et al. | Bas-relief generation and shape editing through gradient-based mesh deformation | |
| CN107730587B (en) | Rapid three-dimensional interactive modeling method based on pictures | |
| CN101303772A (en) | A Nonlinear 3D Face Modeling Method Based on Single Image | |
| CN103606190A (en) | Method for automatically converting single face front photo into three-dimensional (3D) face model | |
| CN105374007A (en) | Generation method and generation device of pencil drawing fusing skeleton strokes and textural features | |
| Zeng et al. | Region-based bas-relief generation from a single image | |
| CN103413340B (en) | The image stick figure generation method that the degree of depth strengthens | |
| CN103854306A (en) | High-reality dynamic expression modeling method | |
| CN103942843A (en) | Fairway and ship three-dimensional model dynamic presenting method based on video | |
| CN104063888B (en) | A kind of wave spectrum artistic style method for drafting based on feeling of unreality | |
| CN103530907A (en) | Complicated three-dimensional model drawing method based on images | |
| CN105303598A (en) | Multi-style video artistic processing method based on texture transfer | |
| CN103914862A (en) | Pencil sketch simulating method based on edge tangent stream | |
| Zhang et al. | Real-time bas-relief generation from a 3D mesh | |
| CN103337085A (en) | Efficient portrait face distortion method | |
| CN102663782B (en) | Painting rendering method based on stroke texture analysis | |
| CN104424658A (en) | Structure-preserving interpolation method of two-dimensional shapes | |
| CN103218784B (en) | Based on the rapid image filtering method of space filling curve and extreme point | |
| CN103366393B (en) | One generates method in conjunction with multi input mode hollow out embossment | |
| CN103325086B (en) | A kind of deformation method of the three-dimensional picture based on tetrahedral coordinate system | |
| CN104091318A (en) | Chinese sign language video transition frame synthesizing method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160629 Termination date: 20180628 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |