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

Pages: [1] 2
1
Python and Java API / How do I convert a camera to ENU?
« on: September 18, 2018, 02:56:45 AM »
Hey Alexey,

I have exported camera positions in an XML file and want to convert a camera to ENU using the transform at the end of the XML file. I read that the transform represents a ECEF -> local transform. So how do you use it to convert the camera transform to ENU?
Code: [Select]
<camera id="0" label="08e99038b0f96f7003556eb23877402a.jpg" sensor_id="0" enabled="true">
<transform>...</transform>
<orientation>1</orientation>
<reference x="-79.153242361111097" y="37.400188583333303" z="208.38200000000001" enabled="true"/>
</camera>
...

<transform>
<rotation>2.5818723527903192e-01 9.5254434818531153e-01 1.6124086417279426e-01 -5.3390401398553078e-01 2.7978097103927702e-01 -7.9791547929242301e-01 -8.0516200567904861e-01 1.1992444698450438e-01 5.8080312639168274e-01</rotation>
<translation>9.5474336100430344e+05 -4.9826859996768227e+06 3.8528608851181311e+06</translation>
<scale>9.1296180142317489e+00</scale>
</transform>

The reason I want to do this is I want to find the 4 points on the ground (in geodetic coordinates (lon, lat, alt) that correspond to the corner pixels of the image.

2
Hi Alexey!

I have generated the PointCloud which appears to be in WGS84, but the camera positions and poses seem to be in a local coordinate system. How do I convert a point in the point cloud into the same local coordinate system as the cameras?

Thank you

3
Python and Java API / How do you update marker locations with the API?
« on: March 15, 2017, 07:00:00 PM »
Hey Aleksy

I have placed a marker in 8 images and tied it so it's green with the API. How do I update the location of the (gray) markers in the remaining images using the API based on the position of the 8 tied markers?

Thanks so much, you rock!

Nick

4
I have PhotoScan project where I have estimated the camera positions and now want to add some markers to it. I am struggling to understand the sequence of transformations that move a 3D marker position to a pixel in an image?

I tried:

camPos3D = camera.sensor.calibration.transform * chunk.transform *  markerPos3d

which should give the position of the marker relative to the camera, and then:

camera.project(camPos3D)


but it doesn't work?

In particular what is the purpose of the chunk transform. The cameras position are estimated in world coordinates right or are they relative to the chunk which is relative to the world?

Ultimately I want to add a marker manually and then run a script that will try and project that marker into each image and if it can output the pixel in the image that corresponds to the marker projection.

5
General / What does Agisoft use for coordinate conversion?
« on: September 23, 2015, 09:08:42 PM »
GDAL or PROJ.4 or something else?

6
General / What units are exported point clouds in for NAD27?
« on: September 22, 2015, 11:30:24 PM »
I have a point cloud in PS and have exported the point in both WGS84 and NAD27 Zone II. The WGS data looks like this, with elevation in meters:

-121.330272 38.547287 5.661467
-121.330272 38.547287 5.646508
-121.330272 38.547287 5.661565
-121.330272 38.547287 5.657426

where as the NAD27 Zone II data looks like this:

2191840.924977 321431.770306 44.012074
2191840.804111 321431.731749 43.962994
2191840.798730 321431.632417 44.012394
2191840.725906 321431.877987 43.998812
2191840.639473 321431.718561 44.001784

I don't understand why the elevation is different and what units it is meant to be in, doesn't seem to be in either meters or feet. Something else is going on?

7
General / Is point cloud export to EPSG:2956 correct?
« on: August 14, 2015, 01:08:53 AM »
Hi there,

I wanted to export a point cloud in EPSG:2956. To confirm the results I also exported the point cloud in EPSG:4326 and converted it to EPSG:2956 using Proj4 unfortunately the results are different. If there any reason for this - how do I know which is correct. Here is a sample script should the different for one point:

import pyproj

p1 = pyproj.Proj("+init=EPSG:4326")
p2 = pyproj.Proj("+init=EPSG:2956")

# a point from photoscan exported point cloud in in EPSG:4326
epsg4326_point = (-110.28868093, 64.46331476, 391.28830036)
# a point from photoscan exported point cloud in EPSG:4326
epsg2956_point = (534215.31186246, 7148835.02251115, 391.45030254)

print "Source point", epsg4326_point
print ""
print "Target point", epsg2956_point
print 'Manually converted result (different): ', pyproj.transform(p1, p2, *epsg4326_point)

8
Bug Reports / I'm getting a weird result exporting a point cloud?
« on: August 13, 2015, 10:51:37 PM »
Hi there,

I wanted to export a point cloud in EPSG:2956. To confirm the results I also exported the point cloud in EPSG:4326 and converted it to EPSG:2956 using Proj4 unfortunately the results are different. If there any reason for this - how do I know which is correct. Here is a sample script should the different for one point:

import pyproj

p1 = pyproj.Proj("+init=EPSG:4326")
p2 = pyproj.Proj("+init=EPSG:2956")

# a point from photoscan exported point cloud in in EPSG:4326
epsg4326_point = (-110.28868093, 64.46331476, 391.28830036)
# a point from photoscan exported point cloud in EPSG:4326
epsg2956_point = (534215.31186246, 7148835.02251115, 391.45030254)

print "Source point", epsg4326_point
print ""
print "Target point", epsg2956_point
print 'Manually converted result (different): ', pyproj.transform(p1, p2, *epsg4326_point)

9
General / GPU Acceleration
« on: September 25, 2014, 06:27:21 AM »
Does anyone have any hard numbers of how much fast processing is with a GPU, and which stages it accelerates. I'm considering buying one, but I'd like to know if the speed up would be significant? What are the bottlenecks going to be?


10
Trying to stitch these 9 images using a python scripts and chunk.exportOrthophoto is throwing 'list index out of range'

https://www.dropbox.com/s/lcvsb3fuhi67rsh/Archive.zip?dl=0


11
Python and Java API / Is the console written to a log file anywhere?
« on: September 04, 2014, 02:00:46 AM »
I am running a Python script that closes Photoscan at the end. I would like to retrieve the console log once Photoscan is closed. Where is it written to?

13
General / Problem aligning photos?
« on: August 06, 2014, 02:51:56 AM »
I have some images with about 70% front and side overlap and GPS exif data. After aligning the photos it puts all the cameras in the same place points weird directions:

https://www.dropbox.com/s/t0flvaygtcupezq/Screenshot%202014-08-05%2016.44.07.png

I'm trying to find out what is wrong by looking at the individual images and the features, but I'm not sure what the coloured dots mean. Most are white:

https://www.dropbox.com/s/u942zp9a8e4s9qv/Screenshot%202014-08-05%2016.48.50.png

Here are the images with Exif data: https://www.dropbox.com/s/46rgbqlla9eblbr/images.zip

https://www.dropbox.com/s/459xmq6ug913m2q/Screenshot%202014-08-05%2016.49.22.png

Here is the report: https://s3.amazonaws.com/drone_assets/1407260391_BREADSTICK1/report.pdf

and even the images if that helps:

14
Hey Alexey!


For each camera, I am looking to compute the coordinates of quad of what that camera can see on the ground. Is this information (in latitude and longitude) and if not how do I compute it?


15
I'll like to export a polygonal region of an orthomosiac because the edges seem blurred and I'll like to trim them out. Is this possible?

Pages: [1] 2