フィルターのクリア

how to find mean value of alternate pixels in diagonal direction

1 回表示 (過去 30 日間)
Sony
Sony 2012 年 4 月 26 日
how to find mean value of alternate pixels in diagonal direction that is in 45 and 135 degree direction can anyone help me???

回答 (1 件)

Sean de Wolski
Sean de Wolski 2012 年 4 月 26 日
x = magic(5);
xd = diag(x);
mean(xd(1:2:end))

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by