![]() |
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_allocate_mw (complex double **f, int L) |
void | s2let_allocate_mw_real (double **f, int L) |
void | s2let_allocate_mwss (complex double **f, int L) |
void | s2let_allocate_mwss_real (double **f, int L) |
void | s2let_allocate_lm (complex double **flm, int L) |
void | s2let_allocate_lmn_f_wav (complex double **f_wav_lmn, complex double **f_scal_lm, const s2let_parameters_t *parameters) |
void | s2let_allocate_f_wav (complex double **f_wav, complex double **f_scal, const s2let_parameters_t *parameters) |
void | s2let_allocate_f_wav_real (double **f_wav, double **f_scal, const s2let_parameters_t *parameters) |
void | s2let_allocate_f_wav_manual (complex double **f_wav, complex double **f_scal, int *wav_bandlimits, int scal_bandlimit, int N, int J, const s2let_parameters_t *parameters) |
void s2let_allocate_f_wav | ( | complex double ** | f_wav, |
complex double ** | f_scal, | ||
const s2let_parameters_t * | parameters | ||
) |
Allocates arrays for wavelet transform in wavelet space.
[out] | f_wav | Pointer to allocated space for array of wavelet maps, using MW sampling. |
[out] | f_scal | Pointer to allocated space for scaling function map, using MW sampling. |
[in] | parameters | A parameters object with (at least) the following fields: B, L, J_min N |
none |
void s2let_allocate_f_wav_manual | ( | complex double ** | f_wav, |
complex double ** | f_scal, | ||
int * | wav_bandlimits, | ||
int | scal_bandlimit, | ||
int | N, | ||
int | J, | ||
const s2let_parameters_t * | parameters | ||
) |
Allocates arrays for wavelet transform with manual wavelet tiling. Multiresolution is active and depends on the band-limits provided.
[out] | f_wav | Pointer to allocated space for array of wavelet maps, using MW sampling. |
[out] | f_scal | Pointer to allocated space for scaling function map, using MW sampling. |
[in] | wav_bandlimits | Array of integers 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] | scal_bandlimit | Same as wav_bandlimits but only one integer: the band-limit of the scaling function. |
[in] | N | Azimuthal band-limit for the directional transform |
[in] | J | Number of scales in total (in wav_bandlimits) is J+1. |
[in] | parameters | A parameters object containing all s2let and so3 sampling options. |
none |
void s2let_allocate_f_wav_real | ( | double ** | f_wav, |
double ** | f_scal, | ||
const s2let_parameters_t * | parameters | ||
) |
Allocates arrays for wavelet transform of real signal in wavelet space.
[out] | f_wav | Pointer to allocated space for array of wavelet maps, using MW sampling. |
[out] | f_scal | Pointer to allocated space for scaling function map, using MW sampling. |
[in] | parameters | A parameters object with (at least) the following fields: B, L, J_min N |
none |
void s2let_allocate_lm | ( | complex double ** | flm, |
int | L | ||
) |
Allocate spherical harmonic coefficients for a given bandlimit L.
[out] | flm | Pointer to allocated space for spherical harmonic coefficients. |
[in] | L | Angular harmonic band-limit. |
none |
void s2let_allocate_lmn_f_wav | ( | complex double ** | f_wav_lmn, |
complex double ** | f_scal_lm, | ||
const s2let_parameters_t * | parameters | ||
) |
Allocates arrays for directional wavelet transform in Wigner space.
[out] | f_wav_lmn | Wigner coefficients of the wavelet contributions. Each wavelet has size (2*N-1)*L*L and there are (J-J_min+1) scales. |
[out] | f_scal_lm | Spherical harmonic coefficients of the scaling contribution (L*L). |
[in] | parameters | A parameters object with (at least) the following fields: B, L, J_min N |
none |
void s2let_allocate_mw | ( | complex double ** | f, |
int | L | ||
) |
Allocate map for a complex signal in pixel space using MW sampling.
[out] | f | Allocated map |
[in] | L | Harmonic band-limit |
void s2let_allocate_mw_real | ( | double ** | f, |
int | L | ||
) |
Allocate map for a real signal in pixel space using MW sampling.
[out] | f | Allocated map |
[in] | L | Harmonic band-limit |
void s2let_allocate_mwss | ( | complex double ** | f, |
int | L | ||
) |
Allocate map for a complex signal in pixel space using MWSS sampling.
[out] | f | Allocated map |
[in] | L | Harmonic band-limit |
void s2let_allocate_mwss_real | ( | double ** | f, |
int | L | ||
) |
Allocate map for a real signal in pixel space using MWSS sampling.
[out] | f | Allocated map |
[in] | L | Harmonic band-limit |