如何根据另一幅图像的像素绘制一幅图像?
大家好,我想要的是映射图像。假设我有两张人的图像,一张是胖子,另一张是弱者,现在我想匹配他们的脸,眼睛。我想增加或减少脸部一张图像的眼睛大小根据另一张图像的大小。正如你在 adobe Photoshop 中看到的那样,你可以使脸部变胖,使其挤压。我想在其中进行图像处理。我想实现这些类型的操作。我不'不知道从哪里来开始。 请指导和帮助我。我可以使用核心显卡执行所有这些操作吗?如果是的话,那么如何执行 任何参考、教程地址、示例代码......不胜感激。
HI all ,what i want is to map the images.Suppose i have two images of persons,one is of fat person and another is of weak person,Now i want to match their faces ,eyes.I want to increase or decrease the face size eye size of one image according to another.As you can see in adobe photoshop you can make the face fat,make it squueze.I want to do the image manuplation in this.These types of operations i want to implement.I don't know from where to start.
Pleas guide and help me.Can i perform all this with core graphics if so then how
Any reference,tutorial address ,sample code ........appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果要自动完成的话,您可能至少需要处理某种边缘检测和面部识别算法。否则,如果用户要调整一个图像的大小以匹配另一图像,则这将需要由用户捏合和捏合驱动的简单调整大小操作。手势。
更新:
要手动调整大小:
下载这本好书的源代码很酷的 iPhone 项目。其中一个项目名为“Touching”。该项目包含完成您所需的代码:捏合和缩放功能。
You are probably going to have to deal with some sort of edge detection and face recognition algorithms, at the very least, if this is to be accomplished automatically. Otherwise, if the user is going to be resizing one image to match the other, this will require simple resizing operations driven by perhaps user pinch & gestures.
UPDATE:
For manual resizing:
Download the source code for the great book Cool iPhone Projects. One of the projects is called 'Touching'. This project contains code that accomplishes what you need: pinch and zoom functionality.