#ifndef IMAGE_H #define IMAGE_H using namespace std; #include #include #include #include #include #include #include #define NIVEAU_MAX 10 class image { private: int largeur, hauteur; unsigned char *donnees; bool *regionsSplit; bool *regionsMerge; double *regions; int charger (string nomFichier); int getNbPixelRegion (int xMin, int xMax, int yMin, int yMax); double getMoyenneRegion (int xMin, int xMax, int yMin, int yMax, int nbPixel); bool isRegionHomogene (int xMin, int xMax, int yMin, int yMax, double moyenne); public: image (string nomFichier); ~image (); int getLargeur (); int getHauteur (); unsigned char * getDonnees (); void grouper (); void diviser (); void diviser (int xMin, int xMax, int yMin, int yMax, int niveau); void afficherDivision (); void afficherGroupement (); }; #endif