code for generating visual metamers as described in
freeman and simoncelli, metamers of the ventral stream, nature neuroscience, 2011 http://www.nature.com/neuro/journal/v14/n9/abs/nn.2889.html
see contents.m
for what's in here and metamerTest.m
for testing basic functionality.
written in matlab a long time ago, could probably be greatly improved or enhanced using more modern tools!