MCPcopy Create free account
hub / github.com/andrewreeman/SpectralSuite / spectral_process

Method spectral_process

Morph/Source/MorphFFTProcessor.cpp:8–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6{}
7
8void MorphFFTProcessor::spectral_process(const PolarVector &in, PolarVector &out, int halfSize) {
9 for (unsigned int i = 0; i < in.size(); ++i) {
10 out[i].m_mag = 0.0;
11 out[i].m_phase = 0.0;
12 }
13
14 Array<int>* pMorphPoints = *m_pMorphPointsPointer;
15 int size = pMorphPoints->size();
16 if(size != halfSize) {
17 return;
18 }
19
20 for(int i=0; i < halfSize; ++i) {
21 const auto mappedIndex = (*pMorphPoints)[i];
22 out[static_cast<size_t>(mappedIndex)] = in[static_cast<size_t>(i)];
23 }
24}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected