public class Settings
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
cmdLineWrap
Set
true to wrap lines. |
int |
cmdNumOfLines
Maximum number of lines in history.
|
boolean |
exportCorrFunction
If true, a sample ensemble correlation functions is exported every loop.
|
int |
exportCorrFunctionNum
Number of the correlation function to export (starting from upper left
corner).
|
boolean |
exportCorrFunctionOnlySumOfCorr
Restrict export to final (summed up) correlation function.
|
int |
exportCorrFunctionPass
Specify pass when to export the correlation function.
|
boolean |
imgTwoFrames
Treat imges as double frame imgages if
true . |
int |
imgType
Data type for PIV images.
|
float |
imgZoom
Zoom factor for image display.
|
int |
invalidateIsolatedVectorsNumOfNeighbours
Invalidate a vector if it has less direct valid neighbours than
specified.
|
java.lang.String |
jpivLibPath |
boolean |
labelInvalidVectors
Set
true to plot invalid vectors in the specified color. |
boolean |
loadSaveTecplotHeader
Set
true to save vector files with a Tecplot header. |
double |
normMedianTestNoiseLevel
Noise Level of the normalized median test (0.1 is a good starting point).
|
double |
normMedianTestThreshold
Threshold of the normalized median test (2 is a good starting point).
|
static int |
PIV_CASCADE
Constant.
|
static int |
PIV_CONSECUTIVE
Constant.
|
static int |
PIV_PAIRS
Constant.
|
static int |
PIV_SKIP
Constant.
|
static int |
PIV_TWO_IMG
Constant.
|
java.lang.String |
pivDefaultDestFileName |
int |
pivHorPreShift
Horizontal pre-shift of the interrogation window during the first pass.
|
boolean |
pivMedian
Apply a median filter between the passes.
|
int |
pivMultiPass
Number of passes.
|
boolean |
pivNormMedianTest
Perform a normalized median test between the passes.
|
boolean |
pivReplace
Replace invaldid vectors by the median between the passes.
|
boolean |
pivROI
Constricts the PIV evaluation on a region of interest if
true . |
int |
pivROIP1x
Upper, left boundary of region of interest.
|
int |
pivROIP1y
Upper, top boundary of region of interest.
|
int |
pivROIP2x
Lower, right boundary of region of interest.
|
int |
pivROIP2y
Lower, bottom boundary of region of interes.
|
int |
pivSequence
One of the constants PIV_TOW_IMG, PIV_CONSECUTIVE, PIV_PAIRS, PIV_SKIP,
PIV_CASCADE to define which images to correlate with each other.
|
boolean |
pivShearIntWindows
Use window deformation to enhance accuracy.
|
int |
pivSkip
The number of images to skip if pivSequence==PIV_SKIP.
|
boolean |
pivSmoothing
Use 3x3 smoothing (average) between the passes.
|
boolean |
pivSumOfCorr
Sum up all correlation functions of an ensemble before searching the
correlation peak position.
|
boolean |
pivUseDefaultDestFileName
Set
true to use a default or software set destination file
name. |
boolean |
pivUseImageBaseName
Set
true to use the image base name as the default output
filename. |
int |
pivVerPreShift
Vertical pre-shift of the interrogation window during the first pass.
|
int[][] |
pivWindow
Definition of the interrogation window size, search domain size and
vector spacing.
|
boolean |
profileAverage
Calculate the average of a number of parallel profiles.
|
int |
profileDistance
Distance between profiles.
|
boolean |
profileFixDataPoints
Create a fixed number of data points, independent on the length of the
profile.
|
int |
profileNumberOf
Number of profiles to average.
|
int |
profileNumOfFixDataPoints
Specify the number of data points along the profile.
|
boolean |
profilePrintData
Prints the data of the interpolated profile to standard output, if
true . |
boolean |
profilePrintStat
If
true , print some statistics to standard output, when a
profile is drawn into a vector plot. |
boolean |
profileQuadInterp
Use a quadratic interpolation between the points of a profile.
|
java.awt.Color |
shapeColor
Color of shapes (e.g. profiles).
|
boolean |
singlePixel3by3
Use 3x3 pixel direct correlation, instead of single pixel correlation.
|
boolean |
singlePixelCreatePreShiftVectorField
First do a standard-PIV evaluation to create a pre-shift vector field, if
true . |
int |
singlePixelDomainHeight
Search domain hight for single pixel correlation.
|
int |
singlePixelDomainWidth
Search domain widht for single pixel correlation.
|
int |
singlePixelHorPreShift
Horizontal pre-shift for single pixel correlation.
|
boolean |
singlePixelROI
Constrict the single pixel ensemble evaluation to a region of interest.
|
int |
singlePixelROIP1x
Upper, left border of region of interst.
|
int |
singlePixelROIP1y
Upper, top border of region of interst.
|
int |
singlePixelROIP2x
Lower, right border of region of interst.
|
int |
singlePixelROIP2y
Lower, bottom border of region of interest.
|
boolean |
singlePixelSignalOnly
Considers only pixel whose value is above the average value.
|
boolean |
singlePixelTwoImg
During single pixel ensemble evaluation, treat images as double frame
images.
|
int |
singlePixelVerPreShift
Vertical pre-shift for single pixel correlation.
|
double |
subsRefDispDx
Substract a reference displacement, horizontal component.
|
double |
subsRefDispDy
Substract a reference displacement, vertical component.
|
double |
thirdCompReconDz
Distance between measurement planes (for third component reconstruction
based on mass conservation).
|
boolean |
thirdCompReconLinReg
The first step of the third component reconstruction is the calculation
of the first derivative of the velocity field.
|
int |
thirdCompReconSkip
Skip measurement planes (for third component reconstruction based on mass
conservation).
|
int |
vectorAngle
Opening angle of the arrow head.
|
java.awt.Color |
vectorAxes
The color of the plot axes.
|
java.lang.String |
vectorAxisLabel
The label of the axes (e.g. the unit).
|
float |
vectorAxisScaling
The scaling of the axis labels (e.g. for unit conversion).
|
java.awt.Color |
vectorBackground
Color of the vector plot background.
|
boolean |
vectorBackgroundColorCoding
Set
true to create a color coded background, based on the
values in the specified data column (e.g. vorticity). |
int |
vectorBackgroundColorCodingColumn
Specifys the column number used for the color coded background, zero for
the first column.
|
float |
vectorBackgroundColorCodingMax
Value used for the highest color (red).
|
float |
vectorBackgroundColorCodingMin
Value used for the lowest color (blue).
|
boolean |
vectorBackgroundImage
Set
true to use a pixel image as background. |
java.lang.String |
vectorBackgroundImagePath
Location of the background image.
|
java.awt.Color |
vectorBorder
The background color outside the vector field.
|
java.awt.Color |
vectorColor
Color of the vectors.
|
java.lang.String |
vectorColorBarFormatString
Define a decimal format for the color bar.
|
java.lang.String |
vectorColorBarLabel
Label of the color legend (e.g. the used unit).
|
float |
vectorColorBarUnitConversion
Conversion factor of the color bar labels to assign the colors to values
in a different unit than pixel.
|
java.awt.Color |
vectorColorInvalid
Color of invalid vectors (negative value in fifth column).
|
int |
vectorColorLevels
The number of color levels for the color coding.
|
double |
vectorHeadLength
Fraction of vector length used by the arrow head.
|
float |
vectorLength
The uniform length, if vectorUniformLength=True
|
float |
vectorLengthThreshold
Use scaling below this threshold, if vectorUniformLength=True
|
boolean |
vectorMultiColor
Set
true to use a color code for the vector length. |
float |
vectorMultiColorMax
Value represented by the highest color (red).
|
float |
vectorMultiColorMin
Value represented by the lowest color (blue).
|
float |
vectorMultiColorTransparancy
Transparancy (0=fully transparent, 1=fully opaque).
|
java.lang.String |
vectorReferenceLabel
Label of the reference vector (e.g. the unit used).
|
float |
vectorReferenceLength
Length of the reference vector in pixel.
|
float |
vectorReferenceUnitConversion
Conversion factor to draw the reference vector in a different unit than
pixel.
|
float |
vectorScale
Scaling factor for plotting vectors.
|
boolean |
vectorShowColorBar
Set
true to display a color legend. |
boolean |
vectorShowReference
Set
true to plot a reference vector. |
float |
vectorTickSpacing
The spacing of the axes tickmarks.
|
boolean |
vectorUniformLength
If true, print all vectors with a uniform length.
|
int |
vectorXOffset
The width of the space between plot border and left upright axis.
|
int |
vectorYOffset
The space between plot border and the top horizontal axis.
|
float |
vectorZoom
Scaling factor for the vector plot.
|
Constructor and Description |
---|
Settings()
Creates a new instance of Settings.
|
Modifier and Type | Method and Description |
---|---|
void |
printFields() |
void |
setExportCorrFunction(boolean export,
int num,
int pass,
boolean onlySumOfCorr)
Specify the export of sample correlation functions into the users home
directory.
|
void |
setPivDefaultDestFileName(java.lang.String defaultDestFileName)
Set the default file name for PIV output
|
void |
setPivShearIntWindows(boolean shearIntWindows)
Enable (true) or disable (false) window deformation.
|
void |
setPivUseDefaultDestFileName(boolean useDefaultDestFileName)
Do not ask for a vector file name, use the default file name.
|
void |
setPivUseImageBaseName(boolean useImageBaseName)
Do not ask for a vector file name, use the image name.
|
void |
setThirdCompReconDz(double dz)
Specify the distance between two measurement planes for the
reconstruction of the third component (based on the assumption of
mass-conservation).
|
void |
setThirdCompReconLinReg(boolean useLinReg)
Specify whether to base the third component reconstruction on central
differences or on a linear regression over five points.
|
void |
setThirdCompReconSkip(int skip)
Specify the number of measurement planes to skip.
|
void |
setVectorAxes(java.awt.Color color)
Set the color of the axis and labels.
|
void |
setVectorBackgroundImagePath(java.lang.String path)
Define a path for the background image for vector plots.
|
void |
setVectorBorder(java.awt.Color color)
Set the background color outside the vector field.
|
void |
setVectorColorBarFormatString(java.lang.String format)
Set the number format for the color bar next to a color coded vector
plot.
|
void |
setVectorMultiColorTransparancy(float f)
Enable transparency for the multi colors.
|
public boolean loadSaveTecplotHeader
true
to save vector files with a Tecplot header.public int cmdNumOfLines
public boolean cmdLineWrap
true
to wrap lines. A horizontal scroll bar will be
shown otherwise to display long lines.public java.lang.String jpivLibPath
public float vectorScale
public double vectorHeadLength
public int vectorAngle
public java.awt.Color vectorBackground
public boolean vectorBackgroundImage
true
to use a pixel image as background.public java.lang.String vectorBackgroundImagePath
public boolean vectorBackgroundColorCoding
true
to create a color coded background, based on the
values in the specified data column (e.g. vorticity).public int vectorBackgroundColorCodingColumn
public float vectorBackgroundColorCodingMin
public float vectorBackgroundColorCodingMax
public java.awt.Color vectorColor
public java.awt.Color vectorColorInvalid
public java.awt.Color shapeColor
public boolean labelInvalidVectors
true
to plot invalid vectors in the specified color.public float vectorZoom
public boolean vectorShowReference
true
to plot a reference vector.public float vectorReferenceUnitConversion
public float vectorReferenceLength
public java.lang.String vectorReferenceLabel
public boolean vectorMultiColor
true
to use a color code for the vector length.public float vectorMultiColorMin
public float vectorMultiColorMax
public float vectorMultiColorTransparancy
public int imgType
public boolean vectorShowColorBar
true
to display a color legend.public java.lang.String vectorColorBarFormatString
public float vectorColorBarUnitConversion
public java.lang.String vectorColorBarLabel
public java.awt.Color vectorBorder
public java.awt.Color vectorAxes
public float vectorTickSpacing
public float vectorAxisScaling
public java.lang.String vectorAxisLabel
public int vectorColorLevels
public int vectorXOffset
public int vectorYOffset
public boolean vectorUniformLength
public float vectorLength
public float vectorLengthThreshold
public boolean imgTwoFrames
true
.public float imgZoom
public static final int PIV_TWO_IMG
public static final int PIV_CONSECUTIVE
public static final int PIV_SKIP
public static final int PIV_CASCADE
public static final int PIV_PAIRS
public int pivSequence
public int pivSkip
public boolean pivSumOfCorr
public boolean pivShearIntWindows
public boolean pivUseImageBaseName
true
to use the image base name as the default output
filename.public boolean pivUseDefaultDestFileName
true
to use a default or software set destination file
name.public java.lang.String pivDefaultDestFileName
public int pivMultiPass
public int[][] pivWindow
public boolean pivROI
true
.public int pivROIP1x
public int pivROIP1y
public int pivROIP2x
public int pivROIP2y
public int pivHorPreShift
public int pivVerPreShift
public boolean pivNormMedianTest
public boolean pivReplace
public boolean pivMedian
public boolean pivSmoothing
public boolean singlePixelTwoImg
public boolean singlePixelROI
public int singlePixelROIP1x
public int singlePixelROIP1y
public int singlePixelROIP2x
public int singlePixelROIP2y
public int singlePixelDomainWidth
public int singlePixelDomainHeight
public int singlePixelHorPreShift
public int singlePixelVerPreShift
public boolean singlePixelCreatePreShiftVectorField
true
.public boolean singlePixel3by3
public boolean singlePixelSignalOnly
public boolean profilePrintStat
true
, print some statistics to standard output, when a
profile is drawn into a vector plot.public boolean profilePrintData
true
.public boolean profileQuadInterp
public boolean profileAverage
public int profileNumberOf
public int profileDistance
public boolean profileFixDataPoints
public int profileNumOfFixDataPoints
public double normMedianTestNoiseLevel
public double normMedianTestThreshold
public int invalidateIsolatedVectorsNumOfNeighbours
public double subsRefDispDx
public double subsRefDispDy
public double thirdCompReconDz
public int thirdCompReconSkip
public boolean thirdCompReconLinReg
public boolean exportCorrFunction
public int exportCorrFunctionNum
public int exportCorrFunctionPass
public boolean exportCorrFunctionOnlySumOfCorr
public void setVectorBackgroundImagePath(java.lang.String path)
path
- The complete path of the background image.public void setVectorMultiColorTransparancy(float f)
f
- A value between 0 (completely transparent) and 1 (opaque).public void setVectorColorBarFormatString(java.lang.String format)
format
- A format string. The default is "##0.000E00"public void setVectorBorder(java.awt.Color color)
color
- The color.public void setVectorAxes(java.awt.Color color)
color
- The color.public void setPivShearIntWindows(boolean shearIntWindows)
shearIntWindows
- Deform interrogation windows (true) or not (false).public void setPivUseImageBaseName(boolean useImageBaseName)
useImageBaseName
- Do not ask the user for the output file name, if true.public void setPivUseDefaultDestFileName(boolean useDefaultDestFileName)
useDefaultDestFileName
- Do not ask the user for the output file name, if true.public void setPivDefaultDestFileName(java.lang.String defaultDestFileName)
defaultDestFileName
- The new default filename for output.public void setThirdCompReconDz(double dz)
dz
- The distance between to measurement planes.public void setThirdCompReconSkip(int skip)
skip
- The number of planes to skip, 0 for using every planepublic void setThirdCompReconLinReg(boolean useLinReg)
useLinReg
- True for using a linear regression instead of central
differences.public void setExportCorrFunction(boolean export, int num, int pass, boolean onlySumOfCorr)
export
- If true, a sample ensemble correlation function is exported.num
- Number of the correlation function to export (starting with
zero from upper left corner, -1 for all).pass
- Specify the pass when to export the correlation function,
starting with zero, -1 for all.onlySumOfCorr
- If true, export is only applied after all correlations are
summed up.public void printFields()