[ASIFT 3] Computing ASIFT keypoints and matching

本文介绍了一种改进的尺度不变特征变换(SIFT)算法——ASIFT。该算法通过模拟多种倾斜角度来增强SIFT对图像旋转变化的鲁棒性。文中详细描述了ASIFT的关键步骤,包括关键点检测与匹配过程,并提供了具体实现参数。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

In this algorithm, using SIFT to obtain keypoints and match them.

set num_of_tilts  7, from 1, 1.414, 2......to......

if number of tilt equals 1, I think ASIFT is SIFT.

//// Compute ASIFT keypoints
     // number N of tilts to simulate t = 1, \sqrt{2}, (\sqrt{2})^2, ..., {\sqrt{2}}^(N-1)
     int num_of_tilts1 = 7;
     int num_of_tilts2 = 7;
     //  int num_of_tilts1 = 1;
     //  int num_of_tilts2 = 1;
     int verb = 0;
     // Define the SIFT parameters
     siftPar siftparameters; 
     default_sift_parameters(siftparameters);
 
     vector< vector< keypointslist > > keys1;        
     vector< vector< keypointslist > > keys2;    
     
     int num_keys1=0, num_keys2=0;
     
     
     cout << "Computing keypoints on the two images..." << endl;
     time_t tstart, tend;    
     tstart = time(0);
 
     num_keys1 = compute_asift_keypoints(ipixels1_zoom, wS1, hS1, num_of_tilts1, verb, keys1, siftparameters);
     num_keys2 = compute_asift_keypoints(ipixels2_zoom, wS2, hS2, num_of_tilts2, verb, keys2, siftparameters);
     
     tend = time(0);
     cout << "Keypoints computation accomplished in " << difftime(tend, tstart) << " seconds." << endl;
     
computing the keyspoint by siftparameter, storing in the vector 'key1' and 'key2'.


//// Match ASIFT keypoints
     int num_matchings;
     matchingslist matchings;    
     cout << "Matching the keypoints..." << endl;
     tstart = time(0);
     num_matchings = compute_asift_matches(num_of_tilts1, num_of_tilts2, wS1, hS1, wS2, 
                                           hS2, verb, keys1, keys2, matchings, siftparameters);
     tend = time(0);
     cout << "Keypoints matching accomplished in " << difftime(tend, tstart) << " seconds." << endl;

matching keypoints by using keys1 and keys2, storing in the matchingList 'matching'.



ok, now we finish the main steps of ASIFT. Thanks for theJean-Michel Morel and Guoshen Yu.



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值