摘要
针对如何使图像中的浮雕更具有立体感与观赏性这一问题,提出了一种利用单幅浮雕图像来实现3D浮雕效果的方法。该方法主要是通过给图像目标区域增加高度值来实现。首先将图像看作是由像素点组成的矩阵,进行相关矩阵运算,同时将整幅图像看作一个二维网格,然后利用目标图像的颜色值作为高度值进行三维网格的绘制,得出三维图形,并对生成的图形进行光照处理以获得更好的视觉效果。
This paper proposes a method for getting a 3D embossment effect from a single relief image to make the image more stereo and ornamental. This method increases the object region's height values based on the main idea that the whole image is regarded as a matrix which is consists of many pixels, and then some relative matrix operations are done. At the same time, the whole image is considered as a 2D grid, and the colour-level of the image is regarded as the height value. Then a 3D mesh isrendered. In order to obtain a better visual effect, a light treatment is set for the new generated image.
出处
《微型机与应用》
2012年第11期41-43,共3页
Microcomputer & Its Applications