LoginSignup
1
2

More than 5 years have passed since last update.

Difference of Gaussian

Posted at

画像に対して、Difference of Gaussian (DoG) を求める。

cv::Mat_<float> src; // input
double sigma1, sigma2; // variance of two gaussians. sigma1 < sigma2
cv::Mat_<float> sigma1_conv(src.size()), sigma2_conv(src.size());
cv::GaussianBlur(src, sigma1_conv, cv::Size(0, 0), sigma1);
cv::GaussianBlur(src, sigma2_conv, cv::Size(0, 0), sigma2);
cv::Mat_<float> dst = sigma1_conv - sigma2_conv;
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2