Im clueless about writing a code for identifying every pixel's intensity in a 256*256 image. i managed to come up with a few ideas but i couldnt do much from the code below. help would be very appreciated thanks. im doing visual c++ on mfc for medical imaging purposes.


Code:
unsigned short array1[65535];  //for 256*256 image
                // count pixel intensity
    
    for (i=0; i<255; i++)
    {                            // this is where im not sure what to put in. pls help thanks
    }

    count = 0;    //resets the count back to 0