本文介绍了均值滤波算法C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我阅读了一些有关均值过滤器及其使用年龄的文章.但是我在编码时对此感到困惑.有人可以用数学术语向我解释其效果吗?到目前为止,这是我实现的,这里的帮助将非常棒: 无效 CLEO_MedivisionView :: OnNoiseremovalMedianfilter() { 未签名 int meanarray [262144]; int i; 用于 (i = 0; i< 262144; i ++) { meanarray [i] = 0; } 用于 (i = 2; i< 262144-2; i ++) { meanarray [i-2] =(image [i-2] + image [i-1] + image [i] + image [i +1] + image [i + 2])/5; } 要注意的事情是当我在断点处调试时,出现错误,指出堆栈溢出或类似的情况. 解决方案 hi, i read up some articles about mean filter and its use-age. however im connfused about it when it comes to coding it. can someone explain to me in mathematical term on how its done? this is what i implemented so far, help from here one will be great:void CLEO_MedivisionView::OnNoiseremovalMedianfilter(){ unsigned int meanarray[262144]; int i; for (i=0; i<262144; i++){meanarray[i]=0;} for (i=2; i<262144-2; i++){meanarray[i - 2]= (image[i - 2] +image[i - 1] +image[i] +image[i + 1] +image[i + 2]) / 5;}thing to note is when i debug at the breakpoint, i get an error saying that the stack is overflow or something like that. 解决方案 这篇关于均值滤波算法C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-21 11:48