Thanks to visit codestin.com
Credit goes to github.com

Skip to content

patrickisroman/orbrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ORB (Oriented FAST and Rotated BRIEF) Keypoints with Rust

This is mostly a WIP. Implementing Oriented Fast & Rotated BRIEF descriptors with Rust and the image library.

ORB Keypoints ORB Keypoints

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);
}

FAST Keypoints FAST 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);
}

About

ORB Keypoint Detection with Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages