3540e3ef09
the vips7 stub for openslide now supports :level,associated mode options, eg: $ header CMU-2.svs CMU-2.svs: 19500x7615 uchar, 4 bands, rgb VipsImage (0x236a060) $ header CMU-2.svs:2 CMU-2.svs:2: 4875x1903 uchar, 4 bands, rgb VipsImage (0x244c060) $ header CMU-2.svs:,label CMU-2.svs:,label: 387x463 uchar, 4 bands, rgb VipsImage (0xa2d060) $ header CMU-2.svs:2,label CMU-2.svs:2,label: 387x463 uchar, 4 bands, rgb VipsImage (0x1b23060)
13 lines
228 B
Python
Executable File
13 lines
228 B
Python
Executable File
#!/usr/bin/python
|
|
|
|
import sys
|
|
from vips8 import vips
|
|
from gi.repository import Vips
|
|
|
|
a = vips.Image(sys.argv[1])
|
|
b = vips.Image(sys.argv[2])
|
|
|
|
c = a.join(b, Vips.Direction.HORIZONTAL, expand = True)
|
|
|
|
c.write_to_file(sys.argv[3])
|