Additions to ximgproc and xphoto modules

It contains additions to https://github.com/Itseez/opencv_contrib/pull/49