Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxGetBlobFeatures.h

Go to the documentation of this file.
00001 /*
00002  *  Copyright (c) 2002, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *  Author(s):
00006  *  Leon Todoran            (todoran@science.uva.nl)
00007  */
00008 
00011 #ifndef HxGetBlobFeatures_h
00012 #define HxGetBlobFeatures_h
00013 
00014 
00015 #include "HxVec3Byte.h"
00016 #include <vector>
00017 
00018 
00019 //using namespace std;
00020 using std::vector;
00021 //using std::set;
00022 
00023 typedef struct _basicFeatures{
00024     int label;
00025     HxVec3Byte val; 
00026     int xmin,ymin,xmax,ymax;
00027     int area;
00028     vector< _basicFeatures* > neighbors;
00029     bool visited;
00030 //used for area opening
00031     bool operator < (const struct _basicFeatures &rhs) const { 
00032         if (val.x() >= rhs.val.x()) return true;
00033         else return false;
00034     }
00035 //for area closing
00036     bool compLT(const struct _basicFeatures &rhs) const { 
00037         if (val.x() <= rhs.val.x()) return true;
00038         else return false;
00039     }
00040 }BasicFeatures;
00041 
00042 
00043 typedef vector< BasicFeatures* > BasicFeaturesList;
00044 
00045 
00046 BasicFeaturesList L_HXIMAGEREP
00047 HxGetBlobFeatures(HxImageRep input,HxImageRep &output,int conn, int minArea);
00048 
00049 #endif

Generated on Tue Feb 3 14:18:35 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001