merge binary files of same size
Posted: 2017-12-18T03:08:12-07:00
Hi everybody,
I have pairs of fairly large binary tiff-files of same dimensions which need to be merged together.
The file data may look like that:
file1:
0000000000000000000000
0111111100000000000000
0100000100000000000000
0100000100000000000000
0100000100000000000000
0100000100000000000000
0111111100000000000000
0000000000000000000000
0000000000000000000000
file2:
0000000000000000000000
0000000000000001000010
0000000000000000100100
0000000000000000011000
0000000000000000011000
0000000000000000100100
0000000000000001000010
0000000000000000000000
0000000000000000000000
desired result:
0000000000000000000000
0111111100000001000010
0100000100000000100100
0100000100000000011000
0100000100000000011000
0100000100000000100100
0111111100000001000010
0000000000000000000000
0000000000000000000000
Any idea, how can do that? I studied the documentation, but surrendered...
I have pairs of fairly large binary tiff-files of same dimensions which need to be merged together.
The file data may look like that:
file1:
0000000000000000000000
0111111100000000000000
0100000100000000000000
0100000100000000000000
0100000100000000000000
0100000100000000000000
0111111100000000000000
0000000000000000000000
0000000000000000000000
file2:
0000000000000000000000
0000000000000001000010
0000000000000000100100
0000000000000000011000
0000000000000000011000
0000000000000000100100
0000000000000001000010
0000000000000000000000
0000000000000000000000
desired result:
0000000000000000000000
0111111100000001000010
0100000100000000100100
0100000100000000011000
0100000100000000011000
0100000100000000100100
0111111100000001000010
0000000000000000000000
0000000000000000000000
Any idea, how can do that? I studied the documentation, but surrendered...