circle_matrix(image,radius, center, value, thickness)
This file help to create a circle or ring matrix and also draw circle in gray and color image with different intensity value.
Example 1:-
---------------------------------------------
a = imread('lena.tif');
center = [50,300];
color = [255,255,0];
Z = circle_matrix(a, 150, center, color, 5);
imshow(Z)
----------------------------------------------
example 2:-
---------------------------------------------------------
image = uint8(255*ones(512));
center = [75, 150];
image1 = circle_matrix(image, 100); % circle with radius 100
image2 = circle_matrix(image, 100, center); % circle with radius 100 at center(75, 150)
image3 = circle_matrix(image, 100, center, 40);
image4 = circle_matrix(image, 100, center, 40, 40);
subplot(221),imshow(image1)
subplot(222),imshow(image2)
subplot(223),imshow(image3)
subplot(224),imshow(image4)
-----------------------------------------------------
Cita come
Jitendra Mishra (2024). circle_matrix(image,radius, center, value, thickness) (https://www.mathworks.com/matlabcentral/fileexchange/55534-circle_matrix-image-radius-center-value-thickness), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Riconoscimenti
Ispirato da: Draw a circle.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.