필터 지우기
필터 지우기

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 CenterFile Exchange에서 Matched Filter and Ambiguity Function에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by