3#include <visp3/core/vpImage.h>
4#include <visp3/core/vpRGBa.h>
10#define TARGET_RT_MAC_CFM 0
15JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageRGBa_n_1VpImageRGBa__(JNIEnv *env, jclass, jstring type)
23JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageRGBa_n_1VpImageRGBa__II(JNIEnv *env, jclass, jint r, jint c)
30JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageRGBa_n_1VpImageRGBa__IICCCC(JNIEnv *env, jclass, jint r, jint c,
31 jchar R, jchar G, jchar B, jchar A)
39JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageRGBa_n_1VpImageRGBa___3BIIZ(JNIEnv *env, jclass, jbyteArray arr,
40 jint h, jint w, jboolean copyData)
42 jbyte *array = env->GetByteArrayElements(arr, NULL);
44 return (jlong)
new vpImage<vpRGBa>((
vpRGBa *
const)array, (
const unsigned int)h, (
const unsigned int)w, copyData);
47 env->ReleaseByteArrayElements(arr, array, 0);
51JNIEXPORT jint JNICALL Java_org_visp_core_VpImageRGBa_n_1cols(JNIEnv *env, jclass, jlong address)
59JNIEXPORT jint JNICALL Java_org_visp_core_VpImageRGBa_n_1rows(JNIEnv *env, jclass, jlong address)
67JNIEXPORT jbyteArray JNICALL Java_org_visp_core_VpImageRGBa_n_1getPixel(JNIEnv *env, jclass, jlong address, jint i,
72 jbyteArray ret = env->NewByteArray(4);
73 unsigned char temp[] = {val.
R, val.
G, val.
B, val.
A};
74 env->SetByteArrayRegion(ret, 0, 4, (jbyte *)temp);
79JNIEXPORT jbyteArray JNICALL Java_org_visp_core_VpImageRGBa_n_1getPixels(JNIEnv *env, jclass, jlong address)
88JNIEXPORT jstring JNICALL Java_org_visp_core_VpImageRGBa_n_1dump(JNIEnv *env, jclass, jlong address)
93 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
unsigned char B
Blue component.
unsigned char R
Red component.
unsigned char G
Green component.
unsigned char A
Additionnal component.