Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyoyo-yo committed Oct 22, 2019
1 parent dc33ddf commit f36dad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Question_01_10/answers_cpp/answer_9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ cv::Mat gaussian_filter(cv::Mat img, double sigma, int kernel_size){
for (int x = 0; x < kernel_size; x++){
_y = y - pad;
_x = x - pad;
kernel[y][x] = 1 / (sigma * sqrt(2 * M_PI)) * exp( - (_x * _x + _y * _y) / (2 * sigma * sigma));
kernel[y][x] = 1 / (2 * M_PI * sigma * sigma) * exp( - (_x * _x + _y * _y) / (2 * sigma * sigma));
kernel_sum += kernel[y][x];
}
}
Expand Down

0 comments on commit f36dad7

Please sign in to comment.