Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想降低样本图像,但我不想使用高斯内核。有没有为此目的的opencv函数?
更新:我有一个大小为 m x n 的图像。我想要大小为 m/2 x n/2 的结果图像,例如:
result[i,j]=( a*input[i*2,j*2]+ b*input[i*2+1,j*2]+ c*input[i*2,j*2+1]+ d*input[i*2+1,j*2+1] )/e
我怎样才能用opencv有效地做到这一点?
也许您正在寻找resize()。
从wiki-downsampling:
在信号处理中,下采样是降低信号采样率的过程。这样做通常是为了降低数据速率或数据大小。