Add automatic threshold in canny edge detector

Conflicts:
	modules/imgproc/src/canny.cpp
Add a compatibility function to use stereovar in c applications

Conflicts:
	modules/contrib/src/stereovar.cpp
Change default value of nmixtures to 3
Merge remote-tracking branch 'itseez/2.4' into carreira-dev-2.4