Monochrome grayscale image, get the intensity of a pixel
I'm attempting to derive an intensity value for a particular pixel in a monochrome "grayscale" image. I have some pseudocode, but thus far I've been unable to implement something that really works. /** * Retrieve the intensity value at location ('row', 'column') of the image 'img' and return it * Note: * - the 2D image is stored as an 8bit, 1D, row-major array of type byte * - the data type byte is signed in Java * - Slide 27 of chapter 2 introduces the representation of an image * @param img in row major format * @param row to evaluate * @param column to evaluate * @param width of img *