From 741cba373d7e982026de91ee1ceeb18a8f64b367 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 4 Dec 2013 11:10:55 +0000 Subject: min/max --- rotord/src/cvimage.cpp | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'rotord/src/cvimage.cpp') diff --git a/rotord/src/cvimage.cpp b/rotord/src/cvimage.cpp index 2d0f8e2..7aae63e 100644 --- a/rotord/src/cvimage.cpp +++ b/rotord/src/cvimage.cpp @@ -150,6 +150,30 @@ namespace Rotor { } return *this; } + Image & Image::min(const Image &other) { + if (other.w!=w||other.h!=h) { + cerr<<"Rotor: cannot min images with different sizes! (wanted "<