 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
18 Q_PLUGIN_METADATA(IID
"ecvcorp.cloudviewer.plugin.qVoxFall" FILE
22 explicit qVoxFall(QObject *parent =
nullptr);
27 QList<QAction *> getActions()
override;
static bool Init_seg(const unsigned min_nn1, const float regStrength1, const float PR_DECIMATE_RES1, ecvMainAppInterface *app, QProgressDialog *progressDlg)
Definition: TreeIso.cpp:835
int addScalarField(const char *uniqueName) override
Creates a new scalar field and registers it.
Definition: ecvPointCloud.cpp:4210
Eigen::Matrix< Index, Eigen::Dynamic, Eigen::Dynamic > Matrixi
Definition: knncpp.h:34
void max_col(std::vector< std::vector< T >> &arr, std::vector< T > &max_vals)
Definition: TreeIso.cpp:1464
static bool Intermediate_seg_pcd(ccPointCloud *pc, const unsigned PR_MIN_NN2, const float PR_REG_STRENGTH2, const float PR_DECIMATE_RES2, const float PR_MAX_GAP, QProgressDialog *progressDlg=nullptr)
Definition: TreeIso.cpp:143
virtual QString getDescription() const override
Returns long name/description (for tooltip, etc.)
Definition: ecvDefaultPluginInterface.cpp:104
virtual QString getName() const override
Returns (short) name (for menu entry, etc.)
Definition: ecvDefaultPluginInterface.cpp:100
void get_subset(std::vector< T1 > &arr, std::vector< T2 > &indices, std::vector< T1 > &arr_sub)
Definition: TreeIso.cpp:1155
qTreeIso command line processor
Definition: qTreeIsoCommands.h:59
virtual void dispToConsole(QString message, ConsoleMessageLevel level=STD_CONSOLE_MESSAGE)=0
T median_col(std::vector< T > &arr)
Definition: TreeIso.cpp:1437
Type x
Definition: CVGeom.h:137
Definition: qVoxFall.h:15
virtual void computeMinAndMax()
Determines the min and max values.
Definition: ScalarField.h:123
ccTreeIsoDlg(QWidget *parent=nullptr)
Default constructor.
Definition: ccTreeIsoDlg.cpp:13
static bool Final_seg(const unsigned PR_MIN_NN3, const float PR_REL_HEIGHT_LENGTH_RATIO, const float PR_VERTICAL_WEIGHT, ecvMainAppInterface *app, QProgressDialog *progressDlg)
Definition: TreeIso.cpp:911
static auto Since(std::chrono::time_point< clock_t, duration_t > const &start)
Definition: TreeIso.cpp:54
ScalarType & getValue(std::size_t index)
Definition: ScalarField.h:92
void unique_index_by_rows(std::vector< std::vector< T >> &arr, std::vector< size_t > &ia, std::vector< size_t > &ic)
Definition: TreeIso.cpp:1601
virtual QMainWindow * getMainWindow()=0
Returns main window.
bool isA(CV_CLASS_ENUM type) const
Definition: ecvObject.h:131
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
@ POINT_CLOUD
Definition: CVTypes.h:104
const CCVector3 * getPoint(unsigned index) const override
Definition: PointCloudTpl.h:143
void final_segs(const Parameters ¶meters, QWidget *parent=nullptr)
Definition: qTreeIso.cpp:163
unsigned size() const override
Definition: PointCloudTpl.h:38
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
void sort_indexes_by_row(std::vector< std::vector< T >> &v, std::vector< size_t > &idx, std::vector< std::vector< T >> &v_sorted)
Definition: TreeIso.cpp:1531
A simple scalar field (to be associated to a point cloud)
Definition: ScalarField.h:25
int getScalarFieldIndexByName(const char *name) const
Returns the index of a scalar field represented by its name.
Definition: PointCloudTpl.h:375
static const char FinalSegsSFName[]
Definition: TreeIso.cpp:49
void unique_group(std::vector< T > &arr, std::vector< std::vector< T >> &u_group, std::vector< T > &arr_unq, std::vector< T > &ui)
Definition: TreeIso.cpp:1034
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
void doAction()
Slot called when associated ation is triggered.
Definition: qTreeIso.cpp:70
void setCurrentDisplayedScalarField(int index)
Sets the currently displayed scalar field.
Definition: ecvPointCloud.cpp:3227
void sort_indexes(std::vector< ValueType > &v, std::vector< IndexType > &idx, std::vector< ValueType > &v_sorted)
Definition: TreeIso.cpp:1576
T mean_col(std::vector< T > &arr)
Definition: TreeIso.cpp:1423
ScalarField * getScalarField(int index) const
Returns a pointer to a specific scalar field.
Definition: PointCloudTpl.h:354
void setThreads(const unsigned int threads)
Definition: knncpp.h:962
void setBucketSize(const Index bucketSize)
Definition: knncpp.h:933
core::Tensor result
Definition: VtkUtils.cpp:76
float
Definition: my_point_types.h:154
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
void fill(ScalarType fillValue=0)
Fills the array with a particular value.
Definition: ScalarField.h:77
Dialog for qTreeIso plugin.
Definition: ccTreeIsoDlg.h:18
int size
Definition: FileIOFactory.cpp:130
T mode_col(std::vector< T > &arr)
Definition: TreeIso.cpp:1453
normal_z y
Definition: my_point_types.h:168
static bool Intermediate_seg(const unsigned PR_MIN_NN2, const float PR_REG_STRENGTH2, const float PR_DECIMATE_RES2, const float PR_MAX_GAP, ecvMainAppInterface *app, QProgressDialog *progressDlg)
Definition: TreeIso.cpp:871
Main application interface (for plugins)
Definition: ecvMainAppInterface.h:24
QSharedPointer< Command > Shared
Shared type.
Definition: ecvCommandLineInterface.h:132
virtual void redrawDisplay(bool forceRedraw=true, bool only2D=false)
Redraws associated display.
Definition: ecvHObject.cpp:1734
@ ERR_CONSOLE_MESSAGE
Definition: ecvMainAppInterface.h:119
Definition: sfEditDlg.h:16
void min_col(std::vector< std::vector< T >> &arr, std::vector< T > &min_vals)
Definition: TreeIso.cpp:1400
void decimate_vec(std::vector< std::vector< T >> &arr, T res, std::vector< std::vector< T >> &vec_dec)
Definition: TreeIso.cpp:1501
float knn_cpp_query_min_d(knncpp::KDTreeMinkowskiX< float, knncpp::EuclideanDistance< float >> &kdtree, Eigen::MatrixXf &query_points, size_t k)
Definition: TreeIso.cpp:983
ecvMainAppInterface * m_app
Main application interface.
Definition: ecvStdPluginInterface.h:85
static bool Final_seg_pcd(ccPointCloud *pc, const unsigned PR_MIN_NN3, const float PR_REL_HEIGHT_LENGTH_RATIO, const float PR_VERTICAL_WEIGHT, QProgressDialog *progressDlg=nullptr)
Definition: TreeIso.cpp:413
std::vector< float > Vec3d
Definition: TreeIso.cpp:41
void knn_cpp_nearest_neighbors(const std::vector< Vec3d > &dataset, size_t k, std::vector< std::vector< uint32_t >> &res_idx, std::vector< Vec3d > &res_dists, unsigned n_thread)
Definition: TreeIso.cpp:995
Eigen::MatrixXd::Index Index
Definition: knncpp.h:26
size_t arg_max_col(std::vector< T > &arr)
Definition: TreeIso.cpp:1393
boost::geometry::model::d2::point_xy< double > point_xy
Definition: TreeIso.cpp:36
MiniVec< float, N > floor(const MiniVec< float, N > &a)
Definition: MiniVec.h:75
a[190]
Definition: essential_matrix_poly.h:19
virtual void showSF(bool state)
Sets active scalarfield visibility.
Definition: ecvDrawableObject.h:108
Type z
Definition: CVGeom.h:137
void knn_cpp_query(knncpp::KDTreeMinkowskiX< float, knncpp::EuclideanDistance< float >> &kdtree, Eigen::MatrixXf &query_points, size_t k, std::vector< std::vector< size_t >> &res_idx, std::vector< Vec3d > &res_dists)
Definition: TreeIso.cpp:957
void colorsHaveChanged()
Definition: ecvPointCloud.h:276
void build()
Definition: knncpp.h:988
Command line interface.
Definition: ecvCommandLineInterface.h:112
void knn_cpp_build(knncpp::KDTreeMinkowskiX< float, knncpp::EuclideanDistance< float >> &kdtree, unsigned n_thread)
Definition: TreeIso.cpp:947
virtual QIcon getIcon() const override
Returns icon.
Definition: ecvDefaultPluginInterface.cpp:108
Standard ECV plugin interface.
Definition: ecvPluginInterface.h:33
boost::geometry::model::multi_point< point_xy > multi_point
Definition: TreeIso.cpp:38
static const char InitSegsSFName[]
Definition: TreeIso.cpp:47
virtual const ccHObject::Container & getSelectedEntities() const =0
Returns currently selected entities ("read only")
bool perform_cut_pursuit(const uint32_t K, const float regStrength, const std::vector< Vec3d > &pc, std::vector< float > &edgeWeight, std::vector< uint32_t > &Eu, std::vector< uint32_t > &Ev, std::vector< uint32_t > &in_component, std::vector< std::vector< uint32_t >> &components)
Definition: TreeIso.cpp:1245
boost::geometry::model::polygon< point_xy > polygon
Definition: TreeIso.cpp:37
constexpr ScalarType NAN_VALUE
NaN as a ScalarType value.
Definition: CVConst.h:76
void perform_cut_pursuit2d(const uint32_t K, const float regStrength, const std::vector< Vec3d > &pc_vec, Vec3d &edgeWeight, std::vector< uint32_t > &Eu, std::vector< uint32_t > &Ev, std::vector< uint32_t > &in_component)
Definition: TreeIso.cpp:1319
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Type y
Definition: CVGeom.h:137
void setValue(std::size_t index, ScalarType value)
Definition: ScalarField.h:96
virtual void updateUI()=0
size_t arg_min_col(std::vector< T > &arr)
Definition: TreeIso.cpp:1386
virtual void refreshAll(bool only2D=false, bool forceRedraw=true)=0
Redraws all GL windows that have the 'refresh' flag on.
void init_segs(const Parameters ¶meters, QWidget *parent=nullptr)
Definition: qTreeIso.cpp:112
virtual bool registerCommand(Command::Shared command)=0
Registers a new command.
static const char IntermedSegsSFName[]
Definition: TreeIso.cpp:48
Standard ECV plugin interface.
Definition: ecvStdPluginInterface.h:31
void intermediate_segs(const Parameters ¶meters, QWidget *parent=nullptr)
Definition: qTreeIso.cpp:136
void query(const Eigen::MatrixBase< Derived > &queryPoints, const size_t knn, Matrixi &indices, Matrix &distances) const
Definition: knncpp.h:1029
boost::geometry::model::multi_polygon< polygon > multi_polygon
Definition: TreeIso.cpp:39
QAction * m_action
Associated action.
Definition: qTreeIso.h:85
static double distance(T *pot1, T *pot2)
Definition: utils.h:111
static bool Init_seg_pcd(ccPointCloud *pc, const unsigned min_nn1, const float regStrength1, const float PR_DECIMATE_RES1, QProgressDialog *progressDlg=nullptr)
Definition: TreeIso.cpp:58
void toTranslatedVector(const ccPointCloud *pc, std::vector< std::vector< T >> &y)
Definition: TreeIso.cpp:1218
void setSorted(const bool sorted)
Definition: knncpp.h:938