Mean and standard deviation of circles in CT images
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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,
0 Kommentare
Antworten (1)
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:
0 Kommentare
Siehe auch
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!