ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
Toggle main menu visibility
Loading...
Searching...
No Matches
noise_estimate.hpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2025 Povl Filip Sonne-Frederiksen
2
//
3
// SPDX-License-Identifier: GPL-3.0-or-later
4
5
#pragma once
6
#include "reusex/types/point_types.hpp"
7
8
#include <cstdint>
9
10
namespace
reusex::geometry
{
11
17
struct
NoiseEstimateOptions
{
19
std::size_t
seed_count
= 1000;
21
int
k_neighbors
= 20;
23
unsigned
seed
= 42;
24
};
25
27
struct
NoiseEstimate
{
30
float
sigma
= 0.0F;
32
float
density
= 0.0F;
34
std::size_t
samples
= 0;
35
};
36
57
auto
estimate_cloud_noise
(
CloudConstPtr
cloud,
CloudNConstPtr
normals,
58
const
NoiseEstimateOptions
&options =
59
NoiseEstimateOptions
{}) -> NoiseEstimate;
60
61
}
// namespace reusex::geometry
reusex::geometry
Definition
visual_observer.hpp:33
reusex::geometry::estimate_cloud_noise
auto estimate_cloud_noise(CloudConstPtr cloud, CloudNConstPtr normals, const NoiseEstimateOptions &options=NoiseEstimateOptions{}) -> NoiseEstimate
Estimate per-cloud sensor noise (sigma) and point density from local PCA patches.
reusex::CloudConstPtr
typename Cloud::ConstPtr CloudConstPtr
Definition
point_types.hpp:29
reusex::CloudNConstPtr
typename CloudN::ConstPtr CloudNConstPtr
Definition
point_types.hpp:33
reusex::geometry::NoiseEstimateOptions
Options controlling the deterministic local-PCA cloud-noise estimator.
Definition
noise_estimate.hpp:17
reusex::geometry::NoiseEstimateOptions::seed_count
std::size_t seed_count
Number of random seed points at which a local plane is fit.
Definition
noise_estimate.hpp:19
reusex::geometry::NoiseEstimateOptions::seed
unsigned seed
PRNG seed for deterministic seed-point sampling (STANDARDS §6).
Definition
noise_estimate.hpp:23
reusex::geometry::NoiseEstimateOptions::k_neighbors
int k_neighbors
Number of nearest neighbours per seed used for the local PCA fit.
Definition
noise_estimate.hpp:21
reusex::geometry::NoiseEstimate
Result of estimate_cloud_noise.
Definition
noise_estimate.hpp:27
reusex::geometry::NoiseEstimate::samples
std::size_t samples
Number of seed neighbourhoods that contributed a valid residual.
Definition
noise_estimate.hpp:34
reusex::geometry::NoiseEstimate::density
float density
Median nearest-neighbour spacing [m] — a robust point-density proxy.
Definition
noise_estimate.hpp:32
reusex::geometry::NoiseEstimate::sigma
float sigma
Estimated sensor noise standard deviation [m], derived from the median absolute point-to-plane residu...
Definition
noise_estimate.hpp:30
libs
reusex
include
segmentation
noise_estimate.hpp
Generated by
1.17.0