`CV_OUT` is not needed here. If I remember correctly then `InputOutputArray` already assumes `CV_OUT`