mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Fixed bug in apply_random_color_offset(), it computed slightly wrong outputs.
This commit is contained in:
parent
04248caf39
commit
4bed64ca1e
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user