it would be better to use `InputArray _src` to have more generic code