circler=255*zeros(256);
circleg=255*zeros(256);
circleb=255*zeros(256);
for x=1:256;
for y = 1:256;
if (x-150)^2+(y-150)^2<=2500;
circleb(x,y)=1;
end;
end;
end;
for x=1:256;
for y = 1:256;
if (x-150)^2+(y-100)^2<=2500;
circler(x,y)=1;
end;
end;
end;
for x=1:256;
for y = 1:256;
if (x-100)^2+(y-120)^2<=2500;
circleg(x,y)=1;
end;
end;
end;
A(:,:,1)=circler;
A(:,:,2)=circleg;
A(:,:,3)=circleb;
imshow(A)
No comments:
Post a Comment