sfm_submap program takes as input a Structure-from-Motion
(SfM) map in .nvm format, as produced by
(Section 16.66) or
(Section 16.55), and extracts from it a submap
for a desired subset of the images.
It works with .nvm files in which the keypoints were shifted
relative to the optical center (which is the default for
rig_calibrator) or not (as can be
rig_calibrator, see Section 16.55.6).
This property is preserved by this tool.
The produced map can be visualized in
(Section 184.108.40.206). For now, if the features are shifted
relative to the optical center, the user must produce the list of
shifts, as detailed at the above link, for the features to be plotted
correctly. It is suggested to always use
rig_calibrator with the
--save_nvm_no_shift to create an unshifted file to start
sfm_merge (Section 16.58), a tool for merging maps.
Example 1 (specify the images to have in the submap on the command line):
sfm_submap -input_map in_map.nvm -output_map out_map.nvm \ image1.jpg image2.jpg ...
Example 2 (let those images be in a file, one per line):
sfm_submap -input_map in_map.nvm -output_map out_map.nvm \ -image_list list.txt
The images in the list not present in the input map will be ignored.
16.59.2. Command-line options for sfm_submap¶
--input_map The input map, in .nvm format. Type: string. Default: “”.
--output_map The output map, in .nvm format. Type: string. Default: “”.
--image_listA file having the names of the images to be included in
the submap, one per line.