zero center normalization image
Hello, I need to normalize an image using zero center normalization. How to do it in OpenCV?
Hello, I need to normalize an image using zero center normalization. How to do it in OpenCV?
for a float image:
img.convertTo(img, CV_32F);
you get the mean and stdev:
Scalar m,d;
meanStdDev(img, m, d);
then you subtract the mean, and divide by stdev:
img -= m;
img /= d; // but be careful, don't divide by zero here !
Asked: 2019-01-03 00:09:34 -0600
Seen: 1,213 times
Last updated: Jan 03 '19
Area of a single pixel object in OpenCV
how to understand which functions available in python bindings?
Problems installing opencv on mac with python
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
OpenCV DescriptorMatcher matches
Can't compile .cu file when including opencv.hpp
Weird result while finding angle
cv2.perspectiveTransform() with Python
Using OpenCV's stitching module, strange error when compositing images