From b8eada804c20bbb3a9e56fca62c38a08ee7de531 Mon Sep 17 00:00:00 2001 From: gaillaro Date: Sun, 1 May 2005 11:18:55 +0000 Subject: integration nouvelle cam --- 2005/i/robert/src/ovision/ui/live.hh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to '2005/i/robert/src/ovision/ui/live.hh') diff --git a/2005/i/robert/src/ovision/ui/live.hh b/2005/i/robert/src/ovision/ui/live.hh index b590364..4eac3be 100644 --- a/2005/i/robert/src/ovision/ui/live.hh +++ b/2005/i/robert/src/ovision/ui/live.hh @@ -62,10 +62,11 @@ class Live Magnifier *mag; /// nom de l'image courante char fname[100]; + /// taille image + unsigned width_, height_; /// Initialisation - void init (const Image::PixelFormat pf = Image::rgb, const char *filename = 0, - const unsigned width=360, const unsigned height=296); + void init (const Image::PixelFormat pf = Image::rgb, const char *filename = 0); /// Recharge le fichier de config void reloadConfig (const char *filename); /// Segmentation et groupement des couleurs @@ -73,10 +74,10 @@ class Live /// Fixe une image ségmentée et une image de groupe dans la partie centrale void rootPics (); /// Mis à jour de l'image - void updateImg (const Image::PixelFormat pf = Image::rgb, const char *filename = 0, - const unsigned width=360, const unsigned height=296); + void updateImg (const Image::PixelFormat pf = Image::rgb, const char *filename = 0); /// Accessors void setColorToFind (const int color) {colorToFind_ = color;} + void setSize (unsigned width, unsigned height) {width_ = width; height_ = height;} private: ImageInput imgInput_; -- cgit v1.2.3