 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
26 const utility::optional<core::Tensor> &map_batch_info_idx_to_point_idx =
37 const utility::optional<core::Tensor> &map_batch_info_idx_to_point_idx =
40 #ifdef BUILD_CUDA_MODULE
41 void ComputeFPFHFeatureCUDA(
49 const utility::optional<core::Tensor> &map_batch_info_idx_to_point_idx =
constexpr T const & value() const &
Definition: Optional.h:465
void ComputeFPFHFeatureCPU(const core::Tensor &points, const core::Tensor &normals, const core::Tensor &indices, const core::Tensor &distance2, const core::Tensor &counts, core::Tensor &fpfhs, const utility::optional< core::Tensor > &mask=utility::nullopt, const utility::optional< core::Tensor > &map_batch_info_idx_to_point_idx=utility::nullopt)
Definition: FeatureImpl.h:112
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
void IndexSet(const std::vector< Tensor > &index_tensors, const Tensor &src_tensor)
Advanced indexing getter.
Definition: Tensor.cpp:936
static Tensor Ones(const SizeVector &shape, Dtype dtype, const Device &device=Device("CPU:0"))
Create a tensor fill with ones.
Definition: Tensor.cpp:412
Dtype GetDtype() const
Definition: Tensor.h:1164
static const std::string path
Definition: Feature.cpp:25
PointCloud To(const core::Device &device, bool copy=false) const
Definition: PointCloud.cpp:112
int64_t GetLength() const
Definition: Tensor.h:1125
void SetPointPositions(const core::Tensor &value)
Set the value of the "positions" attribute. Convenience function.
Definition: PointCloud.h:186
constexpr bool has_value() const noexcept
Definition: Optional.h:440
SizeVector GetShape() const
Definition: Tensor.h:1127
#define ENUM_FPFH_METHOD_DEVICE(METHOD_NAME, MAX_NN, RADIUS, INDICES, DEVICE)
Definition: Feature.cpp:188
core::Tensor & GetPointNormals()
Get the value of the "normals" attribute. Convenience function.
Definition: PointCloud.h:130
bool ReadPointCloud(const std::string &filename, geometry::PointCloud &pointcloud, const cloudViewer::io::ReadPointCloudOption ¶ms)
Definition: PointCloudIO.cpp:72
bool FixedRadiusIndex(utility::optional< double > radius={})
Definition: NearestNeighborSearch.cpp:40
Tensor View(const SizeVector &dst_shape) const
Definition: Tensor.cpp:721
Tensor GetItem(const TensorKey &tk) const
Definition: Tensor.cpp:473
bool KnnIndex()
Definition: NearestNeighborSearch.cpp:23
A point cloud contains a list of 3D points.
Definition: PointCloud.h:82
bool HasPointNormals() const
Definition: PointCloud.h:234
double normals[3]
Definition: TriangleMeshIO.cpp:54
core::Tensor result
Definition: VtkUtils.cpp:76
void EstimateNormals(const utility::optional< int > max_nn=30, const utility::optional< double > radius=utility::nullopt)
Function to estimate point normals. If the point cloud normals exist, the estimated normals are orien...
Definition: PointCloud.cpp:619
#define CUDA_CALL(cuda_function,...)
Definition: CUDAUtils.h:49
int size
Definition: FileIOFactory.cpp:130
data::BunnyMesh pointcloud_ply
Definition: Feature.cpp:24
core::Tensor ComputeFPFHFeature(const geometry::PointCloud &input, const utility::optional< int > max_nn, const utility::optional< double > radius, const utility::optional< core::Tensor > &indices)
Definition: Feature.cpp:23
A Class for nearest neighbor search.
Definition: NearestNeighborSearch.h:26
static Tensor Arange(const Scalar start, const Scalar stop, const Scalar step=1, const Dtype dtype=core::Int64, const Device &device=core::Device("CPU:0"))
Create a 1D tensor with evenly spaced values in the given interval.
Definition: Tensor.cpp:436
int EstimateMaxThreads()
Estimate the maximum number of threads to be used in a parallel region.
Definition: Parallel.cpp:31
static Tensor Zeros(const SizeVector &shape, Dtype dtype, const Device &device=Device("CPU:0"))
Create a tensor fill with zeros.
Definition: Tensor.cpp:406
const Dtype Int32
Definition: Dtype.cpp:46
core::Tensor CorrespondencesFromFeatures(const core::Tensor &source_features, const core::Tensor &target_features, bool mutual_filter, float mutual_consistent_ratio)
Function to find correspondences via 1-nearest neighbor feature matching. Target is used to construct...
Definition: Feature.cpp:280
#define LogDebug(...)
Definition: Logging.h:90
static TensorKey Index(int64_t index)
Definition: TensorKey.cpp:134
KDTree search parameters for pure radius search.
Definition: ecvKDTreeSearchParam.h:63
void To(const core::Tensor &src, core::Tensor &dst, double scale, double offset)
Definition: Image.cpp:17
std::pair< Tensor, Tensor > KnnSearch(const Tensor &query_points, int knn)
Definition: NearestNeighborSearch.cpp:79
void LegacyComputeFPFHFeature(benchmark::State &state, utility::optional< int > max_nn, utility::optional< double > radius, utility::optional< double > ratio_indices)
Definition: Feature.cpp:27
Tensor IndexGet(const std::vector< Tensor > &index_tensors) const
Advanced indexing getter. This will always allocate a new Tensor.
Definition: Tensor.cpp:905
const Dtype Bool
Definition: Dtype.cpp:52
Tensor Append(const Tensor &self, const Tensor &other, const utility::optional< int64_t > &axis)
Appends the two tensors, along the given axis into a new tensor. Both the tensors must have same data...
Definition: TensorFunction.cpp:118
KDTree search parameters for hybrid KNN and radius search.
Definition: ecvKDTreeSearchParam.h:79
std::shared_ptr< Feature > ComputeFPFHFeature(const ccPointCloud &input, const geometry::KDTreeSearchParam &search_param=geometry::KDTreeSearchParamKNN(), const utility::optional< std::vector< size_t >> &indices=utility::nullopt)
Definition: ecvFeature.cpp:143
Device GetDevice() const override
Definition: Tensor.cpp:1435
When CUDA is not enabled, this is a dummy class.
Definition: CUDAUtils.h:214
int points
Definition: FileIOFactory.cpp:144
static const Dtype Int64
Definition: Dtype.h:29
Definition: SizeVector.h:70
Definition: Optional.h:44
#define LogError(...)
Definition: Logging.h:60
bool IsCPU() const
Definition: Device.h:95
PointCloud UniformDownSample(size_t every_k_points) const
Downsamples a point cloud by selecting every kth index point and its attributes.
Definition: PointCloud.cpp:345
constexpr nullopt_t nullopt
Definition: Optional.h:136
std::string GetPath() const
Path to the BunnyMesh.ply file.
Definition: Dataset.h:239
#define LogWarning(...)
Definition: Logging.h:72
Tensor NonZero() const
Definition: Tensor.cpp:1755
static Tensor Full(const SizeVector &shape, T fill_value, Dtype dtype, const Device &device=Device("CPU:0"))
Create a tensor fill with specified value.
Definition: Tensor.h:253
core::Tensor & GetPointPositions()
Get the value of the "positions" attribute. Convenience function.
Definition: PointCloud.h:124
std::tuple< Tensor, Tensor, Tensor > FixedRadiusSearch(const Tensor &query_points, double radius, bool sort=true)
Definition: NearestNeighborSearch.cpp:98
void ComputeFPFHFeature(const core::Tensor &points, const core::Tensor &normals, const core::Tensor &indices, const core::Tensor &distance2, const core::Tensor &counts, core::Tensor &fpfhs, const utility::optional< core::Tensor > &mask, const utility::optional< core::Tensor > &map_info_idx_to_point_idx)
Definition: Feature.cpp:18
Data class for BunnyMesh contains the BunnyMesh.ply from the Stanford 3D Scanning Repository.
Definition: Dataset.h:234
Tensor Eq(const Tensor &value) const
Element-wise equals-to of tensors, returning a new boolean tensor.
Definition: Tensor.cpp:1682
bool HybridIndex(utility::optional< double > radius={})
Definition: NearestNeighborSearch.cpp:60
void emplace(Args &&... args)
Definition: Optional.h:410
#define AssertTensorShape(tensor,...)
Definition: TensorCheck.h:61
void Synchronize()
Definition: CUDAUtils.cpp:59
BENCHMARK_CAPTURE(LegacyComputeFPFHFeature, Legacy Hybrid[0.01|100], 100, 0.01, utility::nullopt) -> Unit(benchmark::kMillisecond)
#define AssertTensorDtypes(tensor,...)
Definition: TensorCheck.h:33
std::shared_ptr< ccPointCloud > CreatePointCloudFromFile(const std::string &filename, const std::string &format, bool print_progress)
Definition: PointCloudIO.cpp:84
const Dtype Int64
Definition: Dtype.cpp:47
Tensor To(Dtype dtype, bool copy=false) const
Definition: Tensor.cpp:739
std::tuple< Tensor, Tensor, Tensor > HybridSearch(const Tensor &query_points, const double radius, const int max_knn) const
Definition: NearestNeighborSearch.cpp:130
KDTree search parameters for pure KNN search.
Definition: ecvKDTreeSearchParam.h:46