Replace "const InputArray" with "InputArray".

InputArray is a reference, and references are always constant anyway. Making
it const even causes a GCC warning.
Merge pull request #1194 from SpecLad:no-const-inputarray