计算过程原理及代码;
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.快速计算积分图;
完
微信扫一扫
计算过程原理及代码;
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.快速计算积分图;
完
相关推荐