k-Wave Toolbox |
Log compress an input signal
signal = logCompression(signal, a) signal = logCompression(signal, a, normalise)
logCompression
compresses the input signal using the expression signal = log10(1 + a*signal)./log10(1 + a)
.
|
input signal |
|
compression factor |
|
Boolean controlling whether the maximum of the input signal is normalised to unity before compression (default = false). If set to true, the original magnitude is restored after compression. |
|
log compressed signal |
log10
loadImage | makeBall |
© 2009-2014 Bradley Treeby and Ben Cox.