00001
00002
00003
00004
00005
00006
00007
00008 #pragma once
00009 #include <cv.h>
00010 #include <cvaux.h>
00011 #include <iostream>
00012 #include <stdlib.h>
00013 #include <highgui.h>
00014 #include <iostream>
00015 using namespace std;
00016
00017
00018
00019 #include "tnt_array2d.h"
00020 #include "tnt_array1d.h"
00021 using namespace TNT;
00022
00023
00024
00025 #include "jama_qr.h"
00026 using namespace JAMA;
00027
00028 #include "Points.h"
00029 #include "PointList.h"
00030 namespace Recognition{
00031 class Points;
00032
00039 class Image{
00040 public:
00042 IplImage* img;
00043 public:
00045 char name[500];
00046 Image(char *);
00047 ~Image(void);
00048 void save(char *);
00049 int valid(){
00050 return img!=NULL;
00051 }
00053 void dim();
00055 void markPoints(PointList &points);
00057 void smooth();
00058
00060 void display(){
00061 cvShowImage("mainWin", img );
00062 }
00065 int verifyPoint(Point &,int radius=5);
00067 void undistort(double k1,double k2,double u,double v,double alpha,double beta);
00068 };
00069 }