Hello,
Have a look at the examples:
// dataPtr points to the start of the pixels (ARUint8 == unsigned 8 bit int)
ARUint8 *dataPtr;
...
// Get buffer from the camera and store it into dataPtr
(dataPtr = (ARUint8 *)camera.GetBuffer())
All you have to do is simply make the dataPtr point to your image instead of
the camera buffer. Make sure your color depth and width and height match
those of the camera mentioned above!
Hope this helps
Regards,
Fivos
-----Message d'origine-----
De : owner-artoolkit@h ..................
[mailto:owner-artoolkit@h ..................]De la part de Chris Phillips
Envoyé : jeudi 15 mai 2003 16:06
À : artoolkit@h ..................
Objet : image file input
Comrades,
I've got a static image file of a marker that I'm trying to get ARTK to
recognise as input. Where/how exactly do I tell ARTK to accept it (and act
upon it ) rather than a camera feed?
Can anybody point me in the right direction?
CHRIS PHILLIPS
If you have received this email in error, please delete it immediately and
notify the sender. This email may contain confidential information and if
you are not the intended recipient, you must not copy, distribute or rely on
it.
As email is not a 100% secure communications medium, you accept that there
are risks in communicating by email by doing so. We advise you to check that
emails and attachments are virus-free before opening them. No contracts can
be entered into on our behalf by email. Opinions expressed in this email are
not necessarily endorsed by us unless otherwise specifically stated. We
reserve the right to read and monitor any email or attachment entering or
leaving our systems without prior notice.
Ordnance Survey
Romsey Road
Southampton SO16 4GU
Tel: 023 8079 2000
http://www.ordnancesurvey.co.uk
|