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

 

 

计算过程原理及代码;

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.快速计算积分图

posted on 2018-10-08 18:02  鹅要长大  阅读(269)  评论(0编辑  收藏  举报

导航