Opencv Input Array Must Be 1