Commit 9e94212e authored by LaurentBerger's avatar LaurentBerger

Solves bug 13853

parent 3bba5b5a
...@@ -328,8 +328,8 @@ class CV_EXPORTS_W Tonemap : public Algorithm ...@@ -328,8 +328,8 @@ class CV_EXPORTS_W Tonemap : public Algorithm
public: public:
/** @brief Tonemaps image /** @brief Tonemaps image
@param src source image - 32-bit 3-channel Mat @param src source image - CV_32FC3 Mat (float 32 bits 3 channels)
@param dst destination image - 32-bit 3-channel Mat with values in [0, 1] range @param dst destination image - CV_32FC3 Mat with values in [0, 1] range
*/ */
CV_WRAP virtual void process(InputArray src, OutputArray dst) = 0; CV_WRAP virtual void process(InputArray src, OutputArray dst) = 0;
......
...@@ -66,6 +66,7 @@ public: ...@@ -66,6 +66,7 @@ public:
Mat src = _src.getMat(); Mat src = _src.getMat();
CV_Assert(!src.empty()); CV_Assert(!src.empty());
CV_Assert(_src.dims() == 2 && _src.type() == CV_32FC3);
_dst.create(src.size(), CV_32FC3); _dst.create(src.size(), CV_32FC3);
Mat dst = _dst.getMat(); Mat dst = _dst.getMat();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment