j2d.video.producers
Class ImagePipelineProcessorStack

java.lang.Object
  extended by j2d.video.producers.ImagePipelineProcessorStack
All Implemented Interfaces:
ImageProcessorInterface, ImageListener, ImagePipelineProcessor, java.io.Serializable

public class ImagePipelineProcessorStack
extends java.lang.Object
implements ImagePipelineProcessor

The ImagePipeLineProcessor can process images and update the listeners as the images are processed.

See Also:
Serialized Form

Constructor Summary
ImagePipelineProcessorStack(ImageProcessorStack ips)
          Construct the ImagePiplineProcessorStack with an ImageProcessorStack.
 
Method Summary
 void add(ImageListener il)
          Images captured by the camera are sent to the ImageListeners.
 java.awt.Image getImage()
          used to get the image for asynchronized capture and initialization.
 java.awt.Image process(java.awt.Image image)
          a basic garbage in, garbage out processor.
 void update()
           
 void update(java.awt.Image image)
          Used send the image to the listening application.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImagePipelineProcessorStack

public ImagePipelineProcessorStack(ImageProcessorStack ips)
Construct the ImagePiplineProcessorStack with an ImageProcessorStack. Message forwarding is used to process the images as they come in. This can be used to update listeners who want to monitor the stream in situ. If you do not add this to an image source, then it works just like an ImageProcessorStack.

Parameters:
ips - a stack of image processors
Method Detail

process

public java.awt.Image process(java.awt.Image image)
Description copied from interface: ImageProcessorInterface
a basic garbage in, garbage out processor.

Specified by:
process in interface ImageProcessorInterface
Parameters:
image - input image
Returns:
output image

update

public void update()

getImage

public java.awt.Image getImage()
Description copied from interface: ImagePipelineProcessor
used to get the image for asynchronized capture and initialization.

Specified by:
getImage in interface ImagePipelineProcessor

add

public void add(ImageListener il)
Description copied from interface: ImagePipelineProcessor
Images captured by the camera are sent to the ImageListeners.

Specified by:
add in interface ImagePipelineProcessor

update

public void update(java.awt.Image image)
Description copied from interface: ImageListener
Used send the image to the listening application.

Specified by:
update in interface ImageListener