I have a audio sequence that was captured with my microphone. This sequence is represented in a cv::Mat object with 1 row and n columns, where n represents the number of samples (=length) of my audio file. I want to get the frequency spectrogram using Discrete Fourier Transform in OpenCV. I tried to make some example codes work, but I do not get the image I want to get. Has anybody a idea how I could implement this and if this generally works?
Thanks!