org.shapelogic.streamlogic
Class LoadParticleStreams

java.lang.Object
  extended by org.shapelogic.streamlogic.LoadParticleStreams

public class LoadParticleStreams
extends java.lang.Object

Create particles streams.
Definition of colors is still not developed properly. This class contains ways of defining color streams, but they might be supplemented with more efficient ones.

Author:
Sami Badawi

Field Summary
static java.lang.String[] EXAMPLE_PARTICLE_ARRAY
           
 RecursiveContext recursiveContext
           
 
Constructor Summary
LoadParticleStreams(RecursiveContext recursiveContext)
           
 
Method Summary
 void exampleMakeParticleStream()
          This shows what to do to define rules for the color particle analyzer.
This is not useful.
Light and dark is turned around if inverted LUT is used.
 void loadColorStreams(NumberedStream<IColorAndVariance> particles, SLImage image)
          Load all the required streams for the letter matcher to work.
 void loadStreamsRequiredForParticleMatch(NumberedStream<IColorAndVariance> particles, SLImage image)
          Load all the required streams for the letter matcher to work.
 void loadStreamsRequiredForParticleMatch(SLImage image)
           
 void rule(java.lang.String letter, java.lang.String streamName, int value, java.lang.String letterFilter)
          Helper method to create one rule in one letter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

recursiveContext

public RecursiveContext recursiveContext

EXAMPLE_PARTICLE_ARRAY

public static final java.lang.String[] EXAMPLE_PARTICLE_ARRAY
Constructor Detail

LoadParticleStreams

public LoadParticleStreams(RecursiveContext recursiveContext)
Method Detail

rule

public void rule(java.lang.String letter,
                 java.lang.String streamName,
                 int value,
                 java.lang.String letterFilter)
Helper method to create one rule in one letter.

Parameters:
letter - to define rule for
streamName - what the required stream for this rule is called in RootMap
value - constraint value
letterFilter - if only one rule should be generated this should be set to a letter

loadColorStreams

public void loadColorStreams(NumberedStream<IColorAndVariance> particles,
                             SLImage image)
Load all the required streams for the letter matcher to work.
In order for this to work the polygons have to be defined first.


loadStreamsRequiredForParticleMatch

public void loadStreamsRequiredForParticleMatch(NumberedStream<IColorAndVariance> particles,
                                                SLImage image)
Load all the required streams for the letter matcher to work.
In order for this to work the particles have to be defined first.


loadStreamsRequiredForParticleMatch

public void loadStreamsRequiredForParticleMatch(SLImage image)

exampleMakeParticleStream

public void exampleMakeParticleStream()
This shows what to do to define rules for the color particle analyzer.
This is not useful.
Light and dark is turned around if inverted LUT is used.



Copyright © 2009. All Rights Reserved.