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.


Topics - viktork

Pages: [1]
1
Python and Java API / Matrix Diag in new version of Agisoft
« on: February 06, 2017, 05:39:06 PM »
Hello All,

I ma new in photoscan and i am trying a way to use the auto python script to create a model but when i try the script is failing in the stage

   m = PhotoScan.Matrix().diag([1,1,1,1])   

   m = m * T
   s = math.sqrt(m[0,0] ** 2 + m[0,1] ** 2 + m[0,2] ** 2) #scale factor
   R = PhotoScan.Matrix( [[m[0,0],m[0,1],m[0,2]], [m[1,0],m[1,1],m[1,2]], [m[2,0],m[2,1],m[2,2]]])

and gives an error AttributeError: 'PhotoScan.Document' object has no attribute 'diag'

Could you please someone give me a help why is doing that?

Thanks in advance,


Pages: [1]