Displaying 6 results from an estimated 6 matches for "jobj".
Did you mean:
job
2009 Oct 27
1
Rjava, RImageJ, and/or S4 question.
...lays an image (assuming ImageJ is installed on your computer).
library(RImageJ)
img <- IJ$openImage( file.choose() ) #pick an available .tif file
img$show() # make the image object visible
# An image is now displayed
# find out about the objects involved
> str(IJ)
Formal class 'jobjRef' [package "rJava"] with 2 slots
..@ jobj :<externalptr>
..@ jclass: chr "ij/IJ"
> str(img)
Formal class 'jobjRef' [package "rJava"] with 2 slots
..@ jobj :<externalptr>
..@ jclass: chr "java/lang/Object"
# now use...
2012 Mar 14
0
Audio file is corrupted after decoding
...is near.
But i am not able to play the decoded audio file, the mediaplayer says
that the file has been corrupted.
ENCODING:
#include <jni.h>
#include <stdio.h>
#include "speex/speex.h"
#define FRAME_SIZE 320
void Java_com_m2_iSmartDm_ISmartDMActivity_spxEnc(JNIEnv * env, jobject
jobj,jstring dir1,jstring dir2)
{
const char *inFile= (*env)->GetStringUTFChars(env,dir1,0);
const char *outFile= (*env)->GetStringUTFChars(env,dir2,0);
FILE *fin;
FILE *fout;
short in[FRAME_SIZE];
float input[FRAME_SIZE];
char cbits[360];
int nbBytes;
void *state;
S...
2006 Mar 03
1
Java related (?) problems with RWeka
...Token[=], line 1
at weka.core.Instances.errms(Unknown Source)
at weka.core.Instances.getLastToken(Unknown Source)
at weka.core.Instances.readHeader(Unknown Source)
at weka.core.Instances.<init>(Unknown Source)
Error in validObject(.Object) : invalid class "jobjRef" object:
invalid object for slot "jobj" in class "jobjRef": got class "NULL",
should be or extend class "externalptr"
In addition: Warning message:
Unable to create object of the class weka/core/Instances , returning
null reference. in: .jnew("we...
2012 Mar 07
1
Error while decoding the audio file.
I have successfully encoded a wav file in android using speex(ndk). But when i try to decode it back, the file size keep on increasing to a very large size.
The recorded audio file consists of sample rate - 8000 , 16 BIT, MONO. Why the decoder gives such a large size wav file?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2008 Dec 15
1
WineLib and Java Native Interface (JNI) - UNIX
...java/jdk1.5.0_12/include -I/usr/java/jdk1.5.0_12/include/linux
3. From JAVA call to load so lib (I can load and link to the function)
4.Load so and call the function
It can call BUT it will have crashed at the wine lib functions.
JNIEXPORT jstring JNICALL Java_HelloImpl_sayHello
(JNIEnv *jEvn, jobject jObj){
printf("sayHello [BEGIN]\n");
char sText[255];
HELLOIMPL_global_sayHello_2(sText);
printf("sayHello [END CALL]\n");
jstring retmess;
retmess = (*jEvn)->NewStringUTF(jEvn, sText);
return retmess;
}
Crashed at: HELLOIMPL_glo...
2012 Nov 08
0
FW: Interfacing R and Weka
...], .jcast(levels,
"java/util/List")) :
java.lang.NoSuchMethodError: <init>
> traceback()
8: stop(list(message = "java.lang.NoSuchMethodError: <init>", call = .jnew("weka/core/Attribute",
attname[i], .jcast(levels, "java/util/List")), jobj = <S4 object of class
"jobjRef">)) at call.R#13
7: .External(RcreateObject, class, ..., silent = silent) at call.R#13
6: .jnew("weka/core/Attribute", attname[i], .jcast(levels, "java/util/List")) at
readers.R#243
5: read_data_into_Weka(mf, 1L) at readers.R#33
4:...