3 #include <visp3/core/vpImage.h> 4 typedef unsigned char u_char;
10 # define TARGET_RT_MAC_CFM 0 16 JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageUChar_n_1VpImageUChar__
17 (JNIEnv *env, jclass, jstring type){
24 JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageUChar_n_1VpImageUChar__II
25 (JNIEnv *env, jclass, jint r, jint c){
31 JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageUChar_n_1VpImageUChar__IIB
32 (JNIEnv *env, jclass, jint r, jint c, jbyte value){
38 JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageUChar_n_1VpImageUChar___3BIIZ
39 (JNIEnv *env, jclass, jbyteArray arr, jint h, jint w, jboolean copyData){
40 jbyte *array = env->GetByteArrayElements(arr, NULL);
42 return (jlong)
new vpImage<u_char>((u_char *
const) array, (
const unsigned int) h, (
const unsigned int) w, copyData);
45 env->ReleaseByteArrayElements(arr, array, 0);
49 JNIEXPORT jint JNICALL Java_org_visp_core_VpImageUChar_n_1cols
50 (JNIEnv *env, jclass, jlong address){
57 JNIEXPORT jint JNICALL Java_org_visp_core_VpImageUChar_n_1rows
58 (JNIEnv *env, jclass, jlong address){
65 JNIEXPORT jint JNICALL Java_org_visp_core_VpImageUChar_n_1getPixel
66 (JNIEnv *env, jclass, jlong address, jint i, jint j){
73 JNIEXPORT jbyteArray JNICALL Java_org_visp_core_VpImageUChar_n_1getPixels
74 (JNIEnv *env, jclass, jlong address){
82 JNIEXPORT jstring JNICALL Java_org_visp_core_VpImageUChar_n_1dump
83 (JNIEnv *env, jclass, jlong address){
87 return env->NewStringUTF(ss.str().c_str());
unsigned int getCols() const
Type * bitmap
points toward the bitmap
unsigned int getRows() const
unsigned int getNumberOfPixel() const
Definition of the vpImage class member functions.