How to do a summation of slides?

1 回表示 (過去 30 日間)
Aneta Chwala
Aneta Chwala 2018 年 12 月 12 日
再開済み: Walter Roberson 2018 年 12 月 20 日
I am looking for help in sum of pixels from sliding window in a picture. The point is, I already have a sliding window it shows number of pixels for one slide but then it moves and changes for another number, and I need sum of all slides. Please help. I asked this before but I made it unclear for people who wanted to help me and I'm still stucked with my problem.
  2 件のコメント
KSSV
KSSV 2018 年 12 月 12 日
Have a look on sum it should help you.

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

回答 (1 件)

Omer Yasin Birey
Omer Yasin Birey 2018 年 12 月 12 日
編集済み: Omer Yasin Birey 2018 年 12 月 12 日
It is quite dubios what you are trying to say but if I understood a little correctly you may try
temp = [];
for i = 1:length(iteration)
temp = [temp pixels];
end
summationR= sum(temp,2); % If you want to sum corresponding pixels use dimension parameter or just sum(temp)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by