
MatrixOP mean operation returns NaN

kpantzas
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?
You can WaveTransform zapNaNs to remove any NaNs.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
October 1, 2015 at 02:29 pm - Permalink