• Remix
  • Share
  • New Entry

on 4 Oct 2022
  • 8
  • 48
  • 0
  • 4
  • 280
f=uint8(zeros(300,600,3));
f(:,:,:)=255;
f(1:100,:,1)=255;
f(1:100,:,2)=153;
f(1:100,:,3)=51;
f(200:300,:,1)=19;
f(200:300,:,2)=136;
f(200:300,:,3)=8;
for i=1:300
for j=1:600
if sqrt(power(i-15,2)+power(j-300,2))>=40
if sqrt(power(i-150,2)+power(j-300,2))<=40
f(i,j,1:2)=0;
end
end
end
end
figure,imshow(f);
Image
Remix Tree