Mean and standard deviation of circles in CT images
3 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Jayanti
on 27 Mar 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 Comments
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!