if you are creating it yourself you can just change it to an ofPixels, the use is exactly the same, you can go trhough it with []… except to allocate it where instead of new you would use:
pixels.allocate(w,h,num_channels)
where num_channels would be 1 for grayscale, 3 for rgb and 4 for rgba
if it’s a memory structure that you have from somewhere else you can do: