mirror of https://github.com/davisking/dlib.git
Changed the serialization routine for bgr_pixels to store the pixels
in BGR order rather than RGB.
This commit is contained in:
parent
d983412935
commit
c7103ce3d5
|
@ -1169,9 +1169,9 @@ namespace dlib
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
serialize(item.red,out);
|
|
||||||
serialize(item.green,out);
|
|
||||||
serialize(item.blue,out);
|
serialize(item.blue,out);
|
||||||
|
serialize(item.green,out);
|
||||||
|
serialize(item.red,out);
|
||||||
}
|
}
|
||||||
catch (serialization_error& e)
|
catch (serialization_error& e)
|
||||||
{
|
{
|
||||||
|
@ -1188,9 +1188,9 @@ namespace dlib
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
deserialize(item.red,in);
|
|
||||||
deserialize(item.green,in);
|
|
||||||
deserialize(item.blue,in);
|
deserialize(item.blue,in);
|
||||||
|
deserialize(item.green,in);
|
||||||
|
deserialize(item.red,in);
|
||||||
}
|
}
|
||||||
catch (serialization_error& e)
|
catch (serialization_error& e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue