BIJ API

FlowJ
Class FlowJSpotNoise

java.lang.Object
  |
  +--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
protected static int bcomposite
           
protected static int bp
           
protected static float correction
           
protected static float e1
           
protected static float e12
           
protected static float e1d
           
protected static float e2
           
protected static float e22
           
protected static float e2d
           
protected static int gcomposite
           
protected static float ge
           
protected static int gp
           
protected static int i
           
protected static int index
           
protected static int j
           
protected static float magnitude
           
protected  int maxp
           
protected  int maxq
           
protected static int p
           
protected static int q
           
protected static int rcomposite
           
protected static int rp
           
static float SIGMA
           
protected static float sigmal2
           
static float SIGMAM
           
protected  float sigmas
           
protected static float sigmas2
           
protected static float v0i
           
protected static float v0j
           
protected static float v1i
           
protected static float v1j
           
protected static int value
           
 int width
           
 
Constructor Summary
FlowJSpotNoise()
           
FlowJSpotNoise(byte[] pixels, int maxp, int maxq, float sigmas)
           
FlowJSpotNoise(int[] pixels, int maxp, int maxq, float sigmas)
           
 
Method Summary
protected  float gaussianEllipse(float e1, float e2, float sigmas, float sigmal)
           
protected  float sigmaEllipse(int width)
           
 void spot(int ip, int iq, float sigmal, int gray, float[] v)
           
 void spot(int ip, int iq, float sigmal, int r, int g, int b, float[] v)
           
protected  int widthEllipse(float sigma)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIGMA

public static final float SIGMA

SIGMAM

public static final float SIGMAM

maxp

protected int maxp

maxq

protected int maxq

sigmas

protected float sigmas

width

public int width

magnitude

protected static float magnitude

correction

protected static float correction

e1

protected static float e1

e2

protected static float e2

ge

protected static float ge

i

protected static int i

j

protected static int j

p

protected static int p

q

protected static int q

index

protected static int index

value

protected static int value

e1d

protected static float e1d

e2d

protected static float e2d

e12

protected static float e12

e22

protected static float e22

sigmas2

protected static float sigmas2

sigmal2

protected static float sigmal2

v0i

protected static float v0i

v0j

protected static float v0j

v1i

protected static float v1i

v1j

protected static float v1j

rcomposite

protected static int rcomposite

gcomposite

protected static int gcomposite

bcomposite

protected static int bcomposite

rp

protected static int rp

gp

protected static int gp

bp

protected static int bp
Constructor Detail

FlowJSpotNoise

public FlowJSpotNoise()

FlowJSpotNoise

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

FlowJSpotNoise

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

spot

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

spot

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

gaussianEllipse

protected float gaussianEllipse(float e1,
                                float e2,
                                float sigmas,
                                float sigmal)

widthEllipse

protected int widthEllipse(float sigma)

sigmaEllipse

protected float sigmaEllipse(int width)

BIJ API

Submit a bug or feature

Copyright (c) 1997-2003 Michael Abramoff
Licensing available. All Rights Reserved.