维奥拉 - 琼斯算法 - "像素的总和"?琼斯、总和、算法、像素

2023-09-11 06:30:57 作者:逆光下的加的你

我已经看了许多文章和回答的中提琴 - 琼斯算法如何工作的问题。我不断发现说在一定区域中减去由在相邻的区域中的总和的像素的总和的像素的答案。我很困惑什么像素之和的意思。什么是基于价值的?是它在区域中的像素的数量?颜色的强度

I have looked at many articles and answers to questions on how the Viola-Jones algorithm really works. I keep finding the answers saying the "sum of pixels" in a certain region subtracted by the "sum of pixels" in the adjacent region. I'm confused on what "sum of pixels" means. What is the value based on? Is it the number of pixels in the area? The intensity of the color?

在此先感谢。

推荐答案

这些都是基于维奥拉 - 琼斯纸的可靠的实时目标检测

These are the definitions based on Viola-Jones paper on 'Robust Real-time Object Detection'

整体形象:整体形象(二)在位置X,Y = II(X,Y)

Integral Image: Integral Image(ii) at location x, y = ii(x,y)

ii(x,y) = > Sum of the pixels above and to the left of x, y inclusive

下面萨姆像素的意味着像素强度值的总和(例如,对于一个8位的灰度图像,0到255之间的值),在每个像素单元的上方和像素的左侧(X, y)和包括行/列x和y,考虑在重新presentation灰度图像。

Here 'Sum of Pixels' implies the sum of pixels intensity values ( e.g., for a 8 bit gray scale image, a value between 0 and 255 ) at each pixel element to the above and to the left of pixel (x, y) and including the row/column x and y, considering a gray scale image in the representation.

积分图像的意义在于,它加速了象素强度之和的像素任何矩形块内的​​计算。例如四面阵参考。

Significance of the integral image is that it speeds up the computation of the sum of pixel intensities within any rectangular block of pixels. e.g. four array references.

和在由二(X,Y)给定的各点本身积分图像值可以计算在一次通过在原始图像I(X,y)的

And the integral image value by itself at each point given by ii(x,y) can be computed in one pass over the original image i(x,y)

使用下面的公式在传递期间的每个点作为参考文件中详述:

using the below equations on each point during the pass as detailed in the reference paper:

s(x,y) = s(x,y-1) + i(x,y);

ii(x,y) = ii(x-1,y) + s(x,y);

其中

s(x,y) = the cumulative row sum;
s(x,-1) = 0;
ii(-1,y) = 0;

这些积分图像值随后用来生成特征来学习和后来检测对象。

These integral image values are then used to generate features to learn and later detect objects.