Commit 13f03250 authored by Michael Kohnen's avatar Michael Kohnen

Fixing export lines for HDFT spectra

parent a4b7c5bd
......@@ -12,6 +12,7 @@
#include <ITAHDFTSpectrum.h>
#include <ITANumericUtils.h>
#include <ITAStringUtils.h>
#include <ITAFFTUtils.h>
ITANCTC::ITANCTC( const Config& oNCTCConfig )
: m_oConfig( oNCTCConfig )
......@@ -224,7 +225,7 @@ bool ITANCTC::CalculateFilter( std::vector< ITAHDFTSpectra* >& vpCTCFilter )
m_fft.execute( m_sfCTC_temp[ 1 ].data(), ( *pHRTF )[ 1 ]->data() );
#ifdef NCTC_EXPORT_FILTER_TO_HARDDRIVE
pHRTF->Export( "HRIR_LS" + IntToString( n+1 ) + "_RAW" );
ITAFFTUtils::Export(pHRTF, "HRIR_LS" + IntToString(n + 1) + "_RAW");
#endif // NCTC_EXPORT_FILTER_TO_HARDDRIVE
}
......@@ -289,7 +290,7 @@ bool ITANCTC::CalculateFilter( std::vector< ITAHDFTSpectra* >& vpCTCFilter )
#ifdef NCTC_EXPORT_FILTER_TO_HARDDRIVE
pHRTF->Export( "HRIR_LS" + IntToString( n + 1 ) + "_WICKed" );
ITAFFTUtils::Export(pHRTF, "HRIR_LS" + IntToString(n + 1) + "_WICKed");
#endif // NCTC_EXPORT_FILTER_TO_HARDDRIVE
// --- CTC compensation factor ---
......@@ -308,7 +309,7 @@ bool ITANCTC::CalculateFilter( std::vector< ITAHDFTSpectra* >& vpCTCFilter )
(*pHRTF)[1]->mul(fRightChannelCTC);
#ifdef NCTC_EXPORT_FILTER_TO_HARDDRIVE
pHRTF->Export("HRIR_LS" + IntToString(n + 1) + "_WICKedPlusCTCFactor");
ITAFFTUtils::Export(pHRTF, "HRIR_LS" + IntToString(n + 1) + "_WICKedPlusCTCFactor");
#endif // NCTC_EXPORT_FILTER_TO_HARDDRIVE
// --- Weighting ---
......@@ -406,7 +407,7 @@ bool ITANCTC::CalculateFilter( std::vector< ITAHDFTSpectra* >& vpCTCFilter )
( *pCTCFilter )[ 1 ]->add( t );
#ifdef NCTC_EXPORT_FILTER_TO_HARDDRIVE
pCTCFilter->Export( "CTCFilter_noshift_" + IntToString( n+1 ) );
ITAFFTUtils::Export(pCTCFilter, "CTCFilter_noshift_" + IntToString(n + 1));
#endif // NCTC_EXPORT_FILTER_TO_HARDDRIVE
......@@ -427,7 +428,7 @@ bool ITANCTC::CalculateFilter( std::vector< ITAHDFTSpectra* >& vpCTCFilter )
m_fft.execute( sfTargetData_shift[ 1 ].data(), ( *pCTCFilter )[ 1 ]->data() );
#ifdef NCTC_EXPORT_FILTER_TO_HARDDRIVE
pCTCFilter->Export( "CTCFilter_shift_" + IntToString( n+1 ) );
ITAFFTUtils::Export(pCTCFilter, "CTCFilter_shift_" + IntToString(n + 1));
#endif // NCTC_EXPORT_FILTER_TO_HARDDRIVE
}
......
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