[chronojump] kneeAngle: after show minimum need to press q or Q



commit bf690ac88784bab564565da0fc1e5e6fce574ef7
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Mar 29 21:02:40 2010 +0800

    kneeAngle: after show minimum need to press q or Q

 src/angle/kneeAngle.cpp |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/src/angle/kneeAngle.cpp b/src/angle/kneeAngle.cpp
index fb1507d..eae21e2 100644
--- a/src/angle/kneeAngle.cpp
+++ b/src/angle/kneeAngle.cpp
@@ -1763,7 +1763,7 @@ imageGuiResult(gui, "returned", font);
 	 * END OF MAIN LOOP
 	 */
 		
-	imageGuiResult(gui, "Press any key to exit.", font);
+	imageGuiResult(gui, "Press 'q' to exit.", font);
 
 	if( (programMode == validation || programMode == blackWithoutMarkers) && foundAngleOneTime) 
 	{
@@ -1781,17 +1781,20 @@ imageGuiResult(gui, "returned", font);
 				minThetaMarked-minThetaExpected, relError(minThetaExpected, minThetaMarked));
 		printf("%s\n" ,label);
 		*/
-			
-		cvWaitKey(0);
+		
 	}
 	else {
 		//printf("*** Result ***\nMin angle: %.2f, lowest angle frame: %d\n", minThetaMarked, lowestAngleFrame);
 		cvNamedWindow("Minimum Frame",1);
 		cvShowImage("Minimum Frame", result);
-		cvWaitKey(0);
-					
 		printf("MIN: %d;%.2f\n", lowestAngleFrame, minThetaMarked);
 	}
+	
+
+	do {
+		key =  (char) cvWaitKey(0);
+	} while (key != 'q' && key != 'Q');
+					
 
 	cvClearMemStorage( stickStorage );
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]