Convert OpenGL image using lookup table

I am working on an Android application that has slims or fatten faces, detecting it. Currently, I have achieved this using a thin-plate spline algorithm. http://ipwithopencv.blogspot.com.tr/2010/01/thin-plate-spline-example.html

The problem is that for me the algorithm is not fast enough, so I decided to change it to OpenGL. After some research, I see that the texture of the lookup table is the best option for this. I have a set of control points for the original image and new positions for the warp effect. How to create a search table texture to get a warp effect?

+6
source share
1 answer

Are you really sure you need a search texture?

It seems that it would be better if you had a textured rectangular mesh (or a non-rectangular mesh, of course, like a face recognition algorithm that most likely returns a facial mesh) and distorted it according to the algorithm:

enter image description here

Not only can you do this in the vertex shader, thereby processing each node mesh in parallel, but it also has fewer values ​​to process compared to dynamically generating textures.

- Y 0 , , (, , ) , R G X Y.

.

, - , .

+1

All Articles