Lines Matching refs:gray_img
128 Mat gray_img; in process() local
129 cvtColor(img, gray_img, COLOR_RGB2GRAY); in process()
131 log_(gray_img, log_img); in process()
133 gray_img /= mean; in process()
137 minMaxLoc(gray_img, NULL, &max); in process()
140 log(gray_img + 1.0f, map); in process()
142 pow(gray_img / static_cast<float>(max), logf(bias) / logf(0.5f), div); in process()
147 mapLuminance(img, img, gray_img, map, saturation); in process()
211 Mat gray_img; in process() local
212 cvtColor(img, gray_img, COLOR_RGB2GRAY); in process()
214 log_(gray_img, log_img); in process()
224 mapLuminance(img, img, gray_img, map_img, saturation); in process()
295 Mat gray_img; in process() local
296 cvtColor(img, gray_img, COLOR_RGB2GRAY); in process()
298 log_(gray_img, log_img); in process()
309 float gray_mean = static_cast<float>(mean(gray_img)[0]); in process()
316 Mat adapt = color_adapt * channels[i] + (1.0f - color_adapt) * gray_img; in process()
321 gray_img.release(); in process()
389 Mat gray_img; in process() local
390 cvtColor(img, gray_img, COLOR_RGB2GRAY); in process()
392 log_(gray_img, log_img); in process()
432 mapLuminance(img, img, gray_img, x, saturation); in process()