In [1]:
using Images, RODClf, Color, FixedPointNumbers
In [2]:
images_csv = readcsv("./dataset/test.csv");
In [29]:
row_image = (reshape([integer(x) for x in split(images_csv[202,2], " ")], (96,96)));
In [30]:
example_jpg = imread("test.jpg");
In [31]:
y = [convert(Ufixed8,integer(x)) for x in split(images_csv[202,2], " ")];
In [32]:
z = reshape(y, (96,96));
In [178]:
colour = row_image[12,3] * 0x00010101
r = (colour >> 16) & 0xff;
g = (colour >> 8) & 0xff;
b = colour & 0xff;
pixel_test = [r,g,b]
Out[178]:
In [33]:
z = [RGB{Ufixed8}(x, x, x) for x in y];
In [185]:
RGB{Ufixed8}(0.882,0.91,0.847)
Out[185]:
In [192]:
[convert(Ufixed8, x) for x in pixel_test]
Out[192]:
In [34]:
Image(reshape(z, (96,96)), example_jpg.properties)
Out[34]:
In [28]:
example_jpg.properties
Out[28]:
In [ ]: