This is mostly a WIP. Implementing Oriented Fast & Rotated BRIEF descriptors with Rust and the image library.
use image;
use orbrs;
fn test() {
let mut img1 = image::open("example/a.png").unwrap();
let mut img2 = image::open("example/b.png").unwrap();
let n_keypoints = 50;
let img1_keypoints = orbrs::orb::orb(&mut img, n_keypoints).unwrap();
let img2_keypoints = orbrs::orb::orb(&mut img, n_keypoints).unwrap();
let pair_indices = orbrs::orb::match_brief(&img1_keypoints, &img2_keypoints);
}Example extracting ORB Features and drawing keypoints:
use image;
use orbrs;
fn test() {
let mut img = image::open("example/test.jpg").unwrap();
let fast_keypoints = orbrs::fast::fast(&img, Some(fast::FastType::TYPE_9_16), None).unwrap();
// draw the keypoints on the image
orbrs::fast::draw_moments(&mut img.to_rgb(), &fast_keypoints);
img.save_with_format("example/fast_output.png", image::ImageFormat::Png);
}