0

I want to convert some C++ code to Java and I need Java equivalent of uchar to use the below C++ code.

cvSetReal2D(output, x, y, CV_MAT_ELEM(input, uchar, y, x));
Edward A
  • 2,291
  • 2
  • 18
  • 31
Shah
  • 661
  • 2
  • 9
  • 19
  • Byte? http://docs.oracle.com/javase/6/docs/api/java/lang/Byte.html – SBI May 27 '13 at 11:06
  • 1
    In Java, you always deal with Unicode. You can use [this](http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#getBytes%28java.nio.charset.Charset%29). – AllTooSir May 27 '13 at 11:06
  • And what is `CV_MAT_ELEM()` supposed to do? – fge May 27 '13 at 11:33

0 Answers0