The images are stored so that they can be easily loaded in MATLAB. The images are of 299 x 299 x 3 shape. The files contain a column of 268203 integers. Each row represents a dimension of the image in the set {1, 2,..., 255}. The data is stored in the Fortran order i.e., the values of the red channel are specified first column-wise followed by the green and blue channels.


# matlab code to load the image
fname = 'panda.txt'
fileID = fopen(fname, 'r')
A = fscanf(fileID, '%d')
A = reshape(A, [299, 299, 3])
A = uint8(A)
imshow(A)

# python code to load the image
import numpy as np
from PIL import Image
fname = 'panda.txt'
a = np.genfromtxt(fname)
a = a.reshape((299, 299, 3), order='F')
Image.fromarray(a.astype('uint8')).show()

The four image pairs used for guard trials are also stored in this folder.
