get_en: get energy from the dualtree transform

View source: R/spectra.R

get_enR Documentation

get energy from the dualtree transform

Description

square the wavelet coefficients and apply the bias correction

Usage

get_en(dt, correct = "none", N = ncol(dt))

Arguments

dt

array of J x nx x ny x 6 complex wavelet coefficients, output of dtcwt(..., dec=FALSE)

correct

type of correction, either "b" or "b_bp", any other value results in no correction at all.

N

the smallest whole power of two larger than or equal to the dimensions of the input image, usually just ncol(dt)

Details

The bias correction matrix should correspond to the filter bank used in the transform, for details on the matrices see A.

Value

an array of the same dimensions as dt

References

Nelson, J. D. B., A. J. Gibberd, C. Nafornita, and N. Kingsbury (2018) <doi:10.1007/s11222-017-9784-0>

See Also

A


dualtrees documentation built on Oct. 4, 2023, 5:10 p.m.