ObjdetectTest.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package org.opencv.test.objdetect;
  2. import org.opencv.test.OpenCVTestCase;
  3. public class ObjdetectTest extends OpenCVTestCase {
  4. public void testGroupRectanglesListOfRectListOfIntegerInt() {
  5. fail("Not yet implemented");
  6. /*
  7. final int NUM = 10;
  8. MatOfRect rects = new MatOfRect();
  9. rects.alloc(NUM);
  10. for (int i = 0; i < NUM; i++)
  11. rects.put(i, 0, 10, 10, 20, 20);
  12. int groupThreshold = 1;
  13. Objdetect.groupRectangles(rects, null, groupThreshold);//TODO: second parameter should not be null
  14. assertEquals(1, rects.total());
  15. */
  16. }
  17. public void testGroupRectanglesListOfRectListOfIntegerIntDouble() {
  18. fail("Not yet implemented");
  19. /*
  20. final int NUM = 10;
  21. MatOfRect rects = new MatOfRect();
  22. rects.alloc(NUM);
  23. for (int i = 0; i < NUM; i++)
  24. rects.put(i, 0, 10, 10, 20, 20);
  25. for (int i = 0; i < NUM; i++)
  26. rects.put(i, 0, 10, 10, 25, 25);
  27. int groupThreshold = 1;
  28. double eps = 0.2;
  29. Objdetect.groupRectangles(rects, null, groupThreshold, eps);//TODO: second parameter should not be null
  30. assertEquals(2, rects.size());
  31. */
  32. }
  33. }