Skip to content
Snippets Groups Projects

Merge: Hog feature extraction Added

Merged Michael-Angelo Karpowicz requested to merge hog into main
4 files
+ 56
3
Compare changes
  • Side-by-side
  • Inline

Files

+ 21
3
%% Example Title
% Let's use Edvard Munch's - skrik picture
image = imread("colorHistogram/Edvard_Munch_-_Despair_(1894).jpg");
img = imread("colorHistogram/Edvard_Munch_-_Despair_(1894).jpg");
% Let's also display the picture to see how it originally looks
%imshow(image);
%% edgeMap - Test of implementation
edgeImage = edgeMap(image);
%edgeImage = edgeMap(img);
imshow(edgeImage);
%imshow(edgeImage);
%% HOG - Test of implementation
% "hog" contains feature vector based on histogram of oriented gradients
% "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");
% Using Cellsize this time
[hog2, visual2] = histogramOrientedGradients(img, 32);
figure,
imshow(img),
hold on,
plot(visual2),
title("Hog features using Cellsize");
%% Section 2 Title
% Description of second code block
b = 2;
Loading