How to change a vector<Mat> to a [UIImage] array

Hi, i’m trying to send back data from mi opencv script to mi code in swift i have a vector with images and i want to change them to an UIImage vector in my objectiveCPPwrapper script but i’m having troubles with pointers and how to append to a UIImage vector.

I know i have to use MatToUIImage() function to convert each element but i can’t put them in a vector.

uhmm, this doesn’t seem like swift, I’m not sure if anyone can answer that here

oh well, thank you anyways!