图像映射(正方形到圆形) [英] image mapping(square to circle)

查看:774
本文介绍了图像映射(正方形到圆形)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人对在Visual C ++中如何将正方形图像映射成圆形有任何想法吗?

我基本上想变换整个图像

顺便说一下,当我向上移动控制点时,在图像的中间顶部边缘上有一个控制点,我的图像的上部应沿圆形向上方向转换.如果我向下移动,反之亦然!!!!!!

我认为它的圆柱状映射........

Does anybody have any idea about how to map a square image into a circle in visual c++?

basicaly i want to transform whole image

supose there is control point on midddle top edge of image when i moves that control point upward my upper part of image should transform in circular upward direction. and if i moves downward then vice versa!!!!!!

i think its lke cylindrical mapping........

推荐答案

严重吗?请参见: http://en.wikipedia.org/wiki/Squaring_the_circle [
Seriously? See this: http://en.wikipedia.org/wiki/Squaring_the_circle[^].

—SA


球体或圆柱体通常表示为网格.要将正方形纹理映射到它,可以将网格中每个元素的点的3D坐标与纹理中的2D坐标关联.

有许多创建此映射的方法.其他人为您提供了有关如何执行此操作的良好信息.

这是一个高级主题,所以不要期望一个简单的答案.
A sphere or cylinder is usually represented as a mesh. To map a square texture to it, you would associate the 3D coordinates of the points of each element in the mesh, with a 2D coordinate in the texture.

There are many ways to create this mapping. Others have provided you with good information on how to do this.

This is an advanced topic, so don''t expect a simple answer.


这篇关于图像映射(正方形到圆形)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆