live view on Ubuntu/Linux

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

live view on Ubuntu/Linux

samitr
Hi All,

Newbie to Imagej, have been trying to get "live view" working in ImageJ on ubuntu 12.04.
both micro manager and isight did not work out of the box with any (3) of the UVC video
device on Ubuntu.

Micro manager work on Windows, But my aim is to get it working on Linux , open source
should work on open source ; -)

After a lot of head banging for several days, managed to get ISight working on Ubuntu through
OpenCV. Then tried to fix micromanager, but gave up, due to the complex framework.

I have now optimized live view, bypassing OpenCV and directly interfacing with v4l driver
through v4l4j wrapper. This makes Imagej+live view work on (slow) Rpi.. hurray!!!

The next step is to use OverLay and multi-point tool to record and display multiple point over
the live video and then use the measurement / fit functionality.

I was under the impression that once I got a ImagePlus up and running everything else would
fall in place. However when i select multi-point and select point on the live view window my points
selection display for a fraction of a second and then they disappears, this i believe is due to the next
frame updating itself in the ImagePlus window.

The live view class displaying video is a simple wrapper over ImagePlus, it receives call backs
from the v4l4j wrapper whenever a new frame is available. A BufferedImage is obtained from v4l4j
and setImage() method of ImagePlus is invoked, followed by updateAndDraw() to render the next frame.

The ImageCanvas does the repainting work and a cursory look through this class revealed that
there is code to take care of overlay, but my multi-point selection dont get drawn on the next frame :-(
so i got to fix that too.

Is there some place which could give a detailed explanation of how multi-point selections are stored
and rendered on change of the underlying image inside ImagePlus window? any pointer to previous
threads where such a feature was discussed would also help..

Till now I have not changed the internals of imagej and would like to keep it that way
(less bugs, less regression testing)

Regards