summaryrefslogtreecommitdiff
path: root/2004/i/nono/src/ovision/segmTh.h
blob: b4303400c81abfae3fef2c995fe21aeb4a15b3c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef segmTh_h
#define segmTh_h
// segmTh.h - classe Segmentation
// nono - Programme du robot Efrei Robotique I1-I2 2004
// Copyright (C) 2004 Olivier Gaillard


#include "img.h"
#include "config.h"

#define MIN 0
#define MAX 1

class SegmTh
{
	Img *img;
	Config *config;

	int nbOutput; // nb de couleurs a diff�rencier

  public:
	unsigned char *tabSegm; // tableau avec couleurs segment�es

	// Constructeurs.
	SegmTh (Img *img, Config *config);

	// Destructeur.
	~SegmTh (void);

	void Segm();
	void CreateThresholds(char *filename, unsigned char *node); // Cr�e un fichier avec les seuils

  protected:
	unsigned char FindzoneTh (unsigned char *x);
};

#endif // segmTh_h