Calculate the value of an area around a known co-ordinate

1 回表示 (過去 30 日間)
Karin Cluver
Karin Cluver 2022 年 7 月 1 日
コメント済み: Matt J 2022 年 7 月 1 日
Is it possible to calculate an average of a couple of pixel's value around a known co-ordinate?
I use the following equation:
%%
imtool (Thermal)
P = impixel(Thermal, X,Y)
Is there a wat to get the average of a few pixels around the X,Y instead of just the single value at this point (3 pixels around the X,Y co-ordinate)

採用された回答

Matt J
Matt J 2022 年 7 月 1 日
編集済み: Matt J 2022 年 7 月 1 日
mean(Thermal(y-1:y+1,x-1:x+1),'all')
  3 件のコメント
Matt J
Matt J 2022 年 7 月 1 日
Yes. You could also use movmean() or conv2() if you wanted the neighborhood means of every pixel.
Matt J
Matt J 2022 年 7 月 1 日
Karin Cluver's response moved here:
Perfect Thank you so much

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange3-D Volumetric Image Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by