Skip to content
Snippets Groups Projects
Commit f77c65a8 authored by Thomas Lien's avatar Thomas Lien
Browse files

Implemented SIFT and added to test file

parent d91788ef
No related branches found
No related tags found
No related merge requests found
......@@ -14,20 +14,25 @@ img = imread("colorHistogram/Edvard_Munch_-_Despair_(1894).jpg");
% "visual" contains visualization object that can be used in plot method
[hog, visual] = histogramOrientedGradients(img);
figure,
imshow(img),
hold on,
plot(visual),
title("Hog features of image");
%figure,
%imshow(img),
%hold on,
%plot(visual),
%title("Hog features of image");
% Using Cellsize this time
[hog2, visual2] = histogramOrientedGradients(img, 32);
figure,
imshow(img),
%figure,
%imshow(img),
%hold on,
%plot(visual2),
%title("Hog features using Cellsize");
%% Scaling Invariant Feature Transform - Test of imlementation
%Can look at this https://www.analyticsvidhya.com/blog/2019/10/detailed-guide-powerful-sift-technique-image-matching-python/
points = sift(img);
imshow(img);
hold on,
plot(visual2),
title("Hog features using Cellsize");
%% Section 2 Title
% Description of second code block
b = 2;
plot(points);
sift.m 0 → 100644
function siftPoints = sift(image)
%Convert image to greyscale
greyImage = rgb2gray(image);
%Use inbuilt edge function
siftPoints = detectSIFTFeatures(greyImage);
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment