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
-
AutoStereoGramGenerator(ChannelInput, ChannelOutput)
- Construct a new AutoStereoGramGenerator.
-
calculate(int[])
- calculate the random dot stereogram from the depthmap.
-
run()
- The main body of this process.
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
run
public void run()
- The main body of this process.
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