jpiv2
Class PivDataFilter

java.lang.Object
  extended by java.lang.Thread
      extended by jpiv2.PivDataFilter
All Implemented Interfaces:
java.lang.Runnable

public class PivDataFilter
extends java.lang.Thread

Filters for PIV data. Wrapper class for all filters that have one input and one output file. The filtering is done in a seperat thread.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static int EXTENSIONAL_STRAIN
          Calculate extensional strain.
static int FLIP_Y
          Flip sign of y velocity component.
static int IN_PLANE_SHEAR
          Calculate in-plane shear.
static int MEDIAN_FILTER
          Median filter.
static int MEDIAN_FILTER_ALL
          Median filter, also using vectors marked invalid.
static int NORMAL_VORTICITY
          Calculate vorticity component normal to the measurement plane.
static int NORMALIZED_MEDIAN_TEST
          Normalized median test.
static int REMOVE_INVALID
          Remove invalid vectors.
static int REMOVE_ISOLATED_VECTORS
          Remove vectors with less than a specified number of neighbours.
static int REPLACE_INVALID_BY_MEDIAN
          Replace invalid vectors by median.
static int REVERSE_Y
          Calculate turn verctor field 180 deg around x-axis.
static int SMOOTH
          3x3 smoothing.
static int SMOOTH_ALL
          3x3 smoothing, also considering vectors marked invalid.
static int SUBSTRACT_REFERENCE_DISPL
          Substract a constant.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PivDataFilter(JPiv jpiv, int filter)
          Creates a new instance of PivDataFilter
 
Method Summary
 void run()
          Do not call this function directly, rather use jpiv2.PivDataFilter().start() to run the data filtering process in a seperate thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NORMALIZED_MEDIAN_TEST

public static final int NORMALIZED_MEDIAN_TEST
Normalized median test.

See Also:
Constant Field Values

REPLACE_INVALID_BY_MEDIAN

public static final int REPLACE_INVALID_BY_MEDIAN
Replace invalid vectors by median.

See Also:
Constant Field Values

REMOVE_INVALID

public static final int REMOVE_INVALID
Remove invalid vectors.

See Also:
Constant Field Values

MEDIAN_FILTER

public static final int MEDIAN_FILTER
Median filter.

See Also:
Constant Field Values

MEDIAN_FILTER_ALL

public static final int MEDIAN_FILTER_ALL
Median filter, also using vectors marked invalid.

See Also:
Constant Field Values

SMOOTH

public static final int SMOOTH
3x3 smoothing.

See Also:
Constant Field Values

SMOOTH_ALL

public static final int SMOOTH_ALL
3x3 smoothing, also considering vectors marked invalid.

See Also:
Constant Field Values

REMOVE_ISOLATED_VECTORS

public static final int REMOVE_ISOLATED_VECTORS
Remove vectors with less than a specified number of neighbours.

See Also:
Constant Field Values

SUBSTRACT_REFERENCE_DISPL

public static final int SUBSTRACT_REFERENCE_DISPL
Substract a constant.

See Also:
Constant Field Values

NORMAL_VORTICITY

public static final int NORMAL_VORTICITY
Calculate vorticity component normal to the measurement plane.

See Also:
Constant Field Values

IN_PLANE_SHEAR

public static final int IN_PLANE_SHEAR
Calculate in-plane shear.

See Also:
Constant Field Values

EXTENSIONAL_STRAIN

public static final int EXTENSIONAL_STRAIN
Calculate extensional strain.

See Also:
Constant Field Values

REVERSE_Y

public static final int REVERSE_Y
Calculate turn verctor field 180 deg around x-axis.

See Also:
Constant Field Values

FLIP_Y

public static final int FLIP_Y
Flip sign of y velocity component.

See Also:
Constant Field Values
Constructor Detail

PivDataFilter

public PivDataFilter(JPiv jpiv,
                     int filter)
Creates a new instance of PivDataFilter

Parameters:
jpiv - the jpiv2.JPiv parent component.
filter - one of the constants NORMALIZED_MEDIAN_TEST, REPLACE_INVALID_BY_MEDIAN, REMOVE_INVALID, MEDIAN_FILTER, SMOOTH, REMOVE_ISOLATED_VECTORS, or SUBSTRACT_REFERENCE_DISPL to define the type of filter.
Method Detail

run

public void run()
Do not call this function directly, rather use jpiv2.PivDataFilter().start() to run the data filtering process in a seperate thread.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread