Export tie/key points
AnsweredHello everyone,
I am looking at the calibration.xml file to try and create a custom exporter. The features that I am looking at exporting are:
image_index image_name X Y Z Yaw Pitch Roll Omega Phi Kappa # i.e. the image index, image name, and POSE
image_index tie_point_index U V # i.e. the position in the image that the tiepoint has been extracted from
tie_point_index X Y Z # i.e. the tiepoint position information
I have read through this post: https://support.capturingreality.com/hc/en-us/community/posts/115001350332-camera-images-file-list-export
And this: https://support.capturingreality.com/hc/en-us/community/posts/115000774071#ip-1073
and so far I have come up with this:
```
</body>
</format>
<format id="{2971BD35-37FD-4A70-A2B0-D35F56192EF6}" mask="*.txt" desc="Tie Points" writer="cvs" requiresEqualResolution="1" undistortImages="1" undistortPrincipal="1" exportImages="0">
<body>
#Creation date : $(dateTime)
#Line Format: image_index image_name X Y Z Yaw Pitch Roll Omega Phi Kappa
$ExportCameras($(imageIndex) $(imageName) $(tx:f) $(ty:f) $(tz:f) $(yaw:f) $(pitch:f) $(roll:f) $(omega:f) $(phi:f) $(kappa:f)
)
#Line Format: image_index tie_point_index U V
$ExportCameras($(imageIndex) $(pointIndex) $(u:f) $(v:f)
)
#Line Format: tie_point_index X Y Z
$ExportPoints($(pointIndex) $(x) $(y) $(z)
)
</body>
```
The problem I am having is the getting the tiepoint index for each image, and the location of the tiepoint in each image. i.e. this line here: $ExportCameras($(imageIndex) $(pointIndex) $(u:f) $(v:f)
Does anyone have any ideas or clues?
-
Hello Ashley,
you can find the available variables for the function exportCameras as well as the functions available for exporting tie points and features in the application Help, section Functions and Variables Available in the Reports. You can define your own report template and export all these parameters via Reports button.
-
Hey Ashley,
did you manage to get the tie points exported?
I have the same issues but the only thing i can find is to export the tie points along a track and that file is crap...
What I want is a file with: Image Index, Tie Point Index, X and Y Coordinate
for each image. And Images with corresponding Tie Points should have the same tie point Id.
Is there any solution???
Please sign in to leave a comment.
Comments
5 comments