![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include "ecvCommandLineCommands.h"#include <AutoSegmentationTools.h>#include <CVConst.h>#include <CloudSamplingTools.h>#include <DistanceComputationTools.h>#include <MeshSamplingTools.h>#include <NormalDistribution.h>#include <StatisticalTestingTools.h>#include <WeibullDistribution.h>#include <ecvHObjectCaster.h>#include <ecvNormalVectors.h>#include <ecvPlane.h>#include <ecvPolyline.h>#include <ecvProgressDialog.h>#include <ecvScalarField.h>#include <ecvVolumeCalcTool.h>#include <AsciiFilter.h>#include <PlyFilter.h>#include <ui_commandLineDlg.h>#include "ecvCommon.h"#include "ecvComparisonDlg.h"#include "ecvConsole.h"#include "ecvCropTool.h"#include "ecvLibAlgorithms.h"#include "ecvRegistrationTools.h"#include "ecvScalarFieldArithmeticsDlg.h"#include "ecvEntityAction.h"#include <QDateTime>#include <QFileInfo>Enumerations | |
| enum | USE_SPECIAL_SF_VALUE { USE_NONE, USE_MIN, USE_DISP_MIN, USE_SAT_MIN, USE_N_SIGMA_MIN, USE_MAX, USE_DISP_MAX, USE_SAT_MAX, USE_N_SIGMA_MAX } |
Functions | |
| static bool | GetSFIndexOrName (ccCommandLineInterface &cmd, int &sfIndex, QString &sfName, bool allowMinusOne=false) |
| int | GetScalarFieldIndex (ccPointCloud *cloud, int sfIndex, const QString &sfName, bool minusOneMeansCurrent=false) |
| cloudViewer::ScalarField * | GetScalarField (ccPointCloud *cloud, int sfIndex, const QString &sfName, bool minusOneMeansCurrent=false) |
| static bool | ReadDensityType (ccCommandLineInterface &cmd, cloudViewer::GeometricalAnalysisTools::Density &density) |
Variables | |
| constexpr char | COMMAND_CLOUD_EXPORT_FORMAT [] = "C_EXPORT_FMT" |
| constexpr char | COMMAND_EXPORT_EXTENSION [] = "EXT" |
| constexpr char | COMMAND_ASCII_EXPORT_PRECISION [] = "PREC" |
| constexpr char | COMMAND_ASCII_EXPORT_SEPARATOR [] = "SEP" |
| constexpr char | COMMAND_ASCII_EXPORT_ADD_COL_HEADER [] = "ADD_HEADER" |
| constexpr char | COMMAND_ASCII_EXPORT_ADD_PTS_COUNT [] = "ADD_PTS_COUNT" |
| constexpr char | COMMAND_MESH_EXPORT_FORMAT [] = "M_EXPORT_FMT" |
| constexpr char | COMMAND_HIERARCHY_EXPORT_FORMAT [] = "H_EXPORT_FMT" |
| constexpr char | COMMAND_OPEN [] = "O" |
| constexpr char | COMMAND_OPEN_SKIP_LINES [] = "SKIP" |
| constexpr char | COMMAND_SUBSAMPLE [] |
| constexpr char | COMMAND_EXTRACT_CC [] = "EXTRACT_CC" |
| spatial step / octree level) More... | |
| constexpr char | COMMAND_CURVATURE [] = "CURV" |
| constexpr char | COMMAND_DENSITY [] = "DENSITY" |
| constexpr char | COMMAND_DENSITY_TYPE [] = "TYPE" |
| constexpr char | COMMAND_APPROX_DENSITY [] = "APPROX_DENSITY" |
| constexpr char | COMMAND_SF_GRADIENT [] = "SF_GRAD" |
| constexpr char | COMMAND_ROUGHNESS [] = "ROUGH" |
| constexpr char | COMMAND_ROUGHNESS_UP_DIR [] = "UP_DIR" |
| constexpr char | COMMAND_APPLY_TRANSFORMATION [] = "APPLY_TRANS" |
| constexpr char | COMMAND_DROP_GLOBAL_SHIFT [] = "DROP_GLOBAL_SHIFT" |
| constexpr char | COMMAND_SF_COLOR_SCALE [] = "SF_COLOR_SCALE" |
| constexpr char | COMMAND_SF_CONVERT_TO_RGB [] = "SF_CONVERT_TO_RGB" |
| constexpr char | COMMAND_FILTER_SF_BY_VALUE [] = "FILTER_SF" |
| constexpr char | COMMAND_MERGE_CLOUDS [] = "MERGE_CLOUDS" |
| constexpr char | COMMAND_MERGE_MESHES [] = "MERGE_MESHES" |
| constexpr char | COMMAND_SET_ACTIVE_SF [] = "SET_ACTIVE_SF" |
| constexpr char | COMMAND_REMOVE_ALL_SFS [] = "REMOVE_ALL_SFS" |
| constexpr char | COMMAND_REMOVE_SF [] = "REMOVE_SF" |
| constexpr char | COMMAND_REMOVE_SCAN_GRIDS [] = "REMOVE_SCAN_GRIDS" |
| constexpr char | COMMAND_REMOVE_RGB [] = "REMOVE_RGB" |
| constexpr char | COMMAND_REMOVE_NORMALS [] = "REMOVE_NORMALS" |
| constexpr char | COMMAND_MATCH_BB_CENTERS [] = "MATCH_CENTERS" |
| constexpr char | COMMAND_BEST_FIT_PLANE [] = "BEST_FIT_PLANE" |
| constexpr char | COMMAND_BEST_FIT_PLANE_MAKE_HORIZ [] = "MAKE_HORIZ" |
| constexpr char | COMMAND_BEST_FIT_PLANE_KEEP_LOADED [] = "KEEP_LOADED" |
| constexpr char | COMMAND_ORIENT_NORMALS [] = "ORIENT_NORMS_MST" |
| constexpr char | COMMAND_SOR_FILTER [] = "SOR" |
| constexpr char | COMMAND_SAMPLE_MESH [] = "SAMPLE_MESH" |
| constexpr char | COMMAND_CROP [] = "CROP" |
| constexpr char | COMMAND_CROP_OUTSIDE [] = "OUTSIDE" |
| constexpr char | COMMAND_CROP_2D [] = "CROP2D" |
| constexpr char | COMMAND_COLOR_BANDING [] = "CBANDING" |
| constexpr char | COMMAND_C2M_DIST [] = "C2M_DIST" |
| constexpr char | COMMAND_C2M_DIST_FLIP_NORMALS [] = "FLIP_NORMS" |
| constexpr char | COMMAND_C2C_DIST [] = "C2C_DIST" |
| constexpr char | COMMAND_CLOSEST_POINT_SET [] = "CLOSEST_POINT_SET" |
| constexpr char | COMMAND_C2C_SPLIT_XYZ [] = "SPLIT_XYZ" |
| constexpr char | COMMAND_C2C_LOCAL_MODEL [] = "MODEL" |
| constexpr char | COMMAND_C2X_MAX_DISTANCE [] = "MAX_DIST" |
| constexpr char | COMMAND_C2X_OCTREE_LEVEL [] = "OCTREE_LEVEL" |
| constexpr char | COMMAND_STAT_TEST [] = "STAT_TEST" |
| constexpr char | COMMAND_DELAUNAY [] = "DELAUNAY" |
| constexpr char | COMMAND_DELAUNAY_AA [] = "AA" |
| constexpr char | COMMAND_DELAUNAY_BF [] = "BEST_FIT" |
| constexpr char | COMMAND_DELAUNAY_MAX_EDGE_LENGTH [] = "MAX_EDGE_LENGTH" |
| constexpr char | COMMAND_SF_ARITHMETIC [] = "SF_ARITHMETIC" |
| constexpr char | COMMAND_SF_OP [] = "SF_OP" |
| constexpr char | COMMAND_RENAME_SF [] = "RENAME_SF" |
| constexpr char | COMMAND_COORD_TO_SF [] = "COORD_TO_SF" |
| constexpr char | COMMAND_EXTRACT_VERTICES [] = "EXTRACT_VERTICES" |
| constexpr char | COMMAND_ICP [] = "ICP" |
| constexpr char | COMMAND_ICP_REFERENCE_IS_FIRST [] = "REFERENCE_IS_FIRST" |
| constexpr char | COMMAND_ICP_MIN_ERROR_DIIF [] = "MIN_ERROR_DIFF" |
| constexpr char | COMMAND_ICP_ITERATION_COUNT [] = "ITER" |
| constexpr char | COMMAND_ICP_OVERLAP [] = "OVERLAP" |
| constexpr char | COMMAND_ICP_ADJUST_SCALE [] = "ADJUST_SCALE" |
| constexpr char | COMMAND_ICP_RANDOM_SAMPLING_LIMIT [] = "RANDOM_SAMPLING_LIMIT" |
| constexpr char | COMMAND_ICP_ENABLE_FARTHEST_REMOVAL [] = "FARTHEST_REMOVAL" |
| constexpr char | COMMAND_ICP_USE_MODEL_SF_AS_WEIGHT [] = "MODEL_SF_AS_WEIGHTS" |
| constexpr char | COMMAND_ICP_USE_DATA_SF_AS_WEIGHT [] = "DATA_SF_AS_WEIGHTS" |
| constexpr char | COMMAND_ICP_ROT [] = "ROT" |
| constexpr char | COMMAND_PLY_EXPORT_FORMAT [] = "PLY_EXPORT_FMT" |
| constexpr char | COMMAND_COMPUTE_GRIDDED_NORMALS [] = "COMPUTE_NORMALS" |
| constexpr char | COMMAND_INVERT_NORMALS [] = "INVERT_NORMALS" |
| constexpr char | COMMAND_COMPUTE_OCTREE_NORMALS [] = "OCTREE_NORMALS" |
| constexpr char | COMMAND_CONVERT_NORMALS_TO_DIP [] = "NORMALS_TO_DIP" |
| constexpr char | COMMAND_CONVERT_NORMALS_TO_SFS [] = "NORMALS_TO_SFS" |
| constexpr char | COMMAND_CLEAR_NORMALS [] = "CLEAR_NORMALS" |
| constexpr char | COMMAND_MESH_VOLUME [] = "MESH_VOLUME" |
| constexpr char | COMMAND_VOLUME_TO_FILE [] = "TO_FILE" |
| constexpr char | COMMAND_SAVE_CLOUDS [] = "SAVE_CLOUDS" |
| constexpr char | COMMAND_SAVE_MESHES [] = "SAVE_MESHES" |
| constexpr char | COMMAND_AUTO_SAVE [] = "AUTO_SAVE" |
| constexpr char | COMMAND_LOG_FILE [] = "LOG_FILE" |
| constexpr char | COMMAND_CLEAR [] = "CLEAR" |
| constexpr char | COMMAND_CLEAR_CLOUDS [] = "CLEAR_CLOUDS" |
| constexpr char | COMMAND_POP_CLOUDS [] = "POP_CLOUDS" |
| constexpr char | COMMAND_CLEAR_MESHES [] = "CLEAR_MESHES" |
| constexpr char | COMMAND_POP_MESHES [] = "POP_MESHES" |
| constexpr char | COMMAND_NO_TIMESTAMP [] = "NO_TIMESTAMP" |
| constexpr char | COMMAND_MOMENT [] = "MOMENT" |
| constexpr char | COMMAND_FEATURE [] = "FEATURE" |
| constexpr char | COMMAND_RGB_CONVERT_TO_SF [] = "RGB_CONVERT_TO_SF" |
| constexpr char | COMMAND_FLIP_TRIANGLES [] = "FLIP_TRI" |
| constexpr char | COMMAND_DEBUG [] = "DEBUG" |
| constexpr char | COMMAND_VERBOSITY [] = "VERBOSITY" |
| constexpr char | COMMAND_FILTER [] = "FILTER" |
| constexpr char | COMMAND_MAX_THREAD_COUNT [] = "MAX_TCOUNT" |
| constexpr char | OPTION_ALL_AT_ONCE [] = "ALL_AT_ONCE" |
| constexpr char | OPTION_ON [] = "ON" |
| constexpr char | OPTION_OFF [] = "OFF" |
| constexpr char | OPTION_FILE_NAMES [] = "FILE" |
| constexpr char | OPTION_ORIENT [] = "ORIENT" |
| constexpr char | OPTION_MODEL [] = "MODEL" |
| constexpr char | OPTION_FIRST [] = "FIRST" |
| constexpr char | OPTION_LAST [] = "LAST" |
| constexpr char | OPTION_ALL [] = "ALL" |
| constexpr char | OPTION_REGEX [] = "REGEX" |
| constexpr char | OPTION_NOT [] = "NOT" |
| constexpr char | OPTION_CLOUD [] = "CLOUD" |
| constexpr char | OPTION_MESH [] = "MESH" |
| constexpr char | OPTION_PERCENT [] = "PERCENT" |
| constexpr char | OPTION_NUMBER_OF_POINTS [] = "NUMBER_OF_POINTS" |
| constexpr char | OPTION_FORCE [] = "FORCE" |
| constexpr char | OPTION_USE_ACTIVE_SF [] = "USE_ACTIVE_SF" |
| constexpr char | OPTION_SF [] = "SF" |
| constexpr char | OPTION_RGB [] = "RGB" |
| constexpr char | OPTION_GAUSSIAN [] = "GAUSSIAN" |
| constexpr char | OPTION_BILATERAL [] = "BILATERAL" |
| constexpr char | OPTION_MEAN [] = "MEAN" |
| constexpr char | OPTION_MEDIAN [] = "MEDIAN" |
| constexpr char | OPTION_SIGMA [] = "SIGMA" |
| constexpr char | OPTION_SIGMA_SF [] = "SIGMA_SF" |
| constexpr char | OPTION_BURNT_COLOR_THRESHOLD [] = "BURNT_COLOR_THRESHOLD" |
| constexpr char | OPTION_BLEND_GRAYSCALE [] = "BLEND_GRAYSCALE" |
| enum USE_SPECIAL_SF_VALUE |
| cloudViewer::ScalarField* GetScalarField | ( | ccPointCloud * | cloud, |
| int | sfIndex, | ||
| const QString & | sfName, | ||
| bool | minusOneMeansCurrent = false |
||
| ) |
References cloudViewer::PointCloudTpl< T >::getScalarField(), and GetScalarFieldIndex().
| int GetScalarFieldIndex | ( | ccPointCloud * | cloud, |
| int | sfIndex, | ||
| const QString & | sfName, | ||
| bool | minusOneMeansCurrent = false |
||
| ) |
References cloudViewer::PointCloudTpl< T >::getCurrentInScalarFieldIndex(), ccObject::getName(), cloudViewer::PointCloudTpl< T >::getNumberOfScalarFields(), cloudViewer::PointCloudTpl< T >::getScalarFieldIndexByName(), ccPointCloud::hasScalarFields(), and CVLog::Warning().
Referenced by GetScalarField().
|
static |
|
static |
References ccCommandLineInterface::arguments(), COMMAND_DENSITY_TYPE, cloudViewer::GeometricalAnalysisTools::DENSITY_2D, cloudViewer::GeometricalAnalysisTools::DENSITY_3D, cloudViewer::GeometricalAnalysisTools::DENSITY_KNN, and ccCommandLineInterface::error().
Referenced by CommandApproxDensity::process(), and CommandDensity::process().
|
constexpr |
Referenced by CommandApplyTransformation::process().
|
constexpr |
Referenced by CommandApproxDensity::process().
|
constexpr |
Referenced by CommandChangeCloudOutputFormat::process().
|
constexpr |
Referenced by CommandChangeCloudOutputFormat::process().
|
constexpr |
Referenced by CommandChangeCloudOutputFormat::process().
|
constexpr |
Referenced by CommandChangeCloudOutputFormat::process().
|
constexpr |
Referenced by CommandAutoSave::process().
|
constexpr |
|
constexpr |
Referenced by CommandMatchBestFitPlane::process().
|
constexpr |
Referenced by CommandMatchBestFitPlane::process().
|
constexpr |
|
constexpr |
Referenced by CommandDist::process().
|
constexpr |
Referenced by CommandDist::process().
|
constexpr |
|
constexpr |
Referenced by CommandDist::process().
|
constexpr |
Referenced by CommandDist::process().
|
constexpr |
Referenced by CommandDist::process().
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Referenced by CommandClearNormals::process().
|
constexpr |
|
constexpr |
|
constexpr |
Referenced by CommandColorBanding::process().
|
constexpr |
|
constexpr |
Referenced by CommandOctreeNormal::process().
|
constexpr |
Referenced by CommandConvertNormalsToDipAndDipDir::process().
|
constexpr |
Referenced by CommandConvertNormalsToSFs::process().
|
constexpr |
Referenced by CommandCoordToSF::process().
|
constexpr |
Referenced by CommandCrop::process().
|
constexpr |
Referenced by CommandCrop2D::process().
|
constexpr |
Referenced by CommandCrop::process(), and CommandCrop2D::process().
|
constexpr |
Referenced by CommandCurvature::process().
|
constexpr |
|
constexpr |
|
constexpr |
Referenced by CommandDelaunayTri::process().
|
constexpr |
Referenced by CommandDelaunayTri::process().
|
constexpr |
Referenced by CommandDelaunayTri::process().
|
constexpr |
Referenced by CommandDensity::process().
|
constexpr |
Referenced by CommandApproxDensity::process(), CommandDensity::process(), and ReadDensityType().
|
constexpr |
Referenced by CommandDropGlobalShift::process().
|
constexpr |
|
constexpr |
spatial step / octree level)
Referenced by CommandExtractCCs::process().
|
constexpr |
|
constexpr |
Referenced by CommandFeature::process().
|
constexpr |
|
constexpr |
Referenced by CommandFilterBySFValue::process().
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Referenced by CommandICP::process().
|
constexpr |
Referenced by CommandICP::process().
|
constexpr |
Referenced by CommandICP::process().
|
constexpr |
Referenced by CommandICP::process().
|
constexpr |
Referenced by CommandICP::process().
|
constexpr |
Referenced by CommandICP::process().
|
constexpr |
Referenced by CommandICP::process().
|
constexpr |
Referenced by CommandICP::process().
|
constexpr |
Referenced by CommandICP::process().
|
constexpr |
Referenced by CommandICP::process().
|
constexpr |
Referenced by CommandInvertNormal::process().
|
constexpr |
Referenced by CommandLogFile::process().
|
constexpr |
|
constexpr |
Referenced by CommandDist::process(), and CommandICP::process().
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Referenced by CommandMoment::process().
|
constexpr |
|
constexpr |
Referenced by CommandLoad::process(), CommandClearNormals::process(), CommandOctreeNormal::process(), CommandInvertNormal::process(), CommandConvertNormalsToDipAndDipDir::process(), CommandConvertNormalsToSFs::process(), CommandSubsample::process(), CommandExtractCCs::process(), CommandCurvature::process(), CommandApproxDensity::process(), CommandDensity::process(), CommandSFGradient::process(), CommandRoughness::process(), CommandApplyTransformation::process(), CommandDropGlobalShift::process(), CommandSFColorScale::process(), CommandSFConvertToRGB::process(), CommandFilterBySFValue::process(), CommandSetActiveSF::process(), CommandMoment::process(), and CommandFeature::process().
|
constexpr |
Referenced by CommandLoad::process().
|
constexpr |
Referenced by CommandOrientNormalsMST::process().
|
constexpr |
Referenced by CommandChangePLYExportFormat::process().
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Referenced by CommandRemoveSF::process().
|
constexpr |
Referenced by CommandSFRename::process().
|
constexpr |
|
constexpr |
Referenced by CommandRoughness::process().
|
constexpr |
Referenced by CommandRoughness::process().
|
constexpr |
Referenced by CommandSampleMesh::process().
|
constexpr |
|
constexpr |
|
constexpr |
Referenced by CommandSubsample::process(), and CommandSetActiveSF::process().
|
constexpr |
Referenced by CommandSFArithmetic::process().
|
constexpr |
Referenced by CommandSFColorScale::process().
|
constexpr |
Referenced by CommandSFConvertToRGB::process().
|
constexpr |
Referenced by CommandSFGradient::process().
|
constexpr |
Referenced by CommandSFOperation::process(), and CommandSFRename::process().
|
constexpr |
Referenced by CommandSORFilter::process().
|
constexpr |
Referenced by CommandStatTest::process().
|
constexpr |
Referenced by CommandSubsample::process().
|
constexpr |
|
constexpr |
Referenced by CommandComputeMeshVolume::process().
|
constexpr |
|
constexpr |
Referenced by CommandSaveClouds::process(), and CommandSaveMeshes::process().
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Referenced by CommandSaveClouds::process(), and CommandSaveMeshes::process().
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Referenced by CommandOctreeNormal::process().
|
constexpr |
|
constexpr |
|
constexpr |
Referenced by CommandAutoSave::process().
|
constexpr |
Referenced by CommandAutoSave::process().
|
constexpr |
Referenced by CommandOctreeNormal::process().
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Referenced by CommandSubsample::process().