Permalink
Browse files

changes two of the demo images

  • Loading branch information...
1 parent 95e82e0 commit df9485f97108533299ff024c154d6ce0a3f3d61b @vedaldi vedaldi committed Jul 19, 2011
View
BIN data/a.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN data/b.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
7 docsrc/imdisttf.html
@@ -67,9 +67,10 @@
<img src="%pathto:root;demo/imdisttf_neigh.jpg"/>
<div class="caption">
<span class="content">
- The distance to the closest edge element (left) and arrows
- connecting pixels to their closest edge element (right). Figure
- generated by <code>vl_demo_imdisttf</code>.
+ The distance <code>sqrt(distanceTransform)</code> to the closest
+ edge element (left) and arrows connecting pixels to their closest
+ edge element (right). Figure generated
+ by <code>vl_demo_imdisttf</code>.
</span>
</div>
</div>
View
6 docsrc/sift.html
@@ -112,10 +112,10 @@ <h1 id="tut.sift.match">Basic matching</h1>
<div class="figure">
<img src="%pathto:root;demo/sift_match_1.jpg"/>
+ <img src="%pathto:root;demo/sift_match_2.jpg"/>
<div class="caption">
- Matching of SIFT descriptors with <code>vl_ubcmatch</code>. Notice
- that SIFT is able to cope with a large change in scale and image
- rotation.
+ Top: A pair of images of the same scene. Bottom: Matching of SIFT
+ descriptors with <code>vl_ubcmatch</code>.
</div>
</div>
View
4 toolbox/demo/vl_demo_imdisttf.m
@@ -2,7 +2,7 @@
% load image
im = imread(fullfile(vl_root, 'data', 'a.jpg')) ;
-im = im(1:100,1:100,:) ;
+im = im(100:200,100:200,:) ;
imSize = [size(im,1) size(im,2)] ;
% creates an edge map
@@ -26,7 +26,7 @@
figure(2) ; clf ; imagesc(edges) ; axis off image ;
figure(3) ; clf ; imagesc(edges) ; axis off image ;
hold on ; h = quiver(u,v,u_-u,v_-v,0) ; colormap gray ;
-figure(4) ; clf ; imagesc(distanceTransform) ; axis off image ;
+figure(4) ; clf ; imagesc(sqrt(distanceTransform)) ; axis off image ;
figure(1) ; vl_demo_print('imdisttf_src') ;
figure(2) ; vl_demo_print('imdisttf_edge') ;
View
26 toolbox/demo/vl_demo_sift_match.m
@@ -10,19 +10,7 @@
% --------------------------------------------------------------------
Ia = imread(fullfile(vl_root,'data','a.jpg')) ;
-
-th = pi/4 ;
-sc = 4 ;
-c = sc*cos(th) ;
-s = sc*sin(th) ;
-A = [c -s; s c] ;
-T = [- size(Ia,2) ; - size(Ia,1)] / 2 ;
-
-tform = maketform('affine', [A, A * T - T ; 0 0 1]') ;
-Ib = imtransform(Ia,tform,'size',size(Ia), ...
- 'xdata', [1 size(Ia,2)], ...
- 'ydata', [1 size(Ia,1)], ...
- 'fill', 255);
+Ib = imread(fullfile(vl_root,'data','b.jpg')) ;
% --------------------------------------------------------------------
% Extract features and match
@@ -39,6 +27,11 @@
figure(1) ; clf ;
imagesc(cat(2, Ia, Ib)) ;
+axis image off ;
+vl_demo_print('sift_match_1', 1) ;
+
+figure(2) ; clf ;
+imagesc(cat(2, Ia, Ib)) ;
xa = fa(1,matches(1,:)) ;
xb = fb(1,matches(2,:)) + size(Ia,2) ;
@@ -47,12 +40,11 @@
hold on ;
h = line([xa ; xb], [ya ; yb]) ;
-set(h,'linewidth', 2, 'color', 'b') ;
+set(h,'linewidth', 1, 'color', 'b') ;
vl_plotframe(fa(:,matches(1,:))) ;
fb(1,:) = fb(1,:) + size(Ia,2) ;
vl_plotframe(fb(:,matches(2,:))) ;
-axis equal ;
-axis off ;
+axis image off ;
-vl_demo_print('sift_match_1', 1) ;
+vl_demo_print('sift_match_2', 1) ;
View
4 toolbox/demo/vl_demo_sift_vs_ubc.m
@@ -33,8 +33,8 @@
imagesc(im) ; colormap(gray(256)) ; hold on ;
vl_plotframe(f1, 'linewidth', 3, 'color', 'r') ;
vl_plotframe(f2, 'linewidth', 1, 'color', 'b') ;
-axis off ;
-vl_demo_print('sift_vs_ubc_1') ;
+axis image off ;
+vl_demo_print('sift_vs_ubc_1', 0.7) ;
figure(2) ; clf ;
pie(h) ;

0 comments on commit df9485f

Please sign in to comment.