Welcome: MATLAB generation | MATLAB generation writing | MATLAB paid programming—gususoft
Language: Chinese ∷  English

News

Matlab programming, C++ programming, Apple Android app design, Python website PHP language

% Add subfolder path.
main; 
clc;
clear;

img1_dir = 'demo-data\';

img1_file = 'beaver11.bmp';

I1=imreadbw([img1_dir img1_file]) ; 
I1_rgb = imread([img1_dir img1_file]) ; 
I1=imresize(I1, [240 320]);

I1_rgb =imresize(I1_rgb, [240 320]);
I1=I1-min(I1(:)) ; %图像插值缩放可能产生值超出0-1的范围的像素
I1=I1/max(I1(:)) ; %这两步重新归一化图像缩放后的数据

%fprintf('CS5240 -- SIFT: Match image: Computing frames and descriptors.\n') ;
[frames1,descr1,gss1,dogss1 ] = do_sift( I1, 'Verbosity', 1, 'NumOctaves', 4, 'Threshold',  0.1/3/2 ) ; %0.04/3/2



figure(1) ; clf ; plotss(dogss1) ; colormap gray ;
drawnow ;

figure(2) ; clf ;
imshow(I1_rgb) ; axis image ;

hold on ;
h=plotsiftframe( frames1 ) ; set(h,'LineWidth',1,'Color','g') ;

CATEGORIES

    CONTACT US

    Contact: Jishu.li

    Phone: 15601902705

    Tel: 15601902705

    Email: 1747812398@qq.com

    Add: No. 800 Dongchuan Road, Shanghai, Minhang District

    Scan the qr codeClose
    the qr code