va
Class VideoAcq

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

class VideoAcq
extends java.lang.Thread

A thread that acquires a video sequence and saves to disk using IMAQ calls.

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  short[] videoPixels
           
 
Fields inherited from class java.lang.Thread
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals
 
Constructor Summary
VideoAcq(VAInterface gui)
           
 
Method Summary
protected  byte[] compressZIP(short[] image)
          Compress the image using ZIP compression.
 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)
           
 
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

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

VideoAcq

public VideoAcq(VAInterface gui)
Method Detail

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.

compressZIP

protected byte[] compressZIP(short[] image)
Compress the image using ZIP compression.