rendered paste body#ifndef IMAGE_H
#define IMAGE_H
using namespace std;
#include <iostream>
#include <stdlib.h>
#include <fstream>
#include <sstream>
#include <string>
#include <math.h>
#include <GL/glut.h>
#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