Xmipp  v3.23.11-Nereus
Functions
Hartley Transform
Collaboration diagram for Hartley Transform:

Functions

int DiscreteHartleyTransform (double Data[], double *ScratchBuffer, double CaS[], long SignalLength, int Forward)
 

Detailed Description

Function Documentation

◆ DiscreteHartleyTransform()

int DiscreteHartleyTransform ( double  Data[],
double *  ScratchBuffer,
double  CaS[],
long  SignalLength,
int  Forward 
)

Discrete Hartley transform of a real signal.

The input signal is given by Data (double). The computation is in-place (the output replaces the input).

ScratchBuffer is a pre-allocated workspace of size SignalLength. The values returned in ScratchBuffer are meaningless.

CaS is an input array of coefficients of size SignalLength (see GetCaS function). CaS is modified internally, but is restored when DHT returns.

SignalLength is the length of the signal. No restriction on SignalLength, but best efficiency for radix 2, 3, 4, 5.

Performs a DHT transform when (Forward == TRUE). Performs an inverse DHT transform when (Forward == FALSE).

success: return(!ERROR); failure: return(ERROR);