OpenDroneMap-docs/source/arguments.rst

383 wiersze
17 KiB
ReStructuredText
Czysty Zwyk艂y widok Historia

2018-03-11 16:49:17 +00:00
.. _arguments:
Options and Flags
-----------------
2018-03-11 16:49:17 +00:00
2018-12-17 22:46:53 +00:00
Arguments::
2018-03-11 16:49:17 +00:00
-h, --help show this help message and exit
2018-03-11 16:49:17 +00:00
--images <path>, -i <path>
Path to input images
2018-03-11 16:49:17 +00:00
--project-path <path>
Path to the project folder
2018-03-11 16:49:17 +00:00
--resize-to <integer>
resizes images by the largest side for opensfm. Set to
2019-09-24 06:41:24 +00:00
-1 to disable.
Default: 2048
2018-03-11 16:49:17 +00:00
--end-with <string>, -e <string>
2019-05-22 18:35:33 +00:00
Can be one of:dataset | split | merge | opensfm | mve
| odm_filterpoints | odm_meshing | mvs_texturing |
2018-03-11 16:49:17 +00:00
odm_georeferencing | odm_dem | odm_orthophoto
2018-03-11 16:49:17 +00:00
--rerun <string>, -r <string>
2019-05-22 18:35:33 +00:00
Can be one of:dataset | split | merge | opensfm | mve
| odm_filterpoints | odm_meshing | mvs_texturing |
2018-03-11 16:49:17 +00:00
odm_georeferencing | odm_dem | odm_orthophoto
2018-03-11 16:49:17 +00:00
--rerun-all force rerun of all tasks
2018-03-11 16:49:17 +00:00
--rerun-from <string>
2019-05-22 18:35:33 +00:00
Can be one of:dataset | split | merge | opensfm | mve
| odm_filterpoints | odm_meshing | mvs_texturing |
2018-03-11 16:49:17 +00:00
odm_georeferencing | odm_dem | odm_orthophoto
2018-03-11 16:49:17 +00:00
--proj <PROJ4 string>
Projection used to transform the model into geographic
coordinates
2018-03-11 16:49:17 +00:00
--min-num-features <integer>
Minimum number of features to extract per image. More
features leads to better results but slower execution.
Default: 8000
2018-03-11 16:49:17 +00:00
--matcher-neighbors <integer>
Number of nearest images to pre-match based on GPS
exif data. Set to 0 to skip pre-matching. Neighbors
works together with Distance parameter, set both to 0
to not use pre-matching. OpenSFM uses both parameters
at the same time, Bundler uses only one which has
2019-09-24 06:41:24 +00:00
value, prefering the Neighbors parameter.
Default: 8
2018-03-11 16:49:17 +00:00
--matcher-distance <integer>
Distance threshold in meters to find pre-matching
images based on GPS exif data. Set both matcher-
2019-09-24 06:41:24 +00:00
neighbors and this to 0 to skip pre-matching.
Default: 0
2018-03-11 16:49:17 +00:00
--use-fixed-camera-params
Turn off camera parameter optimization during bundler
Off by default unless --camera parameter used
2019-09-28 10:20:43 +00:00
--camera-lens <string>
Can be one of auto | perspective | brown | fisheye | spherical
Set a camera projection type. Manually setting a value
can help improve geometric undistortion. By default the application
tries to determine a lens type from the images metadata.
Default: auto
2020-03-09 22:03:59 +00:00
--radiometric-calibration <string>
Set the radiometric calibration to perform on images.
When processing multispectral images you should set
this option to obtain reflectance values (otherwise
you will get digital number (DN) values). [camera]
applies black level, vignetting, row gradient
gain/exposure compensation (if appropriate EXIF tags
are found). [camera+sun] is experimental, applies all
the corrections of [camera] and additionally
compensates for spectral radiance registered via a
downwelling light sensor (DLS) taking in consideration
the angle of the sun. Can be set to one of: [none,
camera, camera+sun].
Default: none
2018-10-22 19:42:55 +00:00
--max-concurrency <positive integer>
The maximum number of processes to use in various
processes. Peak memory requirement is ~1GB per thread
2019-09-24 06:41:24 +00:00
and 2 megapixel image resolution.
Default: number of cores
2018-10-22 19:42:55 +00:00
--depthmap-resolution <positive float>
Controls the density of the point cloud by setting the
resolution of the depthmap images. Higher values take
2019-09-24 06:41:24 +00:00
longer to compute and more memory but produce denser
point clouds.
2018-10-22 19:42:55 +00:00
Default: 640
--opensfm-depthmap-min-consistent-views <integer: 2 <= x <= 9>
Minimum number of views that should reconstruct a
point for it to be valid. Use lower values if your
images have less overlap. Lower values result in
2019-09-24 06:41:24 +00:00
denser point clouds but with more noise. Only applies
if using OpenSfM for dense matching.
Default: 3
--opensfm-depthmap-method <string>
2018-05-18 21:16:54 +00:00
Raw depthmap computation algorithm. PATCH_MATCH and
PATCH_MATCH_SAMPLE are faster, but might miss some
valid points. BRUTE_FORCE takes longer but produces
2019-09-24 06:41:24 +00:00
denser reconstructions.
Default: PATCH_MATCH
--opensfm-depthmap-min-patch-sd <positive float>
2018-05-18 21:16:54 +00:00
When using PATCH_MATCH or PATCH_MATCH_SAMPLE, controls
the standard deviation threshold to include patches.
Patches with lower standard deviation are ignored.
Default: 1
2018-03-11 16:49:17 +00:00
--use-hybrid-bundle-adjustment
Run local bundle adjustment for every image added to
the reconstruction and a global adjustment every 100
images. Speeds up reconstruction for very large
datasets.
2019-05-22 18:35:33 +00:00
--mve-confidence <float: 0 <= x <= 1>
Discard points that have less than a certain
confidence threshold. This only affects dense
reconstructions performed with MVE. Higher values
2019-09-24 06:41:24 +00:00
discard more points.
Default: 0.6
2018-10-22 19:42:55 +00:00
--use-3dmesh Use a full 3D mesh to compute the orthophoto instead
of a 2.5D mesh. This option is a bit faster and
provides similar results in planar areas.
2018-10-22 19:42:55 +00:00
--skip-3dmodel Skip generation of a full 3D model. This can save time
if you only need 2D results such as orthophotos and
DEMs.
2018-10-22 19:42:55 +00:00
--use-opensfm-dense Use opensfm to compute dense point cloud alternatively
2018-10-22 19:42:55 +00:00
--ignore-gsd Ignore Ground Sampling Distance (GSD). GSD caps the
maximum resolution of image outputs and resizes images
when necessary, resulting in faster processing and
lower memory usage. Since GSD is an estimate,
sometimes ignoring it can result in slightly better
image output quality.
2018-03-11 16:49:17 +00:00
--mesh-size <positive integer>
2019-09-24 06:41:24 +00:00
The maximum vertex count of the output mesh.
Default: 100000
2018-03-11 16:49:17 +00:00
--mesh-octree-depth <positive integer>
Oct-tree depth used in the mesh reconstruction,
increase to get more vertices, recommended values are
2019-09-24 06:41:24 +00:00
8-12.
Default: 9
2018-03-11 16:49:17 +00:00
--mesh-samples <float >= 1.0>
Number of points per octree node, recommended and
2019-09-24 06:41:24 +00:00
Default: 1.0
2019-05-22 18:35:33 +00:00
--mesh-point-weight <positive float>
2018-10-22 19:42:55 +00:00
This floating point value specifies the importance
that interpolation of the point samples is given in
the formulation of the screened Poisson equation. The
results of the original (unscreened) Poisson
Reconstruction can be obtained by setting this value
2019-09-24 06:41:24 +00:00
to 0.
Default: 4
2018-03-11 16:49:17 +00:00
--fast-orthophoto Skips dense reconstruction and 3D model generation. It
generates an orthophoto directly from the sparse
reconstruction. If you just need an orthophoto and do
not need a full 3D model, turn on this option.
Experimental.
2018-03-11 16:49:17 +00:00
--crop <positive float>
Automatically crop image outputs by creating a smooth
buffer around the dataset boundaries, shrinked by N
2019-09-24 06:41:24 +00:00
meters. Use 0 to disable cropping.
Default: 3
2019-05-22 18:35:33 +00:00
--pc-classify Classify the point cloud outputs using a Simple
2019-04-22 15:42:15 +00:00
Morphological Filter. You can control the behavior of
2019-05-22 18:35:33 +00:00
this option by tweaking the --dem-* parameters.
Default: False
2018-10-22 19:42:55 +00:00
--pc-csv Export the georeferenced point cloud in CSV format.
Default: False
2019-05-22 18:35:33 +00:00
--pc-las Export the georeferenced point cloud in LAS format.
Default: False
2019-05-22 18:35:33 +00:00
--pc-filter <positive float>
Filters the point cloud by removing points that
deviate more than N standard deviations from the local
2019-09-24 06:41:24 +00:00
mean. Set to 0 to disable filtering.
Default: 2.5
2019-05-22 18:35:33 +00:00
--smrf-scalar <positive float>
Simple Morphological Filter elevation scalar
2019-09-24 06:41:24 +00:00
parameter.
Default: 1.25
2019-05-22 18:35:33 +00:00
--smrf-slope <positive float>
Simple Morphological Filter slope parameter (rise over
2019-09-24 06:41:24 +00:00
run).
Default: 0.15
2019-05-22 18:35:33 +00:00
--smrf-threshold <positive float>
Simple Morphological Filter elevation threshold
2019-09-24 06:41:24 +00:00
parameter (meters).
Default: 0.5
2019-05-22 18:35:33 +00:00
--smrf-window <positive float>
Simple Morphological Filter window radius parameter
2019-09-24 06:41:24 +00:00
(meters).
Default: 18.0
2018-03-11 16:49:17 +00:00
--texturing-data-term <string>
2019-09-24 06:41:24 +00:00
Data term: [area, gmi].
Default: gmi
2018-10-22 19:42:55 +00:00
--texturing-nadir-weight <integer: 0 <= x <= 32>
Affects orthophotos only. Higher values result in
sharper corners, but can affect color distribution and
blurriness. Use lower values for planar areas and
higher values for urban areas. The default value works
2019-09-24 06:41:24 +00:00
well for most scenarios.
Default: 16
2018-03-11 16:49:17 +00:00
--texturing-outlier-removal-type <string>
Type of photometric outlier removal method: [none,
2019-09-24 06:41:24 +00:00
gauss_damping, gauss_clamping].
Default: gauss_clamping
2018-03-11 16:49:17 +00:00
--texturing-skip-visibility-test
2019-09-24 06:41:24 +00:00
Skip geometric visibility test.
Default: False
2018-03-11 16:49:17 +00:00
--texturing-skip-global-seam-leveling
2019-09-24 06:41:24 +00:00
Skip global seam leveling. Useful for IR data.
Default: False
2018-03-11 16:49:17 +00:00
--texturing-skip-local-seam-leveling
2019-09-24 06:41:24 +00:00
Skip local seam blending.
Default: False
2018-03-11 16:49:17 +00:00
--texturing-skip-hole-filling
2019-09-24 06:41:24 +00:00
Skip filling of holes in the mesh.
Default: False
2018-03-11 16:49:17 +00:00
--texturing-keep-unseen-faces
Keep faces in the mesh that are not seen in any
2019-09-24 06:41:24 +00:00
camera.
Default: False
2018-03-11 16:49:17 +00:00
--texturing-tone-mapping <string>
Turn on gamma tone mapping or none for no tone
2019-09-24 06:41:24 +00:00
mapping. Choices are 'gamma' or 'none'.
Default: none
2018-03-11 16:49:17 +00:00
--gcp <path string> path to the file containing the ground control points
used for georeferencing. Default: None. The file needs
to be on the following line format: easting northing
height pixelrow pixelcol imagename
2018-03-11 16:49:17 +00:00
--use-exif Use this tag if you have a gcp_list.txt but want to
use the exif geotags instead
2018-03-11 16:49:17 +00:00
--dtm Use this tag to build a DTM (Digital Terrain Model,
2019-05-22 18:35:33 +00:00
ground only) using a simple morphological filter.
Check the --dem* and --smrf* parameters for finer
tuning.
2018-03-11 16:49:17 +00:00
--dsm Use this tag to build a DSM (Digital Surface Model,
ground + objects) using a progressive morphological
2019-05-22 18:35:33 +00:00
filter. Check the --dem* parameters for finer tuning.
2018-03-11 16:49:17 +00:00
--dem-gapfill-steps <positive integer>
Number of steps used to fill areas with gaps. Set to 0
to disable gap filling. Starting with a radius equal
to the output resolution, N different DEMs are
generated with progressively bigger radius using the
inverse distance weighted (IDW) algorithm and merged
together. Remaining gaps are then merged using nearest
2019-09-24 06:41:24 +00:00
neighbor interpolation.
Default: 3
2018-03-11 16:49:17 +00:00
--dem-resolution <float>
2019-09-24 06:41:24 +00:00
DSM/DTM resolution in cm / pixel.
Default: 5
2018-03-11 16:49:17 +00:00
--dem-decimation <positive integer>
Decimate the points before generating the DEM. 1 is no
decimation (full quality). 100 decimates ~99% of the
2019-09-24 06:41:24 +00:00
points. Useful for speeding up generation.
Default: 1
2019-05-22 18:35:33 +00:00
--dem-euclidean-map Computes an euclidean raster map for each DEM. The map
reports the distance from each cell to the nearest
NODATA value (before any hole filling takes place).
This can be useful to isolate the areas that have been
2019-09-24 06:41:24 +00:00
filled.
Default: False
2018-03-11 16:49:17 +00:00
--orthophoto-resolution <float > 0.0>
2019-09-24 06:41:24 +00:00
Orthophoto resolution in cm / pixel.
Default: 5
2018-03-11 16:49:17 +00:00
--orthophoto-no-tiled
Set this parameter if you want a stripped geoTIFF.
Default: False
2018-03-11 16:49:17 +00:00
--orthophoto-compression <string>
Set the compression to use. Note that this could break
gdal_translate if you don't know what you are doing.
Options: JPEG, LZW, PACKBITS, DEFLATE, LZMA, NONE.
Default: DEFLATE
2018-03-11 16:49:17 +00:00
--orthophoto-bigtiff {YES,NO,IF_NEEDED,IF_SAFER}
Control whether the created orthophoto is a BigTIFF or
classic TIFF. BigTIFF is a variant for files larger
than 4GiB of data. Options are YES, NO, IF_NEEDED,
IF_SAFER. See GDAL specs:
https://www.gdal.org/frmt_gtiff.html for more info.
Default: IF_SAFER
2019-05-22 18:35:33 +00:00
--orthophoto-cutline Generates a polygon around the cropping area that cuts
the orthophoto around the edges of features. This
polygon can be useful for stitching seamless mosaics
2019-09-24 06:41:24 +00:00
with multiple overlapping orthophotos.
Default: False
2018-03-11 16:49:17 +00:00
--build-overviews Build orthophoto overviews using gdaladdo.
2019-09-24 06:41:24 +00:00
--verbose, -v Print additional messages to the console
Default: False
2019-09-24 06:41:24 +00:00
--time Generates a benchmark file with runtime info
Default: False
2018-03-11 16:49:17 +00:00
--version Displays version number and exits.
2019-05-22 18:35:33 +00:00
--split <positive integer>
Average number of images per submodel. When splitting
a large dataset into smaller submodels, images are
grouped into clusters. This value regulates the number
of images that each cluster should have on average.
2019-05-22 18:35:33 +00:00
--split-overlap <positive integer>
Radius of the overlap between submodels. After
grouping images into clusters, images that are closer
than this radius to a cluster are added to the
cluster. This is done to ensure that neighboring
submodels overlap.
--optimize-disk-space
Delete heavy intermediate files (such as original orthos, dtm, dsm)
to optimize disk space usage, while keeping the compressed versions.
This affects the ability to restart the pipeline from an intermediate
stage, but allows datasets to be processed on machines that don't have
sufficient disk space available. Also, in this mode, the "reports" does
not get written under the output 'opensfm' folder.
Default: False
2019-05-22 18:35:33 +00:00
--sm-cluster <string>
2019-09-24 06:41:24 +00:00
URL to a ClusterODM instance for distributing a
2019-05-22 18:35:33 +00:00
split-merge workflow on multiple nodes in parallel.
Default: None
--merge <string>
Choose what to merge in the merge step in a split
2019-05-22 18:35:33 +00:00
dataset. By default all available outputs are merged.
2019-09-14 18:41:59 +00:00
Default: all
2019-09-28 10:20:43 +00:00
`Help edit these docs! <https://github.com/OpenDroneMap/docs/blob/publish/source/using.rst>`_