Modified circle drawing algorithm for bordered and filled circles.

버전 1.1.0.0 (2.65 KB) 작성자: Fatih Taspinar
Draw bordered and filled circle in an image using the integer midpoint circle algorithm.
다운로드 수: 66
업데이트 날짜: 2017/11/7

라이선스 보기

function i = MidpointCircleMod(i, radius, xc, yc, BorderColor, FillColor, filled)
Draw a circle in a matrix using the integer midpoint circle algorithm. Does not miss or repeat pixels
This modified version will draw circle on image by changing pixel values by given
border and fill color value. Border and fill color maybe a RGB array on
a value of uint8 class.
Example use:
%1-) Drawing on a RGB image
im = imread('ftGradient-1.jpg');
im = MidpointCircleMod(im, 75, 120, 200, [255 128 64], [128 255 255], 1);
figure, imshow(im);

%2-) Drawing on a Gray image
im = imread('ftGradient-1.jpg');
im = rgb2gray(im);
im = MidpointCircleMod(im, 75, 120, 200, [255 128 64], [255 255 255], 1);
figure, imshow(im);

This file is modified by Fatih Taspınar, 07.11.2017.
E-mail: fatihtsp@gmail.com, fatihtaspinar@duzce.edu.tr

First created by : Peter Bone
Created : 19th March 2007

인용 양식

Fatih Taspinar (2025). Modified circle drawing algorithm for bordered and filled circles. (https://kr.mathworks.com/matlabcentral/fileexchange/64989-modified-circle-drawing-algorithm-for-bordered-and-filled-circles), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2009a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Modify Image Colors에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0