FlowJ
Class FlowJSpotNoise

java.lang.Object
  extended by FlowJ.FlowJSpotNoise
Direct Known Subclasses:
OF3DSpot

public class FlowJSpotNoise
extends java.lang.Object

This class implements spot noise displaying of flow fields. On occasion you may wonder about why I coded it the way I did: the only reason is that the JDK 1.1.8 javac compiler contains a bug that has to do with variables local to a method that are put on the stack. All weird codes are workarounds around this problem. Copyright (c) 2000, Michael Abramoff. All rights reserved. Reference: J.J. van Wijk, 1991 Author: Michael Abramoff, Image Sciences Institute University Medical Center Utrecht Netherlands Small print: Permission to use, copy, modify and distribute this version of this software or any parts of it and its documentation or any parts of it ("the software"), for any purpose is hereby granted, provided that the above copyright notice and this permission notice appear intact in all copies of the software and that you do not sell the software, or include the software in a commercial package. The release of this software into the public domain does not imply any obligation on the part of the author to release future versions into the public domain. The author is free to make upgraded or improved versions of the software available for a fee or commercially only. Commercial licensing of the software is available by contacting the author. THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.


Field Summary
static double SIGMA
           
static double SIGMAM
           
 int width
           
 
Constructor Summary
FlowJSpotNoise()
           
FlowJSpotNoise(byte[] pixels, int maxp, int maxq, double sigmas)
           
FlowJSpotNoise(int[] pixels, int maxp, int maxq, double sigmas)
           
 
Method Summary
 void spot(int ip, int iq, double sigmal, int gray, float[] v)
           
 void spot(int ip, int iq, double sigmal, int r, int g, int b, float[] v)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIGMA

public static final double SIGMA
See Also:
Constant Field Values

SIGMAM

public static final double SIGMAM
See Also:
Constant Field Values

width

public int width
Constructor Detail

FlowJSpotNoise

public FlowJSpotNoise()

FlowJSpotNoise

public FlowJSpotNoise(byte[] pixels,
                      int maxp,
                      int maxq,
                      double sigmas)

FlowJSpotNoise

public FlowJSpotNoise(int[] pixels,
                      int maxp,
                      int maxq,
                      double sigmas)
Method Detail

spot

public void spot(int ip,
                 int iq,
                 double sigmal,
                 int gray,
                 float[] v)

spot

public void spot(int ip,
                 int iq,
                 double sigmal,
                 int r,
                 int g,
                 int b,
                 float[] v)