endrov.hardwareFrivolous
Class FrivolousDiffusion

java.lang.Object
  extended by endrov.hardwareFrivolous.FrivolousDiffusion
All Implemented Interfaces:
java.lang.Runnable

public class FrivolousDiffusion
extends java.lang.Object
implements java.lang.Runnable

Simulate diffusion


Constructor Summary
FrivolousDiffusion(FrivolousComplexArray input, int[] alpha, float speed)
           
 
Method Summary
 void bleach(float bleachFactor)
           
 void bleach(int[] roi, int roiWidth, int roiHeight, int offsetX, int offsetY, float bleachFactor)
          Bleach an arbitrary ROI
 void bleach(int roiWidth, int roiHeight, int offsetX, int offsetY, float bleachFactor)
          Bleach a square ROI - typically the area the camera focuses on
 void diffuse()
           
 FrivolousComplexArray getDiffusedArray()
           
 void run()
          Continuously simulate the physics
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrivolousDiffusion

public FrivolousDiffusion(FrivolousComplexArray input,
                          int[] alpha,
                          float speed)
Method Detail

diffuse

public void diffuse()

getDiffusedArray

public FrivolousComplexArray getDiffusedArray()

bleach

public void bleach(float bleachFactor)

bleach

public void bleach(int[] roi,
                   int roiWidth,
                   int roiHeight,
                   int offsetX,
                   int offsetY,
                   float bleachFactor)
Bleach an arbitrary ROI


bleach

public void bleach(int roiWidth,
                   int roiHeight,
                   int offsetX,
                   int offsetY,
                   float bleachFactor)
Bleach a square ROI - typically the area the camera focuses on


run

public void run()
Continuously simulate the physics

Specified by:
run in interface java.lang.Runnable

stop

public void stop()