0
点赞
收藏
分享

微信扫一扫

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

fbd4ffd0717b 2022-07-27 阅读 68

 

 

计算过程原理及代码;

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 条评论