Permalink
Browse files

added recursion visualization

  • Loading branch information...
1 parent 6f0f556 commit fcafa0cb2af2a7a694aa125a1b869601dcfb9ea6 @cvondrick cvondrick committed Jan 23, 2013
Showing with 35 additions and 0 deletions.
  1. +35 −0 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

0 comments on commit fcafa0c

Please sign in to comment.