dictionary learning example
image registration function