I am working on a project in which I am receiving image data as an array of bytes (1-byte per pixel). Each byte represents a greyscale integer (0-255).
In order to perform a number of functions on the data, I need to convert the byte array into an integer array.
please help me..
Anything wrong with the simple approach?
EDIT: If you want a range of -128 to 127: