在拉伸比例和扭曲作用的Andr​​oid图像处理 [英] Image processing in android with stretch scale and Twist effect

查看:111
本文介绍了在拉伸比例和扭曲作用的Andr​​oid图像处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,每天我在做相关的图像处理与休耕功能的项目
1)拉伸2)规模3)扭
我不知道如何实现它的机器人。
在这里,我把与本项目相关的一些屏幕截图我的问题makeing更清晰。

Now a day i am doing a project related to image processing with the fallowing feature 1)Stretch 2)Scale 3)Twist I am not understand how to achieve it in android. Here i am putting some screen shot related to this project for makeing more clarity in my question.

上面的影像是真实影像,我想在这个图像应用图像处理使其像
吹的形象。

The above image is the real image i want to apply image processing over this image for making it like blow image.

请我任何建议,帮助URL,教程和其他想了想实现这个任务。

Please me any suggestion,help url ,tutorial and other thinks for achieve this task.

推荐答案

您需要找到一个函数,当应用于像素坐标,输出新的象素坐标产生你要找的扭曲效应。
它可以帮助看看一些在 HTTP列出的功能://reference.wolfram .COM /数学/ REF / ImageTransformation.html (尤其是部分齐例子)。

You need to find a function which, when applied to pixel coordinates, outputs new pixel coordinates producing the twist effect you're looking for. It may help to take a look at some of the functions listed at http://reference.wolfram.com/mathematica/ref/ImageTransformation.html (esp. the section "Neat examples").

一旦你定义的功能,你需要在Android中实施 ImageTransformation 命令是一样的。基本上,对于输出图像中的每个像素,调用函数以知道在输入图像中采样;采样输入图像时使用窗口,让你限制文物和获得平滑的结果。

Once you have defined the function, you'd need to implement in Android the equivalent of the ImageTransformation command. Basically, for each pixel in the output image, call the function to know where to sample in the input image; use windowing when sampling the input image so that you limit artifacts and get a smoother result.

这篇关于在拉伸比例和扭曲作用的Andr​​oid图像处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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