A simple approach to this that works well is to initiate ImageJ
independently
and communicate with the data aquistion program via the file system.
ImageJ built-in macros can be invoked (from StartupMacros.txt or
manually initiated)
to poll for the creation or extention of files via
File.exists(path) - Returns true if the specified file exists.
File.length(path) - Returns the length in bytes of the specified file.
Use
wait(n)
Delays (sleeps) for n milliseconds to control IJ CPU usage.
You can even run the data aquisition on different machines with shared
file access
or remotely via the web using
run("URL...", "url=
http://xxxxx");
--
Greg Joss,
Department of Biological Sciences, Phone: (61)(2) 9850 8212 Fax: 9850
8245
Macquarie University, Email:
[hidden email]
North Ryde, (Sydney,) NSW 2109, Australia
>>>
[hidden email] 09/11/06 5:10 am >>>
Hongjie Liang
Biomedical Engineering
University of California, Davis
Tel: 530-7520626
Email:
[hidden email]
_____
From:
[hidden email]
[mailto:
[hidden email]] On Behalf Of Hongjie Liang
Sent: Sunday, September 10, 2006 11:36 AM
To:
[hidden email]
Subject: [Imagejdocu] Is it possible to use VC++ to control ImageJ to
showimages continuously?
Hi all,
I want to use ImageJ to show images during data acquisition. Ideally, I
want
to acquire one image with my VC++ program and ask ImageJ to
automatically
display it, then comes the second one, third one... just like a live
video.
Is it possible? I can evoke ImageJ within my program but how can I
interact
with it and make it do all the tasks?
Thanks a lot,
H.L