Please don't add `const` to `InputArray`. It causes warnings, because `InputArray` is a reference, so it's already constant.