Read/write a bitmap to/from PFM. More...
#include <array>#include <string>#include <cstddef>#include <fstream>#include <stdexcept>#include "core/Endian.h"#include "core/bitmap.h"#include "util/iterator_util.h"Go to the source code of this file.
Namespaces | |
| namespace | bbm |
| namespace | bbm::io |
Functions | |
| 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. | |
Read/write a bitmap to/from PFM.