All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class demo.jcsp.AutoStereoGramGenerator

java.lang.Object
   |
   +----demo.jcsp.AutoStereoGramGenerator

public class AutoStereoGramGenerator
extends Object
implements CSProcess

Process Diagram

            _________________________
  producer |                         | consumer
 ---->-----| AutoStereoGramGenerator |----->----
           |_________________________|
 

Description

The AutoStereoGramGenerator process has an infinite loop that reads an ImageDefinition from the producer Channel then calculates the random dot AutoStereoGram from the source data and creates a new ImageDefinition and sends this down the consumer Channel.

Author:
P.D.Austin

Constructor Index

 o AutoStereoGramGenerator(ChannelInput, ChannelOutput)
Construct a new AutoStereoGramGenerator.

Method Index

 o calculate(int[])
calculate the random dot stereogram from the depthmap.
 o run()
The main body of this process.

Constructors

 o AutoStereoGramGenerator
 public AutoStereoGramGenerator(ChannelInput producer,
                                ChannelOutput consumer)
Construct a new AutoStereoGramGenerator.

Parameters:
producer - the Channel the ImageDefinitions of the source depthMap are sent down
consumer - the Channel the ImageDefinitions of the converted AutoStereoGram are sent down

Methods

 o run
 public void run()
The main body of this process.

 o calculate
 public int[] calculate(int pixels[])
calculate the random dot stereogram from the depthmap.

Parameters:
pixels - the source pixels to be converted.
Returns:
the result pixels

All Packages  Class Hierarchy  This Package  Previous  Next  Index