3#include <visp3/core/vpImage.h>
4#include <visp3/core/vpRGBa.h>
10# define TARGET_RT_MAC_CFM 0
16JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageRGBa_n_1VpImageRGBa__
17(JNIEnv *env, jclass, jstring type){
24JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageRGBa_n_1VpImageRGBa__II
25(JNIEnv *env, jclass, jint r, jint c){
31JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageRGBa_n_1VpImageRGBa__IICCCC
32(JNIEnv *env, jclass, jint r, jint c, jchar R, jchar G, jchar B, jchar A){
39JNIEXPORT jlong JNICALL Java_org_visp_core_VpImageRGBa_n_1VpImageRGBa___3BIIZ
40(JNIEnv *env, jclass, jbyteArray arr, jint h, jint w, jboolean copyData){
41 jbyte *array = env->GetByteArrayElements(arr, NULL);
43 return (jlong)
new vpImage<vpRGBa>((
vpRGBa *
const) array, (
const unsigned int) h, (
const unsigned int) w, copyData);
46 env->ReleaseByteArrayElements(arr, array, 0);
50JNIEXPORT jint JNICALL Java_org_visp_core_VpImageRGBa_n_1cols
51(JNIEnv *env, jclass, jlong address){
58JNIEXPORT jint JNICALL Java_org_visp_core_VpImageRGBa_n_1rows
59(JNIEnv *env, jclass, jlong address){
66JNIEXPORT jbyteArray JNICALL Java_org_visp_core_VpImageRGBa_n_1getPixel
67(JNIEnv *env, jclass, jlong address, jint i, jint j){
70 jbyteArray ret = env->NewByteArray(4);
71 unsigned char temp[] = {val.
R,val.
G,val.
B,val.
A};
72 env->SetByteArrayRegion (ret, 0, 4, (jbyte*) temp);
77JNIEXPORT jbyteArray JNICALL Java_org_visp_core_VpImageRGBa_n_1getPixels
78(JNIEnv *env, jclass, jlong address){
86JNIEXPORT jstring JNICALL Java_org_visp_core_VpImageRGBa_n_1dump
87(JNIEnv *env, jclass, jlong address){
91 return env->NewStringUTF(ss.str().c_str());
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.