Mean and standard deviation of circles in CT images

조회 수: 4 (최근 30일)
HM
HM 2017년 7월 17일
답변: Jayanti 2025년 3월 27일
Hello, I'm using imfindcircles and viscircles to find the circular inserts in a CT slice of a phantom. I'm having trouble finding the mean and standard deviation of the circles that have been found. In other words I have the centre coordinates and the radii of all the circles. I tried using mean2, but I get an error for too many input argument. Thanks,

답변 (1개)

Jayanti
Jayanti 2025년 3월 27일
“imfindcircles” gives “centers” matrix and “radii” vector as its output. In order to calculate mean and standard deviation of center and radii of the detected circles you can use “mean” and “std” function.
Please refer to the below code for better understanding:
mean_cen_x = mean(centers(:, 1));
mean_cen_y = mean(centers(:, 2));
std_cen_x = std(centers(:, 1));
std_cen_y = std(centers(:, 2));
mean_rad = mean(radii);
std_rad = std(radii);
I am also attaching the MathWorks official documentation link on “mean” and “std” for your reference:

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by