s2let  2.2.0
Fast wavelets on the sphere
Functions
s2let_alloc.c File Reference
#include <complex.h>
#include <math.h>
#include <so3/so3.h>
#include <ssht/ssht.h>
#include <stdio.h>
#include <stdlib.h>
#include "s2let.h"
Include dependency graph for s2let_alloc.c:

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)
 

Function Documentation

◆ s2let_allocate_f_wav()

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.

Parameters
[out]f_wavPointer to allocated space for array of wavelet maps, using MW sampling.
[out]f_scalPointer to allocated space for scaling function map, using MW sampling.
[in]parametersA parameters object with (at least) the following fields: B, L, J_min N
Return values
none

◆ s2let_allocate_f_wav_manual()

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.

Parameters
[out]f_wavPointer to allocated space for array of wavelet maps, using MW sampling.
[out]f_scalPointer to allocated space for scaling function map, using MW sampling.
[in]wav_bandlimitsArray 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_bandlimitSame as wav_bandlimits but only one integer: the band-limit of the scaling function.
[in]NAzimuthal band-limit for the directional transform
[in]JNumber of scales in total (in wav_bandlimits) is J+1.
[in]parametersA parameters object containing all s2let and so3 sampling options.
Return values
none

◆ s2let_allocate_f_wav_real()

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.

Parameters
[out]f_wavPointer to allocated space for array of wavelet maps, using MW sampling.
[out]f_scalPointer to allocated space for scaling function map, using MW sampling.
[in]parametersA parameters object with (at least) the following fields: B, L, J_min N
Return values
none

◆ s2let_allocate_lm()

void s2let_allocate_lm ( complex double **  flm,
int  L 
)

Allocate spherical harmonic coefficients for a given bandlimit L.

Parameters
[out]flmPointer to allocated space for spherical harmonic coefficients.
[in]LAngular harmonic band-limit.
Return values
none

◆ s2let_allocate_lmn_f_wav()

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.

Parameters
[out]f_wav_lmnWigner 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_lmSpherical harmonic coefficients of the scaling contribution (L*L).
[in]parametersA parameters object with (at least) the following fields: B, L, J_min N
Return values
none

◆ s2let_allocate_mw()

void s2let_allocate_mw ( complex double **  f,
int  L 
)

Allocate map for a complex signal in pixel space using MW sampling.

Parameters
[out]fAllocated map
[in]LHarmonic band-limit

◆ s2let_allocate_mw_real()

void s2let_allocate_mw_real ( double **  f,
int  L 
)

Allocate map for a real signal in pixel space using MW sampling.

Parameters
[out]fAllocated map
[in]LHarmonic band-limit

◆ s2let_allocate_mwss()

void s2let_allocate_mwss ( complex double **  f,
int  L 
)

Allocate map for a complex signal in pixel space using MWSS sampling.

Parameters
[out]fAllocated map
[in]LHarmonic band-limit

◆ s2let_allocate_mwss_real()

void s2let_allocate_mwss_real ( double **  f,
int  L 
)

Allocate map for a real signal in pixel space using MWSS sampling.

Parameters
[out]fAllocated map
[in]LHarmonic band-limit