HDR formats support and HDR making. Code only.

This commit is contained in:
Fedor Morozov
2013-06-23 14:19:09 +04:00
parent eff6dccb3b
commit 7469c935f3
12 changed files with 1378 additions and 4 deletions

View File

@@ -53,7 +53,7 @@ enum TiffCompression
{
TIFF_UNCOMP = 1,
TIFF_HUFFMAN = 2,
TIFF_PACKBITS = 32773
TIFF_PACKBITS = 32773,
};
enum TiffByteOrder
@@ -108,6 +108,8 @@ public:
protected:
void* m_tif;
int normalizeChannelsNumber(int channels) const;
bool readHdrData(Mat& img);
bool m_hdr;
};
#endif
@@ -130,6 +132,7 @@ protected:
int count, int value );
bool writeLibTiff( const Mat& img, const std::vector<int>& params );
bool writeHdr( const Mat& img );
};
}