Skip to content
Snippets Groups Projects

Merge: Hog feature extraction Added

Merged Michael-Angelo Karpowicz requested to merge hog into main
2 files
+ 16
0
Compare changes
  • Side-by-side
  • Inline

Files

+ 16
0
%Returns histogram in grayscale
function [out] = histogramGrayscale(image)
%image ideally is already grayscaled rbg2gray() if needed
[x,y] = size(image);
out = zeros(1,255);
for i = 1:x
for j = 1:y
pixel = image(i,j);
if pixel ~= 0
out(pixel) = out(pixel)+1;
end
end
end
end
\ No newline at end of file
Loading