フィルターのクリア

How to find mean value of each pixel of a coloured image

1 回表示 (過去 30 日間)
A.Mariya Jomet
A.Mariya Jomet 2018 年 10 月 12 日
コメント済み: A.Mariya Jomet 2018 年 10 月 12 日
I have an image I(i,j) For each pixel I(i, j), I need to calculate 5 mean values I^(k); (k = 1,2,3,4,5) in five 7 * 7 windows W^(k) with pixel I(i,j) ,being located in the centre, top-left, top-right,bottom-left, and bottom-right of the window.
I got paused here in my project. anyone please help me.

採用された回答

KSSV
KSSV 2018 年 10 月 12 日
Have a look on the knnsearch you can get the desired number of neighbor indices with which you can get the mean. Or You can get the neighbors of (i,j) using
(i,j-1) - left
(i,j+1) - right
(i-1,j) - top
(i+1,j) - bottom
  1 件のコメント
A.Mariya Jomet
A.Mariya Jomet 2018 年 10 月 12 日
thank you for your help. I will try this

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

製品


リリース

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by