Permalink
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 368 Bytes
im = im2double(imread('2007_000272.jpg'));
feat = features(im, 8);
ihog = invertHOG(feat);
figure(1);
clf;
subplot(131);
imagesc(im); axis image; axis off;
title('Original Image', 'FontSize', 20);
subplot(132);
showHOG(feat); axis off;
title('HOG Features', 'FontSize', 20);
subplot(133);
imagesc(ihog); axis image; axis off;
title('HOG Inverse', 'FontSize', 20);