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

Pages: [1]
1
Python and Java API / Re: Ortho projection to exact plane
« on: January 17, 2015, 01:32:30 PM »
Thank you! :)

2
Python and Java API / Re: Ortho projection to exact plane
« on: January 14, 2015, 12:55:19 PM »
Thank you! :)
The last question about the matrix: why the matrix has 4 vectors of four coordinates?

Matteo.

3
Python and Java API / Re: Ortho projection to exact plane
« on: January 12, 2015, 12:54:06 AM »
Hello Alexey,
thank you for the reply.
I already have the plane where to project photos.
But, how to build a matrix picking 3 point from that plane?
Also, in general, how the matrix works? Is there a docs where is explained? :)

Thank you again.
Matteo

4
Python and Java API / Ortho projection to exact plane
« on: January 09, 2015, 01:58:32 AM »
Hello,
first of all congratulations for the great software!
I have the situation described in attached screenshot.
I've already written a script to export single photo in ortho mode:

Code: [Select]
import PhotoScan
import os
import sys
app = PhotoScan.Application()
doc = PhotoScan.app.document
chunk = PhotoScan.app.document.chunk
folder = PhotoScan.app.getExistingDirectory("Select folder where to export ortho photos")
folder = os.path.normpath(folder) + os.sep
app.messageBox("Photo number: " + str(len(chunk.cameras)))

for camera in chunk.cameras:
X = camera.key
camera.enabled = True
path = folder + str(X) + ".tif"
chunk.exportOrthophoto(path, format="tif", blending=PhotoScan.MosaicBlending, color_correction=False, write_kml=False, write_world=False)
camera.enabled = False

app.messageBox("All photos exported")

The question is: how to orient exactly the plane (and cameras) with the XY plane, or is it possible to directly project photo orthogonal to my imported plane in python?

Thank you for help,
Matteo.

Pages: [1]