In [9]:
require 'image';

In [10]:
path = 'data/monet/'
prefix = 'image_'
ext = '.jpg'

In [44]:
t = image.load(path .. prefix .. 0 .. ext)
itorch.image(t)



In [45]:
--t = image.rgb2yuv(t)
print(t[{ {},1,1 }])
itorch.image({t[1],t[2],t[3]})


Out[45]:
 0.4039
 0.5098
 0.4510
[torch.DoubleTensor of size 3]


In [ ]: