Fixed bug in apply_random_color_offset(), it computed slightly wrong outputs.

This commit is contained in:
Davis King 2016-06-25 12:28:00 -04:00
parent 04248caf39
commit 4bed64ca1e

View File

@ -142,8 +142,8 @@ namespace dlib
rgb_pixel temp;
assign_pixel(temp, img[r][c]);
temp.red = rtable[temp.red];
temp.green = rtable[temp.green];
temp.blue = rtable[temp.blue];
temp.green = gtable[temp.green];
temp.blue = btable[temp.blue];
assign_pixel(img[r][c], temp);
}
}