I want to search in an image for pixels above or below a certain value once that image has been read from a file and converted to a byte array. The Count method for a byte array is quite fast:
int numHighSaturatedPixels = imageArray.Count(n => n == highThreshold)
but the header information from the image format (BMP in my case) is still in there and is included in the count. How can the image be converted to a byte array without the header data getting in there?