4#include "../../catch2/catch.hpp"
8#define MX_NO_ERROR_REPORTS
276TEST_CASE(
"testing zernikeQNorm",
"[sigproc::zernike]" )
282 Eigen::Array<double, -1, -1> arr, k, phi;
283 arr.resize( 32, 32 );
285 phi.resize( 32, 32 );
287 for(
int i = 0; i < 32; ++i )
289 for(
int j = 0; j < 32; ++j )
293 k( i, j ) = sqrt( kx * kx + ky * ky );
294 phi( i, j ) = atan( ky / kx );
int noll_nm(int &n, int &m, int j)
Get the Zernike coefficients n,m corrresponding the Noll index j.
realT zernikeQNorm(realT k, realT phi, int n, int m)
Calculate the square-normed Fourier transform of a Zernike polynomial at position (k,...
TEST_CASE("testing noll_nm", "[sigproc::zernike]")
Working with the Zernike polynomials.