Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Clement

Pages: [1]
1
Python and Java API / Re: How to use the setMask() function ?
« on: February 12, 2015, 04:39:24 PM »
Perfect, it works !

Thank you !

See you next time,

Clément

2
Python and Java API / Re: How to use the setMask() function ?
« on: February 12, 2015, 12:26:04 PM »
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
Code: [Select]
image = PhotoScan.Image()
image.open(mask_path)
print('height = ' , image.height)
gives :
Code: [Select]
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



3
Python and Java API / How to use the setMask() function ? [Solved]
« on: February 11, 2015, 05:11:11 PM »
Hello everyone,

I'm working on a project in which I need to create a pipeline to extract 3D points of an object.
My first script works, but now I would like to take in count some masks, my own masks files, before align cameras.

So, I have my photos in a folder, my masks in another, now I would like to apply  my masks on photos.

A solution, could be use the setMask() function : (http://www.agisoft.com/forum/index.php?topic=2101.msg11113#msg11113 , http://www.agisoft.com/forum/index.php?topic=2491.0  ; however I don't find it in the documentation 'photoscan_python_api_1_1_0.pdf'.  :-[

Thanks a lot for your help.

Clément.

PS. I'm working with Ubuntu and the Professional Edition of PhotoScan, and sorry for my approximative English.  ;D

Pages: [1]