在Android的球形过滤器球形、过滤器、Android

2023-09-05 00:02:05 作者:干净得像风

我要申请一个球形过滤器在Android的一个形象,我已经连接的输入和预期的输出图像。输出的图像会从输入图像的方形中心区域进行处理,并映射到球体。任何想法如何在Android中做到这一点。我将不得不使用OpenGL进行这样或2D-改造中单独将执行的任务。

I have to apply a spherical filter on a image in android, I have attached input and expected output image. Output image will be processed from the squared centered region of input image and mapped it to sphere. Any idea how to do this in Android. Will I have to use openGL for doing this or 2D-trasformation alone will do the task.

推荐答案

以下code Fish眼晶状体的创建球体并应用了一些修改,缩放领域和背景的产生,它会工作多为方形的图像。

the following code Fish Eye lens for creating the Sphere and apply some modifications for scaling the sphere and background generation, it will work mostly for square images.