00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #pragma once
00018 #include "Point.h"
00019 #include <stdlib.h>
00020 namespace Recognition{
00024 class Node
00025 {
00026 public:
00027
00028 Node(float imgx,float imgy,int gridx=-1, int gridy=-1,Node *prev=NULL, Node *next=NULL)
00029 {
00030 data.imgx=imgx;
00031 data.imgy=imgy;
00032 data.gridx=gridx;
00033 data.gridy=gridy;
00034 this->next=next;
00035 this->prev=prev;
00036 if(next!=NULL)
00037 next->prev=this;
00038 if(prev!=NULL)
00039 prev->next=this;
00040 flag=0;
00041 }
00042 public:
00043
00044 ~Node(void)
00045 {
00046 }
00047 Node *next;
00048 Node *prev;
00049 Point data;
00050 int flag;
00051 };
00052 }
00053