va
Class VideoWatch

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--va.VideoWatch
All Implemented Interfaces:
java.lang.Runnable

class VideoWatch
extends java.lang.Thread

A thread that continously updates the video frame, and stores the images for acquisition if requested.

Title: OID image processing

Description: Image processing in Java

Copyright: 1998-2003 Michael Abramoff

Company:


Field Summary
protected  VAInterface gui
           
protected  ij.ImagePlus imp
           
protected  ij.process.ImageProcessor ip
           
(package private) static int j
           
protected  boolean running
           
protected  boolean show
           
protected  short[] videoPixels
           
 
Fields inherited from class java.lang.Thread
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals
 
Constructor Summary
VideoWatch(VAInterface gui)
           
 
Method Summary
 void kill()
          The kill method is called when the watcher is to stop.
 void run()
          Updates the video frame ImagePlus to show the current video frame.
 void setProcessor(ij.ImagePlus imp)
           
 void showResume()
           
 void showWait()
           
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

running

protected boolean running

show

protected boolean show

gui

protected VAInterface gui

imp

protected ij.ImagePlus imp

ip

protected ij.process.ImageProcessor ip

videoPixels

protected short[] videoPixels

j

static int j
Constructor Detail

VideoWatch

public VideoWatch(VAInterface gui)
Method Detail

showWait

public void showWait()

showResume

public void showResume()

setProcessor

public void setProcessor(ij.ImagePlus imp)

run

public void run()
Updates the video frame ImagePlus to show the current video frame. Also updates the frame counter.
Overrides:
run in class java.lang.Thread

kill

public void kill()
The kill method is called when the watcher is to stop.