【图像处理】快速计算积分图

阅读 68

2022-07-27

 

 

计算过程原理及代码;

matlab代码:先行(列)累加再列(行)累加;

function outimg = integralImg (inimg)
% cumulative sum for each pixel of all rows and columns to the left and
% above the corresponding pixel
outimg = cumsum(cumsum(double(inimg),2));
end

 

参考

1.​​快速计算积分图​​;

精彩评论(0)

0 0 举报