Commit 4bed64ca authored by Davis King's avatar Davis King

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

parent 04248caf
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment