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;pub use spatialrust_ai as ai;pub use spatialrust_arrow as arrow;pub use spatialrust_camera as camera;pub use spatialrust_distribute as distribute;pub use spatialrust_episode as episode;pub use spatialrust_image as image;pub use spatialrust_image_io as image_io;pub use spatialrust_interchange as interchange;pub use spatialrust_lod as lod;pub use spatialrust_mapping as mapping;pub use spatialrust_platform as platform;pub use spatialrust_records as records;pub use spatialrust_render_wgpu as render_wgpu;pub use spatialrust_ros2 as ros2;pub use spatialrust_runtime as runtime;pub use spatialrust_scene as scene;pub use spatialrust_semantic as semantic;pub use spatialrust_sync as sync;pub use spatialrust_tensor as tensor;pub use spatialrust_viewer as viewer;pub use spatialrust_vision as vision;pub use spatialrust_viz as viz;pub use spatialrust_web as web;
Structs§
- Aabb
- Axis-aligned bounding box used by
CropBox. - Absolute
Pose - Object-to-camera pose
X_cam = R X_obj + tused by absolute orientation (PnP). - Adaptive
Background Model - Stateful single-Gaussian grayscale background model.
- Affine
Transform - A source-to-destination 2D affine transform.
- AoSoA
Attribute Chunk - Owned interleaved positions and optional capability attributes for one chunk.
- AoSoA
Attribute Layout - Explicit interleaved field layout for an
AoSoAAttributeChunk. - AoSoA
XyzChunk - Interleaved XYZ layout for one
SpatialTensorChunk(3 * point_countfloats). - Area
Resize U8Plan - Reusable weighted-span plan for packed
u8area resize. - Background
Model Options - Adaptive Gaussian background-model controls.
- Background
Update - Output of one background-model update.
- Bilinear
Resize U8Plan - Reusable source coordinates and fixed-point coefficients for
u8bilinear resize. - Binary
Mask - Validated binary mask (
0background,1foreground). - Boundary
Config - Configuration for
BoundaryDetector. - Boundary
Detector - Tangent-plane boundary point detector. The input cloud must carry normals.
- Boundary
Result - Result of boundary detection.
- Bounding
Box2 - Axis-aligned bounding box using half-open
(min, max)coordinates. - Brown
Conrady - Brown–Conrady radial and tangential lens-distortion coefficients.
- Brute
Force Index - Reference index using brute-force search for correctness tests.
- Camera
Intrinsics - Pinhole camera intrinsic parameters and image dimensions.
- Camera
Matrix3 - Calibrated pinhole intrinsic matrix and its analytic inverse.
- Canny
Options - Validated Canny thresholds and gradient settings.
- Canny
Result - Edge map and numerical stages produced by Canny.
- Canny
Workspace - Reusable caller-owned storage for the allocation-light Canny path.
- Cauchy
Kernel - Cauchy robust kernel.
- Chunk
MapSource - Bounded source adapter for chunk-local crop and affine transform operations.
- Cloud
Distances - A bundle of directed and symmetric cloud-to-cloud distance statistics.
- Component
Stats - Per-component statistics.
- Confidence
Map - Dense confidence values constrained to
[0, 1]. - Connected
Components - Connected-component labeling output.
- Contour
- One closed polygonal contour on pixel-grid corner coordinates.
- 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 - Corner
Selection Options - Shared response thresholding and spatial suppression options.
- Cov3
- 3x3 symmetric covariance matrix.
- Covariance
Accumulator3 - Accumulates mean and covariance for 3D points.
- CpuDevice
- Default CPU device.
- CpuRuntime
- Host runtime for single-threaded and parallel CPU algorithms.
- 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. - Dataset
Manifest - JSON manifest containing the files associated with one dataset operation.
- Dbscan
Config - Configuration for DBSCAN density-based clustering.
- Dbscan
Result - Result of DBSCAN clustering.
- Dbscan
Segmenter - DBSCAN density-based segmenter.
- Decode
Limits - Strict application-level resource limits for one decode operation.
- Decode
Options - Options controlling one decode operation.
- Decoded
Image - One decoded image with owned typed pixels and source metadata.
- Decoded
Metadata - Metadata describing encoded pixels and orientation handling.
- Dense
Flow Options - Integer block-matching controls for dense grayscale optical flow.
- Depth
Conversion Options - Controls conversion from stored depth values to metric camera coordinates.
- Depth
Map - Metric or relative dense depth map. Non-positive and non-finite values are invalid.
- Descriptor
Buffer - Row-major descriptor matrix with a fixed width and explicit scalar kind.
- Detection
- One scored detection used by class-aware post-processing.
- Distance
Transform Workspace - Reusable host scratch storage for the unit-spacing exact distance transform.
- Encode
Options - Options controlling encoded output.
- Essential3
- A calibrated two-view epipolar constraint matrix.
- Euclidean
Cluster Config - Configuration for Euclidean clustering.
- Euclidean
Cluster Extractor - Euclidean region-growing cluster extractor.
- Euclidean
Cluster Result - Result of Euclidean clustering.
- Execution
Output - Output value paired with the receipt for its execution.
- Execution
Receipt - Account of one algorithm execution.
- Exposure
Fusion Options - Well-exposedness fusion controls.
- Farthest
Point Sampling - Farthest Point Sampling downsampler.
- Farthest
Point Sampling Config - Configuration for
FarthestPointSampling. - Fast
Options - FAST detector configuration for the standard 9-of-16 radius-three circle.
- Feature
Match - One descriptor correspondence from a query feature to a train feature.
- Feature
Set2 - Keypoints paired one-to-one with descriptor rows.
- File
Receipt - Size and SHA-256 receipt for one local file or URI source.
- Flow
Field - Dense
(dx, dy)optical-flow field in pixel units. - Fpfh
Ransac Config - Configuration for
FpfhRansacRegistration. - Fpfh
Ransac Registration - FPFH + RANSAC global registration.
- FrameId
- Coordinate frame identifier.
- Fundamental3
- An uncalibrated two-view epipolar constraint matrix.
- Gaussian
Blur U8Workspace - Reusable scratch storage and fixed-point kernel cache for
gaussian_blur_u8_into. - Geometric
Estimate - A geometric model paired with one inlier decision and residual per input row.
- Gicp
Config - Configuration for Generalized ICP (plane-to-plane).
- Gicp
Registration - Generalized ICP registration.
- GpuEuclidean
Cluster Extractor - GPU-grid-backed Euclidean cluster extractor.
- GpuNormal
Estimator - GPU-accelerated normal estimator.
- GpuRansac
Plane Segmenter - GPU-accelerated RANSAC plane segmenter.
- Grid
Selection Options - Controls deterministic spatial distribution of candidate keypoints.
- Ground
Config - Configuration for
GroundSegmenter. - Ground
Segmentation - Result of ground segmentation.
- Ground
Segmenter - Grid-based ground segmenter.
- Harris
Options - Harris detector configuration.
- Homography3
- A pixel-to-pixel planar projective transform.
- 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.
- Image
- An owning, densely packed, interleaved image.
- Image
Metadata - Lightweight semantic metadata carried by images and borrowed views.
- Image
Region - A checked rectangular image region.
- Image
View - A read-only, zero-copy image view with an explicit row stride.
- Image
View Mut - A mutable, zero-copy interleaved image view with an explicit row stride.
- Integral
Image - Summed-area table with a zero top row and left column.
- 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.
- Kernel1D
- Validated one-dimensional correlation kernel.
- Kernel2D
- Validated two-dimensional correlation kernel.
- Keypoint2
- One scale-space image keypoint in pixel coordinates.
- Label
Image - Connected-component label image (
0is background). - Letterbox
Transform - Mapping between a source image and its letterboxed output.
- Lucas
Kanade Options - Configuration for sparse Lucas–Kanade tracking.
- Manifest
Validation - Summary returned after re-hashing every local manifest entry.
- MaskRle
- Alternating zero/one run lengths, always beginning with a zero run.
- Mat3
- 3x3 matrix stored in row-major order.
- Mat4
- 4x4 matrix stored in row-major order.
- Match
Options - Filtering applied to brute-force descriptor correspondences.
- Memory
Video Source - Deterministic in-memory source used for adapter conformance and replay.
- MlsConfig
- Configuration for
MlsSmoothing. - MlsSmoothing
- Moving Least Squares smoothing filter.
- Monocular
Odometry Estimate - Scale-ambiguous monocular odometry result.
- Multi
Object Tracker - Deterministic same-class greedy IoU multi-object tracker.
- Multi
Object Tracker Options - IoU tracker controls.
- 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
Receipt - Execution receipt for the stages of one MVP pipeline run.
- MvpPipeline
Result - Output of a completed MVP pipeline run.
- NdtConfig
- Configuration for NDT (Normal Distributions Transform) registration.
- NdtRegistration
- NDT registration (point-to-distribution).
- Nearest
Resize U8Plan - Reusable source-coordinate plan for packed
u8nearest-neighbor resize. - 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.
- Object
Image Correspondence - One ordered object-to-image correspondence for absolute pose estimation.
- Object
Track - One deterministic detection track.
- Occupancy
Grid - A dense 3D grid in row-major
(z, y, x)order. - OrbOptions
- Multi-scale ORB detector and descriptor configuration.
- Padding
- Padding applied around an image.
- Panorama
- Pairwise panorama and its integer world-coordinate origin.
- Panorama
Options - Bounded pairwise panorama settings.
- Pass
Through - Keeps (or drops) points whose value in a named field falls within a range.
- Perspective
Transform - A source-to-destination projective 2D transform.
- Pinhole
Camera - A pinhole camera with optional Brown–Conrady lens distortion.
- Planar
Image - An owning, densely packed planar image.
- Planar
Image View - A read-only, zero-copy planar image view with explicit strides.
- 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
Correspondence2 - One ordered pixel correspondence from a source image to a target image.
- Point
Field - One column in a point cloud schema.
- Point
Map - Dense per-pixel XYZ point map. Non-finite triples represent invalid points.
- 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.
- Position
Reduction - Deterministic global position reduction over a bounded source.
- 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.
- Rect
Morphology Workspace - Reusable scratch storage for packed grayscale rectangular morphology.
- 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.
- Relative
Pose - Target-camera pose expressed in the source-camera coordinate frame.
- Relative
Pose Estimate - Essential-matrix pose disambiguation and per-correspondence triangulation.
- Rgbd
Odometry Estimate - Metric previous-camera to current-camera odometry result.
- Rgbd
Odometry Options - Depth filtering and PnP RANSAC controls for metric RGB-D odometry.
- Robust
Estimation Options - Deterministic robust-model sampling and inlier classification settings.
- Robust
Track Options - Forward/backward consistency settings layered over pyramidal LK.
- Robust
Tracks - One target coordinate, validity decision, and round-trip error per source point.
- Scored
Index - Index and possibly updated score returned by Soft-NMS.
- ShiTomasi
Options - Shi–Tomasi minimum-eigenvalue detector configuration.
- Spatial
Metadata - Spatial metadata attached to point clouds and maps.
- Spatial
Tensor - Borrowed chunked view over a
PointCloud. - Spatial
Tensor Chunk - One contiguous index range within a
SpatialTensorchunk iteration. - 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).
- Stereo
BmOptions - Block-matching stereo options.
- Stereo
Rectify Maps - Remap grids produced by stereo rectification for explicit
warp::remap. - Stereo
Rig - Calibrated two-camera stereo geometry.
- Storage
Preflight - Result of a fail-closed output-root free-space check.
- Storage
Roots - Optional roots used to resolve logical input and output paths.
- Streaming
Voxel Config - Configuration for deterministic, spill-backed global voxel centroids.
- Streaming
Voxel Source - Bounded source of globally aggregated voxel centroids.
- Structuring
Element - A validated binary neighborhood mask and anchor.
- Symmetric
Eigen3 - Result of a symmetric 3x3 eigendecomposition.
- Timestamp
- Timestamp in nanoseconds since an arbitrary epoch.
- Tracked
Points - Result of sparse point tracking between two frames.
- Transfer
Stats - Byte accounting for explicit execution transfers.
- Transform3
- Rigid transform represented as a 4x4 matrix.
- Transform
Aabb - Axis-aligned bounding box.
- Triangulated
Point - One two-view triangulation with cheirality and reprojection diagnostics.
- Tukey
Kernel - Tukey biweight robust kernel.
- Vec2
- 2D vector.
- Vec3
- 3D vector.
- Vec4
- 4D vector.
- Video
Frame - Timestamped owned video frame.
- Voxel
Grid Config - Configuration for
voxelize. - Voxel
Grid Downsample - Voxel-grid downsampling filter.
- Voxel
Grid Downsample Config - Configuration for voxel-grid downsampling.
Enums§
- Adaptive
Threshold Method - Adaptive neighborhood statistic.
- Alpha
Mode - Alpha-channel interpretation.
- Attribute
Aggregation - Attribute aggregation policy for non-position fields.
- Border
Mode - Out-of-bounds sampling behavior for CPU image operations.
- Camera
Error - Camera model errors.
- Chunk
MapOperation - Per-chunk operation that preserves the input schema.
- Color
Range - Numeric range convention associated with image channels.
- Color
Space - Semantic interpretation of image channels.
- Connectivity
- Pixel connectivity used by binary-mask algorithms.
- DType
- Supported scalar dtypes for point fields.
- Decoded
Pixels - Owned typed pixels produced by a decoder or accepted by an encoder.
- Descriptor
Kind - Scalar representation used by a descriptor matrix.
- Device
Kind - Device kind supported by SpatialRust execution.
- Execution
Policy - Execution policy for spatial algorithms.
- Field
Semantic - Semantic meaning of a point field.
- Image
Error - Errors raised while constructing or indexing images.
- Image
File Format - File formats recognized by the stable SpatialRust image-IO boundary.
- Image
IoError - Errors produced by bounded image IO.
- Image
Layout - Physical channel arrangement in CPU storage.
- Interpolation
- Sampling filter used by image resampling and geometric warps.
- IoError
- IO-specific error type for SpatialRust.
- LasWrite
Format - Output encoding for LAS writers.
- Least
Squares Result - Result of a small dense linear solve.
- Morphology
Operation - Composite morphology operation.
- Morphology
Shape - Built-in structuring-element geometry.
- MvpRegistration
Method - Registration backend used by the MVP pipeline’s optional alignment step.
- OrbScore
Type - Response used to rank ORB keypoints.
- Orientation
- Exif image orientation in encoded-pixel coordinates.
- 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.
- Receipt
Role - Logical role of a file in a dataset operation.
- Rgbd
Error - Errors from RGB-D conversion.
- RleOrder
- Linearization order used by run-length encoded masks.
- Soft
NmsMethod - Soft-NMS score-decay strategy.
- Source
Color Type - Encoded sample/channel type before conversion into SpatialRust storage.
- Spatial
Error - Core error type for SpatialRust.
- Threshold
Type - Point-wise threshold transformation.
- Track
State - Track lifecycle state.
- Transfer
Direction - Direction of an explicit data transfer between host and device memory.
- UpAxis
- Which axis points “up” (its minimum defines local ground height).
- Vision
Error - Errors raised by image and vision algorithms.
- Voxel
Aggregation Mode - Voxel aggregation strategy.
- Voxel
Fill - How a voxel’s value is filled from the points that fall in it.
Constants§
- DATASET_
MANIFEST_ VERSION - Current JSON schema version for
DatasetManifest. - DEFAULT_
GPU_ MIN_ POINTS_ EUCLIDEAN - Minimum point count before GPU Euclidean clustering is selected under
Auto. - DEFAULT_
GPU_ MIN_ POINTS_ PLANE - Minimum point count before GPU RANSAC plane scoring is selected under
Auto. - DEFAULT_
MIN_ OUTPUT_ FREE_ BYTES - Initial v1.3 minimum free-space floor for an external output root.
- DEFAULT_
SPATIAL_ TENSOR_ CHUNK_ SIZE - Default chunk size for
PointCloud::spatial_tensor_chunks. - FPFH_
DESCRIPTOR_ LEN - Length of an FPFH descriptor (33: three 11-bin angular histograms).
- INVALID_
DISPARITY - Invalid disparity sentinel written by
stereo_block_match. - PARALLEL_
CHUNK_ QUERY_ MIN_ POINTS - Minimum point count before threaded chunk dispatch is used.
- PARALLEL_
STAGING_ MIN_ POINTS - Minimum point count before multi-threaded index staging is used.
Traits§
- Chunked
Nearest Neighbor Index - k-NN search over contiguous query index ranges.
- Chunked
Radius Search Index - Radius search over contiguous query index ranges.
- 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.
- Pixel
Component - Scalar component supported by generic CPU image kernels.
- 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.
- Spatial
Runtime - Runtime boundary for executing spatial algorithms on one backend.
- Transform
Point - Trait for types that can transform 3D points.
- Video
Frame Source - Pull-based video source implemented by optional codec/camera adapters.
Functions§
- adaptive_
threshold - Applies adaptive binary thresholding to an 8-bit grayscale image.
- 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.
- approximate_
polygon - Simplifies a closed contour with Ramer–Douglas–Peucker approximation.
- batched_
nms - Class-aware greedy NMS over detection records.
- bilateral_
filter - Applies an edge-preserving bilateral filter.
- bounding_
box - Axis-aligned bounding box of a cloud.
- box_
blur - Applies a normalized rectangular box filter.
- brute_
force_ knn - Finds up to
knearest neighbors by brute force. - brute_
force_ radius - Finds all neighbors within
radiusby brute force. - build_
gaussian_ pyramid - Builds a packed Gaussian pyramid including the input as level zero.
- canny
- Finds edges in a single-channel u8 image.
- canny_
into - Finds edges into caller-owned output using reusable CPU workspace.
- canny_
with_ intermediates - Runs Canny and retains gradient, magnitude, and suppression stages.
- 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.
- clahe
- Applies contrast-limited adaptive histogram equalization to grayscale u8.
- cloud_
distances - Computes directed NN distance statistics between
aandbin both directions with a single KD-tree per side. - connected_
components - Labels foreground components and computes bounding boxes and centroids.
- connected_
components_ u8 - Labels connected non-zero pixels from packed
u8mask storage. - convolve2d
- Applies true convolution by reversing the supplied kernel around its anchor.
- copc_
level_ for_ resolution - Computes the shallowest octree level whose spacing is at most
resolution. - crop
- Copies a checked rectangular region into a packed image.
- decode_
bytes - Decodes an image from an encoded byte slice.
- decode_
path - Opens and decodes one image path using content-based format detection.
- decode_
reader - Reads a bounded encoded stream and decodes it.
- decode_
rle - Decodes a run-length mask and validates its total length.
- dense_
flow_ block_ match - Computes a dense integer flow field with deterministic local block matching.
- depth_
map_ to_ point_ cloud - Unprojects a depth map with a calibrated camera into an XYZ point cloud.
- depth_
tensor_ to_ depth_ map - Converts a host depth tensor into a
DepthMap. - depth_
to_ point_ cloud - Converts an aligned depth image into an XYZ point cloud.
- depth_
to_ xyz_ dense - Converts depth into a dense
H×W×3XYZ buffer (row-major interleaved). - depth_
to_ xyz_ dense_ into - Fills a caller-provided dense
H×W×3XYZ buffer (length must beH*W*3). - detect_
and_ describe_ orb - Detects oriented multi-scale keypoints and computes 256-bit rotated BRIEF descriptors.
- detect_
fast - Detects FAST-9/16 corners in scan order, matching OpenCV’s radius-three ROI.
- detect_
harris - Detects Harris corners and returns strongest-first keypoints.
- detect_
point_ cloud_ format - Detects a point cloud format from a file path extension.
- detect_
shi_ tomasi - Detects Shi–Tomasi corners and returns strongest-first keypoints.
- detection_
tensor_ to_ detections - Decodes axis-aligned detections from an
[N,6]tensor ofx0,y0,x1,y1,score,class. - dilate
- Dilates each channel independently.
- dilate_
rect_ u8 - Dilates a grayscale
u8image with a rectangular element in linear time. - dilate_
rect_ u8_ into - Dilates into caller-owned packed output using reusable scratch storage.
- disparity_
to_ depth - Converts horizontal disparity to metric depth with
Z = f * B / d. - disparity_
to_ xyz - Reprojects disparity into left-camera XYZ using rectified intrinsics.
- distance_
transform_ edt - Computes the exact Euclidean distance from every foreground pixel to the nearest background pixel using unit pixel spacing.
- distance_
transform_ edt_ into - Computes the exact unit-spacing Euclidean distance transform into a reusable slice.
- distance_
transform_ edt_ u8_ into - Computes a unit-spacing exact distance transform from a packed
u8mask. - distance_
transform_ edt_ with_ spacing - Computes the exact Euclidean distance transform with physical pixel spacing.
- encode_
bytes - Encodes typed pixels into an owned byte vector.
- encode_
path - Creates or truncates a path and encodes typed pixels into it.
- encode_
rle - Encodes a binary mask into alternating runs.
- encode_
writer - Encodes typed pixels to a seekable writer.
- equalize_
histogram - Equalizes an 8-bit grayscale histogram.
- erode
- Erodes each channel independently.
- erode_
rect_ u8 - Erodes a grayscale
u8image with a rectangular element in linear time. - erode_
rect_ u8_ into - Erodes into caller-owned packed output using reusable scratch storage.
- estimate_
and_ stitch_ panorama - Estimates a source-to-target homography and stitches the pair.
- estimate_
essential - Estimates an essential matrix after normalizing pixels with both cameras.
- estimate_
essential_ ransac - Robustly estimates an essential matrix in normalized-camera coordinates.
- estimate_
fundamental - Estimates a fundamental matrix from at least eight correspondences.
- estimate_
fundamental_ ransac - Robustly estimates a fundamental matrix using deterministic eight-point RANSAC.
- estimate_
homography - Estimates a homography from at least four correspondences using normalized DLT.
- estimate_
homography_ ransac - Robustly estimates a homography using deterministic four-point RANSAC.
- estimate_
monocular_ odometry - Estimates calibrated monocular motion with essential RANSAC and cheirality.
- estimate_
rgbd_ odometry - Estimates metric motion from source depth and source-to-target pixel tracks.
- 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. - filter2d
- Applies OpenCV-style correlation and converts the result back to the input dtype.
- filter2d_
f32 - Applies OpenCV-style correlation and preserves signed/fractional results as
f32. - find_
contours - Extracts oriented boundary loops, including hole contours.
- fpfh_
descriptors - Computes an FPFH descriptor for every point in
cloud. - fuse_
exposures - Fuses aligned RGB exposures with normalized per-pixel well-exposedness.
- gaussian_
blur - Applies a separable Gaussian blur with explicit odd sizes and standard deviations.
- gaussian_
blur_ u8 - Applies a specialized 3×3, 5×5, or 7×7 Gaussian blur to interleaved
u8input. - gaussian_
blur_ u8_ into - Applies the specialized
u8Gaussian blur into caller-owned packed output and workspace. - gray_
to_ rgb - Replicates a gray channel into RGB.
- gray_
world_ white_ balance - Applies deterministic gray-world white balance to an RGB image.
- harris_
response - Computes an unnormalized Harris structure-tensor response image.
- hausdorff_
distance - Symmetric Hausdorff distance between two clouds (the largest NN distance in either direction). Captures the worst-case discrepancy.
- histogram
- Computes a configurable one-channel histogram, optionally through a mask.
- histogram_
u8 - Computes the exact 256-bin histogram of an 8-bit grayscale image.
- integral_
image - Computes a summed-area table for one selected channel.
- knn_
graph - Builds a directed k-nearest-neighbor graph: an edge from every point to each
of its
knearest neighbors (excluding itself). - laplacian
- Computes a Laplacian response as signed
f32values. - letterbox
- Aspect-preserving resize followed by centered constant padding.
- match_
descriptors - Matches each query descriptor to its nearest train descriptor.
- median_
blur - Applies a per-channel median filter with an odd square aperture.
- merge_
clouds - Concatenates clouds that share an identical schema into one cloud.
- morphology_
ex - Applies a composite morphology operation.
- morphology_
rect_ u8 - Applies composite grayscale
u8morphology using the rectangular fast path. - morphology_
rect_ u8_ into - Applies composite rectangular morphology into caller-owned packed output.
- nearest_
k_ spatial_ tensor - Runs k-NN search for every chunk in a
SpatialTensor, appending tagged neighbors. - nearest_
k_ spatial_ tensor_ parallel - Parallel k-NN search over
SpatialTensorchunks. - nearest_
k_ spatial_ tensor_ parallel_ into - Parallel k-NN search, appending
(query_index, neighbor)pairs toout. - nms
- Greedy non-maximum suppression. Returned indices are score-descending.
- normalize
- Converts packed scalar values to
f32, then appliesvalue * scale, mean subtraction, and per-channel standard-deviation normalization. - normalize_
into - Normalizes interleaved pixels into caller-owned
f32storage. - 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.
- otsu_
threshold_ u8 - Selects an Otsu threshold for an 8-bit grayscale image and applies it.
- otsu_
threshold_ u16 - Selects an Otsu threshold for a 16-bit grayscale image and applies it.
- pack_
chw - Packs and normalizes an interleaved image into planar CHW storage.
- pack_
chw_ into - Packs and normalizes interleaved pixels into a reusable planar CHW slice.
- pad
- Pads an image with a constant pixel value.
- parallel_
index_ for_ each - Runs
workover disjoint index ranges usingparallel_worker_count. - parallel_
index_ ranges - Returns disjoint half-open index ranges covering
[0, point_count). - parallel_
worker_ count - Returns the number of worker threads to use for
point_countpoints. - planar_
f32_ to_ nchw - Packs a planar CHW
f32image into contiguous NCHW[1,C,H,W]. - point_
map_ to_ point_ cloud - Flattens valid point-map pixels into an XYZ cloud, optionally filtering by confidence.
- project_
object_ point - Projects an object point with an absolute pose into pixel coordinates.
- pyr_
down - Reduces each dimension by approximately two using the canonical 5×5 kernel.
- pyr_up
- Doubles each dimension using zero insertion and the canonical 5×5 kernel.
- radius_
graph - Builds a directed radius graph: an edge from every point to each other point
within
radius. - radius_
search_ spatial_ tensor - Runs radius search for every chunk in a
SpatialTensor, appending tagged neighbors. - radius_
search_ spatial_ tensor_ parallel - Parallel radius search over
SpatialTensorchunks. - radius_
search_ spatial_ tensor_ parallel_ into - Parallel radius search, appending
(query_index, neighbor)pairs toout. - 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.
- recover_
relative_ pose - Recovers the essential-matrix pose with the most positive-depth points.
- reduce_
positions - Consumes a source and computes bounds and centroid without retaining chunks.
- remap
- Samples an image at absolute coordinates supplied by two single-channel maps.
- resize
- Resizes an interleaved image while preserving semantic metadata.
- resize_
into - Resizes into caller-owned storage without allocating.
- resize_
pack_ chw - Fuses bilinear RGB resize, normalization, and CHW packing without an intermediate image.
- resize_
pack_ chw_ into - Fuses bilinear RGB resize, normalization, and CHW packing into caller-owned storage.
- resize_
rgb_ to_ gray - Fuses bilinear RGB resize and BT.601 grayscale conversion without an intermediate RGB image.
- resize_
rgb_ to_ gray_ into - Fuses bilinear RGB resize and BT.601 grayscale conversion into caller-owned storage.
- rgb_
to_ gray - Converts RGB
u8pixels to BT.601 luma using fixed-point coefficients. - rgb_
to_ gray_ into - Converts RGB
u8pixels into caller-owned gray storage without allocating. - rgb_
to_ hsv - Converts RGB
u8to OpenCV-style HSV (Hin0..=179,S/Vin0..=255). - rgb_
u8_ to_ nchw_ f32 - Letterboxes an RGB
u8image and packs it as contiguous NCHWf32[1,3,H,W]. - rgbd_
to_ point_ cloud - Converts aligned RGB and depth images into an XYZRGB point cloud.
- scale_
cloud - Uniformly scales a cloud about the origin by
factor. - scharr
- Computes a 3×3 Scharr first derivative as signed
f32values. - score_
tensor_ to_ binary_ mask - Converts a host score tensor into a binary mask via threshold.
- select_
keypoints_ grid - Retains the strongest keypoints in each image cell.
- separable_
filter - Applies horizontal and vertical kernels using an
f64intermediate buffer. - separable_
filter_ f32 - Applies separable kernels and preserves signed/fractional output as
f32. - shi_
tomasi_ response - Computes an unnormalized Shi–Tomasi minimum-eigenvalue response image.
- smallest_
eigenvector - Returns the eigenvector for the smallest eigenvalue.
- sobel
- Computes a Sobel derivative as signed
f32values. - sobel_
3x3_ u8 - Computes a first-order 3x3 Sobel derivative directly into signed
f32output. - sobel_
3x3_ u8_ into - Computes a first-order 3x3 Sobel derivative into caller-owned packed output.
- sobel_
abs_ 3x3_ u8 - Computes an exact absolute first-order 3x3 Sobel response as saturated
u8. - sobel_
abs_ 3x3_ u8_ into - Computes an exact absolute first-order 3x3 Sobel response into packed output.
- sobel_
l1_ magnitude_ u8 - Computes exact 3×3 Sobel L1 magnitude (
|Gx| + |Gy|) for grayscaleu8. - sobel_
l1_ magnitude_ u8_ into - Computes exact fused 3×3 Sobel L1 magnitude into caller-owned packed output.
- sobel_
threshold_ 3x3_ u8 - Computes a binary edge mask from absolute 3x3 Sobel response.
- sobel_
threshold_ 3x3_ u8_ into - Computes a binary absolute-Sobel edge mask into caller-owned packed output.
- soft_
nms - Soft non-maximum suppression with deterministic score ordering.
- solve_
linear_ system - Solves
A x = bfor squaren x nsystems using Gaussian elimination with partial pivoting. - solve_
pnp - Estimates an object-to-camera pose from at least four correspondences.
- solve_
pnp_ ransac - Robust PnP using deterministic six-point RANSAC and inlier refinement.
- spatial_
gradient_ u8 - Computes exact 3×3 Sobel X/Y gradients together for grayscale
u8input. - spatial_
gradient_ u8_ into - Computes exact paired 3×3 Sobel gradients into caller-owned packed output.
- stereo_
block_ match - Dense SAD block matching on already-rectified grayscale stereo images.
- stereo_
rectify - Builds left/right absolute remap grids that make epipolar lines horizontal.
- stitch_
panorama_ pair - Warps
sourceintotargetcoordinates and feather-blends their overlap. - swap_
red_ blue - Swaps the red and blue channels of a three-channel image.
- symmetric_
eigen3 - Computes eigenvalues and eigenvectors of a symmetric 3x3 matrix.
- threshold
- Applies a fixed threshold independently to every component.
- track_
points_ forward_ backward - Tracks points in both directions and rejects inconsistent round trips.
- track_
points_ lucas_ kanade - Tracks sparse points from
previoustonextwith pyramidal Lucas–Kanade. - transform_
point_ cloud - Applies a rigid transform to point positions and normals in a point cloud copy.
- triangulate_
correspondence - Triangulates one calibrated correspondence for a known relative pose.
- voxelize
- Voxelizes a cloud into a dense occupancy / count grid.
- warp_
affine - Warps an image with a source-to-destination affine transform.
- warp_
perspective - Warps an image with a source-to-destination projective transform.
- 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§
- Chunk
Query Range - Range of query point indices (matches
SpatialTensor::chunksranges). - Fpfh
Descriptor - A single FPFH descriptor.
- Gray
Image - A one-channel image.
- RgbImage
- A three-channel RGB image.
- Spatial
Result - Result type used across SpatialRust crates.
- Vision
Result - Result type for image and vision operations.