You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
315 B
Matlab

function [I,gridsize,xlocations,ylocations]=define_blank_image(gridsize,len,spacing,backgnd)
gridsize=(gridsize-1)*spacing+2+odd(len);
I=zeros(gridsize)+backgnd;
hlen=ceil(odd(len)/2);
%create regular texture
spacing=round(spacing);
xlocations=1+hlen:spacing:gridsize-hlen;
ylocations=1+hlen:spacing:gridsize-hlen;