Revert "fixing Java test and sample after moving drawContours() from Imgproc to Core"
authorAndrey Kamaev <andrey.kamaev@itseez.com>
Mon, 15 Oct 2012 13:53:57 +0000 (17:53 +0400)
committerAndrey Kamaev <andrey.kamaev@itseez.com>
Mon, 15 Oct 2012 13:53:57 +0000 (17:53 +0400)
This reverts commit eb4ce67dac4b0ebdb7e0c6f97cecd3bf263c14e5.

Conflicts:
samples/android/color-blob-detection/src/org/opencv/samples/colorblobdetect/ColorBlobDetectionView.java

modules/java/android_test/src/org/opencv/test/imgproc/ImgprocTest.java
samples/android/color-blob-detection/src/org/opencv/samples/colorblobdetect/ColorBlobDetectionView.java

index 5aec918..2c3b58e 100644 (file)
@@ -678,7 +678,7 @@ public class ImgprocTest extends OpenCVTestCase {
         List<MatOfPoint> contours = new ArrayList<MatOfPoint>();
         Imgproc.findContours(gray0, contours, new Mat(), Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);
 
-        Core.drawContours(gray0, contours, -1, new Scalar(0));
+        Imgproc.drawContours(gray0, contours, -1, new Scalar(0));
 
         assertEquals(0, Core.countNonZero(gray0));
     }
@@ -688,7 +688,7 @@ public class ImgprocTest extends OpenCVTestCase {
         List<MatOfPoint> contours = new ArrayList<MatOfPoint>();
         Imgproc.findContours(gray0, contours, new Mat(), Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);
 
-        Core.drawContours(gray0, contours, -1, new Scalar(0), Core.FILLED);
+        Imgproc.drawContours(gray0, contours, -1, new Scalar(0), Core.FILLED);
 
         assertEquals(0, Core.countNonZero(gray0));
     }
index e7fdbcf..6ad57da 100644 (file)
@@ -116,7 +116,7 @@ public class ColorBlobDetectionView extends SampleCvViewBase implements OnTouchL
             mDetector.process(mRgba);
             List<MatOfPoint> contours = mDetector.getContours();
             Log.e(TAG, "Contours count: " + contours.size());
-            Core.drawContours(mRgba, contours, -1, CONTOUR_COLOR);
+            Imgproc.drawContours(mRgba, contours, -1, CONTOUR_COLOR);
 
             Mat colorLabel = mRgba.submat(2, 34, 2, 34);
             colorLabel.setTo(mBlobColorRgba);