Expand description
SpatialRust meta crate.
Re-exports the stable public API surface. Application code should depend on this crate unless it needs direct access to a specific sub-crate.
Re-exports§
pub use spatialrust_core as core;pub use spatialrust_features as features;pub use spatialrust_filtering as filtering;pub use spatialrust_gpu as gpu;pub use spatialrust_io as io;pub use spatialrust_math as math;pub use spatialrust_metrics as metrics;pub use spatialrust_pipeline as pipeline;pub use spatialrust_registration as registration;pub use spatialrust_search as search;pub use spatialrust_segmentation as segmentation;pub use spatialrust_transform as transform;pub use spatialrust_voxelize as voxelize;
Structs§
- Aabb
- Axis-aligned bounding box used by
CropBox. - Boundary
Config - Configuration for
BoundaryDetector. - Boundary
Detector - Tangent-plane boundary point detector. The input cloud must carry normals.
- Boundary
Result - Result of boundary detection.
- Brute
Force Index - Reference index using brute-force search for correctness tests.
- Cauchy
Kernel - Cauchy robust kernel.
- Cloud
Distances - A bundle of directed and symmetric cloud-to-cloud distance statistics.
- Copc
Bounds - Axis-aligned bounds for COPC spatial queries.
- Copc
File Info - Metadata exposed from a COPC header without loading point data.
- Copc
Query - Spatial query parameters for partial COPC reads.
- Copc
Writer Params - Cov3
- 3x3 symmetric covariance matrix.
- Covariance
Accumulator3 - Accumulates mean and covariance for 3D points.
- CpuDevice
- Default CPU device.
- CropBox
- Keeps (or, when
invertis set, drops) points inside an axis-aligned box. - Cylinder
Model - Cylinder model: all surface points are
radiusfrom the axis line. - Dbscan
Config - Configuration for DBSCAN density-based clustering.
- Dbscan
Result - Result of DBSCAN clustering.
- Dbscan
Segmenter - DBSCAN density-based segmenter.
- Euclidean
Cluster Config - Configuration for Euclidean clustering.
- Euclidean
Cluster Extractor - Euclidean region-growing cluster extractor.
- Euclidean
Cluster Result - Result of Euclidean clustering.
- Farthest
Point Sampling - Farthest Point Sampling downsampler.
- Farthest
Point Sampling Config - Configuration for
FarthestPointSampling. - Fpfh
Ransac Config - Configuration for
FpfhRansacRegistration. - Fpfh
Ransac Registration - FPFH + RANSAC global registration.
- FrameId
- Coordinate frame identifier.
- Gicp
Config - Configuration for Generalized ICP (plane-to-plane).
- Gicp
Registration - Generalized ICP registration.
- GpuNormal
Estimator - GPU-accelerated normal estimator.
- Ground
Config - Configuration for
GroundSegmenter. - Ground
Segmentation - Result of ground segmentation.
- Ground
Segmenter - Grid-based ground segmenter.
- Http
Byte Source - Random-access COPC byte source backed by HTTP range requests.
- Huber
Kernel - Huber robust kernel.
- IcpConfig
- Configuration for point-to-point ICP.
- IcpRegistration
- Point-to-point ICP registration.
- Isometry3
- Proper rigid transform: rotation + translation without scale/shear.
- IssKeypoint
Config - Configuration for
IssKeypointDetector. - IssKeypoint
Detector - Intrinsic Shape Signatures keypoint detector.
- IssKeypoint
Result - Result of ISS keypoint detection.
- KdTree
- Cache-friendly KD-tree for 3D point clouds.
- KdTree
Neighborhood - KD-tree backed neighborhood provider.
- Mat3
- 3x3 matrix stored in row-major order.
- Mat4
- 4x4 matrix stored in row-major order.
- MlsConfig
- Configuration for
MlsSmoothing. - MlsSmoothing
- Moving Least Squares smoothing filter.
- Multi
Plane Config - Configuration for
MultiPlaneSegmenter. - Multi
Plane Segmentation - Result of multi-plane segmentation.
- Multi
Plane Segmenter - Sequential RANSAC multi-plane segmenter.
- MvpIcp
Config - Configuration for optional ICP in the MVP pipeline.
- MvpPipeline
- Builder-style MVP pipeline runner.
- MvpPipeline
Config - Full configuration for the MVP pipeline.
- MvpPipeline
Result - Output of a completed MVP pipeline run.
- NdtConfig
- Configuration for NDT (Normal Distributions Transform) registration.
- NdtRegistration
- NDT registration (point-to-distribution).
- Neighbor
- One neighbor search result.
- Neighbor
Graph - A directed neighborhood graph over a point cloud.
- Normal
Estimation Config - Configuration for covariance-based normal estimation.
- Normal
Estimation Result - Result metadata for normal estimation.
- Normal
Estimator - Covariance-based normal estimator.
- Normal
Orientation Config - Configuration for
orient_normals_consistent. - Obb
- Oriented bounding box recovered from the principal axes of a cloud.
- Occupancy
Grid - A dense 3D grid in row-major
(z, y, x)order. - Pass
Through - Keeps (or drops) points whose value in a named field falls within a range.
- Plane
Model - Plane model in Hessian form:
normal · p + d = 0with unit normal. - Point
Cloud - Schema-aware columnar point cloud stored on a device.
- Point
Cloud Builder - Builds point clouds field-by-field.
- Point
Field - One column in a point cloud schema.
- Point
Schema - Schema describing the columns of a point cloud.
- Point
ToPlane Icp - Point-to-plane ICP registration.
- Point
ToPlane IcpConfig - Configuration for point-to-plane ICP.
- Pose3
- Pose with optional translation covariance.
- Primitive
Segmentation - Result of fitting a primitive, partitioning the cloud into inliers/outliers.
- Quat
- Unit quaternion representing a 3D rotation.
- Radius
Outlier Config - Configuration for
RadiusOutlierRemoval. - Radius
Outlier Removal - Radius Outlier Removal (ROR).
- Range
Image - A dense range image in row-major order (
row * width + col). - Range
Image Config - Configuration for
range_image. - Ransac
Cylinder Segmenter - RANSAC cylinder segmenter. The input cloud must carry normals.
- Ransac
Plane Config - Configuration for RANSAC plane segmentation.
- Ransac
Plane Segmentation - Result of RANSAC plane segmentation.
- Ransac
Plane Segmenter - RANSAC-based dominant plane segmenter.
- Ransac
Primitive Config - Shared RANSAC controls for primitive fitting.
- Ransac
Sphere Segmenter - RANSAC sphere segmenter.
- Region
Growing Config - Configuration for normal-based region growing segmentation.
- Region
Growing Result - Result of region growing segmentation.
- Region
Growing Segmenter - Normal-based region growing segmenter.
- Registration
Result - Result of a registration run.
- Spatial
Metadata - Spatial metadata attached to point clouds and maps.
- Sphere
Model - Sphere model: all surface points are
radiusfromcenter. - Standard
Schemas - Standard schemas used by typed views and IO adapters.
- Statistical
Outlier Config - Configuration for
StatisticalOutlierRemoval. - Statistical
Outlier Removal - Statistical Outlier Removal (SOR).
- Symmetric
Eigen3 - Result of a symmetric 3x3 eigendecomposition.
- Timestamp
- Timestamp in nanoseconds since an arbitrary epoch.
- Transform3
- Rigid transform represented as a 4x4 matrix.
- Transform
Aabb - Axis-aligned bounding box.
- Tukey
Kernel - Tukey biweight robust kernel.
- Vec2
- 2D vector.
- Vec3
- 3D vector.
- Vec4
- 4D vector.
- Voxel
Grid Config - Configuration for
voxelize. - Voxel
Grid Downsample - Voxel-grid downsampling filter.
- Voxel
Grid Downsample Config - Configuration for voxel-grid downsampling.
Enums§
- Attribute
Aggregation - Attribute aggregation policy for non-position fields.
- DType
- Supported scalar dtypes for point fields.
- Device
Kind - Device kind supported by SpatialRust execution.
- Execution
Policy - Execution policy for spatial algorithms.
- Field
Semantic - Semantic meaning of a point field.
- IoError
- IO-specific error type for SpatialRust.
- LasWrite
Format - Output encoding for LAS writers.
- Least
Squares Result - Result of a small dense linear solve.
- MvpRegistration
Method - Registration backend used by the MVP pipeline’s optional alignment step.
- PcdWrite
Format - Output encoding for PCD writers.
- PlyWrite
Format - Output encoding for PLY writers.
- Point
Buffer - Typed column buffer for one point field.
- Point
Cloud File Format - Supported point cloud file formats detected from file extensions.
- Spatial
Error - Core error type for SpatialRust.
- UpAxis
- Which axis points “up” (its minimum defines local ground height).
- Voxel
Aggregation Mode - Voxel aggregation strategy.
- Voxel
Fill - How a voxel’s value is filled from the points that fall in it.
Constants§
- FPFH_
DESCRIPTOR_ LEN - Length of an FPFH descriptor (33: three 11-bin angular histograms).
Traits§
- Device
- Minimal device abstraction defined in core and extended by
spatialrust-gpu. - Feature
Estimator - Computes point-wise features from an input point cloud.
- HasIntensity
- Capability trait for point clouds with intensity values.
- HasNormals3
- Capability trait for point clouds with surface normals.
- HasPositions3
- Capability trait for point clouds with 3D positions.
- Nearest
Neighbor Index - Exact nearest neighbor queries.
- Neighborhood
Provider - Neighborhood query abstraction for feature estimation.
- Point
Cloud Filter - Point cloud filter interface.
- Point
Cloud Registration - Common trait for point cloud registration algorithms.
- Point
Cloud Segmenter - Common trait for point cloud segmentation algorithms.
- Radius
Search Index - Radius search queries.
- Real
- Floating-point scalar used by spatial algorithms.
- Robust
Kernel - Robust loss kernel used by registration and estimation algorithms.
- Scalar
- Numeric types supported by SpatialRust math primitives.
- Spatial
Algorithm - Common trait implemented by spatial algorithms.
- Spatial
Index - Common spatial index operations.
- Transform
Point - Trait for types that can transform 3D points.
Functions§
- apply_
transform - Applies a 4×4 affine transform to a cloud’s positions (and normals, if present — normals are rotated by the linear part and renormalized).
- approx_
eq - Returns whether two values are approximately equal.
- approx_
eq_ f64 - Returns whether two values are approximately equal.
- bounding_
box - Axis-aligned bounding box of a cloud.
- brute_
force_ knn - Finds up to
knearest neighbors by brute force. - brute_
force_ radius - Finds all neighbors within
radiusby brute force. - centroid
- Centroid (mean position) of a cloud.
- chamfer_
distance - Symmetric Chamfer distance between two clouds (sum of mean squared NN distances in both directions). Lower is better; zero for identical clouds.
- cloud_
distances - Computes directed NN distance statistics between
aandbin both directions with a single KD-tree per side. - copc_
level_ for_ resolution - Computes the shallowest octree level whose spacing is at most
resolution. - detect_
point_ cloud_ format - Detects a point cloud format from a file path extension.
- estimate_
rigid_ transform - Estimates the rigid transform that best maps
sourceontotarget. - extract_
indices - Extracts a sub-cloud containing only the selected point indices.
- extract_
mask - Extracts points where
mask[index]is true. - f32_eps
- Default tolerance for
f32comparisons. - f64_eps
- Default tolerance for
f64comparisons. - fpfh_
descriptors - Computes an FPFH descriptor for every point in
cloud. - hausdorff_
distance - Symmetric Hausdorff distance between two clouds (the largest NN distance in either direction). Captures the worst-case discrepancy.
- knn_
graph - Builds a directed k-nearest-neighbor graph: an edge from every point to each
of its
knearest neighbors (excluding itself). - merge_
clouds - Concatenates clouds that share an identical schema into one cloud.
- normalize_
unit_ sphere - Recenters a cloud and scales it so its farthest point is at unit distance — the canonical normalization for learned point-cloud models.
- orient_
normal_ towards_ viewpoint - Orients a normal to point towards the viewpoint when possible.
- orient_
normals_ consistent - Re-orients a cloud’s normals so neighboring normals agree in sign.
- oriented_
bounding_ box - Oriented bounding box via principal component analysis of the positions.
- radius_
graph - Builds a directed radius graph: an edge from every point to each other point
within
radius. - range_
image - Projects a cloud into a spherical range image, keeping the nearest range per pixel. Points outside the vertical field of view are dropped.
- read_
copc - Reads all points from a COPC file on disk.
- read_
copc_ file - Reads all points from a COPC file on disk.
- read_
copc_ file_ in_ bounds - Reads points inside a bounding box at full available detail.
- read_
copc_ file_ info - Reads COPC header metadata without loading points.
- read_
copc_ file_ with_ query - Reads points using a spatial bounds and optional LOD limit.
- read_
copc_ url - Reads all points from a remote COPC URL.
- read_
copc_ url_ info - Reads COPC header metadata from a remote URL without loading points.
- read_
copc_ url_ with_ query - Reads points from a remote COPC URL using an optional spatial query.
- read_
e57 - Reads all scans from an E57 file and merges them into one point cloud.
- read_
e57_ file - Reads all scans from an E57 file and merges them into one point cloud.
- read_
las - Reads a complete LAS/LAZ stream.
- read_
las_ file - Reads a LAS/LAZ file from disk.
- read_
pcd - Reads a complete PCD file from any buffered reader.
- read_
pcd_ file - Reads a PCD file from disk.
- read_
ply - Reads a complete PLY file from any buffered reader.
- read_
ply_ file - Reads a PLY file from disk.
- read_
point_ cloud_ file - Reads a point cloud from disk, dispatching on the file extension.
- read_
point_ cloud_ file_ with_ format - Reads a point cloud using an explicit format.
- recenter
- Translates a cloud so its centroid sits at the origin.
- scale_
cloud - Uniformly scales a cloud about the origin by
factor. - smallest_
eigenvector - Returns the eigenvector for the smallest eigenvalue.
- solve_
linear_ system - Solves
A x = bfor squaren x nsystems using Gaussian elimination with partial pivoting. - symmetric_
eigen3 - Computes eigenvalues and eigenvectors of a symmetric 3x3 matrix.
- transform_
point_ cloud - Applies a rigid transform to point positions and normals in a point cloud copy.
- voxelize
- Voxelizes a cloud into a dense occupancy / count grid.
- with_
labels - Adds or replaces a per-point label field on a point cloud copy.
- write_
copc - Writes a point cloud to a COPC file on disk.
- write_
copc_ file - Writes a point cloud to a COPC file on disk.
- write_
copc_ file_ with_ params - Writes a point cloud to a COPC file using custom octree builder parameters.
- write_
e57 - Writes a point cloud to an E57 file on disk.
- write_
e57_ file - Writes a point cloud to an E57 file on disk.
- write_
las - Writes a point cloud to a LAS/LAZ stream and returns the inner writer.
- write_
las_ file - Writes a point cloud to a LAS/LAZ file on disk.
- write_
pcd - Writes a point cloud to a PCD stream.
- write_
pcd_ file - Writes a point cloud to a PCD file on disk.
- write_
ply - Writes a point cloud to a PLY stream.
- write_
ply_ file - Writes a point cloud to a PLY file on disk.
- write_
point_ cloud_ file - Writes a point cloud to disk, dispatching on the file extension.
- write_
point_ cloud_ file_ with_ format - Writes a point cloud using an explicit format.
Type Aliases§
- Fpfh
Descriptor - A single FPFH descriptor.
- Spatial
Result - Result type used across SpatialRust crates.