필터 지우기
필터 지우기

how to draw a circle on specific points in an image???

조회 수: 3 (최근 30일)
arooj
arooj 2011년 4월 3일
plz helppppppp

채택된 답변

the cyclist
the cyclist 2011년 4월 3일
If you just mean how to plot a circle in a figure, then this function will draw (an approximation to) a circle with a specified radius, at a specified (x,y) location. You can also specify the number of line segments that make up the circle.
function h = circle(x,y,r,nsegments)
if nargin<4
nsegments=50;
end
hold on
th = 0:2*pi/nsegments:2*pi;
xunit = r * cos(th) + x;
yunit = r * sin(th) + y;
h = plot(xunit, yunit);
hold off
end
I can't remember if I wrote this, or grabbed it off the File Exchange years ago, but there's no attribution in the file, so I can't give credit. You might search the FEX for other functions that may be better than this.
If you are talking more about image-processing, then I can't help you, except that I searched the FEX and found this:
  댓글 수: 2
arooj
arooj 2011년 4월 3일
Thanx alot.......... it helped me :)
anurag bansal
anurag bansal 2011년 6월 14일
very very thanx

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

shafaq
shafaq 2011년 4월 3일
meet me in uni i wil tel u its easy...

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by