From c16f018afdd2f69755181e0ef8a934985dafe2e2 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Sat, 6 Aug 2011 10:03:24 +0000 Subject: [PATCH] mc --- .../android_test/src/org/opencv/test/video/VideoTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/java/android_test/src/org/opencv/test/video/VideoTest.java b/modules/java/android_test/src/org/opencv/test/video/VideoTest.java index 29846f9de3..beccccfa19 100644 --- a/modules/java/android_test/src/org/opencv/test/video/VideoTest.java +++ b/modules/java/android_test/src/org/opencv/test/video/VideoTest.java @@ -32,8 +32,8 @@ public class VideoTest extends OpenCVTestCase { shift1 = 10; shift2 = 17; - w = rgbLena.cols() / 2; - h = rgbLena.rows() / 2; + w = (int)(rgbLena.cols() / 2); + h = (int)(rgbLena.rows() / 2); subLena1 = rgbLena.submat(shift1, h + shift1, shift1, w + shift1); subLena2 = rgbLena.submat(shift2, h + shift2, shift2, w + shift2);