Commit eafeea95 authored by vludv's avatar vludv

joint bilateral filter fix

parent d08c398c
...@@ -275,7 +275,7 @@ void jointBilateralFilter_8u(Mat& joint, Mat& src, Mat& dst, int radius, double ...@@ -275,7 +275,7 @@ void jointBilateralFilter_8u(Mat& joint, Mat& src, Mat& dst, int radius, double
double gaussColorCoeff = -0.5 / (sigmaColor*sigmaColor); double gaussColorCoeff = -0.5 / (sigmaColor*sigmaColor);
double gaussSpaceCoeff = -0.5 / (sigmaSpace*sigmaSpace); double gaussSpaceCoeff = -0.5 / (sigmaSpace*sigmaSpace);
vector<float> expLUTv(jCn*0xFF); vector<float> expLUTv(jCn*256);
float *expLUT = &expLUTv[0]; float *expLUT = &expLUTv[0];
for (int i = 0; i < (int)expLUTv.size(); i++) for (int i = 0; i < (int)expLUTv.size(); i++)
......
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