summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/ovision/see/img.hh
diff options
context:
space:
mode:
Diffstat (limited to '2005/i/robert/src/ovision/see/img.hh')
-rw-r--r--2005/i/robert/src/ovision/see/img.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/2005/i/robert/src/ovision/see/img.hh b/2005/i/robert/src/ovision/see/img.hh
index 750e629..43c6c76 100644
--- a/2005/i/robert/src/ovision/see/img.hh
+++ b/2005/i/robert/src/ovision/see/img.hh
@@ -56,6 +56,10 @@ class Img
void loadMultipeRaw (const std::vector<std::string> &imgList, const Image::PixelFormat colorMode, const int width, const int height);
/// Lit une image depuis un Image.
void load (ImageReader &loader);
+ /// Renvoie le minimum en fonction d'une bordure
+ inline int minWithBorder (int n, int min) {return n > min ? n : min;}
+ /// Renvoie le maximum en fonction d'une bordure
+ inline int maxWithBorder (int n, int max) {return n < max ? n : max;}
protected:
/// tableau des couleurs bruts