Halcon:序列化与反序列化

read_image (Image, 'fabrik')
read_image (Image0, 'letters')
open_file ('1.dat', 'output_binary', FileHandle)
serialize_image (Image, SerializedItemHandle)
serialize_image (Image0, SerializedItemHandle0)
fwrite_serialized_item (FileHandle, SerializedItemHandle)
fwrite_serialized_item (FileHandle, SerializedItemHandle0)
close_file (FileHandle)
open_file ('1.dat', 'input_binary', FileHandle)
fread_serialized_item (FileHandle, SerializedItemHandle1)
fread_serialized_item (FileHandle, SerializedItemHandle2)
deserialize_image (Image1, SerializedItemHandle1)
deserialize_image (Image2, SerializedItemHandle2)
close_file (FileHandle)

 

你可能感兴趣的:(序列化)