3#include <visp3/core/vpImage.h>
4typedef unsigned char u_char;
10# define TARGET_RT_MAC_CFM 0
16JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageUChar_n_1VpImageUChar__
17(JNIEnv *env, jclass, jstring type){
24JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageUChar_n_1VpImageUChar__II
25(JNIEnv *env, jclass, jint r, jint c){
31JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageUChar_n_1VpImageUChar__IIB
32(JNIEnv *env, jclass, jint r, jint c, jbyte value){
38JNIEXPORT 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);
49JNIEXPORT jint JNICALL Java_org_visp_core_VpImageUChar_n_1cols
50(JNIEnv *env, jclass, jlong address){
57JNIEXPORT jint JNICALL Java_org_visp_core_VpImageUChar_n_1rows
58(JNIEnv *env, jclass, jlong address){
65JNIEXPORT jint JNICALL Java_org_visp_core_VpImageUChar_n_1getPixel
66(JNIEnv *env, jclass, jlong address, jint i, jint j){
73JNIEXPORT jbyteArray JNICALL Java_org_visp_core_VpImageUChar_n_1getPixels
74(JNIEnv *env, jclass, jlong address){
82JNIEXPORT jstring JNICALL Java_org_visp_core_VpImageUChar_n_1dump
83(JNIEnv *env, jclass, jlong address){
87 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