I have now managed to port the script to MATLAB. Quite a few changes are necessary. Especially in the operations of 2-dimensional and 3-dimensional matrices. The most important thing was that I learned a lot about the algorithm.

I am really impressed about the script. It works much better than CS6.

Maybe I made a mistake with the porting. So far I have not carried out an algin. I'll port that next week.

Here is the MATLAB version of the script and the result from 70 images

https://drive.google.com/open?id=1qaQAEvg7g_Zllbq7BDPHxjgqIYSj3zJBThis is the result from HeliconFocus. HeliconFocus crops very strongly and the viewing angle is different