View Full Version : Arbitrary pixel mapping
ajp_anton
8th August 2012, 22:39
Is there a plugin that allows for arbitrary remapping of pixels that takes equations x,y = f(x',y') as inputs?
jmac698
8th August 2012, 23:14
There's a barrel distortion filter that uses a specific equation. Also perspective plugin to use another type of equation. Some distort special effects that make ripples and so on. There's a limited way to do it in masktools, because you can specify the convolution matrix, which would let you arbitrarily move pixels around based on the current position. You'd need a different matrix for each pixel though. You could write it directly with gscript, but it would be slow.
What equation where you thinking of?
ajp_anton
9th August 2012, 00:49
I need to merge some photos into one large panorama picture.
I heard it can be easily done with Photoshop, but "easy" doesn't sound like fun so I thought I'd see if it can be done with Avisynth.
First task is to distort the image to fit them together, and then I thought there might be a more general solution where I can experiment with different kinds of distortions.
I have no experience whatsoever on how to do this kind of thing, I just have some theoretical ideas and I want to try them out.
jmac698
9th August 2012, 02:12
Yes
http://avisynth.org/vcmohan/FXpanse/FXpanse.html
For doing it another way,
http://hugin.sourceforge.net/
https://research.microsoft.com/en-us/um/redmond/groups/ivm/ice/
ajp_anton
9th August 2012, 13:02
Those are just what I tried to avoid - automated solutions that make the process easy. I already have Photoshop for that, but I wanted to do it manually.
jmac698
9th August 2012, 13:39
ajp_anton
10th August 2012, 02:03
Your post is empty. I had the same problem earlier today, I had to simply delete the message and repost it as editing didn't work.
Guest
10th August 2012, 03:09
The forum was broken when that was posted. It was repaired by Swede earlier today. Thank you, Swede!
jmac698
10th August 2012, 09:16
The algorithm is roughly,
find correspondence points between two overlapping pictures (in fact, sort the pictures if possible by metadata)
use RANSAC to find the best points
undistort with a lens distortion model
blend the pictures with a pyramid fusion algorithm
you'll have to do this n a plugin
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.