Compute deformation field smoothness

A post was split to a new topic: make output deformation smooth