% % flEdgeCycle = Edge_contrast_1D_animation( flHalfWidth, nFrames ) % ------------------------------------------------------------------------- % % Creates vector with a center-surround aura and edge at a given angle. % This vector is used as a member of a sequence. % % USAGE: flEdgeCycle = Edge_contrast_1D_animation( 32.9, 48 ); % % INPUT: % % flHalfWidth - % nFrames - % % HARDCODED (immediately below function declaration): % % nOverSample - [1, 16] Flat aperture oversampling rate. % bShowResult - [0, 1] Show progress, display final image. % % RETURN VALUES: % % flEdgeCycle - % % FUNCTION CALLS and DEPENDENCIES: % % Edge_contrast_1D.m % % CALLED BY: % % none % % Mark Dow, November 12, 2008 % Mark Dow, modified , 2008 () % % % TERMS FOR USE: There are no restrictions on the use of this code, % auxilliary code and other required resources. Claiming % to be the originator, explicitly or implicitly, is bad % karma. A link (if appropriate), a note to dow[at]uoregon.edu, % and credit are appreciated but not required. % function flEdgeCycle = Edge_contrast_1D_animation( flHalfWidth, nFrames ) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % hardcoded parameters nOverSample = 6; bShowResult = false; % [0,1] % hardcoded parameters %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Initialize gray flEdgeCycle( 1 : 2*ceil(flHalfWidth), 1 : nFrames ) = 0; for iF = 1 : nFrames flEdgeCycle( :, iF ) = Edge_contrast_1D( flHalfWidth, (iF - 1)*360/nFrames ); end if bShowResult figure imshow( flEdgeCycle ); colormap( gray ) end