Converting 3 dimension byte array to a single byte array [on hold]
- by Andrew Simpson
I have a 3 dimensional byte array.
The 3-d array represents a jpeg image. Each channel/array represents part of the RGB spectrum.
I am not interested in retaining black pixels. A black pixel is represented by this atypical arrangement:
myarray[0,0,0] =0;
myarray[0,0,1] =0;
myarray[0,0,2] =0;
So, I have flattened this 3d array out to a 1d…