Lines Matching refs:x_contrast
394 std::vector<Mat> x_contrast, y_contrast; in process() local
395 getContrast(log_img, x_contrast, y_contrast); in process()
397 for(size_t i = 0; i < x_contrast.size(); i++) { in process()
398 mapContrast(x_contrast[i]); in process()
403 calculateSum(x_contrast, y_contrast, right); in process()
496 void getContrast(Mat src, std::vector<Mat>& x_contrast, std::vector<Mat>& y_contrast) in getContrast() argument
499 x_contrast.resize(levels); in getContrast()
505 getGradient(layer, x_contrast[i], 0); in getContrast()
511 void calculateSum(std::vector<Mat>& x_contrast, std::vector<Mat>& y_contrast, Mat& sum) in calculateSum() argument
513 sum = Mat::zeros(x_contrast[x_contrast.size() - 1].size(), CV_32F); in calculateSum()
514 for(int i = (int)x_contrast.size() - 1; i >= 0; i--) in calculateSum()
517 getGradient(x_contrast[i], grad_x, 1); in calculateSum()
519 resize(sum, sum, x_contrast[i].size()); in calculateSum()
526 std::vector<Mat> x_contrast, y_contrast; in calculateProduct() local
527 getContrast(src, x_contrast, y_contrast); in calculateProduct()
528 calculateSum(x_contrast, y_contrast, dst); in calculateProduct()