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.

23 lines
522 B
Matlab

function I=image_popout_contrast(size,len,gap,angle)
%draw a uniform texture with a single element at a different orientation
[line,len]=define_bar(len);
[I,size]=define_blank_image(size,len,gap);
angle=rem(angle,90);
[xlocations,ylocations]=define_grid(size,len,gap,angle);
a=0;
for x=xlocations
a=a+1;
b=0;
for y=ylocations
b=b+1;
if a==ceil(length(xlocations)/2) & b==ceil(length(ylocations)/2)
I=draw_line(I,x,y,line,angle);
else
I=draw_inverse_line(I,x,y,line,angle);
end
end
end
I=crop_image(I);