How can I get image value and change value?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi.
I have an image file. I want to draw a filled inside black circle. Must use this command : img(sub2ind(size(img),y,x))=0;
I cannot filled circle. I can make black circle only. How can I filled the circle?
Please help me. Thank you.
댓글 수: 0
답변 (1개)
David Sanchez
2013년 6월 10일
hold on your image,
to draw a circle centered at (2,3):
t=0:.1:2*pi;
r=1;
x_c = 2;
y_c = 3;
x = x_c - r*cos(t);
y = y_c - r*sin(t);
fill(x,y,'k')
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!