Circle on binary image

조회 수: 3 (최근 30일)
liang ro
liang ro 2017년 12월 5일
댓글: liang ro 2017년 12월 12일
Hello every one!! i am new to matlab and i want to write circles on an image. h=viscircles(centers,radii,'Color','k','LineWidth',wid); will someone help me that how to draw the circles(by assigning the value of h or any other procedure) on a white binary image of 256*256 pixels

채택된 답변

Akira Agata
Akira Agata 2017년 12월 11일
The following example displays a blue circle whose radius and center are 50 pixel and (100,100), respectively.
% 256x256 binary image (white)
I = ones(256);
% Display a blue circle on the image
imshow(I)
hold on
viscircles([100,100], 50,'Color','b')
  댓글 수: 1
liang ro
liang ro 2017년 12월 12일
thank you!!

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by