Hello,
I'm trying to create from scratch the chunk tie point cloud using python (i want to usemarkers as tie points instead of the one matched by photoscan). I've developped the following code:
# Use only markers as tie points
track_id = 1
for marker in chunk.markers:
print("Marker "+str(track_id)+" - key: "+str(marker.key)+", label: "+marker.label+", reference: "+str(marker.reference.location))
point = PhotoScan.PointCloud.Point()
point.track_id = track_id
point.coord = marker.reference.location
point.valid = True
chunk.point_cloud.points.append(point)
for projection in marker.projections.items():
camera = projection[0]
observation = projection[1].coord
print(" projection - camera: "+camera.key+", projection: "+str(observation))
chunk.point_cloud.projections.append(point)
However, this script say that i can't instanciate PhotoScan.PointCloud.Point class with PhotoScan.PointCloud.Point().
Can you help me please, and is there another way to produce my own tie point cloud without using photoscan match function ?