removed tonemap_algorithms due to wrapping problems

This commit is contained in:
Alexander Shishkov 2013-07-18 00:55:39 +04:00
parent 8ccca90dca
commit 707048f6e1
3 changed files with 6 additions and 6 deletions

View File

@ -60,7 +60,7 @@ enum
};
//! the tonemapping algorithm
enum tonemap_algorithms
enum
{
TONEMAP_LINEAR,
@ -96,7 +96,7 @@ CV_EXPORTS_W void fastNlMeansDenoisingColoredMulti( InputArrayOfArrays srcImgs,
CV_EXPORTS_W void makeHDR(InputArrayOfArrays srcImgs, const std::vector<float>& exp_times, OutputArray dst, bool align = false);
CV_EXPORTS_W void tonemap(InputArray src, OutputArray dst, tonemap_algorithms algorithm,
CV_EXPORTS_W void tonemap(InputArray src, OutputArray dst, int algorithm,
const std::vector<float>& params = std::vector<float>());
CV_EXPORTS_W void exposureFusion(InputArrayOfArrays srcImgs, OutputArray dst, bool align = false, float wc = 1, float ws = 1, float we = 0);

View File

@ -155,7 +155,7 @@ static void DurandMap(Mat& src_img, Mat& dst_img, const std::vector<float>& para
merge(channels, dst_img);
}
void tonemap(InputArray _src, OutputArray _dst, tonemap_algorithms algorithm,
void tonemap(InputArray _src, OutputArray _dst, int algorithm,
const std::vector<float>& params)
{
typedef void (*tonemap_func)(Mat&, Mat&, const std::vector<float>&);
@ -188,4 +188,4 @@ void tonemap(InputArray _src, OutputArray _dst, tonemap_algorithms algorithm,
float gamma = getParam(params, 0, 1.0f);
pow(dst, 1.0f / gamma, dst);
}
}
}

View File

@ -111,7 +111,7 @@ TEST(Photo_Tonemap, regression)
for(int i = TONEMAP_DURAND; i < TONEMAP_COUNT; i++) {
Mat result;
tonemap(img, result, static_cast<tonemap_algorithms>(i), param);
tonemap(img, result, i, param);
result.convertTo(result, CV_8UC3, 255);
double max = 1.0;
minMaxLoc(abs(result - images[i]), NULL, &max);
@ -140,4 +140,4 @@ TEST(Photo_Align, regression)
Point calc = getExpShift(img, res, max_bits);
ASSERT_TRUE(calc == -shift);
}
}
}