Riz0030's picture
Upload 77 files
9d0b4d9 verified
raw
history blame contribute delete
247 Bytes
#include "data.hpp"
#include <opencv2/opencv.hpp>
namespace data {
void normalize(cv::Mat& matrix, double mean, double std) {
// matrix = (matrix / 255.0 - mean) / std;
matrix = matrix / (255.0 * std) - mean / std;
}
} // namespace data