I have an app so far that allows the user to free draw (like a sketch pad) on a UIImageView
element.
I want to get the raw RGB pixel data (as 0
to 255
integer values) as a multidimensional array so I can feed it into a machine learning algorithm . Or is there some other way I can send the raw image data over to separate C++ function?
Is there an easy way to do this in Swift?
See Question&Answers more detail:os