|
47 | 47 | #include "opencv2/imgproc.hpp" |
48 | 48 |
|
49 | 49 | #include "opencv2/core.hpp" |
50 | | -#include "opencv2/core/core_c.h" |
51 | 50 |
|
52 | 51 | #include "opencv2/core/types.hpp" |
53 | | -#include "opencv2/core/types_c.h" |
54 | 52 |
|
55 | 53 | namespace cv |
56 | 54 | { |
@@ -137,9 +135,9 @@ namespace xphoto |
137 | 135 | { |
138 | 136 | CV_Assert( src.type() == CV_MAKE_TYPE(CV_32F, 3) ); |
139 | 137 |
|
140 | | - cv::Matx33f mt(cvInvSqrt(3.0f), cvInvSqrt(3.0f), cvInvSqrt(3.0f), |
141 | | - cvInvSqrt(2.0f), 0.0f, -cvInvSqrt(2.0f), |
142 | | - cvInvSqrt(6.0f), -2.0f*cvInvSqrt(6.0f), cvInvSqrt(6.0f)); |
| 138 | + cv::Matx33f mt(pow(3.0f, -0.5f), pow(3.0f, -0.5f), pow(3.0f, -0.5f), |
| 139 | + pow(2.0f, -0.5f), 0.0f, -pow(2.0f, -0.5f), |
| 140 | + pow(6.0f, -0.5f), -2.0f*pow(6.0f, -0.5f), pow(6.0f, -0.5f)); |
143 | 141 |
|
144 | 142 | cv::transform(src, dst, mt); |
145 | 143 |
|
@@ -175,7 +173,7 @@ namespace xphoto |
175 | 173 | else if ( img.type() == CV_32FC1 ) |
176 | 174 | grayDctDenoising( img, img, sigma, psize ); |
177 | 175 | else |
178 | | - CV_Error_( CV_StsNotImplemented, |
| 176 | + CV_Error_( Error::StsNotImplemented, |
179 | 177 | ("Unsupported source image format (=%d)", img.type()) ); |
180 | 178 |
|
181 | 179 | img.convertTo( dst, src.type() ); |
|
0 commit comments