Skip to content
Snippets Groups Projects
Select Git revision
  • 7159fd15953d3e49ebebaf18258b55c5e89956a3
  • main default protected
  • V1
3 results

labelme2yolo.py

Blame
  • test_get_stft_operators.m 521 B
    clc; clear; close all
    %%
    % This script tests the operators of the DGT
    %%
    
    win_type='gauss';
    
    sig_len=16384;
    fs=8000;
    approx_win_len=256;
    hop=approx_win_len/4;
    nbins=approx_win_len*4;
    signal_params= generate_signal_parameters(fs, sig_len);
    
    
    dgt_params = generate_dgt_parameters(win_type, approx_win_len, hop, nbins, sig_len);
    
    
    [dgt, idgt] = get_stft_operators(dgt_params, signal_params);
    
    
    s_2 = randn(signal_params.sig_len,1);
    X = dgt(s_2);
    xrec = idgt(X);
    
    norm(s_2-xrec)
    
    figure('name','spectrogram'); imagesc(abs(X))