Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added recursion visualization

  • Loading branch information...
commit fcafa0cb2af2a7a694aa125a1b869601dcfb9ea6 1 parent 6f0f556
@cvondrick cvondrick authored
Showing with 35 additions and 0 deletions.
  1. +35 −0 visualizations/visualizeRecursion.m
View
35 visualizations/visualizeRecursion.m
@@ -0,0 +1,35 @@
+function visualizerRecursion(im),
+
+im = im2double(im);
+
+origfeat = features(im, 8);
+
+history = [];
+
+subplot(321);
+feat = features(im, 8);
+showHOG(feat);
+
+subplot(322);
+imagesc(invertHOG(feat));
+axis image;
+
+for i=1:100,
+ feat = features(im, 8);
+ im = repmat(invertHOG(feat), [1 1 3]);
+
+ subplot(323);
+ showHOG(feat);
+
+ subplot(324);
+ imagesc(im); axis image;
+
+ subplot(325);
+ showHOG(feat - origfeat);
+
+ subplot(326);
+ history = [history norm(origfeat(:) - feat(:))];
+ plot(history);
+
+ drawnow;
+end
Please sign in to comment.
Something went wrong with that request. Please try again.