Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Painter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas Lien
Painter
Commits
f77c65a8
Commit
f77c65a8
authored
3 years ago
by
Thomas Lien
Browse files
Options
Downloads
Patches
Plain Diff
Implemented SIFT and added to test file
parent
d91788ef
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Test.m
+17
-12
17 additions, 12 deletions
Test.m
sift.m
+7
-0
7 additions, 0 deletions
sift.m
with
24 additions
and
12 deletions
Test.m
+
17
−
12
View file @
f77c65a8
...
...
@@ -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
);
This diff is collapsed.
Click to expand it.
sift.m
0 → 100644
+
7
−
0
View file @
f77c65a8
function
siftPoints
=
sift
(
image
)
%Convert image to greyscale
greyImage
=
rgb2gray
(
image
);
%Use inbuilt edge function
siftPoints
=
detectSIFTFeatures
(
greyImage
);
end
This diff is collapsed.
Click to expand it.
Thomas Lien
@ThomasVL
mentioned in issue
#6
·
3 years ago
mentioned in issue
#6
mentioned in issue #6
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment