Morph images by maximizing their structural similarity.
Just do reimage.py <from_filename> <to_filename>
. Optional arguments:
num_frames
, 128 by defaultstart_blur
, 8.0 by default - how much blurring is done at the start of morphing when comparing images (this is used to speed up convergence, because pixels are attracted to regions where they belong)end_blur
, 0.0 by default - the blurring when the morphing comes to an endchoices_per_iteration
, default 16 - how many possible swaps are considered in each iteration (only the best one is chosen)iterations_per_frame
, default 128video_filename
, defaultNone
- filename to save individual frames asresult_filename
, defaultNone
- filename to save the last frame asno_preview