Learned from Core Image Programming Guide that CIContext is heavy and should be reused.

Read again Podfile Syntax Reference. How I hate Cocoapods documentation!

I should definately turn this my Swift script into such app AssetsGenerator for Xcode.

Read Signal Processing and Dynamic Time Warping. It has a lot of interesting material, far more then DTW.