cd C:\Users\fapp2\matlab\cox

W = randn(1,1000);

Files = struct('Filename', {'kings.jpg'});
n = length(Files);
for i = 1:n
   [I, MAP] = imread(Files(i).Filename);
   %imshow(I, MAP);
   J = coxwmkcolor(I, .1, 1000, W);
   save CoxKings J
   imwrite(I, Files(i).Filename);
end
