3#include <visp3/core/vpImage.h>
4typedef unsigned char u_char;
10#define TARGET_RT_MAC_CFM 0
15JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageUChar_n_1VpImageUChar__(JNIEnv *env, jclass, jstring type)
23JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageUChar_n_1VpImageUChar__II(JNIEnv *env, jclass, jint r, jint c)
30JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageUChar_n_1VpImageUChar__IIB(JNIEnv *env, jclass, jint r, jint c,
38JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageUChar_n_1VpImageUChar___3BIIZ(JNIEnv *env, jclass, jbyteArray arr,
39 jint h, jint w, jboolean copyData)
41 jbyte *array = env->GetByteArrayElements(arr, NULL);
43 return (jlong)
new vpImage<u_char>((u_char *
const)array, (
const unsigned int)h, (
const unsigned int)w, copyData);
46 env->ReleaseByteArrayElements(arr, array, 0);
50JNIEXPORT jint JNICALL Java_org_visp_core_VpImageUChar_n_1cols(JNIEnv *env, jclass, jlong address)
58JNIEXPORT jint JNICALL Java_org_visp_core_VpImageUChar_n_1rows(JNIEnv *env, jclass, jlong address)
66JNIEXPORT jint JNICALL Java_org_visp_core_VpImageUChar_n_1getPixel(JNIEnv *env, jclass, jlong address, jint i, jint j)
74JNIEXPORT jbyteArray JNICALL Java_org_visp_core_VpImageUChar_n_1getPixels(JNIEnv *env, jclass, jlong address)
83JNIEXPORT jstring JNICALL Java_org_visp_core_VpImageUChar_n_1dump(JNIEnv *env, jclass, jlong address)
88 return env->NewStringUTF(ss.str().c_str());
Definition of the vpImage class member functions.
unsigned int getNumberOfPixel() const
unsigned int getCols() const
Type * bitmap
points toward the bitmap
unsigned int getRows() const