
26 Mar
2009
26 Mar
'09
12:37 a.m.
Kenny Riddile wrote:
My question wasn't about how to write a GIL image to a file, it was about the most efficient way to serialize it to a boost archive. The class that owns the GIL image in my case also has other state and the entire class instance needs to be serializable. Obviously I can get the raw data and serialize that out, but when reading in from the archive wouldn't I have to read it in to a temporary buffer and then use that buffer to reconstruct the GIL image? I'd rather not perform extra copies of pixel data like that if I don't have to.
It's not save_array, it is make_array :-) http://www.boost.org/doc/libs/1_38_0/libs/serialization/doc/wrappers.html#ar... -- Sohail Somani http://uint32t.blogspot.com