Java API: test for Highgui.imencode() is added
This commit is contained in:
parent
07746b54d6
commit
3e323e6ff8
@ -1,5 +1,8 @@
|
||||
package org.opencv.test.highgui;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.opencv.highgui.Highgui;
|
||||
import org.opencv.test.OpenCVTestCase;
|
||||
import org.opencv.test.OpenCVTestRunner;
|
||||
@ -11,7 +14,10 @@ public class HighguiTest extends OpenCVTestCase {
|
||||
}
|
||||
|
||||
public void testImencodeStringMatListOfByte() {
|
||||
fail("Not yet implemented");
|
||||
List<Byte> buf = new ArrayList<Byte>();
|
||||
assertEquals(0, buf.size());
|
||||
assertTrue( Highgui.imencode(".jpg", gray127, buf) );
|
||||
assertFalse(0 == buf.size());
|
||||
}
|
||||
|
||||
public void testImencodeStringMatListOfByteListOfInteger() {
|
||||
|
Loading…
Reference in New Issue
Block a user