Spec-Zone.ru › PointCloudLibrary
SampleConsensusModel1PointPlane задаёт модель для сегментации плоскости в 3D. Подробнее...
#include </__w/1/s/cuda/sample_consensus/include/pcl/cuda/sample_consensus/sac_model_1point_plane.h >
SampleConsensusModel1PointPlane (const PointCloudConstPtr &cloud)
Конструктор базового класса SampleConsensusModel1PointPlane . Подробнее...
void
getSamples (int &iterations, Indices &samples)
Получить 3 случайные точки, не лежащие на одной прямой, в качестве выборочных данных и вернуть их индексы. Подробнее...
bool
computeModelCoefficients (const Indices &samples, Coefficients &model_coefficients)
Проверить, можно ли по заданным индексам выборочных точек построить допустимую модель плоскости, вычислить по этим точкам коэффициенты модели и сохранить их в model_coefficients. Подробнее...
bool
generateModelHypotheses (Hypotheses &h, int max_iterations)
bool
generateModelHypotheses (Hypotheses &h, Samples &s, int max_iterations)
int
selectWithinDistance (const Coefficients &model_coefficients, float threshold, IndicesPtr &inliers, IndicesPtr &inliers_stencil)
Выбрать все точки, соответствующие заданным коэффициентам модели, в качестве внутренних точек. Подробнее...
int
selectWithinDistance (const Hypotheses &h, int idx, float threshold, IndicesPtr &inliers, IndicesPtr &inliers_stencil)
int
selectWithinDistance (Hypotheses &h, int idx, float threshold, IndicesPtr &inliers_stencil, float3 ¢roid)
int
countWithinDistance (const Coefficients &model_coefficients, float threshold)
int
countWithinDistance (const Hypotheses &h, int idx, float threshold)
SampleConsensusModel (const PointCloudConstPtr &cloud)
Конструктор базового класса SampleConsensusModel . Подробнее...
virtual
~SampleConsensusModel ()=default
Деструктор базового класса SampleConsensusModel . Подробнее...
virtual bool
isSampleInlier (IndicesPtr &inliers_stencil, Samples &samples, unsigned int &i)
int
deleteIndices (const IndicesPtr &indices_stencil)
int
deleteIndices (const Hypotheses &h, int idx, IndicesPtr &inliers, const IndicesPtr &inliers_delete)
virtual void
setInputCloud (const PointCloudConstPtr &cloud)
Указать указатель на входной набор данных. Подробнее...
PointCloudConstPtr
getInputCloud () const
Получить указатель на входной набор облака точек. Подробнее...
IndicesPtr
getIndices () const
Получить указатель на используемый вектор индексов. Подробнее...
void
setRadiusLimits (float min_radius, float max_radius)
Задать минимальный и максимальный допустимые пределы радиуса для модели (применимо к моделям, оценивающим радиус) Подробнее...
void
getRadiusLimits (float &min_radius, float &max_radius)
Получить заданные пользователем минимальный и максимальный допустимые пределы радиуса для модели. Подробнее...
shared_ptr< typename Storage< float4 >::type >
getNormals ()
void
setNormals (shared_ptr< typename Storage< float4 >::type > normals)
template<template< typename > class Storage> class pcl::cuda::SampleConsensusModel1PointPlane< Storage > SampleConsensusModel1PointPlane определяет модель для сегментации плоскости в 3D.
Определение в строке 157 файла sac_model_1point_plane.h .
Coefficients template<template< typename > class Storage>
ConstPtr template<template< typename > class Storage>
Hypotheses template<template< typename > class Storage>
Indices template<template< typename > class Storage>
IndicesConstPtr template<template< typename > class Storage>
IndicesPtr template<template< typename > class Storage>
PointCloud template<template< typename > class Storage>
PointCloudConstPtr template<template< typename > class Storage>
PointCloudPtr template<template< typename > class Storage>
Ptr template<template< typename > class Storage>
Samples template<template< typename > class Storage>
SampleConsensusModel1PointPlane() template<template< typename > class Storage>
computeModelCoefficients() template<template< typename > class Storage>
Проверяет, могут ли заданные выборки индексов образовать допустимую модель плоскости, вычисляет коэффициенты модели по этим выборкам и сохраняет их в model_coefficients.
Коэффициенты плоскости: a, b, c, d (ax+by+cz+d=0)
Параметры
samples
индексы точек, выбранных в качестве возможных подходящих кандидатов для создания допустимой модели
model_coefficients
полученные коэффициенты модели
Реализует pcl::cuda::SampleConsensusModel< Storage > .
countWithinDistance() [1/2]
template<template< typename > class Storage>
countWithinDistance() [2/2]
template<template< typename > class Storage>
generateModelHypotheses() [1/2]
template<template< typename > class Storage>
generateModelHypotheses() [2/2]
template<template< typename > class Storage>
getSamples() template<template< typename > class Storage>
Получает 3 случайные неколлинеарные точки в качестве выборки данных и возвращает их индексы.
Параметры
iterations
внутреннее количество итераций, используемое методами SAC
samples
результирующая выборка модели
Примечание
предполагается, что точки уникальны!
Реализует pcl::cuda::SampleConsensusModel< Storage > .
selectWithinDistance() [1/3]
template<template< typename > class Storage>
Выбирает все точки, соответствующие заданным коэффициентам модели, в качестве внутренних точек.
Параметры
model_coefficients
коэффициенты модели плоскости, до которой необходимо вычислить расстояния
threshold
максимально допустимый порог расстояния для определения внутренних точек среди выбросов
inliers
результирующие внутренние точки модели
inliers_stencil
Реализует pcl::cuda::SampleConsensusModel< Storage > .
selectWithinDistance() [2/3]
template<template< typename > class Storage>
selectWithinDistance() [3/3]
template<template< typename > class Storage>
MAX_ITERATIONS_COLLINEAR template<template< typename > class Storage>
Документация этого класса создана на основе следующего файла: