projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb18971
)
delete normalization in gabor kernel #1995
author
Daniil Osokin
<daniil.osokin@itseez.com>
Thu, 11 Oct 2012 10:36:12 +0000
(14:36 +0400)
committer
Daniil Osokin
<daniil.osokin@itseez.com>
Thu, 11 Oct 2012 10:40:15 +0000
(14:40 +0400)
modules/imgproc/src/gabor.cpp
patch
|
blob
|
history
diff --git
a/modules/imgproc/src/gabor.cpp
b/modules/imgproc/src/gabor.cpp
index
4cbbd24
..
e5d10dd
100644
(file)
--- a/
modules/imgproc/src/gabor.cpp
+++ b/
modules/imgproc/src/gabor.cpp
@@
-73,7
+73,7
@@
cv::Mat cv::getGaborKernel( Size ksize, double sigma, double theta,
CV_Assert( ktype == CV_32F || ktype == CV_64F );
Mat kernel(ymax - ymin + 1, xmax - xmin + 1, ktype);
- double scale = 1
/(2*CV_PI*sigma_x*sigma_y)
;
+ double scale = 1;
double ex = -0.5/(sigma_x*sigma_x);
double ey = -0.5/(sigma_y*sigma_y);
double cscale = CV_PI*2/lambd;
@@
-90,7
+90,7
@@
cv::Mat cv::getGaborKernel( Size ksize, double sigma, double theta,
else
kernel.at<double>(ymax - y, xmax - x) = v;
}
-
+
return kernel;
}