% Just a collection of examples for demonstrating caoLandyTexture.m
%
% cao 11/30/06

figure(1)
noiseSample = caoLandyTexture(128,[10 10 30 10],1);

figure(2)

bandExamples(1).params = [10 Inf 10 Inf];
bandExamples(1).name = 'white noise';
bandExamples(2).params = [10 Inf 90 10]; % white noise
bandExamples(2).name = 'vertical, broadband in f., skinny in theta';
bandExamples(3).params = [5 10 90 Inf]; % white noise
bandExamples(3).name = 'not oriented, lowpass in f.';
bandExamples(4).params = [10 Inf 30 20]; % white noise
bandExamples(4).name = 'oblique, broadband in f.';
bandExamples(5).params = [5 10 30 20]; % white noise
bandExamples(5).name = 'oblique, low frequency, moderate bw.';
bandExamples(6).params = [5 5 30 20]; % white noise
bandExamples(6).name = 'oblique, low frequency, narrow bw.';
bandExamples(7).params = [20 10 0 20]; % white noise
bandExamples(7).name = 'hoizontal, high frequency, narrow bw';
bandExamples(8).params = [20 30 0 20]; % white noise
bandExamples(8).name = 'horizontal, high frequency, broad bw.';
bandExamples(9).params = [10 Inf 30 20]; % white noise
bandExamples(9).name = 'oblique, broadband in f.';

imSize = 256;
for n = 1:8
    subplot(3,3,n)
    imagesc(caoLandyTexture(imSize,bandExamples(n).params)); axis image off
    title(bandExamples(n).name)
end

subplot(3,3,9); imagesc(caoLandyTexture(imSize,bandExamples(2).params) + ...
    caoLandyTexture(imSize,bandExamples(8).params)); axis image off
title('plaid?')