26 for(z = 0; z < matrix->
sizes[stream->
dims]; z++) {
31 int* d_pos = (
int*)malloc(
sizeof(
int)*stream->
dims);
32 for(y = z*stream->
len; y < z*stream->
len+stream->
len; y++) {
34 for(d = 0; d < stream->
dims; d++) {
35 d_pos[d] = stream->
sizes[d]/2+pos[d]-matrix->
sizes[d]/2;
void dsp_feature_align(dsp_stream_p stream, dsp_stream_p matrix)
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.
#define dsp_buffer_stretch(buf, len, _mn, _mx)
Stretch minimum and maximum values of the input stream.
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 information and data relative to a buffer and how to use it.