ARMonkeyKit : marker in picture (jpeg)

Hello,

I am looking for some help on ARMonkeyKit / NyArtoolkit.

I want to find a marker in a picture (jpeg) and get his position. I don’t want to use a webcam.

I am working with the example ARIDTeapot.java and I have done some changes in ARMonkeyKitApp.java :

In this function :

[java]

protected void simpleUpdate() {

if (showCamera == true) {

cameraBG.update();

}

markerProcessor.update(cameraBG.getRaster());

callUpdates();

}

[/java]

I would like to make the update on my picture (BufferedImage)

[java]

protected void simpleUpdate() {

if (showCamera == true) {

cameraBG.update();

}

markerProcessor.update(myImage.getRaster());

callUpdates();

}

[/java]

but I need a INyARRgbRaster, and I don’t know how to make it.