![]() |
s2let
2.2.0
Fast wavelets on the sphere
|
#include <complex.h>
#include <math.h>
#include <so3/so3.h>
#include <ssht/ssht.h>
#include <stdio.h>
#include <stdlib.h>
#include "s2let.h"
Functions | |
void | s2let_analysis_lm2lmn (complex double *f_wav_lmn, complex double *f_scal_lm, const complex double *flm, const complex double *wav_lm, const double *scal_l, const s2let_parameters_t *parameters) |
void | s2let_analysis_lm2lmn_real (complex double *f_wav_lmn, complex double *f_scal_lm, const complex double *flm, const complex double *wav_lm, const double *scal_l, const s2let_parameters_t *parameters) |
void | s2let_analysis_lm2wav_manual (complex double *f_wav, complex double *f_scal, const complex double *flm, const double *scal_l, const complex double *wav_lm, const int scal_bandlimit, const int *wav_bandlimits, int J, int L, int spin, int N) |
void | s2let_analysis_lm2wav (complex double *f_wav, complex double *f_scal, const complex double *flm, const s2let_parameters_t *parameters) |
void | s2let_analysis_lm2wav_real (double *f_wav, double *f_scal, const complex double *flm, const s2let_parameters_t *parameters) |
void | s2let_analysis_px2wav (complex double *f_wav, complex double *f_scal, const complex double *f, const s2let_parameters_t *parameters) |
void | s2let_analysis_px2wav_real (double *f_wav, double *f_scal, const double *f, const s2let_parameters_t *parameters) |
void s2let_analysis_lm2lmn | ( | complex double * | f_wav_lmn, |
complex double * | f_scal_lm, | ||
const complex double * | flm, | ||
const complex double * | wav_lm, | ||
const double * | scal_l, | ||
const s2let_parameters_t * | parameters | ||
) |
Wavelet analysis from harmonic space to Wigner space for complex signals.
[out] | f_wav_lmn | Wavelet transform (Wigner coefficients of wavelet contribution). |
[out] | f_scal_lm | Wavelet transform (Spherical harmonic coefficients of scaling contribution). |
[in] | flm | Spherical harmonic coefficients of input function. |
[in] | wav_lm | Wavelet kernels in harmonic space. |
[in] | scal_l | Scaling function kernels in harmonic space. |
[in] | parameters | A fully populated parameters object. The reality flag is ignored. Use s2let_analysis_lm2lmn_real instead for real signals. |
none |
void s2let_analysis_lm2lmn_real | ( | complex double * | f_wav_lmn, |
complex double * | f_scal_lm, | ||
const complex double * | flm, | ||
const complex double * | wav_lm, | ||
const double * | scal_l, | ||
const s2let_parameters_t * | parameters | ||
) |
Wavelet analysis from harmonic space to Wigner space for real signals.
[out] | f_wav_lmn | Wavelet transform (Wigner coefficients of wavelet contribution). |
[out] | f_scal_lm | Wavelet transform (spherical harmonic coefficients of scaling contribution). |
[in] | flm | Spherical harmonic coefficients of input function. |
[in] | wav_lm | Wavelet kernels. |
[in] | scal_l | Scaling function kernels. |
[in] | parameters | A fully populated parameters object. The reality flag is ignored. Use s2let_analysis_lm2lmn instead for complex signals. |
none |
void s2let_analysis_lm2wav | ( | complex double * | f_wav, |
complex double * | f_scal, | ||
const complex double * | flm, | ||
const s2let_parameters_t * | parameters | ||
) |
Wavelet analysis from harmonic space to wavelet space for complex signals.
[out] | f_wav | Array of wavelet maps |
[out] | f_scal | Scaling function map |
[in] | flm | Spherical harmonic coefficients of the signal |
[in] | parameters | A fully populated parameters object. The reality flag is ignored. Use s2let_analysis_lm2wav_real instead for real signals. |
none |
void s2let_analysis_lm2wav_manual | ( | complex double * | f_wav, |
complex double * | f_scal, | ||
const complex double * | flm, | ||
const double * | scal_l, | ||
const complex double * | wav_lm, | ||
const int | scal_bandlimit, | ||
const int * | wav_bandlimits, | ||
int | J, | ||
int | L, | ||
int | spin, | ||
int | N | ||
) |
Wavelet analysis from harmonic space to wavelet space for complex signals. with fully manual wavelet tiling, using multiresolution as default with the band-limits provided in input.
[out] | f_wav | Array of wavelet maps |
[out] | f_scal | Scaling function map |
[in] | flm | Spherical harmonic coefficients of the signal |
[in] | scal_l | Array of size L containing the \ell space tiling for the scaling fct. It is only \ell because it is assumed to be axisymmetric. |
[in] | wav_lm | Array of size (J+1)*L*L containing the (\ell, space) harmonic coefs of the wavelets. They can be directional. These must make sense and define a valid invertible transform as no extra checks are performed. |
[in] | scal_bandlimit | Same as wav_bandlimits but only one integer: the band-limit of the scaling function. |
[in] | wav_bandlimits | Array of integers of size J+1 containing the band-limits of the wavelets. Will be used to do the multiresolution. These must make sense and define a valid invertible transform as no extra checks are performed. |
[in] | J | Number of scales in total (in wav_bandlimits) is J+1. |
[in] | L | Band-limit for the transform: defines the size of all awways. |
[in] | spin | Spin (integer) to perform the transform |
[in] | N | Azimuthal band-limit for the directional transform |
none |
void s2let_analysis_lm2wav_real | ( | double * | f_wav, |
double * | f_scal, | ||
const complex double * | flm, | ||
const s2let_parameters_t * | parameters | ||
) |
Wavelet analysis from harmonic space to wavlet space for real signals.
[out] | f_wav | Array of wavelet maps |
[out] | f_scal | Scaling function map |
[in] | flm | Spherical harmonic coefficients of the signal |
[in] | parameters | A fully populated parameters object. The reality flag is ignored. Use s2let_analysis_lm2wav instead for complex signals. |
none |
void s2let_analysis_px2wav | ( | complex double * | f_wav, |
complex double * | f_scal, | ||
const complex double * | f, | ||
const s2let_parameters_t * | parameters | ||
) |
Wavelet analysis from pixel space to wavelet space for complex signals.
[out] | f_wav | Array of wavelet maps |
[out] | f_scal | Scaling function map |
[in] | f | Signal on the sphere |
[in] | parameters | A fully populated parameters object. The reality flag is ignored. Use s2let_analysis_px2wav_real instead for real signals. |
none |
void s2let_analysis_px2wav_real | ( | double * | f_wav, |
double * | f_scal, | ||
const double * | f, | ||
const s2let_parameters_t * | parameters | ||
) |
Wavelet analysis from pixel space to wavelet space for real signals.
[out] | f_wav | Array of wavelet maps |
[out] | f_scal | Scaling function map |
[in] | f | Signal on the sphere |
[in] | parameters | A fully populated parameters object. The reality flag is ignored. Use s2let_analysis_px2wav instead for complex signals. |
none |