![]() |
VISR
0.11.1
Versatile Interactive Scene Renderer
|
Classes | |
class | Options |
Functions | |
template<typename DataType > | |
void | initFilterMatrix (std::string const &filterList, std::size_t maxFilterLength, std::size_t maxFilterEntries, rbbl::IndexSequence const &indexOffsets, efl::BasicMatrix< DataType > &matrix) |
template void | initFilterMatrix< float > (std::string const &, std::size_t, std::size_t, rbbl::IndexSequence const &, efl::BasicMatrix< float > &) |
template void | initFilterMatrix< double > (std::string const &, std::size_t, std::size_t, rbbl::IndexSequence const &, efl::BasicMatrix< double > &) |
void visr::apps::matrix_convolver::initFilterMatrix | ( | std::string const & | filterList, |
std::size_t | maxFilterLength, | ||
std::size_t | maxFilterEntries, | ||
rbbl::IndexSequence const & | indexOffsets, | ||
efl::BasicMatrix< DataType > & | matrix | ||
) |
Initialise the matrix of impulse responses from a set of parameters.
filterList | A comma-separated string containing the filter files(WAVs) to be read. Empty or blank if no files are to be loaded. | |
maxFilterLength | The length of the filters. If provided, the WAV files are checked against this value, and padded with zeros. To ignore this value, use std::numeric_limits<std::size_t>::max(). In this case, the filter length is set to the length of the longest WAV file. | |
maxFilterEntries | The number of filters in the returned matrix. An error is generated if the highest filter index exceeds this value. Use std::numeric_limits<std::size_t>::max() to ignore this parameter. In this case, the number of filters is determined from the highest position index of the impulse responses. | |
indexOffsets | Starting indices for the irs from the WAV files. If specified, it must has the same number of values as the number of files in filterList . To ignore, pass an empty sequence. In this case, the IRs care stored consecutively in the output matrix. | |
[out] | matrix | The resized and filled impulse reesponse matrix. |
std::invalid_argument | In case of inconsistent parameters. |
template void visr::apps::matrix_convolver::initFilterMatrix< double > | ( | std::string const & | , |
std::size_t | , | ||
std::size_t | , | ||
rbbl::IndexSequence const & | , | ||
efl::BasicMatrix< double > & | |||
) |
template void visr::apps::matrix_convolver::initFilterMatrix< float > | ( | std::string const & | , |
std::size_t | , | ||
std::size_t | , | ||
rbbl::IndexSequence const & | , | ||
efl::BasicMatrix< float > & | |||
) |