26 int* d_pos = (
int*)malloc(
sizeof(
int)*stream->
dims);
27 for(y = 0; y < matrix->
len; y++) {
29 for(d = 0; d < stream->
dims; d++) {
30 d_pos[d] = stream->
sizes[d]/2+pos[d]-matrix->
sizes[d]/2;
45 int* d_pos = (
int*)malloc(
sizeof(
int)*stream->
dims);
47 for(y = 0; y < matrix->
len; y++) {
49 for(d = 0; d < stream->
dims; d++) {
50 d_pos[d] = stream->
sizes[d]/2+pos[d]-matrix->
sizes[d]/2;
int * sizes
Sizes of each dimension.
struct dsp_stream_t * magnitude
Fourier transform magnitude.
int dims
Number of dimensions of the buffers.
int len
The buffers length.
void dsp_buffer_shift(dsp_stream_p stream)
Shift a stream on each dimension.
#define dsp_buffer_stretch(buf, len, _mn, _mx)
Stretch minimum and maximum values of the input stream.
void dsp_convolution_correlation(dsp_stream_p stream, dsp_stream_p matrix)
A cross-correlation processor.
void dsp_convolution_convolution(dsp_stream_p stream, dsp_stream_p matrix)
A cross-convolution processor.
DLL_EXPORT int dsp_stream_set_position(dsp_stream_p stream, int *pos)
Obtain the position the DSP stream by parsing multidimensional indexes.
DLL_EXPORT int * dsp_stream_get_position(dsp_stream_p stream, int index)
Return the multidimensional positional indexes of a DSP stream by specify a linear index.
#define dsp_stats_min(buf, len)
Gets the minimum value of the input stream.
#define dsp_stats_max(buf, len)
Gets the maximum value of the input stream.
Contains a set of informations and data relative to a buffer and how to use it.