Attempt to fix a build problem (ambiguous PixelType error when compiled on Mac x86)

This commit is contained in:
Andrey Kamaev 2011-08-19 19:18:32 +00:00
parent 0451779d2c
commit 014ba699a3
2 changed files with 2 additions and 2 deletions

View File

@ -589,7 +589,7 @@ bool ExrEncoder::write( const Mat& img, const vector<int>& )
int step = img.step;
Header header( width, height );
PixelType type;
Imf::PixelType type;
if(depth == 8)
type = HALF;

View File

@ -81,7 +81,7 @@ protected:
void RGBToGray( float *in, float *out );
InputFile *m_file;
PixelType m_type;
Imf::PixelType m_type;
Box2i m_datawindow;
bool m_ischroma;
const Channel *m_red;