00001 #ifndef SEGMENT_HASHMAP_TOOL 00002 #define SEGMENT_HASHMAP_TOOL 00003 00004 #include "image.h" 00005 #include "rgba.h" 00006 00007 namespace mimas { 00008 class segment_hashmap_tool 00009 { 00010 private: 00011 bool mapCreated; 00012 bool quantLevelsSet; 00013 00014 protected: 00015 int ***hashmap; 00016 int qlevels; 00017 00018 public: 00019 segment_hashmap_tool(void); 00020 ~segment_hashmap_tool(void); 00021 void setQuantisationLevels(int levels); 00022 void storeColours(const image< rgba< unsigned char > > &imagein); 00023 void segment(const image< rgba< unsigned char > > &imagein, image< rgba< unsigned char > > &imageout, int thres); 00024 }; 00025 00026 } 00027 00028 #endif