Functions | |
| template<typename CONF > requires concepts::config<CONF> | |
| void | importFIT (const std::string &filename, std::map< std::string, bsdf_ptr< CONF > > &data) |
| Import a 'fit' file. | |
| template<typename CONF > requires concepts::config<CONF> | |
| void | exportFIT (const std::string &filename, const std::map< std::string, bsdf_ptr< CONF > > &data, const std::string &comment) |
| Export a 'fit' file. | |
| template<typename T > | |
| void | exportPFM (const std::string &filename, const bitmap< T > &data, const std::array< ptrdiff_t, 3 > &channels={0, 1, 2}) |
| Export a bitmap to a PFM. | |
| template<typename T , size_t N = 3> | |
| void | importPFM (const std::string &filename, bitmap< T > &data, const std::array< ptrdiff_t, N > &channels={0, 1, 2}) |
| Import a bitmap from a PFM. | |
| void exportFIT | ( | const std::string & | filename, |
| const std::map< std::string, bsdf_ptr< CONF > > & | data, | ||
| const std::string & | comment | ||
| ) |
Export a 'fit' file.
| filename | = FIT filename to write to |
| data | = std::map<std::string, bsdf_ptr> of fitted data |
| comment | = string of comment to add to the start of the fit file (ignored if empty) |
| void exportPFM | ( | const std::string & | filename, |
| const bitmap< T > & | data, | ||
| const std::array< ptrdiff_t, 3 > & | channels = {0,1,2} |
||
| ) |
Export a bitmap to a PFM.
| filename | = PFM filename to write to. |
| data | = bitmap to export |
| channels | = which channels to export to the PFM file (default {0,1,2}) use -1 to ignore (write 0) |
Write a bitmap to a 3-channel little endian PFM file. Allows the selection of channels to write out in case the bitmap contains more (or less) than 3 channels.
| void importFIT | ( | const std::string & | filename, |
| std::map< std::string, bsdf_ptr< CONF > > & | data | ||
| ) |
Import a 'fit' file.
| filename | = FIT filename to read from |
| data | = std::map<std::string, bsdf_ptr> to store the fit data to |
| void importPFM | ( | const std::string & | filename, |
| bitmap< T > & | data, | ||
| const std::array< ptrdiff_t, N > & | channels = {0,1,2} |
||
| ) |
Import a bitmap from a PFM.
| filename | = PFM filename to read from |
| data | = bitmap store the data in |
| channels | = which channels in data to fill (default {0,1,2}; use -1 to ignore a channel from the PFM) |
Read a bitmap from a PFM file (1 and 3 channels as well as little and big endian PFMs are supported). Allows the selection of channels to write out in in the bitmap.