Mean and standard deviation of circles in CT images

3 Ansichten (letzte 30 Tage)
HM
HM am 17 Jul. 2017
Beantwortet: Jayanti am 27 Mär. 2025
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,

Antworten (1)

Jayanti
Jayanti am 27 Mär. 2025
“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:

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by