I'm having an issue with my image processing program that I have for school. Any feedback is greatly appreciated. Here's what I have so far:
public short[][] Brighten(){
getPGM pic = new getPGM("football.pgm");
short Brighten[][] = new short [256][];
for (int i = 0; i < 256; i++){
short pixelValue = (short) (i + 10);
if(pixelValue > 255)
pixelValue = 255;
else if (pixelValue < 0)
pixelValue = 0;
Brighten[i][j] = pixelValue;
}
I'm trying to find out how I would apply my algirithm to that actual image. HELP PLEASE!!!