image-js / image-js-typescript

Temporary repository to work on the migration of image-js to TypeScript
https://image-js.github.io/image-js-typescript/
MIT License
5 stars 5 forks source link

Implement Harris score for FAST corners #167

Closed opatiny closed 2 years ago

opatiny commented 2 years ago

Harris is actually a corner detector, so how do we make to only get the Harris score? https://en.wikipedia.org/wiki/Harris_corner_detector#:~:text=The%20Harris%20corner%20detector%20is,improvement%20of%20Moravec's%20corner%20detector.

Harris original article: http://www.bmva.org/bmvc/1988/avc-88-023.pdf

opatiny commented 2 years ago
opatiny commented 2 years ago

Update on my last message:

opatiny commented 2 years ago

Matlab script and results

FAST

%% Detect FAST corners in an image
clc; clear; close all;

%% load image
image = imread('alphabet.jpg');
image = rgb2gray(image);

%% detect corners
corners = detectFastFeatures(image);

%% display results
imshow(image); hold on;
p = plot(corners.selectStrongest(50));
hold off;

matlab-alphabet-fast-best50

Harris corner detector (not score)

%% Detect Harris corners in an image
clc; clear; close all;

%% load image
image = imread('alphabet.jpg');
image = rgb2gray(image);

%% detect corners
corners = detectHarrisFeatures(image);

%% display results
imshow(image); hold on;
 p = plot(corners.selectStrongest(50));
hold off;

matlab-alphabet-harris-best50