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 - Ainur

Pages: [1]
1
Python and Java API / Re: Convert from any coordinate system to WGS 84
« on: September 26, 2016, 09:35:43 AM »
Hello Alexey,

I am sorry, but I am still struggling with the conversion. After changing the function I got below error:

2016-09-26 08:33:35     camera.reference.location = PhotoScan.CoordinateSystem.transform(camera.reference.location, crs, new_crs)
2016-09-26 08:33:35 NameError: name 'crs' is not defined

2
Python and Java API / Re: Convert from any coordinate system to WGS 84
« on: September 23, 2016, 03:12:52 PM »
Hello Alexey,

thank you very much for your quick reply.

So the problem now is that I am not good in scripting... I have found out below script in the forum and have tried to run the script, but it does not work out. Could you please help me? I need to convert from EPSG::3068 to EPSG::4326 as in a testing area.

import math
import PhotoScan

print("Script started")

doc = PhotoScan.app.document
chunk = doc.chunk

new_crs = PhotoScan.CoordinateSystem("EPSG::4326")
new_wkt = new_crs.wkt.split("TOWGS84[")[1].split("]")[0]
dx, dy, dz, rx, ry, rz, s = [float(x) for x in new_wkt.split(",")]

rx = rx * math.pi  / (180. * 3600.)
ry = ry * math.pi  / (180. * 3600.)
rz = rz * math.pi  / (180. * 3600.)
s = 1.0 + s / 1.0E6

R = s * PhotoScan.Matrix([[1, -rz, ry], [rz, 1, -rx], [-ry, rx, 1]])
T = PhotoScan.Matrix([[R[0,0], R[0,1], R[0,2], dx], [R[1,0], R[1,1], R[1,2], dy], [R[2,0], R[2,1], R[2,2], dz], [0, 0, 0, 1]])

for camera in chunk.cameras:
   
   new_loc = new_crs.project(T.inv().mulp(chunk.crs.unproject(camera.reference.location)))
   camera.reference.location = new_loc
   
chunk.crs = new_crs
PhotoScan.app.update()

print("Script finished")

3
Python and Java API / Convert from any coordinate system to WGS 84
« on: September 23, 2016, 01:37:46 PM »
Dear Agisoft team,

do you have a script to convert from any local coordinate system to WGS 84. Just wanted to minimize manual work by batch process.

Or do I have to have separate scripts for each coordnate system to convert it to WGS?

Thanks in advance.

BR,
Ainur

4
Feature Requests / Re: an orthoimage with a scale bar
« on: May 09, 2016, 04:26:34 PM »
Dear Alexey,

thanks a lot for your quick response.
Yes, I can do it in any GIS apps. Just wanted to make my life easier :)

BR,
Ainur

5
Feature Requests / an orthoimage with a scale bar
« on: May 09, 2016, 02:01:42 PM »
Dear Agisoft team,

I have seen in an auto generated processing report a scale bar under  "camera locations and image overlap", "GCP locations" and DEM. The question: is it possible to generate a pdf or jpg with only an orthoimage with such scale bar and/or a numeric scale.

Thanks in advance.

Happy Victory day :)

Kind regards,
Ainur

6
Feature Requests / Orthoimage with a scale bar
« on: May 09, 2016, 01:22:24 PM »
Dear Agisoft team,

I have seen in an auto generated processing report a scale bar under  "camera locations and image overlap", "GCP locations" and DEM. The question: is it possible to generate a pdf or jpg with only an orthoimage with such scale bar and/or a numeric scale.

Thanks in advance.

Kind regards,
Ainur

7
General / Re: Reproducing the same result
« on: April 26, 2016, 04:07:29 PM »
Hello Alexey,

many thanks for your quick response.

Now it is clear for me, in my case, probably the reason is a low image quality.

BR,
Ainur

8
General / Reproducing the same result
« on: April 26, 2016, 02:28:45 PM »
Dear Agisoft team,

does the Photos Alignment process depend on a hardware properties?
I am wondering if images are processed on different computers, but the same parameters, would the result be different.

Thanks and regards,
Ainur


Pages: [1]