Blame view

3rdparty/opencv-4.5.4/modules/imgproc/misc/java/test/Subdiv2DTest.java 2.76 KB
f4334277   Hu Chunming   提交3rdparty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
  package org.opencv.test.imgproc;
  
  import org.opencv.core.MatOfFloat6;
  import org.opencv.core.Point;
  import org.opencv.core.Rect;
  import org.opencv.imgproc.Subdiv2D;
  import org.opencv.test.OpenCVTestCase;
  
  public class Subdiv2DTest extends OpenCVTestCase {
  
      protected void setUp() throws Exception {
          super.setUp();
      }
  
      public void testEdgeDstInt() {
          fail("Not yet implemented");
      }
  
      public void testEdgeDstIntPoint() {
          fail("Not yet implemented");
      }
  
      public void testEdgeOrgInt() {
          fail("Not yet implemented");
      }
  
      public void testEdgeOrgIntPoint() {
          fail("Not yet implemented");
      }
  
      public void testFindNearestPoint() {
          fail("Not yet implemented");
      }
  
      public void testFindNearestPointPoint() {
          fail("Not yet implemented");
      }
  
      public void testGetEdge() {
          fail("Not yet implemented");
      }
  
      public void testGetEdgeList() {
          fail("Not yet implemented");
      }
  
      public void testGetTriangleList() {
          Subdiv2D s2d = new Subdiv2D( new Rect(0, 0, 50, 50) );
          s2d.insert( new Point(10, 10) );
          s2d.insert( new Point(20, 10) );
          s2d.insert( new Point(20, 20) );
          s2d.insert( new Point(10, 20) );
          MatOfFloat6 triangles = new MatOfFloat6();
          s2d.getTriangleList(triangles);
          assertEquals(2, triangles.rows());
          /*
          int cnt = triangles.rows();
          float buff[] = new float[cnt*6];
          triangles.get(0, 0, buff);
          for(int i=0; i<cnt; i++)
              Log.d("*****", "["+i+"]: " + // (a.x, a.y) -> (b.x, b.y) -> (c.x, c.y)
                      "("+buff[6*i+0]+","+buff[6*i+1]+")" + "->" +
                      "("+buff[6*i+2]+","+buff[6*i+3]+")" + "->" +
                      "("+buff[6*i+4]+","+buff[6*i+5]+")"
                      );
          */
      }
  
      public void testGetVertexInt() {
          fail("Not yet implemented");
      }
  
      public void testGetVertexIntIntArray() {
          fail("Not yet implemented");
      }
  
      public void testGetVoronoiFacetList() {
          fail("Not yet implemented");
      }
  
      public void testInitDelaunay() {
          fail("Not yet implemented");
      }
  
      public void testInsertListOfPoint() {
          fail("Not yet implemented");
      }
  
      public void testInsertPoint() {
          fail("Not yet implemented");
      }
  
      public void testLocate() {
          fail("Not yet implemented");
      }
  
      public void testNextEdge() {
          fail("Not yet implemented");
      }
  
      public void testRotateEdge() {
          fail("Not yet implemented");
      }
  
      public void testSubdiv2D() {
          fail("Not yet implemented");
      }
  
      public void testSubdiv2DRect() {
          fail("Not yet implemented");
      }
  
      public void testSymEdge() {
          fail("Not yet implemented");
      }
  
  }