Merge pull request #12240 from pasbi:pfm_fix
* fixed 64-float pfm auto conversion * removed trailing whitespace
This commit is contained in:
parent
e9a1ccb89a
commit
76eb389761
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user