00001 #include "Component/ModelManager.H" 00002 #include "Component/OptionManager.H" 00003 00004 #include "Component/ModelComponent.H" 00005 #include "Component/ModelParam.H" 00006 #include "Media/FrameSeries.H" 00007 #include "Transport/FrameInfo.H" 00008 #include "Raster/GenericFrame.H" 00009 #include "Image/Image.H" 00010 #include "GUI/XWinManaged.H" 00011 #include "GUI/ImageDisplayStream.H" 00012 #include "Image/Image.H" 00013 #include "Image/Pixels.H" 00014 #include "Robots/SeaBeeIII/VisionBrainComponentI.H" 00015 00016 #include "Ice/RobotBrainObjects.ice.H" 00017 #include "Ice/RobotSimEvents.ice.H" 00018 #include "Ice/IceImageUtils.H" 00019 #include <IceUtil/Thread.h> 00020 00021 #ifndef PIXELIZERI_H 00022 #define PIXELIZERI_H 00023 00024 00025 class PixelizerI : public VisionBrainComponentI 00026 { 00027 public: 00028 00029 PixelizerI(int id, OptionManager& mgr, 00030 const std::string& descrName = "Pixelizer", 00031 const std::string& tagName = "Pixelizer"); 00032 00033 ~PixelizerI(); 00034 00035 virtual void updateFrame(Image<PixRGB<byte> > img, bool isFwdCamera); 00036 00037 PixRGB<byte> getAvgTileColor(int colOffset, 00038 int rowOffset, 00039 const Image<PixRGB<byte> >& img); 00040 virtual void registerTopics(); 00041 00042 private: 00043 00044 00045 }; 00046 00047 #endif