Harmonic Mean Filter Python Opencv