I have to extract a pgm image. All I have is a size of the whole PGM image which is 505 I tried to extract the number of row and number of column from that image. int size = 505;
At the beginning, I think Number of column should be int col = 505/8// size of 1 byte int row = col *8
I don't know if this is correct? Please advise