Fix compilation issues.
Using four spaces for indentation.
added RGB5x5 <-> Gray
fix some bug about haar and match_template.
Merge pull request #1783 from SpecLad:cap-no-pattern
Merge pull request #1773 from ilya-lavrenov:ocl_buildWarpPerspectiveMaps
Merge pull request #1766 from ilya-lavrenov:ocl_remap_linear
Merge pull request #1782 from ilya-lavrenov:ocl_adapBilat
fix haar
fix linux warning.
Merge pull request #1775 from ilya-lavrenov:ocl_cvtColor
kernel warnings on AMD
In the image sequence capture, only search for the ordinal in the file name.

Searching in directory names can yield confusing results; e.g. if
the input is "jpeg2000/image1.jp2", it will infer the pattern
"jpeg%04d/image1.jp2", which is likely not what the user intended.

If the user really desires for the variable part to be in the
directory name, it can always use an explicit pattern.
minX1 should be max(-maxD,0) not max(maxD,0), avoid black band at left
fixed compilation of ocl::minMaxLoc for Intel device
Reworked documentation building to work with extra modules.

The main problem with extra modules is that they're located outside
of the OpenCV root, while Sphinx requires that all documents are
within the documentation root. To circumvent this, we create a
"fake root" and copy all documentation (as well as all files that
it depends on) there. It's a bit messy, but what can you do.

As a bonus, this eliminates the need to generate modules/refman.rst
inside the source tree.
fix match_template and haar
fix haar
Add missing limits include

Without limits included, several CUDA related files fail to compile with
GCC on Ubuntu:

modules/cudaimgproc/src/hough_lines.cpp:136:9: error: ‘numeric_limits’ is not a member of ‘std’
Merge pull request #1791 from prattmic:limit