3#include <visp3/core/vpConfig.h>
4#include <visp3/core/vpImage.h>
5typedef unsigned char u_char;
11#define TARGET_RT_MAC_CFM 0
15#ifdef ENABLE_VISP_NAMESPACE
21# pragma clang diagnostic push
22# pragma clang diagnostic ignored "-Wreserved-identifier"
26 JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageUChar_n_1VpImageUChar__(JNIEnv *env, jclass, jstring type)
34 JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageUChar_n_1VpImageUChar__II(JNIEnv *env, jclass, jint r, jint c)
41 JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageUChar_n_1VpImageUChar__IIB(JNIEnv *env, jclass, jint r, jint c,
49 JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageUChar_n_1VpImageUChar___3BIIZ(JNIEnv *env, jclass, jbyteArray arr,
50 jint h, jint w, jboolean copyData)
52 jbyte *array = env->GetByteArrayElements(arr,
nullptr);
54 return (jlong)
new vpImage<u_char>((u_char *)array,
static_cast<unsigned int>(h),
static_cast<unsigned int>(w), copyData);
57 env->ReleaseByteArrayElements(arr, array, 0);
61 JNIEXPORT jint JNICALL Java_org_visp_core_VpImageUChar_n_1cols(JNIEnv *env, jclass, jlong address)
69 JNIEXPORT jint JNICALL Java_org_visp_core_VpImageUChar_n_1rows(JNIEnv *env, jclass, jlong address)
77 JNIEXPORT jint JNICALL Java_org_visp_core_VpImageUChar_n_1getPixel(JNIEnv *env, jclass, jlong address, jint i, jint j)
85 JNIEXPORT jbyteArray JNICALL Java_org_visp_core_VpImageUChar_n_1getPixels(JNIEnv *env, jclass, jlong address)
94 JNIEXPORT jstring JNICALL Java_org_visp_core_VpImageUChar_n_1dump(JNIEnv *env, jclass, jlong address)
99 return env->NewStringUTF(ss.str().c_str());
102#if defined(__clang__)
103# pragma clang diagnostic pop
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