Draw multiple circles in one image

조회 수: 12 (최근 30일)
Latifa Bouguessaa
Latifa Bouguessaa 2022년 7월 27일
댓글: Walter Roberson 2022년 8월 12일
Hello, everyone,
I need your help. I wanted to draw several circles in one picture and edit them later. Attached is a screen shot. thank you for your help
Latifa

채택된 답변

KSSV
KSSV 2022년 7월 27일
편집: KSSV 2022년 7월 27일
R = 2:2:10 ;
th = linspace(0,2*pi) ;
figure
hold on
for i = 1:length(R)
x = R(i)*cos(th) ;
y = R(i)*sin(th) ;
plot(x,y)
end
axis equal
  댓글 수: 9
Image Analyst
Image Analyst 2022년 8월 12일
I have no idea what you want to do. All professional programmers put comments into their code. Where are yours? Explain every section or line of your code up until the plotting part.
Walter Roberson
Walter Roberson 2022년 8월 12일
You cannot reliably recreate the roi given just the subimage and comparing it to 0, as interior pixels could be 0.
You could, it is true, take the subimage and fit a circle to it to recreate the roi.
But if you are going to need the roi later, just record the mask variables as well, it saves a lot of trouble.

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by