フィルターのクリア

Finding intensity of region inside a circle from image

7 ビュー (過去 30 日間)
Manny Kins
Manny Kins 2021 年 11 月 26 日
コメント済み: Manny Kins 2021 年 11 月 26 日
Hi all, I have this image below of a circular bead (also attached):
I would like to calculate the average intensity of all pixels inside this circular bead, I have read things about regionprops but it unfortunately does not apply in my case as my bead isn't super bright at the centre. Any help would be greatly appreciated!

採用された回答

DGM
DGM 2021 年 11 月 26 日
編集済み: DGM 2021 年 11 月 26 日
Something like this:
A = rgb2gray(imread('Bead_pic.png'));
mask = A<100;
mask = imfill(mask,'holes') & ~mask;
% show the thing for sake of clarity
imshow(uint8(double(A).*mask))
avggrayval = mean(A(mask))
avggrayval = 141.7906
  1 件のコメント
Manny Kins
Manny Kins 2021 年 11 月 26 日
Many thanks for your help, this was very useful!

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by