-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMySIFT.cpp
More file actions
35 lines (27 loc) · 870 Bytes
/
MySIFT.cpp
File metadata and controls
35 lines (27 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/******************************************************
* Code by Utkarsh Sinha
* Based on JIFT by Jun Liu
* Visit http://aishack.in/ for more indepth articles and tutorials
* on artificial intelligence
* Use, reuse, modify, hack, kick. Do whatever you want with
* this code :)
******************************************************/
// MySIFT.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "SIFT.h"
#include <cv.h>
#include <highgui.h>
// The main function!
int main()
{
// Create an instance of SIFT
SIFT *sift = new SIFT("C:\\house.jpg", 4, 2);
sift->DoSift(); // Find keypoints
sift->ShowAbsSigma(); // Display the sigma table
sift->ShowKeypoints(); // Show the keypoints
cvWaitKey(0); // Wait for a keypress
// Cleanup and exit
delete sift;
return 0;
}