Butterworth Lowpass digital filter Filter Order: 2 -> poles for low pass ===========================================================================
| 1151 | // Filter Order: 2 -> poles for low pass |
| 1152 | //=========================================================================== |
| 1153 | static real initFilterSignal (real z) |
| 1154 | { |
| 1155 | static real x[SIGNAL_ZEROS + 1] = { 0,0,0 }; |
| 1156 | static real y[SIGNAL_POLES + 1] = { 0,0,0 }; |
| 1157 | |
| 1158 | x[0] = x[1]; x[1] = x[2]; x[2] = z / SIGNAL_GAIN; |
| 1159 | y[0] = y[1]; y[1] = y[2]; y[2] = x[0] + x[2] + (2.f*x[1]) + (SIGNAL_0*y[0]) + (SIGNAL_1*y[1]); |
| 1160 | |
| 1161 | return y[2]; |
| 1162 | } |
| 1163 | |
| 1164 | //=========================================================================== |
| 1165 | static void initPixelDoubleMasks (void) |
no outgoing calls
no test coverage detected