Intensity based registration module

Follow up from https://github.com/Itseez/opencv/pull/1188