ContourFinder.hpp

Go to the documentation of this file.
00001 #ifndef LOPER_CONTOURFINDER
00002 #define LOPER_CONTOURFINDER
00003 
00014 #include <standard.hpp>
00015 #include <PortableBitmap.hpp>
00016 #include <Vector.hpp>
00017 #include "Contour.hpp"
00018 
00019 
00020 
00021 class ContourFinder
00022 {
00023 public:
00024 
00025 /*
00026  * Constructors
00027  */
00028     ContourFinder(const PortableBitmap &bmp);
00029 
00030     bool inRange (IntVec &v);
00031     
00032     Contour findNextContour(int pixelCullSize = 0);
00033 
00034 private:
00035     void swallowPixel (const IntVec & pos, Contour & curContour);
00036     PortableBitmap bmp;
00037     PortableBitmap pixelsFound;
00038 };
00039 
00040 
00041 
00042 #endif // LOPER_CONTOURFINDER

Generated on Mon May 26 11:19:28 2003 for CamChecker by doxygen1.3