Could use help wrapping opencv function?