Merge pull request #12240 from pasbi:pfm_fix

* fixed 64-float pfm auto conversion

* removed trailing whitespace
pull/12241/merge
pasbi 7 years ago committed by Alexander Alekhin
parent e9a1ccb89a
commit 76eb389761
  1. 4
      modules/imgcodecs/src/grfmt_pfm.cpp

@ -185,7 +185,9 @@ PFMEncoder::~PFMEncoder()
bool PFMEncoder::isFormatSupported(int depth) const 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) bool PFMEncoder::write(const Mat& img, const std::vector<int>& params)

Loading…
Cancel
Save