Thank you for your fast response !
I have tried your solution, but an other problem appeared ...
a message error appear on the "setImage()" line : "Type Error: setImage(): 8bpc color depth required".
In fact, the problem seems to come from image opening, because the code following code
image = PhotoScan.Image()
image.open(mask_path)
print('height = ' , image.height)
gives :
heigth = 0
My 'mask_path' is good: I can open this file with Ma....lab.
I have tried different options (layer, channels etc..., jpg, png), nothing ...
Did you ever see this ?
Thanks for your support,
Clément