Select the most representative frame in a given sequence of consecutive frames. The filter accepts the following options:
Since the filter keeps track of the whole frames sequence, a bigger n value will result in a higher memory usage, so a high value is not recommended. |
过程:
- 对每幅图像的RGB通道进行直方图(3x256)统计。
- 对所有图像的直方图统计求平均(记为“统计平均”)
- 计算每幅图像的直方图和“统计平均”的平方差
- 选出平方差最小的一幅
参数:
n越大需要缓存的图像就越多,所需内存就越大
使用:
可以和 image2 配合使用