Merge pull request #12240 from pasbi:pfm_fix

* fixed 64-float pfm auto conversion

* removed trailing whitespace
This commit is contained in:
pasbi 2018-08-17 17:53:09 +02:00 committed by Alexander Alekhin
parent e9a1ccb89a
commit 76eb389761

View File

@ -185,7 +185,9 @@ PFMEncoder::~PFMEncoder()
bool PFMEncoder::isFormatSupported(int depth) const
{
return CV_MAT_DEPTH(depth) == CV_32F || CV_MAT_DEPTH(depth) == CV_8U;
// any depth will be converted into 32-bit float.
(void) depth;
return true;
}
bool PFMEncoder::write(const Mat& img, const std::vector<int>& params)