Home
last modified time | relevance | path

Searched refs:h_category (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/image/
Dadjust_hue_op.cc95 int h_category; in rgb_to_hv_range() local
106 h_category = 1; in rgb_to_hv_range()
112 h_category = 3; in rgb_to_hv_range()
118 h_category = 2; in rgb_to_hv_range()
127 h_category = 0; in rgb_to_hv_range()
133 h_category = 4; in rgb_to_hv_range()
139 h_category = 5; in rgb_to_hv_range()
147 bool increase = ((h_category & 0x1) == 0); in rgb_to_hv_range()
148 *h = h_category + (increase ? ratio : (1 - ratio)); in rgb_to_hv_range()
154 int h_category = static_cast<int>(h); in hv_range_to_rgb() local
[all …]
Dadjust_saturation_op.cc125 int h_category = static_cast<int>(dh); in hsv_to_rgb() local
134 switch (h_category) { in hsv_to_rgb()