Anyone tried that script in Matlab? I converted it into Scilab and the creation of 10 rotation matrices took me about 2 minutes. Now I'm applying the transfer algorithm to two 256x192 images and it has been running since 15 minutes. What am I doing wrong? Am I supposed to just insert a few samples of each picture into the algorithm? Currently I'm using every pixel, which means I have 256*192=49152 samples.
Edit: Nevermind, I've solved it. The algorithm is pretty fast.