MatrixOP mean operation returns NaN

Hello,

I'm writing a procedure that operates a 2D Wiener filter on some of my images.

In the procedure I'm using the following equation:

MatrixOP/O ww=mm+(sig2-mean(sig2))/sig2*(I-mm)


In this expression mean(sig2) returns a NaN.

Any suggestions?
There must be at least one NaN in the wave sig2. In the interest of performance, MatrixOP does not filter out NaNs.

You can WaveTransform zapNaNs to remove any NaNs.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com