|
Video Processing Framework
|
00001 /****************************************************** 00002 * Code by Utkarsh Sinha 00003 * Based on JIFT by Jun Liu 00004 * Visit http://aishack.in/ for more indepth articles and tutorials 00005 * on artificial intelligence 00006 * Use, reuse, modify, hack, kick. Do whatever you want with 00007 * this code :) 00008 ******************************************************/ 00009 00010 #ifndef _KEYPOINT_H 00011 #define _KEYPOINT_H 00012 00013 //#include "stdafx.h" 00014 #include <vector> 00015 00016 using namespace std; 00017 00018 class Keypoint 00019 { 00020 public: 00021 float xi; 00022 float yi; // It's location 00023 vector<double> mag; // The list of magnitudes at this point 00024 vector<double> orien; // The list of orientations detected 00025 unsigned int scale; // The scale where this was detected 00026 00027 Keypoint() { } 00028 Keypoint(float x, float y) { xi=x; yi=y; } 00029 Keypoint(float x, float y, vector<double> const& m, vector<double> const& o, unsigned int s) 00030 { 00031 xi = x; 00032 yi = y; 00033 mag = m; 00034 orien = o; 00035 scale = s; 00036 } 00037 }; 00038 00039 #endif