bionet.utils.trig_poly.gen_trig_poly_2d¶
- bionet.utils.trig_poly.gen_trig_poly_2d(Sx, Sy, dx, dy, c)¶
Construct a 2D trigonometric polynomial.
Parameters: Sx : float
Period of signal along the X-axis.
Sy : float
Period of signal along the Y-axis.
dx : float
Resolution along the X-axis.
dy : float
Resolution along the Y-axis.
c : tuple or numpy.ndarray
X-axis and Y-axis trigonometric polynomial orders or an array of Dirichlet coefficients with shape (2*My+1, 2*Mx+1).
Returns: S : numpy.ndarray
Generated signal.
Notes
This function uses the FFT to generate the output signal.
See http://fourier.eng.hmc.edu/e101/lectures/Image_Processing/node6.html for an example of a DFT of a real 2D discrete signal.