Commit 0a012ac4 authored by Arek Stopczynski's avatar Arek Stopczynski

fixed spectrogram dimensions comparison

parent 339b5101
......@@ -19,8 +19,7 @@ Sbs2Spectrogram::~Sbs2Spectrogram()
void Sbs2Spectrogram::doSpectrogram(DTU::DtuArray2D<double> *input, DTU::DtuArray2D<double> *output)
{
if (input->dim1() != input->dim1())
if (input->dim1() != output->dim1())
return;
if (output->dim2() != length)
return;
......@@ -36,15 +35,10 @@ void Sbs2Spectrogram::doSpectrogram(DTU::DtuArray2D<double> *input, DTU::DtuArra
x[column] = 0;
}
fft->do_fft(f,x);
for (int column = 0; column < length; ++column)
(*output)[row][column] = f[column];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment