class OEXRFile
{
public:
OEXRFile(std::vector<float3> const& dat, int width, int height, int compressionType=TINYEXR_COMPRESSIONTYPE_PIZ);
OEXRFile(std::vector<float2> const& dat, int width, int height, int compressionType=TINYEXR_COMPRESSIONTYPE_PIZ);
void write(std::string const& filename);
~OEXRFile() = default;
protected:
void initChannelInfo();
void initHeader();
private:
int width, height;
int compressionType;