Thanks Alexey,
yes I have been staring at this post all afternoon, but I need the other way around: write the contents of an array back to the photoscan image. That post only talks about extracting an image as a numpy array, right?
If I follow your instructions, I get:
PhotoScan.Image = mask
mask
Out[60]: 2018-08-29 16:32:52 array([0, 0, 0, ..., 0, 0, 0], dtype=uint8)
PhotoScan.Image
Out[61]: 2018-08-29 16:33:01 array([0, 0, 0, ..., 0, 0, 0], dtype=uint8)
mask = PhotoScan.Mask()
mask
Out[63]: 2018-08-29 16:33:43 <PhotoScan.Mask at 0x1dfc7af8>
mask.setImage(PhotoScan.Image)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-65-8fdb8ae6c111> in <module>()
----> 1 mask.setImage(PhotoScan.Image)
TypeError: argument 1 must be PhotoScan.Image, not numpy.ndarray
cheers
Tom