Realm

oa::image::orb

Bounded ORB keypoint + steered rBRIEF descriptor pipeline, following ORB::detectAndCompute. Each pyramid level runs the existing corner_fast + good_features_to_track stages (FAST-9 response, quality-thresholded radius suppression), then a describe stage computes the intensity-centroid orientation over a 31x31 patch and a 256-bit steered BRIEF descriptor using the OpenCV bit_pattern_31_ test pairs. Scale factor is 2x per level via pyr_down. Returns (keypoints, descriptors, counts): an F32 [planes, max_features, 6] matrix of (x, y, angle_radians, score, level, size) rows in level-0 coordinates, a U32 [planes, max_features, 8] matrix of descriptor words, and a U32 [planes] claimed-slot count (may exceed max_features). Slot order is unordered across a level’s survivors. A max_features of zero selects height * width per plane. Errors Returns an error unless the image is a nonempty FP32 NCHW/CHW image, levels >= 1, edge >= 18 (rotated test-pair support), quality is in [0, 1], and min_distance is finite and >= 0.

FnRust public API

Function Documentation

pub fn orb( input: &Image, max_features: u32, quality: f32, min_distance: f32, levels: u32, edge: u32, ) -> Result<( Matrix, Matrix, Matrix )>
Bounded ORB keypoint + steered rBRIEF descriptor pipeline, following ORB::detectAndCompute. Each pyramid level runs the existing corner_fast + good_features_to_track stages (FAST-9 response, quality-thresholded radius suppression), then a describe stage computes the intensity-centroid orientation over a 31x31 patch and a 256-bit steered BRIEF descriptor using the OpenCV bit_pattern_31_ test pairs. Scale factor is 2x per level via pyr_down. Returns (keypoints, descriptors, counts): an F32 [planes, max_features, 6] matrix of (x, y, angle_radians, score, level, size) rows in level-0 coordinates, a U32 [planes, max_features, 8] matrix of descriptor words, and a U32 [planes] claimed-slot count (may exceed max_features). Slot order is unordered across a level’s survivors. A max_features of zero selects height * width per plane. Errors Returns an error unless the image is a nonempty FP32 NCHW/CHW image, levels >= 1, edge >= 18 (rotated test-pair support), quality is in [0, 1], and min_distance is finite and >= 0.