- #1
m1ke_
- 21
- 0
Hello,
Suppose I have the function x = A*log(B*y) where A and B are constants, y is the height of a row of pixels, and x is how much that row of pixels needs to be translate right or left. How would you recommend incorporating this into code as to minimize distortion?
I have tried writing my own programs, however the images come out with lines where you can see the shifting as well as pixelated in regions. I have also looked into polynomial version of cp2tform but have had little success (possibly from not understanding it fully, it seems like there are only a few examples of how to use it).
Suppose I have the function x = A*log(B*y) where A and B are constants, y is the height of a row of pixels, and x is how much that row of pixels needs to be translate right or left. How would you recommend incorporating this into code as to minimize distortion?
I have tried writing my own programs, however the images come out with lines where you can see the shifting as well as pixelated in regions. I have also looked into polynomial version of cp2tform but have had little success (possibly from not understanding it fully, it seems like there are only a few examples of how to use it).