Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
積分画像を計算する必要がありますが、ベクトル化と合計テーブルの計算によってこれを実現する方法がわかりません。これはMATLABでどのように可能ですか?
最も簡単な方法はcumsum、元の画像を2回呼び出して転置することです。
cumsum
integral_image = cumsum(cumsum(image')');
matlabバージョンにはゼロが埋め込まれています(最初の行と列)
integralImage = cumsum(cumsum(im, 2), 1); integralImage = padarray(integralImage,[1 1],'pre');