我试图让它工作,但仍然没有结果。您知道用于模糊图像过滤的某种教程或示例汇编代码吗?
问问题
1016 次
1 回答
0
您可以使用卷积矩阵进行模糊处理。
根据系统的不同,您可以使用较旧的浮点数、整数运算或较新的 SSE 操作。
如果您使用一个字节来表示颜色值,这里有一个整体算法:
calculate sum of convolution matrix (in blur matrix that would be 9)
Clear destination register
load each byte under convolution matrix
multiply each byte with its corresponding number in the convolution matrix
place the sum into the destination register
divide destination register with the sum of convolution matrix
store the destination register into destination buffer
于 2010-07-20T17:10:44.017 回答