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 MEDIAN_FILTER
          Constant used by PivDataFilter to select a filter.
static int MEDIAN_FILTER_ALL
          Constant used by PivDataFilter to select a filter.
static int NORMALIZED_MEDIAN_TEST
          Constant used by PivDataFilter to select a filter.
static int REMOVE_INVALID
          Constant used by PivDataFilter to select a filter.
static int REMOVE_ISOLATED_VECTORS
          Constant used by PivDataFilter to select a filter.
static int REPLACE_INVALID_BY_MEDIAN
          Constant used by PivDataFilter to select a filter.
static int SMOOTH
          Constant used by PivDataFilter to select a filter.
static int SMOOTH_ALL
          Constant used by PivDataFilter to select a filter.
static int SUBSTRACT_REFERENCE_DISPL
          Constant used by PivDataFilter to select a filter.
 
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, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NORMALIZED_MEDIAN_TEST

public static final int NORMALIZED_MEDIAN_TEST
Constant used by PivDataFilter to select a filter.

See Also:
Constant Field Values

REPLACE_INVALID_BY_MEDIAN

public static final int REPLACE_INVALID_BY_MEDIAN
Constant used by PivDataFilter to select a filter.

See Also:
Constant Field Values

REMOVE_INVALID

public static final int REMOVE_INVALID
Constant used by PivDataFilter to select a filter.

See Also:
Constant Field Values

MEDIAN_FILTER

public static final int MEDIAN_FILTER
Constant used by PivDataFilter to select a filter.

See Also:
Constant Field Values

MEDIAN_FILTER_ALL

public static final int MEDIAN_FILTER_ALL
Constant used by PivDataFilter to select a filter.

See Also:
Constant Field Values

SMOOTH

public static final int SMOOTH
Constant used by PivDataFilter to select a filter.

See Also:
Constant Field Values

SMOOTH_ALL

public static final int SMOOTH_ALL
Constant used by PivDataFilter to select a filter.

See Also:
Constant Field Values

REMOVE_ISOLATED_VECTORS

public static final int REMOVE_ISOLATED_VECTORS
Constant used by PivDataFilter to select a filter.

See Also:
Constant Field Values

SUBSTRACT_REFERENCE_DISPL

public static final int SUBSTRACT_REFERENCE_DISPL
Constant used by PivDataFilter to select a filter.

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