From d244b28641e227b0ea609c0ccedb43f790e33ef6 Mon Sep 17 00:00:00 2001 From: Patrick Wieschollek Date: Tue, 28 Oct 2014 14:03:19 +0100 Subject: [PATCH] add new shortcut Pressing 'w' will select complete image --- src/imageclipper.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/imageclipper.cpp b/src/imageclipper.cpp index 20c8999..0e71e36 100755 --- a/src/imageclipper.cpp +++ b/src/imageclipper.cpp @@ -423,6 +423,12 @@ void key_callback( const ArgParam* arg, CvCallbackParam* param ) // // Rectangle Movement (Vi like hotkeys). // + case 'w': + param->rect.x =0; + param->rect.y =0; + param->rect.width = param->img->width; + param->rect.height = param->img->height; + break; // Left. case 29: