We begin with a image as BMP of 56 x 96 Pixels as on sample demo on NERC page
The file BMP with name Blue Black BMP gives us the below Matrix
generated by Arduino Code
Now Row Number 0 is Entry Wall
1 (1,1) 1 (1,2) 1 (1,3) 1 (1,4) 1 (1,5) Now Row Number 1
0 (2,1) 0 (2,2) 1 (2,3) 0 (2,4) 1 (2,5) Now Row Number 2
1 (3,1) 1 (3,2) 0 (3,3) 1 (3,4) 1 (3,5) Now Row Number 3
1 (4,1) 1 (4,2) 1 (4,3) 2 (4,4) 1 (4,5) Now Row Number 4
1 (5,1) 0 (5,2) 1 (5,3) 1 (5,4) 1 (5,5) Now Row Number 5
0 (6,1) 1 (6,2) 1 (6,3) 0 (6,4) 1 (6,5) Now Row Number 6
2 (7,1) 0 (7,2) 1 (7,3) 1 (7,4) 1 (7,5) Now Row Number 7
1 (8,1) 0 (8,2) 0 (8,3) 1 (8,4) 1 (8,5) Now Row Number 8
1 (9,1) 1 (9,2) 1 (9,3) 1 (9,4) 0 (9,5) Now Row Number 9
0 (10,1) 1 (10,2) 1 (10,3) 1 (10,4) 0 (10,5) Now Row Number 10
0 (11,1) 0 (11,2) 0 (11,3) 0 (11,4) 0 (11,5) Now Top Wall 11
Each above is 8 Bits Cell - Given are 5 block 5x8 = 40 bits + 8 bits Left Side + 8 Bits on Right Side 40 + 16 are 56
and 10 Rows each 8 bits info 10 x 8 = 80 and one line on top and one below each 8 Bits so 80 + 8 + 8 = 96 bits info
Please feel free to ask any info regarding more on reading images / Image processing on Micros or Fpga
Well wishes