Mean and standard deviation of circles in CT images
4 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
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:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!