INSIGHT4G Software Manual
INSIGHT4G Software Manual
INSIGHT4G Software Manual
GLOBAL IMAGE,
ACQUISITION, ANALYSIS,
& DISPLAY SOFTWARE
USER’S GUIDE
Revision Date
A June 2011
B June 2014
C March 2015
ii
Warranty
iii
returned under warranty to Seller's factory shall be at Buyer's risk of loss, and will be returned,
if at all, at Seller's risk of loss.
Buyer and all users are deemed to have accepted this LIMITATION OF WARRANTY AND
LIABILITY, which contains the complete and exclusive limited warranty of Seller. This
LIMITATION OF WARRANTY AND LIABILITY may not be amended, modified or its terms
waived, except by writing signed by an Officer of Seller.
Software License This is a legal agreement between you, the end user, and TSI Incorporated. BY INSTALLING
THE SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THE TERMS OF THIS
(effective March 1999) AGREEMENT. IF YOU DO NOT AGREE TO THE TERMS OF THIS AGREEMENT,
PROMPTLY RETURN THE UNOPENED PACKAGE AND THE ACCOMPANYING ITEMS
(including written materials and binders or other containers) to TSI for a full refund.
1. GRANT OF LICENSE. TSI grants to you the right to use one copy of the enclosed TSI
software program (the “SOFTWARE”), on a single computer. You may not network the
SOFTWARE or otherwise use it on more than one computer or computer terminal at the same
time.
2. COPYRIGHT. The SOFTWARE is owned by TSI and is protected by United States copyright
laws and international treaty provisions. Therefore, you must treat the SOFTWARE like any
other copyrighted material (e.g., a book or musical recording) except that you may either (a)
make one copy of the SOFTWARE solely for backup or archival purposes, or (b) transfer the
SOFTWARE to a single hard disk provided you keep the original solely for backup or archival
purposes.
3. OTHER RESTRICTIONS. You may not rent or lease the SOFTWARE, but you may transfer
the SOFTWARE and accompanying written material on a permanent basis, provided you retain
no copies and the recipient agrees to the terms of this Agreement. You may not reverse-
engineer, decompile, or disassemble the SOFTWARE.
4. DUAL MEDIA SOFTWARE. If the SOFTWARE package contains multiple types of media,
then you may use only the media appropriate for your single-user computer. You may not use
the other media on another computer or loan, rent, lease, or transfer them to another user
except as part of the permanent transfer (as provided above) of all SOFTWARE and written
material.
5. U.S. GOVERNMENT RESTRICTED RIGHTS. The SOFTWARE and documentation are
provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by the Government is
subject to the restrictions set forth in the “Rights in Technical Data and Computer Software”
Clause at 252.227-7013 and the “Commercial Computer Software - Restricted Rights” clause at
52.227-19.
6. LIMITED WARRANTY. TSI warrants that the SOFTWARE will perform substantially in
accordance with the accompanying written materials for a period of ninety (90) days from the
date of receipt.
7. CUSTOMER REMEDIES. TSI’s entire liability and your exclusive remedy shall be, at TSI’s
option, either (a) return of the price paid or (b) repair or replacement of the SOFTWARE that
does not meet this Limited Warranty and which is returned to TSI with proof of payment. This
Limited Warranty is void if failure of the SOFTWARE has resulted from accident, abuse, or
misapplication. Any replacement SOFTWARE will be warranted for the remainder of the
original warranty period or thirty (30) days, whichever is longer.
8. NO OTHER WARRANTIES. TSI disclaims all other warranties, either express or implied,
including, but not limited to implied warranties of merchantability and fitness for a particular
purpose, with regard to the SOFTWARE and the accompanying written materials.
9. NO LIABILTY FOR CONSEQUENTIAL DAMAGES. In no event shall TSI be liable for any
damages whatsoever (including, without limitation, special, incidental, consequential or indirect
damages for personal injury, loss of business profits, business interruption, loss of information
or any other pecuniary loss) arising out of the use of, or inability to use, this SOFTWARE.
Service Policy Knowing that inoperative or defective instruments are as detrimental to TSI as they are to our
customers, our service policy is designed to give prompt attention to any problems. If any mal-
function is discovered, please contact your nearest sales office or representative, or call TSI at
1-800-874-2811 (USA) or (651) 490-2811.
Trademarks TSI logo, Insight, Insight 3G, Insight 4G, and PowerView are trademarks of TSI Incorporated.
TSI is a registered trademark of TSI Incorporated.
Microsoft, Windows, and Excel are registered trademarks of Microsoft Corporation in the United
States and other countries.
FireWire is a registered trademark of Apple Inc., registered in the U.S. and other countries.
Photron is a registered trademark of Photron Technologies Ltd.
Tecplot is a registered trademark of Tecplot, Inc., Bellevue, WA, USA.
MATLAB is a registered trademark of The MathWorks, Inc.
v
Defining a Static Processing Mask ................................................... 8-3
Defining a Dynamic Processing Mask .............................................. 8-5
Apply a Processing Mask ................................................................. 8-9
Deleting a Processing Mask ............................................................. 8-9
Using a Region of Interest (ROI) ...................................................... 8-9
Using Image Preprocessing............................................................ 8-11
Image Preprocessors...................................................................... 8-12
Size Shape Analysis ....................................................................... 8-21
CHAPTER 9 2-D Calibration and Perspective Calibration................ 9-1
2-D Calibration Process .................................................................... 9-1
Perspective Calibration Process ....................................................... 9-4
Perspective Calibration Overview ..................................................... 9-4
Step A: Overlapping the Camera Fields of View with the
Calibration Target .......................................................................... 9-8
Step B: Setting Scheimpflüg Angle and Focus with Particle
Images, Record Flow Images for AutoMapping ............................ 9-9
Step C: Recording Calibration Images ........................................... 9-10
Step D: Processing the Calibration Images and Creating a
New Calibration File .................................................................... 9-12
Step E: Stereo AutoMapping .......................................................... 9-32
CHAPTER 10 Processing and Viewing PIV Images ......................... 10-1
Rules-of-Thumb for PIV Analysis ................................................... 10-2
PIV Cross-Correlation Processing ................................................ 10-11
Setting up PIV Processor.............................................................. 10-13
PIV Plugin Engines ....................................................................... 10-15
Double Correlation Analysis ......................................................... 10-24
PIV Process Monitor ..................................................................... 10-25
Particle Tracking Analysis (Super-Resolution Particle
Velocimetry)............................................................................... 10-26
PIV Vector Validation .................................................................... 10-30
PIV Uncertainty ............................................................................. 10-36
CHAPTER 11 Programming Macros .................................................. 11-1
Working with Macros ...................................................................... 11-2
Working with Image Lists ................................................................ 11-3
Working with Batch Files ................................................................ 11-4
CHAPTER 12 Calibrating and Processing PLIF Images .................. 12-1
Capturing PLIF Calibration Images ................................................ 12-1
Processing PLIF Images................................................................. 12-2
Two Camera PLIF Processing ........................................................ 12-8
PLIF + PIV Processing ................................................................. 12-10
Exporting PLIF Data ..................................................................... 12-12
CHAPTER 13 Calibrating, Processing, and Viewing GSV Images . 13-1
Global Sizing Velocimetry Calibration Process .............................. 13-1
Processing Global Sizing Velocimetry Images ............................... 13-2
Viewing Global Sizing Velocimetry Processing Results ................. 13-8
CHAPTER 14 Processing Spray Images ........................................... 14-1
Hardware Setup for Sprays ............................................................ 14-1
Software Setup for Steady Spray ................................................... 14-2
Software Setup for Pulsed Spray ................................................... 14-4
Contents vii
(This page intentionally left blank)
Purpose
This manual describes how to use TSI’s Insight 4G™ Global Image
Acquisition, Analysis and Display Software.
Submitting Comments
TSI values your comments and suggestions on this manual. Please use
the comment sheet, on the last page of this manual, to send us your
opinion on the manual’s usability, to suggest specific improvements, or to
report any technical errors.
If the comment sheet has already been used, mail or fax your comments
on another sheet of paper to:
TSI Incorporated
500 Cardigan Road
Shoreview, MN 55126
Fax: (651) 490-3824
E-mail Address: [email protected]
ix
(This page intentionally left blank)
®
Windows is a registered trademark of Microsoft Corporation in the United States and other countries.
Insight, Insight 3G, and Insight 4G are trademarks of TSI Incorporated.
Tecplot is a registered trademark of Tecplot, Inc., Bellevue, WA, USA.
MATLAB is a registered trademark of The MathWorks, Inc.
1-1
Make global measurement of scalar properties (using PLIF and special
cameras), including species, soot and temperature in combustion
Make simultaneous velocity and scalar property (temperature,
concentration, species) measurements (using same type of cameras or
using different types of cameras to capture particle image and global
fluorescence fields)
Make global spray diagnostics measurements to provide sizing and
velocity information simultaneously.
The Package allows the setup, control and operation of the entire
diagnostics system and provides on-line or batch-mode analysis of the
image fields and detailed display of the results.
Note: This manual assumes that you know the basics of using computer
and Windows-based applications such as how to start applications,
how to use your mouse, move and close windows, and other such
tasks. If you need help with these, consult your computer and
Windows® operating system documentation.
Carefully unpack and make sure you received all the listed items. If
anything is missing or damaged, contact your nearest TSI sales office or
representative or contact:
TSI Incorporated
500 Cardigan Road
Shoreview, MN 55126
Phone: 1-800-874-2811 (USA) or (651) 490-2811
Fax: (651) 490-3824
E-mail: [email protected]
2-1
Hardware and Software Requirements
Insight software requires or recommends the following hardware and
software:
Intel Core i3 computer (recommended) with Windows 7 Professional
operating system.
For Insight 4G software, 64-bit Windows® 7 operating system is
required with Professional the preferred version.
DVD drive
Minimum of 6 GB of RAM
Disk drive with at least 500 GB
Video card set for 32K colors or more
17-in. monitor; Insight software works best with a 19 in. or larger
monitor.
Insight™ software provides many features to help you make flow and spray
measurements. This chapter acquaints you with the Insight interface to
give you an overview of the software and its capabilities. Details on each
option and task performed in Insight software are provided in subsequent
chapters.
Figure 3-1
Insight Software Desktop
3-1
Insight Menu Options
The bar at the top of the Insight application window contains the following
sets of drop-down menus.
Experiment/Run
The options in the Experiment menu allow you to open a new experiment
or a run or edit a previously-saved experiment or run. It also allows you to
sort and refresh the experiment tree display in the control panel. Following
are brief descriptions of these commands.
Option Description
New Experiment Creates a new experiment.
Edit Experiment Opens an existing experiment for editing.
New Run Creates a new run.
Edit Run Opens an existing run for editing
Sort Tree Sorts and displays your experiment and data files
according to a set of specifications that you choose. See
“Specifying the Sorting Order for Data Files” for details.
Refresh Tree Refreshes and presents an updated tree structure.
Exit Exits the Insight program.
Tools
The Tool menu provides tools to specify calibration parameters, capture
PIV and PLIF calibration images, specify hardware components, and
program macros that can automate your experiments and runs. Following
are brief descriptions of these commands.
Option Description
Insight Setup Sets up experiment directory and computer for distributed
processing.
Hardware Setup Sets up parameters for the components to be used with
the Insight software. See “Specifying Hardware
Components in Your Experiment” in Chapter 4.
Component Setup Sets up individual hardware components (e.g., individual
cameras, lasers, etc.)
Image Tools Provides tools to modify images not captured by Insight
software so they can be used by Insight software.
MATLAB Spatial and Time Series Analysis.
Proper Orthogonal Decomposition.
View and analyze results with MATLAB applications.
Capture Captures images for Perspective Calibration. See “Step C:
Perspective Cal. Recording Calibration Images” for details.
Images
Help
The Help menu option allows you to access the instruction and operational
manuals available for Insight software. If you click on the “Insight 4G” icon,
it also tells you the various functions which the software should be
activated. This is a good way to check whether the dongle key functions
properly.
Option Description
New Run
Creates a new run. Performs the same function as the
corresponding command in the Experiment/Run menu option. See
“Creating a Run” for details.
Edit Run
Opens an experiment. Performs the same function as the
corresponding command in the Experiment/Run menu option. See
“Editing an Experiment or Run” for details.
Sort Tree
Brings up the dialog box to allow you to specify how to sort and
display files in the Experiment tab panel. Performs the same
function as the corresponding command in the Experiment/Run
menu option. See “Specifying the Sorting Order for Data Files” for
details.
Tecplot
Starts the Tecplot® utility which allows you to view Insight vector
files and compute flow properties. See Chapter 16, "Presenting
Data with Tecplot Software" for details.
Turns the laser off. Performs the same function as the laser off
button available on the tab on the control panel. See Chapter 7,
"Capturing Images: An Overview" for further information.
Control Panel
Insight control panel offers many options grouped into the following tabs:
Tab Description
Displays experiment and run data files specified and sorted
through the Sort Tree dialog box. See Chapter 5, "Creating
and Managing Experiment and Data Files".
Allows you to specify capture settings for various
components in your experiment, save these settings and
start and stop image capture. See “Chapter 7, "Capturing
Images" for detailed information.
Allows you to specify Application, Preprocessing,
Processing, Post-processing, Calibration, and Mask
Processing.
Allows you to specify Spray analyses and processing
settings. See Chapter 14, "Processing Spray Images" for
details.
Display Panel
Insight software displays processed image files in the display panel. To
view these files, double-click on files in the Experiment tree or drag and
drop them on the display panel. Each file opens in a separate window with
controls offering more functions. Refer to Chapter 6, “Viewing, Enhancing
and Displaying Image Files” for details.
Status Bar
The status bar on the bottom of the Insight desktop provides status on the
hardware used in the experiment. To get an updated status of a new
hardware component in a system, click on the component in the status bar.
The status bar also lists the name of the current experiment and run
indicating where the data is being saved or retrieved from.
Before acquiring and processing PIV, PLIF, and spray images, perform the
following tasks:
Specify the directory to which the acquired data in an experiment is
stored.
Specify the hardware components in your experiment.
(Optional) Set up Insight™ software to perform distributed processing
over a network of computers so that processing time for PIV images
can be reduced.
(Optional) Set up and configure dual monitors to help you visualize
your images on more than one desktop.
4-1
Specifying Hardware Components in Your
Experiment
Insight software works with many types of cameras, lasers, and
synchronizers. Before acquiring images, you need to specify which models
or types of hardware components are being used in your experiment and
how they are connected.
Next, you would also need to setup the parameters for these selected
components, as described in "Setting Hardware Component Parameters".
This chapter describes how to create and work with experiments and how
to use the features provided in the Experiment tab to sort, organize and
access the settings and data files for the experiments and runs.
Creating an Experiment
To create an experiment:
1. Choose New Experiment from the Experiment/Run menu. The New
Experiment Information dialog box appears.
2. Specify a name for your experiment in the Experiment Name box and
provide any additional information in the Notes section. The Notes
section allows you to provide more details of your experiment. Insight
software creates a folder by that name in the directory that you created
when setting up Insight software. (See Chapter 4, “Setting up Insight
Software.”) It also creates an experiment folder with two subfolders in
the Exp. Tree tab in the control panel. The experiment folder is marked
with the icon and by default is designated as current. Two
subfolders—a file with information specified for the experiment and a
folder called Settings are created. See "Accessing the Experiment
Tree" in this section for details.
5-1
Creating a Run
To create a run within an experiment:
1. Make sure the experiment you want to create the run for is current.
(See "Setting an Experiment or Run as Current" in this section.)
2. Choose New Run from the Experiment/Run menu or from the tool bar.
3. The New Run Information dialog box appears.
4. Specify a name for the run. Provide any additional information in the
Notes section. The Notes section allows you to input more information
of this particular run. This is the best location to provide the details of
the Run so that you can keep track of the different conditions for each
Run. Insight software creates a folder by the name you specified in the
directory that you created when setting up Insight software. It also
creates a run folder under the selected experiment in the Exp. Tree tab
in the control panel. The run folder is marked with the icon and by
default is designated as current. See "Accessing the Experiment Tree"
in this section for details.
The following sections describe the various tasks that can be performed
from the Experiment Tree.
4. Click OK. The data files, when available, are sorted and displayed in
the specified order in the Raw Data and Analysis folders. The following
figure illustrates the fields in the filename when they are all selected.
Figure 5-2
File Naming Diagram
The display panel in Insight™ software allows you to drag and drop images
from the Experiment tree and then using the many features available in the
display panel, enhance the images so that you can process them, view
them or select a certain region of interest. Insight software also provides
you with image information, controls to scroll through or animate the data,
and the means to export images in different formats.
This chapter describes the display panel features and how to do the
following:
Zoom in or out of an image for optimal viewing.
Turn vector display on or off for speed (Turbo mode).
Create an image list.
Select entire images or use cross-hair marks to help with processing
and calibration.
Modify output lookup tables to enhance images for optimal viewing.
Edit and change the appearance of vectors, remove, apply, and view
vectors.
Get statistical information on images and vectors, display image
information bar and make changes to the display.
Export images.
Animate images.
6-1
Display Panel Features
The following figure illustrates Insight software‘s features.
Figure 6-1
Display Showing Features
Option Description
Fit in Window Sizes the image to fit in the display window.
Full Size 1:1 Displays image at actual or full resolution.
Zoom In 2:1, 3:1 4:1 Zooms in to provide a closer look at the image file.
Zoom Out 1:2, 1:3, 1:4 Zooms out to provide a larger or entire view of the
image file.
Note: Zoom into the image by right-clicking and dragging the mouse.
The display of each vector takes time. Turning the Display While
Processing off can increase the processing speed by up to 2 times.
Figure 6-2
Experiment Tree
Image List
Creation
With either creation process the image list name dialog will open. The
saved image list is stored in the experiment settings folder.
Figure 6-3
Image List Name Dialog
To Turn on Crosshairs
From the main menu bar of the display panel select Tools | Cross hairs. A
check mark appears on the Crosshairs option and crosshair marks appear
on the images.
Applying Grids
Applying grid shows a grid on top of displayed images. The grid can be
configured automatically or manually with the options listed.
Two look-up table options are available. One for PIV images and the other
for PLIF images, as the latter tend to be darker.
Insight software captures 8-bit, 12-bit and 16-bit images, depending on the
camera that is used for the image capture. For 8-bit images, each pixel in
these images has a grayscale assigned to it, ranging from 0 to 255, with
0=black and 255=white. You can also use pseudo colors and assign a
color ranging from 0-255 with 0=black and 255=red. When an image is
initially displayed on your computer screen, the graphics board in your
computer displays this image based on that number. Use the LUT option to
modify each pixel intensity—for example, alter image brightness or the
contrast or both to bring up the details.
For 12-bit images, there are a total of 4096 intensity levels; hence, it is
better to show the images in pseudocolor so that the contrast of the images
can be seen more easily.
Figure 6-4
PLIF LUT Table
Option Description
Displays the current settings. Use this to preview
the effect of changes made through controls and
options available in this dialog box.
Slide these tabs for each color or grayscale value
to make gross changes. Use the bar to preview
the settings.
Use these controls to make minute changes to
the color or gray-scale values.
Pseudocolor Select this check box to display colors instead of
grayscale values.
Auto Max Use for extremely dark images. Insight software
automatically finds the highest intensity level in
the bit map and assigns a top intensity value to it.
Linear Click to apply the linear function on the color
range to spread the color or grayscale range
linearly.
Log Click to apply the logarithmic function on the color
range.
Change Colors Click to change text labels or color for the color
bands or saturation color. The Change Colors
dialog appears.
Remember Check box to save the settings and reload them
Settings next time this image is opened.
Load LUT Click to browse for and load a LUT file containing
color values, text labels for bands, and slider
settings.
Save LUT Click to save the current slider settings, color
values, and text labels to a LUT file.
Saturation color Displays the color selected to indicate saturation
levels.
To Setup Vectors
1. Click on Tools | Vector Setup. The Vector setup dialog box opens.
2. Select the appropriate option or options. The following table describes
the Vector options that affect the appearance of vector files:
Option Description
Vector Settings Changes the settings of the vector arrows. The color of
Good, Bad, and Interpolated vectors can be set
independently. Whether they are displayed on the
images can also be checked/unchecked.
To change the color:
1. Right-click on box. A color palette is displayed.
2. Select a new color to represent vector arrows.
1. Click OK.
Scale Changes the length and width of the vectors. Use the
arrows to scroll up and down to select the desired scale.
Screen Updating Select the number of vectors to display from the following
selections.
Draw All: Displays all the vectors.
Draw 1/2: Displays half of all the vectors.
Draw 1/4: Displays a fourth of all the vectors
Draw 1/8: Displays an eighth of all the vectors.
3. Click Apply to see the effect of the change and OK to save the
changes. Cancel discards the changes.
Figure 6-5
Statistics Table
3. Specify where you want to send the exported file. Click to browse
to the appropriate drive.
4. Click OK.
Figure 6-6
Image Histogram
Figure 6-7
Image Information Screen
Figure 6-8
Vector Statistical Table
Figure 6-9
Vector Histogram
Line Profile
To plot line profile of images, open the Line Profile dialog box. Both vertical
and horizontal line profiles can be displayed. Y-axis label can be
customized to fit your needs.
Figure 6-10
Export Images Dialog
To Export Images
1. Drag and drop or double-click the desired image files from the
Experiment tree on to the display panel.
2. From the main menu of the display panel, click . The Export
Images dialog box is displayed.
3. In the Images Loaded box, select the images you want to export. Use
the Select All or Select None buttons to make quick selections.
4. Select the format in which you want to export. Choices include: BMP,
JPG, or TIF.
6. Specify where you want to send the exported file. Click to browse
to the appropriate drive.
7. Click Export.
Animating Images
The animation feature available on the display panel menu bar, allows you
to view all the loaded files in the form of an animation.
To Animate Images
1. Drag and drop or double-click the desired image files from the
Experiment tree on to the display panel.
2. From the main menu of the display panel, click . Each loaded
image file is displayed in the form of an animation.
The setup and controls for capturing these images are grouped together on
a tab in the control panel.
This chapter describes how to specify the capture settings for the
components for your experiments, how to save them for future use, and
how to adjust and manipulate other settings for optimal data acquisition.
The following gives a quick look at the steps involved in capturing images.
Details on each of these steps are provided later in this chapter.
7-1
7. Select the capture mode in the Capture selection box. Refer to
“Selecting the Capture Mode” for details.
8. Specify name for the capture files.
9. Click and select the laser power for each of lasers. See “Selecting
Laser Power and Pulse Energy.”
10. Click Laser On to turn on the lasers.
Capture Images
Click Capture.
The parameters are set by selecting Tools | Component Setup from the
Insight main menu. This causes the Component Setup dialog to be
displayed. The summary tab in this dialog box displays the selected
models for each of these components.
4. Select Laser Setup tab to setup the laser parameters, described next.
The following lists and describes the parameters for all types of cameras.
These parameters need to be specified in their respective camera setup
dialog boxes.
Option Description
Regular camera models setup
Model and Version Displays model and version of the selected camera.
Resolution Displays the number of pixels in the selected camera and
the spacing between pixels.
Pixels X Y: The number of light sensitive pixels on the
camera.
Spacing (µm): Displays the distance between pixels on
the CCD chip. This value is used in computing the Pixel
Aspect Ratio when converting pixel values to velocity
measurement values. Refer to Chapter 8, “2-D Calibration
Process” for information on the Pixel Aspect Ratio.
Exposure Frame Rate (Hz): Displays the camera’s frame rate,
which is fixed.
Caution; Setting the gain too high will saturate pixels and
result in the loss of intensity information. This happens
because the number of bits allocated for each pixel
remains the same regardless of the gain level. The default
value is 4.
Caution
Be sure to put a lens cap over the camera before
acquiring this image.
Caution
This should only be used in emergencies when protective
camera settings cause an extreme imbalance between
taps (where one square section of an image is clearly
much brighter or darker than the rest).
Fan Control Select cameras with built-in fans allow for control of fan
settings. This lets you control those settings.
Bits Per Pixel Displays the current amount of bits per pixel that the
camera is reading out. Some cameras may allow this
value to be changed. If this is the case, a secondary
option will appear in the drop down list.
3. Repeat step 2 for other two cameras, if they are being used.
4. Click OK to have the changes accepted and to exit the Component
Setup dialog box.
Figure 7-1
Capture Timing Setup Screen
The energy per pulse for the laser power you select is controlled with the
Q-Switch delay values which are entered in the Laser Energy Setup box.
Edit the Q-Switch delay value to define High, Medium, and Low power for
your laser.
Setting Description
Low Sets the power so that the laser is just producing a consistent
green beam. Use Low Power during alignment.
Medium Medium can be used for alignment that requires a little more power
than Low. Could also be used to make measurements in
experiments where full power is not required.
High Sets to a level that gives the maximum laser pulse energy.
Off Sets the Q-Switch Delay value to zero. The flashlamp still fires but
the laser pulse energy is zero.
Button Description
The laser on button on the Capture control panel starts the laser. It
starts the laser pulsing and causes the external device, camera,
frame grabber, to operate as selected (the cameras capture
images, but will not be retrieved from the frame grabber unless
"Capture" is clicked). The system continues to run until the Laser
Off button is pressed, the number of frames is reached, or an error
occurs.
DANG ER
Wear laser safety goggles when laser is on.
The laser off button on the Capture control panel stops the
synchronizer sequence and turns off the laser and all triggers.
Note: With Nd:YAG systems, clicking the Laser off button once
turns the laser Q-Switch off so that the laser does not pulse but the
laser flashlamps are running at the flashlamp frequency. This keeps
the laser at the operating temperature. Clicking the Laser Off button
twice turns off both the flashlamps and the Q-Switch.
2. Click .
3. In the Save dialog box, enter the name of Capture Setup file.
4. Click OK. The saved file appears in the scroll-down box under Saved
Capture Setups.
After acquiring images for your application, you can process the images using
the powerful algorithms provided by the Insight™ software. This chapter
describes how to use the processing tab to set up processing for your
application. It also introduces how to setup image preprocessing using the
easy-to-use visual processing pipeline editor, and the various image
preprocessors offered by Insight software. The use of Size Shape Analysis is
also introduced in this chapter.
Processing Tab
The processing tab is the central place for setting up the processing for all
global imaging applications supported by Insight software.
Select Application
Following is a list of applications supported by the processing tab. The actual
availability is determined by your software license.
8-1
Select Spatial Calibration
2-D Spatial Calibration 2-D Spatial Calibration is needed to convert
length unit from pixels to millimeter. It is optional
in most applications, but is required in GSV
Application.
Perspective Calibration Perspective calibration is required when the
measurement is performed with multiple
cameras such as stereo-PIV, simultaneous
PIV/PLIF, and dual-camera PLIF.
Some applications also involve data post-processing steps. For example, PIV
application can have vector validation as post-processing; PLIF application can
have scalar data export as post-processing.
Figure 8-2
Static Masking Setup Dialog
5. Make sure that the Static tab is selected and select Enable.
6. If the opened image has multiple camera views, select the active camera in
the camera drop-down list.
7. Check “Show only area to be processed” to hide the non-processing areas.
8. Click the Invert button to toggle the processing or non-processing area. The
area inside the mask is excluded in the processing. By clicking Invert, the
area outside the mask will be excluded instead.
9. Click Apply Frames to apply current settings to all cameras.
10. Click Generate to create a static mask from the dynamic mask settings.
This can be particularly useful if your static mask has a complex shape that
you don’t want to draw. To Generate a static mask, enable dynamic
masking, following the directions in Creating Dynamic Masks. Once you
obtain a dynamic mask to your liking, disable dynamic masking, return to
the Static tab and click Generate.
Rectangle Click and drag the mouse in the image window to define a
rectangular mask. Enter the values in the edit boxes to
define the mask. Remember to click Apply button to apply
the new values to the image.
Ellipse Define an elliptical mask is similar to a rectangular mask.
The bounding rectangle of the ellipse is defined.
Polygon Click Start Draw button then use mouse click in the image
to define the vertices of the polygon. To put the vertices on
the edge of the image, click outside the image area. Click
Done button and the last vertex is automatically connected
to the first vertex to close the polygon. Individual vertices
can be modified/specified using the X and Y values. Use the
Point dropdown menu to select an individual vertex to
modify/specify.
Figure 8-4
Dynamic Masking Setup
Dialog
6. Choose the appropriate Camera from the dropdown menu. If you want to
use the same dynamic masking settings for both, click All Frames button.
7. To use dynamic masks that have already been created, select Use
Existing Masks.
8. Select Draw Masks On Images During Processing to create a processing
image that is saved in the Analysis folder. It is recommended to have this
option enabled to preserve the correlation plane near mask borders. This
new image will be saved in the Analysis folder and will have an intensity
value painted over the masked region. The intensity value is calculated by
taking the average intensity from all unmasked pixels.
Figure 8-5
Image Navigation Toolbar
Insight 4G software saves all dynamic masks as *.TIF images, which are stored
for the particular Run in the Masks folder. Using a photo editor software, you
can recolor the *.TIF image as you want, save, and have Insight 4G software
use that mask during processing by enabling Use Existing Masks.
Figure 8-8
Define Processing Region
Dialog
Figure 8-9
Processor Pipeline Editor Screen
2. Select the appropriate image preprocessor from the Processor Module list
in the bottom. The description of selected preprocessor is shown in the
bottom panel. Please see Image Preprocessors for detailed description of
each preprocessors.
3. To add the selected preprocessors to the pipeline, double-click the
processor icon in the list, or use drag-n-drop or the Add button in the top
toolbar.
4. To setup individual preprocessors, double-click the icon in the pipeline, or
use the Setup button in the top toolbar.
5. To remove a preprocessor from the pipeline, select the preprocessor, and
click Remove button in the top toolbar or use the Delete key.
6. Use drag-n-drop to change the order of preprocessors in the pipeline if
needed.
7. To rename the processor in the pipeline, click the name text underneath the
icon.
Image Preprocessors
The following image preprocessors are available to all applications.
Image dewarping Dewarp the images from camera plane to the light
sheet plane using perspective calibration. Only
available in stereo PIV, stereo Automapping and PLIF
applications.
Image deformation Deform the images according to the local velocity data
obtained in PIV. Only available in PIV application.
Select an Operation
Arithmetic Addition, subtraction, multiplication, and division
operations between two images, or between an image and a
constant.
Masking operation Mask the input image by thresholding using the
constant threshold or by thresholding based on a mask
image. The mask image can be a static image given by
its file path, or a dynamic image with the same capture
name as the input image with the given processing
number string, or the raw image with the same capture
name as the input image.
Grayscale Invert the grayscale so that the white pixels become
inversion black and vice versa.
Rotation Rotate the image by positive (counter-clockwise) or
negative 90 degrees.
Flip Flip the image horizontally or vertically.
Reverse Order
By default, the input image is the first operand, but the order can be reversed
which may be useful in subtraction and multiplication. For example, 12-bit
image grayscale inversion can be done by subtraction between the input image
and 4096 using the reverse order.
Figure 8-11
Image Binning Setup
Image Filter
Figure 8-12
Image Filter Setup
Image Generator
Image generator calculates the pixel-wise average, minimum, or maximum
intensity of a list of input images. The resultant image is usually used as the
background image that can be subtracted from raw images using Image
Calculator.
Figure 8-13
Image Generator
Image Dewarping
Image Dewarping involves pixel intensity interpolation. Define the interpolation
method and window function in the processor setup dialog.
Figure 8-14
Image Dewarping
Setup
Figure 8-15
Image Deformation
Setup
Image Shift
The two frames are shifted in opposite directions and the total amount of shifts
should equal to the local velocity. There are various ways to meet this
requirement. For example, shifting frame A forward by the full shift is equivalent
to shifting frame A forward by the half shift with subpixel and shifting frame B
backward by the half shift integer.
Image Interpolation
When subpixel shift is used, intensity interpolation is performed during the
image deformation. Setup the interpolation method and window function in the
processor setup dialog.
The first option subtracts a different background from each image, whereas the
second subtracts a single (common) background from each image. The first
option is described in Subtract Source.
The background image generator requires enough images so that particles that
happen to be at the same location in a few images do not remove actual particle
images.
Figure 8-16
Image Generator
Setup
Figure 8-17
Preprocessor Pipeline Editor, Generated Output Setup
6. The Generated Image Location can be set to the Analysis or Settings
directory.
7. The Generated Image Name can be left as the default “Generated” or type
in your own name such as “MinBackgroundImg”.
8. Click OK.
9. Add an Image Calculator to the pipeline after the Image Generator.
10. Double-click the Image Calculator icon to open the Image Calculator Setup
Dialog.
11. Change the Operator to Subtraction.
12. In Operand, select Image.
Figure 8-18
Image Calculator Setup Dialog for Background Image Subtraction
14. Close the Image Calculator Setup dialog with OK.
15. Close the Processor Pipeline Editor with OK.
Figure 8-19
Image Calculator Setup for Two Preprocessor Background Image Subtraction
Figure 8-20
SSA Processor
4. Click Particle Sizing Settings to open SSA Particle Sizing Setup dialog.
Please see Setting up Size Shape Analysis Sizing Processor for more
information.
5. Skip Particle Sizing step to use existing particle data of the opened images
for particle matching to get velocity result.
6. Click Particle Matching Settings to open SSA Particle Matching Setup
dialog. Please refer to “Setting GSV Tracking Processor” for more
information.
7. Skip Particle Matching step if there is only one frame available.
Figure 8-21
SSA Processor Sizing
Figure 8-22
Threshold Assistant
3. Select 4-Connected or 8-Connected as the pixel connectivity which is used
by the algorithm to determine whether two pixels are connected. Two
horizontally or vertically adjacent pixels are always connected; two diagonal
pixels are connected with 8-connected but not with 4-connected.
4. Select the size range of particles to be identified in the input images. One use
of the size range in SSA processor is to do phase separation by size for
multiphase flow images.
5. Select the size and shape measurements to be performed by SSA processor.
The results are exported to the particle data file along with the basic
measurement such as position, diameter, and intensity.
Note: If 2-D spatial calibration is selected in the processing tab, some size
and shape measurements such as Area, Perimeter, and Feret’s
diameter will be exported in the micrometer unit. Others are still
exported in the pixel unit.
9-1
To Perform 2-D Calibration
1. Open the calibration image.
2. From the Calibration selection of the Processing tab, select Create
New to create a new calibration (or select an existing calibration to edit
it). Click Setup button, the 2D Spatial Calibration dialog opens
(Figure 9-1).
Figure 9-1
2-D Spatial
Calibration
3. Select one of the default origin locations, or manually define the origin
in pixels. Note that the origin can be outside the image; therefore,
negative values and values greater than the image size are allowed.
4. Enter or compute calibration factors using any one of the following
three methods:
Manually enter Field of View values
Measure Millimeters per Pixel (mm/pixel) in the image.
Manually enter Micrometers per Pixel (µm/pixel) values
Field of View
Field of View is the entire image. Insight software uses the mm/pixel
value in the conversion formula. To use this:
A. Place a scale/ruler in the flow.
B. Capture a calibration image. See "Capturing Calibration Images"
for details.
Measured
If you would like Insight software to calculate the millimeters per pixel
value:
A. Place an object of known size, such as a flow model or a
scale/ruler in the flow.
B. Type in the object size in millimeters in the Object Size in the mm
box.
C. Click Measure.
D. Place the cursor on the start of the object. Click the left mouse
button and drag to the end of the object. Release the mouse
button. Based on the pixels measured using the cursor, the
calibration factor of xx mm/pixel is calculated.
Manual
If you know either the x or the y µm/pixel value, directly enter that value
in the appropriate box and click the Apply button.
Step A Align the cameras with the calibration target using Insight
to view the images (multiple camera systems only).
Step B Fine tune the Scheimpflüg angle and focus with flow
images and record flow images using Insight software.
Step C Record images of the calibration target using Insight
software.
Step D Process these calibration images to create a new
Perspective Calibration file.
Step E AutoMap to correct calibration target alignment errors
using Insight software (Stereo PIV only).
Figure 9-2
One-Plane Target
A single image of a single plane target may be used for one camera
systems or multiple camera PLIF to create a XY (no Z) calibration for
dewarping. A dual-plane target may also be used for these applications.
For stereo PIV the single plane target is mounted on a traverse and images
from each camera are captured at multiple Z to create a XYZ calibration. A
traversed single plane calibration target is generally more accurate than a
dual plane target. With the traversed single plane target twice the number
of calibration points per plane are used than a dual plane target with the
same grid spacing. Using 5 to 9 calibration planes allows a larger depth
and higher order Z polynomials to be used. The single plane target is
typically used to calibrate situations with high distorted medium between
the cameras and the flow region. For example, if the flow measurement is
in a water tunnel and the wall of the tunnel is curved in shape, it would be
more desirable to use a single-plane target to provide the calibration
relationship. It is because the multiple planes (up to 9 planes) in the
Z direction can provide higher order Z polynomials for the calibration
curve fit.
The two-plane target has calibration marker points that alternate between
two depths. This allows a 3-D calibration to be performed without having to
traverse the target. Only a single left and right image is used with the two-
plane target. The advantage of the dual-plane target is that it does not
have to be traversed. In many experiments access to the flow area is
limited and traversing a target impractical. The two-plane target allows
measurements in these more limited access experiments.
In experiments where the cameras are on both sides of the light sheet a
four-plane target is used. It is the same as the two-plane target with a
second calibration dot grid on the back.
The target is placed in the laser light sheet plane. Automapping is used to
correct the target-light sheet misalignment in a stereo PIV system. The
Automapping function helps to re-calculate the calibration polynomials and
to correct for the mis-alignment of the target.
Details on how to set up this grid are provided in the PIV Systems Manual.
Figure 9-4
Stereo PIV Camera Location (one side)
In the following figure, the laser light sheet passes between the cameras.
The left camera has a negative Z position, the right camera has a positive
Z position.
The main advantage of having the cameras on both sides of the light sheet
is that both cameras may be in forward scatter where the light intensity is
higher. Also the camera fields of view can be closely matched with the
cameras on both sides of the light sheet. In the following figure both
cameras are on the same side of the laser light sheet, and have positive
Z positions.
Note: Be sure the Start Capture button is not activated. Having the
system capturing live video when starting the Capture PIV
Calibration Images or the Capture PLIF Calibration Images
process, can cause distorted images.
3. Select Tools | Capture Perspective Cal. Images from the main
Insight menu. The Perspective Calibration Image selection box
appears.
4. Click Capture. A pair of left and right images are captured and stored
in the experiment’s setting folder. 000001in the filenames is the image
sequence index number. This number is always 0 when the Capture
PIV or Capture PLIF Calibration Images dialog box is opened.
Note: Be sure the Start Capture button is not activated. Having the
system capturing live video when starting the Capture PIV or
Capture PLIF Calibration Images process, can cause distorted
images.
3. Select Tools | Capture Perspective Cal. Images from the main
Insight menu. The appropriate Capture Calibration Image selection box
appears.
4. Click Capture. A pair of left and right images are captured and stored
in the experiment’s setting folder. With the two-plane target only one
set of calibration images are used.
Until you are familiar with the calibration process, you may want to follow
and perform all these steps. Once you are familiar with the process, some
of these steps may become optional.
In some experiments, all of the parameters can be set so that all calibration
images can be analyzed together. In many experiments, it is easier to
analyze the left camera images with one set of parameters and then the
right calibration images with a different set of parameters.
3. Select the camera first. Then click Select Calibration Image(s). The
Open TIF Image box opens.
4. Select all the calibration images of the current camera. The Files of
Type filter is automatically set to show the calibration images from only
the current camera in the image list.
5. Enter a Threshold value. Refer to “Setting the Threshold Value” for
details.
6. Click Define Target. See "Defining the Target” later in this section for
information on how to define the target and the Fiducial Marker Based
Grid.
7. Click Analyze One to analyze the current image. Inspect the screen
display to make sure there are boxes around the calibration markers
and a diamond around the fiducial mark in the center.
If there are errors, repeat step 5 and enter new threshold values. Also,
click Options and perform the steps outlined in “Analyze Options
Dialog,” later in this section, to define area of interest, object size, and
grid tolerance.
Figure 9-6
Calibration Image
Analysis
If the calibration target is not light dots on a dark background press the
Positive button to invert the gray scale values (see “(see “Choosing
Positive or Negative Settings”). Generally, the threshold is used to
separate the marker pixels from the background.
The edges of the images may be excluded from the marker analysis using
the controls in the Options dialog.
1. You may select a different color scheme for displaying the lit and
background pixels if you want. Click Blue/Red | Gray. See “Choosing
Blue/Red | Gray and Color Schemes” for additional information.
2. The histogram display may help you in selecting the correct threshold
level. Click Histogram if you want to view the intensity histogram. See
“Using the Histogram to Set Threshold Level.”
3. To set the threshold value, enter the appropriate values in the
Threshold box. The Threshold value can be set by using one of the
four buttons -10, -1, +1, +10, or by typing the threshold value in
directly.
Figure 9-7
Target Configuration
Figure 9-8
Two Plane Grid
Parameter Description
Fiducial Mark Enter (x, y) values in mm for the fiducial mark. For
Location example, if your camera field of view is 50 mm 50 mm
(x, y) mm and you leave the fiducial mark (x, y) set to (0, 0) your
vector field will be from (-25, -25) to (25, 25). If you
change the fiducial mark (x, y) to (25, 25), your vector
field range will be from (0, 0) to (50, 50).
Note: These example numbers are approximate and
assume that the fiducial mark is in the center of the
image, that the two images are well overlapped, and that
you are processing the whole images and your points file
covers the entire image.
Figure 9-9
Calibration Image
Analysis Options
5. Click OK.
The Blue/Red color scheme shows pixels above the threshold value as red
and pixels outside the threshold values as a shade of blue. The red pixels
are “lit” and they are joined together to define the calibration markers. This
allows you to visualize which pixels would be included in the marker points
for analysis. If the markers cannot be isolated from the background, you
need to capture the images again. Change the lighting or exposure so that
the contrast is better or the background is more uniform the second time.
The Gray color scheme shows the image as shades of gray. This is the
normal view of the image.
Figure 9-10
Perspective Calibration
To Verify Markers
1. On the Insight Processing Tab with a Stereo PIV Application selected
select a Calibration then press Setup to open the Perspective
Calibration program.
2. Close the System Calibration dialog. Click Image in the main menu of
the Perspective Calibration program. The Calibration Image Analysis
dialog box opens.
3. Click Select Images and open one or more calibration images.
4. Check Show CPT Pt.
Diamonds are drawn around the fiducial point and a box around the other
target points on the same plane as the fiducial mark. If a two-plane target is
being used, the calibration points not on the fiducial plane are shown with
circles.
Note: A calibration points (CPT) file must exist for the calibration markers
to be shown.
By looking at the analysis results you can verify the fiducial mark and the
calibration markers were properly identified, and that noise was not used
as a calibration marker. If a few noise spots are identified as calibration
points, remove them by doing the following:
The fiducial marker may not be properly identified if it is not in the central
area of the image, or if it is not the largest object in the image. You may be
able to use the Options… dialog to configure the software to work with
your image.
Figure 9-11
Perspective Calibration
Figure 9-11 shows the results of an image analysis. The fiducial mark
cross is highlighted with a diamond and the calibration marks are
highlighted with boxes. Two marker dots in the center of the grid are not
highlighted. This is because there are bright pixels between these two
markers. In the grid validation step the local grid spacing for these dots
was found to be outside the tolerance and these points were removed from
the grid. This removed both the extraneous bright pixels and the calibration
Four calibration marks very close to the right edge of the image are visible
in the lower-right corner. These marks were eliminated for being too close
to the image edge.
After a calibration file has been created, you can view a grid of lines from
the fluid mapped into the image with the Show Lines checked. The lines
are located midway between calibration points and mapped into the fiducial
plane. The boxed calibration points should be centered between the lines.
Circled points are not on the fiducial plane and will not be centered
between the lines. Look at the edges of the calibration grid, the mesh
should not become too warped or fold upon itself. If is too warped, using a
lower equation order can improve the calibration—especially at the edges
of the image. If the grid looks good, you may want to try increasing the
calibration equation order for improved accuracy. If you use a higher order
grid, be sure to view it again to verify that it looks okay.
Figure 9-12
Create New Calibration
Figure 9-13
Perspective
Calibration
3. The Number of Cameras and the name of the cameras are set by the
Insight |Tools| Hardware Setup dialog.
4. Click Select a Camera from the drop-down list. Click the Edit Camera
button to open the Camera Target Calibration dialog (Figure 9-14).
Figure 9-14
Camera Target Calibration
Figure 9-15
Perspective
Calibration
Figure 9-16
Perspective Calibration Screen
4. Select the camera and the calibration target image to view the
calibration point data.
5. Check Show Calibration Points… to view identified calibration grid
points. Check Show Grid Lines… to view grid lines in the selected
camera view,
Accurately placing the calibration target in the laser light sheet plane is the
largest error in most calibrations. The misalignment manifests itself as
mapping errors between world locations and the two camera images. The
mapping error, or disparity, can be measured by dewarping and cross
correlating the images. In dewarping, an image with a constant pixel
magnification is created by mapping from a world location into a camera
image and interpolating the camera image pixel intensity for each world
(dewarped) pixel location. The dewarped image is trapezoidal with the field
of view increasing with object distance. If the calibration was perfect and
the light sheet had zero thickness, the disparity between dewarped left
frame A and dewarped right frame A would be zero since both images
have captured the same particle field, but from two different perspectives.
The light sheet has some thickness which results in the disparity
correlation maps being elongated in the horizontal direction due to the
depth range within the light sheet.
Y pixel
300
250
200
150
100
50
0 100 200 300 400 500
X pixel
This disparity vector field shows all the vectors from a sequence with a
vector shown at each node from each realization. The range of vector
lengths matches the elongation of the peak. Ensemble Average Correlation
is the preferred averaging method for measuring the disparity with Insight
software. With ensemble processing the correlation maps are summed
together. When a sufficient number of realizations have been ensemble
processed, the correlation map peak will be filled in allowing accurate
location of the peak center position. If the light sheet is thin and particle
image concentration is high, you may be able to measure the disparity with
a single realization vector field.
2 mm Z Target Postion
Figure 9-19
20 pixel Target at Z =
500
2 mm
450
400
350
Y pixel
300
250
200
150
100
50
0 100 200 300 400 500
X pixel
450
400
350
Y pixel
300
250
200
150
100
50
0 100 200 300 400 500
X pixel
450
400
350
300
Y pixel
250
200
150
100
50
0
0 100 200 300 400 500
X pixel
400
350
Y pixel
300
250
200
150
100
50
0 100 200 300 400 500
X pixel
Figure 9-23
Application Screen
Figure 9-24
Application / Preprocessing /
Postprocessing
Figure 9-25
Create New Preprocessor
Figure 9-26
Processor Pipeline Editor
Figure 9-27
Application / Preprocessing /
Processing
Figure 9-28
Create New Preprocessor
Figure 9-29
PIV Processor Setup
Figure 9-31
Processor Pipeline Editor
Figure 9-32
Application / Preprocessing /
Post-processing
14. Once the processing is done, the AutoMap dialog box will be
displayed.
15. The dialog box will display the light sheet location in target coordinates
if the correction is applied.
16. The dialog box will also display the change in light sheet location from
this Automapping iteration.
17. Disparity vector field statistics. The valid vectors denominator is the
grid size and does not discriminate by choice code.
18. Apply this Correction. Select OK to change the calibration. Cancel
leaves the calibration unchanged.
Figure 9-34
AutoMap Screen
20. To check how well the Automapping corrected the calibration errors,
click Start button to go through the process again.
Figure 9-36
Viewing AutoMapping in Microsoft Excel Spreadsheet
The optimization procedure is the same as for standard light sheet position
correction in the previous section. A few tips for getting good results follow.
The bench top calibration could be performed with a similar window of the
same material, thickness, and position as the actual experiment. Using a
similar window will minimize the light sheet position errors that must be
corrected. The window should be large enough for both cameras to look
through. Uncorrectable calibration errors will result if two windows are used
and they are not in the same plane.
The calibration can also be performed with just air between the cameras
and the target. When the camera system is moved to the light sheet, there
will be an apparent z-axis translation due to the added glass between the
cameras and the light sheet. Make sure to perform the Automapping
procedure to get the proper calibration polynomials for this type of
calibration through windows.
If the correlation processing does not give good results on the dewarped
images, it may be because the disparity is too great. Larger disparities can
be processed by using the PIV Tab | Process Setup… | Processor
Settings… | Plugin Settings… | xSpotOffset plugin parameter. This
plugin parameter offsets the spots by input number of pixels. Entering the
approximate disparity will may give better results. The xSpotOffset may be
positive or negative.
Insight™ software allows you to process PIV images using both cross-
correlation technique and particle tracking technique. The cross-
correlation technique includes FFT correlation and ensemble correlation.
10-1
Rules-of-Thumb for PIV Analysis
This section gives some guidelines for optimizing your experiment for best
PIV results. To get the best results from a PIV experiment, the image
capture and the interrogation must match the flow. Typically, the
parameters that can be set to optimize the measurement are: the time
between laser pulses (dT); image shifting; interrogation spot size;
photograph magnification; light sheet dimensions; seed particle and seed
concentration. With these parameters in mind, the following rules were
developed.*
*The PIV rules of thumb were developed by Keane and Adrian in Optimization of particle image velocimeters. Part 1: Double
pulsed systems Measurement Science and Technology 1 (1990). This paper included Rules 1 through 5, TSI added Rule
6.
Velocity Gradient
Chosen Displacement
Particle Pairs
Not Overlapping
Figure 10-1
Velocity Gradient Error
Correlation produces the average velocity over the interrogation spot. The
larger the spot, the more the averaging that takes place. To see the fine
flow details, small spots are required. However, the minimum spot size is
determined by Rule 2.
Rule Breaker
Deformation processing allows larger velocity displacements within the
interrogation spot. The input spot is deformed according to the local
velocity gradient so that the particle displacement peaks from different
areas of the interrogation spot have the same displacement.
For boundary layer flows using an interrogation spot that is relatively long
and narrow reduced the velocity gradient in the interrogation spot. If the
spot area is held constant the number of particles in the interrogation spot
will also remain constant.
Figure 10-2
Correlation of Correct Velocity Measurements with the Number of Particle Images
Interrogation Errors
Figure 10-3
Interrogation Errors
Rule Breaker
With multi-pass processing the interrogation spots are offset by the image
displacement of the previous pass. By having a high percentage of
particles in the two spots pairs the required number of particles for a good
measurement is reduced.
Lost pairs refers to particles that are inside the interrogation spot for only
one laser pulse. In-plane motion causes particles to move across the spot
border. Fast moving particles are more likely to lose a pair than the slow
particles. Lost pairs creates a velocity bias towards slow velocity flow. The
lost pair estimation is given in Rule 4.
dY
First Images
Lost Pair
Y Spot in this Area
Area X
are Paired
Displacement
XSpot
Figure 10-4
Lost Pairs
Rule Breaker
Setting the First Pass Offset parameter in the Grid Engine Plugin
Parameters allows particle pairing to be improved using a single offset
value for all interrogation spots. With the First Pass Offset the lost area is
reduced from the particle displacement distance to the range of
displacements.
With multipass processing the second and later processing passes the
spot offsets are optimized for each interrogation spot using information
from the previous pass displacement field allows the spot areas to be
aligned for minimum lost area.
When the maximum one-fourth interrogation spot and light sheet thickness
image displacement is used, an average of 42% of the particle images are
paired. The seeding concentration must be increased for the lost pairs to
get the same results. With one-fourth spot displacements in all three
directions then the required seeding concentration is ten pairs per spot
divided by the .42 paired, which is equal to 24 pairs per spot.
Rule Breaker
There is no processing improvement for out-of-plane displacements.
Figure 10-5 and Figure 10-6 show the autocorrelation at two points in a
turbulent flow. The displacement at the first spot is about two particle-
image diameters. In the autocorrelation, the displacement peak has
separated from the central zero peak. This point gives a good velocity
measurement.
Figure 10-5
Autocorrelation at Two Points in a Turbulent Flow
Figure 10-6
An Interrogation Spot with One Particle-Image Diameter Displacement
Rule Breaker
This rule is for autocorrelation processing only. Two-frame cross
correlation processing removed this limitation. There is no problem with
having the first and second particle images at the same location with two
image frames.
Rule Breaker
Image Preprocessing with background subtraction and filtering can help
make the most of the images you have. The ability to enhance a poor
image is limited. For best results capture good images.
If the images are dim the image quality can generally be improved by using
more laser power, a smaller laser light sheet, a larger camera aperture, or
a more sensitive camera.
The flow chart shows the processing steps and how a vector field is
generated from the input images and the process data. There are several
algorithms that could be used for the processing steps: grid generation,
spotmasking, correlation and peak location. The best choices depend on
the flow, velocity gradients, seeding, and allowable processing time. Insight
software is designed to enable you to match the algorithms to your flow.
Insight software comes with several algorithms to choose from for each of
the processing steps. These algorithms produce good results for the
majority of experiments. However, to facilitate measurements in flows with
special challenges and research, user -created algorithms can be plugged
into one of these processing points. See Chapter 18, “Developing and
Using Plugin Dynamic Link Libraries (PIV Only).”
Image
Conditioning
Image
Yes Processor
Conditioning?
(Background
Subtraction)
No
Grid Engine
Preliminary
Generate Spot
Vector
List & Initialize
Field
Vector Field
Spot Mask
Engine
Condition Spots
Correlation
Engine
Compute
Correlation Map
Yes
Peak Engine
Measure
Displacement
Store Vector
More Spots?
No
Another
Pass Validate Yes
Pass?
No
Final Validate
Store Vector
File
Send Tecplot
Message
Figure 10-8
PIV Processor Setup
4. Select the Classic PIV or Ensemble PIV algorithm.
5. To use Deformation Processing Algorithm, simply check Use Image
Deformation checkbox.
6. If Normalize Image Intensity checkbox is checked, each frame is
normalized using the minimum and maximum intensity before the
correlation analysis.
7. Select the plugin engines for PIV processing. Click Plugin Settings to
edit plugin engine settings. Please see PIV Plugin Engines for detailed
description of plugin parameters and plugin data.
Figure 10-9
PIV Advanced Settings
Grid Engines
The GridEngine breaks the input images up into smaller spots for
processing and initializes the vector field. For each grid point, the process
manager copies the pixels from the input images into the spots and passes
the spots to the SpotMaskEngine.
The GridEngine can process the vector field in single as well as in multiple
passes. In a typical multiple-pass processing, on the first pass, the spots
are set to follow the ¼ displacement rule of thumb with no spot offsets.
After the first processing pass, the vector field from the previous pass can
be used to optimize the spot grid for the next processing pass. By offsetting
Plugin Description
Nyquist Grid Use this plugin for the fastest results.
It is the classic PIV grid. It sets vectors with the x
spacing equal to half Spot A width and the y spacing
equal to half Spot A height. No spot offsets are used
and the processing uses only a single pass. This gives
a vector grid with 50% spot overlap fitting the Nyquist
sampling criteria.
Recursive Nyquist Use this plugin for increased accuracy or higher spatial
Grid resolution.
It processes the images in two or more passes. The first
processing pass computes the vector field at the
starting spot sizes with Nyquist, 50% overlap grid
spacing. The vector field is then edited using the Pass
Validation. The results of the first processing pass are
used to optimize the spot offsets for the second
processing pass. The offset between the spots is equal
to the integer pixel displacement measured in the first
processing pass so that subsequent processing passes
would have a peak location within a half pixel of the
correlation center. If the final spot sizes are smaller than
the starting spot sizes, the spot size are reduced by a
factor of two and the number of vector rows and
columns increased by a factor of two, giving four times
the number of vectors with each pass. If the starting
and final spot sizes are the same, the second pass
uses the optimized window offsets to recompute the
vector field with the same number of vectors.
Rectangular Grid Use this plugin for full control of the recursive grid
settings.
It provides more user grid parameter control than the
Nyquist or Recursive Nyquist Grids. With the default
settings, the grid is the same as Recursive Nyquist
Grid. If the Recursive setting is changed to false then it
is the same Nyquist Grid. This grid has settings to
change the spot spacing to values other than 50%
overlap and to change the spot size reduction factor
between processing passes.
Plugin Description
Gaussian Mask With Gaussian Mask, each pixel in spot A is multiplied
by a Gaussian weighing function so that the spot is
bright in the center and dark around the edges. This
weighting gives more value to the center pixels and less
to the edge pixels.
ZeroPad Mask The ZeroPad Mask computes the average pixel
intensity of each spot and subtracts it from each pixel. If
the size of input spots is not a power of 2 or if the spot B
is larger than spot A, the spots are padded with zero
intensity pixels to a square power of 2 (8 8, 16 16,
32 32, 64 64 or 128 128). For example if Spot A is
15 10 pixels and Spot 2 is 32 32 pixels, Spot A will
be padded to 32 32 pixels and Spot 2 will not be
padded. The advantage of zero padding is increased
signal-to-noise ratio. The disadvantage is increased
processing times.
No Mask When No Mask is selected, the original spot image is
sent to the correlation engine for cross-correlation
analysis.
Correlation Engines
The CorrelationEngine computes the correlation function and returns it as
a correlation map. It computes the correlation function of the masked Spot
A and Spot B returning the result as a correlation map. The correlation
function is an algorithm that sums the particle image matches at all pixel
displacements within the displacement range. The highest correlation map
pixel is assumed to be the particle image displacement peak caused by the
contributions of many particle pairs. Other peaks are assumed to be noise
peaks caused by the random pairings of images of different particles.
Plugin Description
FFT Correlation It computes the correlation using Fast Fourier
Transform (FFT). The spots must be square powers of 2
and the spot A must be the same size as the spot B.
The ZeroPadMask must be used when the two spots
have different sizes.
Peak Engines
The PeakEngine finds the peak location in the correlation map.
Plugin Description
Gaussian Peak It locates the correlation peak with sub-pixel accuracy
by fitting a Gaussian curve to the highest pixel and its
four nearest neighbors. Two 3-point fits are done: one
in the x direction with the peak pixel and the pixels to
the left and right of the peak; and one in the y direction
with the peak pixel and the pixels above and below the
peak.
The Gaussian peak equation is given by:
dx x
log(l ) log(r ) x0
2 log(l ) log(r ) 2 log(c )
where l, r, and c are intensity value for left, right and
peak pixels in the correlation map, x is the integer shift
and x0 is the zero shift location.
Gaussian peak is the recommend peak engine for use
with FFT Correlation Engine and Direct Correlation
Engine.
Bilinear Peak It locates the correlation peak with sub-pixel accuracy
by fitting a set of linear functions to the highest pixel
and its 4 nearest neighbors. Two 3-point fits are done:
one in the x direction with the peak pixel and the pixels
to the left and right of the peak; and one in the y
direction with the peak pixel and the pixels above and
below the peak.
The bilinear peak equation is given by:
(r l )
dx x x0
2 max( c l , c r )
where l, r, and c are intensity value for left, right and
peak pixels in the correlation map, x is the integer shift
and x0 is the zero shift location.
Plugin parameter and plugin data can be edited in the PIV Plugin Engine
dialog, which is opened by clicking the Plugin Settings button is the PIV
processor dialog.
Note: It is recommended that you use the default parameter and data
values and settings until you have processed a few images and
have assessed your experiment needs properly.
Figure 10-10
PIV Plugin Engine Settings
Note: The Plugin Engine Settings dialog has the description of every
plugin parameter and plugin data. The same information is also
given below for your reference.
Note: When the SNR Filter Enable is checked in the PlugIn Data
Configuration Editor, the measured must pass the threshold test to
be included in the vector field. If the value does not pass the
threshold test the vector is marked with choice code 0 (SNR_FAIL).
The best ways to set the SNR threshold is to watch the Process
Monitor with Point or Step processing or view the exported data in
Tecplot® to see what the values are.
Figure 10-11
PIV Processing Monitor
Here are a few tips on how to use the processor monitor in the step
processing mode to help optimize the PIV processor settings:
Looking at the number of particles in the spots is helpful in optimizing
the spot sizes. Looking at the Masked Spots helps in seeing if the
SpotMask and CorrelationEngines are improving the spot image
quality.
In the Correlation map look to see if the particle image displacement
peak stands out from the background noise. Does the peak move
smoothly when an area is processed? Is the peak inside the center ½
of the correlation map or is near the edge? If the peak is too close to
the edge you will need to start with a larger spot size or use a first pass
offset.
In the PluginData check to see which parameters have failed. Seeing
the values for good vectors and bad vectors will help in choosing an
effective threshold value.
Input
image pair
Image Needs
Yes
Conditioning Preprocessing?
Processor
No PTV Processor
Particle Save
Identification PAR files
No
Particle Save
Tracking PAR files
No Get
Grid velocities?
Yes
Velocity Save
Interpolation VEC files
(optional)
Final Validation
Send Tecplot
Message
Figure 10-12
Super-resolution Particle Velocimetry Processor Flowchart
Setting up a Processor
1. Select an image from the Experiment Tree, for which you want to setup
the processing parameters. Drag and drop it onto the display panel.
2. Select Super-resolution Particle Velocimetry application in the
processing tab.
3. In the Processing drop-down list, select (Create New…) to create a
new processor, or select an existing processor to edit.
4. Click Setup button to open the processor setup dialog (Figure 10-13).
Figure 10-13
Super-resolution Particle Velocimetry Processor Setup
Particle Identification
Parameter Description
Particle Minimum Size The minimum size of particles to be found in the
(pixels) image. Objects of smaller size are rejected.
Particle Peak Intensity The minimum peak intensity of a particle. Unless
Threshold adaptive thresholding is used, the threshold entered
should be a grayscale value between 1 and 255 for 8-
bit image, between 1 and 4095 for 12-bit image, and
so on.
Figure 10-14
Threshold Assistant
IMPORTANT
The history logging needs to be enabled in order to use existing PIV vector
fields. Otherwise, vector files generated by the PIV processor for the same
image may be overwritten by the Super-resolution Particle Velocimetry
processor.
Velocity Interpolation
Velocity Interpolation calculates the velocity on a regular grid so that
derivate quantities of velocity such as vorticity and shear stresses can be
calculated. Starting with randomly distributed particle velocities, Delaunay
Triangulation is first used to find neighbor particles of each grid points, and
then the bi-cubic interpolation is used to calculate the velocity at each grid
point using the velocity of its neighbor particles. The output is a vector file
(.VEC) which is identical to a PIV vector file except for a PTV tag in the
Tecplot® header.
Parameter Description
Create vec file by Enable/disable velocity interpolation. No grid vector file
vector interpolation is generated if velocity interpolation is skipped.
Velocity Grid Interval The interval between the grid points, which defines the
(pixels) spatial resolution of the grid vector data.
Max Distance to Each grid point must have at least one neighbor
Nearest Particle particle within this maximum distance. Otherwise no
(pixels) velocity is calculated at this grid point.
Figure 10-15
Processor Pipeline Editor
Figure 10-16
Processor Pipeline Editor Select Vector Validation Processor
5. Setup individual processors in the pipeline by double-clicking the icons
or using the Setup button in the toolbar.
6. Click OK with you are done.
7. For final validation, the currently selected setting file will be used when
Start button is clicked.
8. For pass validation, the settings are saved as part of PIV processor
setting file.
Figure 10-17
Vector Local Validation Setup
There are three local validation methods available, based on how the
reference vector is calculated:
Vector Local Vector also allows you to replace the invalid vectors by either
the local median vector or a valid secondary peak when the secondary
peaks are exported in PIV (in PIV Advanced Settings Dialog). The replaced
vectors have choice code of 4 (interpolated).
Figure 10-18
Vector Global Validation Setup
There are two global validation methods available, based on how the range
is defined:
Absolute Range The range of valid velocity is defined by the
velocity magnitude.
Standard Deviation Range The range of valid velocity is defined by the
multiply of standard deviation and is centered
at the mean velocity.
Figure 10-19
Vector Field Conditioning Setup
Filling Holes
The holes in the vector field will be filled with the mean or median vector of
the neighborhood vectors. The filled vectors have the choice code of 4
(interpolated).
Note: A minimum of three good neighbor vectors are required to fill
a hole.
PIV Uncertainty
Conceptually, the Uncertainty of Measurement can be described as a level
of doubt in a measurement. Practically, the uncertainty is manifested as a
numerical bound in which the true value lies, with some level of confidence.
This is graphically represented in the figure, where the true value on the
number line is within the bound of uncertainty.
Figure 10-20
Uncertainty on a Number Line
Method
Insight software uses the Peak Ratio (PR) uncertainty method, detailed in
Charonko & Vlachos1. This method uses the Peak to noise Peak Ratio
(PPR) to determine the uncertainty. The PR method incorporates many
possible sources of error (e.g., particle seeding density, pixel displacement,
image pre-processing, etc.), taking a global approach to calculating
uncertainty. In general, the uncertainty is inversely proportional to the PPR.
The PR method has already been calibrated for use in Insight software and
requires no calibration by the user.
1 Charonko J. & Vlachos P., 2013, Estimation of uncertainty bounds for Individual particle image velocimetry measurements from cross-
correlation peak ratio, Measurement Science Technology, 24.
Figure 10-21
A Graphical
Expression of the
Magnitude of
Uncertainty (Red
Circular Region)
Figure 10-23
PIV Processor and PIV Advanced Settings Windows
A macro may be loaded using the Macro drop-down menu. When loaded,
the processing configuration populates all the processing settings. The
details stored in the macro can be viewed using the same dialogs that were
used to create them.
Each macro has a name and a P#. The output files have the same P# as
the macro that created them. This allows you to recall all the processing
parameters used to create a result, even if you have tried many alternative
processing techniques.
The configuration files are copied, renamed with a date-time code, and
saved when used in a macro. The date-time code gives each configuration
a unique name, and prevents file overwriting.
Macros and configuration files with a date-time code are read only and may
not be changed. This ensures that the output files with a given P# were
created with the macro with the matching P#.
The date-time code is a 12 digit number showing the month, day, year,
hour, minute, second that the macro was created in the format
mmddyyhhmmss.
11-1
When no macro is selected the output files will have P000 and the
correspondence between processing parameters and output files is left to
the user.
To Create a Macro
1. Select the processing configuration including Application, Spatial
Calibration, Processing Mask, Preprocessing, Processing, and Post-
processing.
2. From the Macro drop-down list select Save As… Enter the macro
name in the dialog box and click OK.
Figure 11-1
Enter a Name for the
Macro
Figure 11-3
Batch Editor
Figure 11-4
Batch Editor
Drop-down List
Other Tasks
Tasks Description
Run a Batch
Click on the tool bar, or in the Tools | Visual Macro
Programmer window.
Stop a Batch
Click on the tool bar.
Load a Batch Select the batch name using the Batch drop-down menu.
Delete a Batch Use the Exp Tree to navigate to the bottom of the Tree
View, the batch files are listed after the experiment folders.
Right click on the batch file and select delete or click on the
batch file and press the delete key.
Note: Insight software supports only 10-, 12-, and 16-bit gray scale images.
12-1
If the measurement is for species in combustion process, calibration based
on the controlled combustion using the Flat Flame burner may be used.
The Flat Flame burner provides laminar flame with controls on the type and
amount of fuel to be used for the combustion. The calibration images must
be renamed and saved and moved to the settings directory in the current
experiment.
Figure 12-1
Calibration Images
Figure 12-2
PLIF Processor Setup
Figure 12-3
Add Reference
Figure 12-4
Curve View Screen
Ratiometic Method
For each pixel in PLIF images, the two closest calibration points in terms of
pixel intensity are used to compute the scalar quantity at that pixel using a
two-point linear equation.
Figure 12-5
MATLAB Plugin Setting
3. Select the MATLAB® script file. If the script requires command line
input, enter it in the Input textbox.
4. If you do not have the final script yet and want the data exported from
Insight software to MATLAB® to help you debug the script, check No
Script, Export Data Only checkbox.
Note: Use “Who” or “Whos” command to view exported variables in
MATLAB® command window.
Figure 12-6
Edit Variable Name
Figure 12-7
PLIF MATLAB Plugin Data Exported
Figure 12-8
Spatial Calibration
3. For PLIF with cameras PLIF1 and PLIF2 select Second Camera: 2.
Figure 12-9
Perspective Calibration
4. Create a Perspective calibration file with CPT files from PLIF1 and
PLIF2. See Chapter 9, 2-D Calibration and Perspective Calibration for
details.
5. Process PLIF1 with Spatial Calibration: None and Processing
configured for PLIF 1 PLIF1. This processing step creates and displays
*.SCALAR1.TIF images.
6. Save the PLIF1 processing as a macro.
7. Reselect the RawData images. This is necessary because the previous
selected PLIF1 and PLIF2 image are now the Analysis SCALAR1.tif
image in the image display.
Figure 12-10
Scalar Data
Export Setup
Figure 12-11
Spatial Calibration
Figure 12-12
Perspective Calibration
8. Create a Perspective calibration for PLIF1 and PIV Left cameras. (See
Chapter 9 for details on Perspective Calibration).
9. Select the PLIF and PIV calibration file.
10. Configure the Processing for the PLIF1 camera.
Figure 12-13
Scalar Data
Export Setup
Figure 12-14
Scalar Data
Export Setup
4. Specify the grid interval of the exported data. The pixels of inside each
grid spot in the PLIF data image will be averaged and exported.
5. Check Combine with PIV Data to export the PLIF data with the PIV
vector field with the same capture name from, e.g., simultaneous
PIV/PLIF measurement.
6. Check Combine with Other PLIF Data to export the PLIF data with
the result of another PLIF camera with the same capture name from,
e.g., dual-camera PLIF measurement.
Note 1: When combine with PIV or Other PLIF data, a perspective
calibration must be selected in the processing tab.
Note 2: When combine with PIV or Other PLIF data, PIV and PLIF
processing must be performed for other cameras before
using the PLIF data export.
GSV Calibration
1. From the Processing tab of Insight software, select Calibration. The
2-D Spatial Calibration dialog opens.
2. Select Measured in the tab control box.
13-1
3. Type in the distance between any two dots in the Object size in mm
box. The standard GSV calibration target has the grid interval of 2.5
mm.
4. Click Measure.
5. Place the cursor in the center of the first dot. Click the left mouse
button once.
6. Move the cursor to the center of the second dot. Click the left mouse
button once.
7. The result is shown in Calibration box.
8. Click OK to save the calibration file for use in GSV sizing process.
Figure 13-1
GSV Processor Screen
Figure 13-2
GSV
Processor
Sizing
Parameters Description
Laser Camera Select the laser-camera arrangement you are using: a)
Arrangement laser on the left and camera on the right; or b) laser on
the right and camera on the left.
Oscillation Intensity Set the minimum of mean intensity of an oscillation
Threshold pattern. You may check Automatic box to use the
default value chosen by the program, or enter the
threshold (after uncheck the Automatic box).
Figure 13-3
GSV Processor
Sizing Advanced
Figure 13-4
GSV Processor
Matching
Parameters Description
Maximum size The maximum relative size difference, in percentage,
difference allowed between two pair particles.
Minimum and The minimum and maximum horizontal shift, in pixels,
maximum between two paired particles. Moving left in the images is
horizontal shift negative shift and moving right is positive shift.
Minimum and The minimum and maximum vertical shift, in pixels,
maximum vertical between two paired particles. Moving down in the images
shift is negative shift and moving up is positive shift.
Maximum distance The maximum distance, in pixels, between neighbor
between neighbor particles. The neighbor particles are those with similar
particles motion and are used primarily in the motion match.
Maximum number The maximum number of particles selected within the
of neighbors maximum neighbor distance.
Use motion match Check the box to enable motion match, which runs after
the size match.
Maximum Particles paired by motion match should have similar shift
deviation from direction to those paired by size match. The deviation must
local flow be within the maximum deviation defined here.
direction
Figure 13-5
GSV Sizing
Monitor
Figure 13-6
GSV Particle Setup
Insight™ software offers the spray analysis option to help you analyze
spray geometry. The spatial distribution of elastically scattered light is used
to evaluate spray size, spray angle, spray development, and spray
symmetry. These functions help in the development of nozzles, injectors,
and spray systems for steady or pulsed sprays.
For simplified viewing of both vertical and horizontal spray sections, the
camera can be mounted at a 45-degree angle to horizontal. A relatively
small camera f# is needed here, because the required depth of focus is
large. The laser power must be higher than when the camera is
perpendicular. With 45-degree viewing, all images contain perspective
distortion, but this is easily corrected by an Insight image conditioner. The
conditioner’s correction factors can be generated within Insight software
using images of a PIV calibration target. Correction factors are supplied
with Insight software for 45-degree viewing of a horizontal light sheet and
for 45-degree viewing of a vertical light sheet.
14-1
Software Setup for Steady Spray
Steady or “continuous” sprays do not vary with time (beyond the
characteristic time of the spray). Images can be captured in two ways: with
or without accompanying PIV analysis.
When PIV analysis is planned, use a thin, well-aligned light sheet for
optimum PIV processing, and to average multiple images for optimum
spray analysis. Typically averaging 10 to 25 images yields a suitably
smooth representative image for spray analysis. Steady sprays can be
considered “unchanging with time” only if the analysis time is greater than
the characteristic time of the spray, and the 5 to 10 ns YAG laser pulse
duration is much shorter than any characteristic time of current sprays.
Figure 14-1
PIV Capture Timing Setup
Figure 14-2
PLIF Capture Timing Setup
Figure 14-3
Pulsed Spray Images Captured at 1.70 ms, 2.20 ms, and 3.00 ms after the Injector
TTL Signal was Received
The full set of 12 images is shown in Figure 14-4. The External Trigger
signal usually corresponds to the logic level injector “Command” or “Drive”
signal.
Figure 14-4
Insight Timing Diagram for PIV
Mode Acquisition of a Single
Steady Spray Image
Figure 14-5 shows the Timing Diagram for PIV Mode acquisition of multiple
laser pulses in a pulsed spray image.
Figure 14-5
Insight Timing Diagram for PLIF Mode Acquisition of Multiple Laser Pulses in a
Pulsed Spray Image
The chapter explains how to use the microscope PIV system. For
information on assembly and installation of the microscope, laser, light
guide, and camera see the microscope installation manual, laser
installation manual, and light guide installation manuals.
The microscope PIV system including the light guide and microscope are
designed to be used with less than 50 mJ per pulse laser power. Higher
laser power may damage the beam attenuator, light guide, or microscope.
WARNING
Viewing unfiltered laser light though the eyepieces may cause permanent
eye damage.
The microscope PIV system comes with a filter cube. This filter cube filters
out the green 532 nm laser light (or 527 nm when high speed YLF laser is
used) from the camera and eyepieces. This is important not just for
capturing high quality fluorescence images but also for laser safety. The
microscope is designed for multiple filter cubes. If you add a filter cube that
does not filter out the green 532 nm (or 527 nm) laser light, you must
ensure that you do not look into the eyepieces with laser illumination.
Permanent eye damage may result from looking through the eyepieces at
laser light.
WARNING
The use of controls or adjustments or performance of procedures other
than those specified herein may result in hazardous radiation exposure.
WARNING
Do not look directly at the laser light emitted from the microscope
objective. Direct, Reflected or Scattered light may cause permanent
eye damage.
15-1
MicroPIV Overview
PIV is a technique that has been in use for many years for measuring
macro flow fields with fields of view from about 10 mm 10 mm up to 1 m
1 m. In standard PIV a laser light sheet is used to illuminate a plane in the
fluid. The laser light sheet is thin so if the camera has adequate depth of
field, all of the particle images are in focus. Particles from outside the light
sheet are not illumined so they do not scatter light.
Using a light sheet is impracticable for most micro fluid flows. Frequently
there is no optical access from the side to introduce the light sheet. Making
the light sheet thin relative to flow channel thickness can be challenging.
Episcopic illumination with fluorescence (epi-fluorescence) was selected to
meet these challenges. Episcopic illumination is reflected light imaging
where the illumination light is transmitted through the objective.
Fluorescent particles are used to seed the fluid flow. Fluorescent particles
absorb light at one wavelength and then emit light at a longer wavelength.
A dichroic mirror and barrier filter are used to remove the illumination light
and its reflections from the particle’s fluorescent emission so that only the
fluorescent emission of the particles reaches the camera.
Many microPIV systems employ low speed laser and camera (up to 30 Hz
capture frequency) because the flow fields in microchannels tend to be in a
steady state. However, there are also flow fields in microchannels
changing with time rapidly; subsequently time-resolved microPIV system
may be necessary to get high temporal resolution of the flow field. Typically
time-resolved microPIV system is made up of high speed camera and laser
(with capture rate of 1000 Hz or higher). The operation of the low-speed or
time-resolved microPIV system is essentially the same.
Bharadwaj Rajiv, Santago Juan G., Mohammadi Bijan 2002. “Design and
Optimization of On-chip Capillary Electrophoresis,” Electrophoresis 2002,
23 2729-2744
Meinhart Carl D., Wereley Steve T., Santiago Juan G. 1999. “A PIV
Algorithm for Estimating Time-Averaged Velocity Fields,” Journal of Fluids
Engineering, June 2000 Vol. 122 285-289 © 2000 by ASME
Meinhart Carl D. and Zhang Hongsheng 2000. “The Flow Structure Inside
a Microfabricated Inkjet Printhead,” Journal of Microelectromechanical
Systems, Vol. 9, No 1, March 2000
Figure 15-1
Figure of Absorption and Emission Spectra for Duke Scientific Corporation Red
Fluorescent Microspheres
The figure shows the excitation and emission spectra for Duke Red
Fluorescent Microspheres. The excitation maximum is 542 nm and the
emission maximum is 612 nm. The particles will be illuminated with a 532
nm Nd:YAG laser where the absorption efficiency is within 10% of the 542
nm peak. The emission is from 545–780 nm.
www.probes.com
www.dukescientific.com
Filter Cube
A filter cube is a group of optical filters
inside the microscope that separate
scattered fluorescent light from the
illumination light. There are three light
paths that can be traced through the
filter cube. The first is the ululation
light. The second is the reflected light.
The third is the fluorescent emission
light. The reflected light is the same
wavelength as the illumination light.
The fluorescent emission is at a
longer wavelength than the
illumination light. The filter cube has
positions for three filters—exciter,
dichroic and emitter. The emitter is Figure 15-2
also known as a barrier filter. Filter Cube
The exciter is used to select the illumination wavelength for broadband light
sources. In many non-PIV epi-fluorescent applications a xenon lamp is
used as the illumination source. The excitation filter passes a narrow
wavelength range illuminating the object with a specific wavelength to
illuminate the object. Since the laser only has a single wavelength, the
excitation filter is not required for PIV.
Figure 15-3
Epi-Fluorescent Filter Cube Light Path Illumination Light
Path
Flow Model
Illumination
Light
Objective
Dichroic
Mirror
Filter Cube
Input Laser
Barrier Filter Light
Output to
Camera or
Eyepiece
The dichroic is a mirror at the laser wavelength. The input light is reflected
by the dichroic and through the objective.
Figure 15-4
Dichroic
Wavelength vs
Transmission
Graph
The 532 nm laser light scattered off the object will be reflected back
towards the input light.
Figure 15-5
Epi-Fluorescent
Epi-FluorescentFilter
FilterCube
CubeLight
Light Path
Path Reflected Laser
Light Path
Flow Model
Flow Model
Reflected Reflected
Illumination Light
Illumination Light Objective
Objective
Dichroic
Dichroic
Mirror
Mirror
FilterCube
Filter Cube
InputLaser
Input Laser
Barrier Filter Light
Light
Barrier Filter
Output toto
Output
Camera oror
Camera
Eyepiece
Eyepiece
Figure 15-6
Barrier Filter
Transmission vs.
Wavelength
The emission filter is used to block the laser light and transmit fluorescent
scattered light. The emission filter has sharp cutoff to effectively block the
illumination light while passing the fluorescent emission light. This filter will
block the small amount of 532 nm illumination light that the dichroic filter
allows to pass through.
The fluorescent emission light comes from the absorption and emission by
the flourophore dye in the particles. This is the light that we want to reach
the camera. The fluorescent emission light is at a longer wavelength that
the excitation light. The dichroic has high transmission at this longer
wavelength and the light passes through with the diachronic acting like a
clear glass plate. At the barrier filter the fluorescent emission light also has
a high transmission and passes through with little loss. The fluorescent
emission light goes to the camera or eyepieces.
FlowModel
Flow Model
Objective
Objective
Fluorescent
Fluorescent
ScatteringScattering
Dichroic
Mirror
Mirror
FilterCube
Filter Cube
Input Laser
Input Laser
Barrier Filter Light
Light
Barrier Filter
Output to
Output to
Camera or
Camera or
Eyepiece
Eyepiece
To make setting up the experiment easier, a white light can be used as the
illumination source. With the standard filter cube, orange light can be
imaged in reflection from the flow model. The orange color is from the
For the camera image the CCD size replaces the Field Number when
computing the field of view. A projection lens is used to relay the image
onto the CCD surface, and its magnification is multiplied by the objective
magnification to get the total magnification. The standard projection lens is
2x. The table lists the CCD sizes for several cameras.
For example, the PowerView 4MP-HS camera with a 10x objective and 2x
projection lens has a total magnification of (10*2) 20x. The field of view is
(15.15/20) 0.75mm (15.15/20) 0.75 mm. Each pixel images a (7.4/20)
0.37 μm area.
Table 15-1
Camera CCD Sizes
Pixel Size Height
Camera μm X Pixels Y Pixels Width mm mm
PowerView 4MP-LS 5.5 2360 1776 12.98 9.77
PowerView -HP 7.4 2048 2048 15.15 15.15
PowerView 8MP 5.5 3320 2490 18.26 13.69
PowerView 16MP 5.5 4904 3280 26.97 18.04
PowerView 29MP 5.5 6600 4400 36.30 24.20
14-10 13-8
14-10 13-8
14-10 13-8
2M
4M
2M
4M
2M
4M
Eyepiece Eyepiece Eyepiece
Image Circle Image Circle Image Circle
Figure 15-8
Relationship of the Eyepiece Image Area, the Circle, and the Area Imaged by the
Camera
The eyepiece field of view is larger than the camera field of view. When
traversing the stage to align the flow model looking through the eyepieces
shows a larger area than the camera making locating the area of interest
easier. Switching to the camera view then just required a fine traverse
adjustment. When comparing what you see in the eyepieces with what you
see on the monitor, remember that only the rectangular CCD areas are
digitized.
The flow model contains four parallel pathways. Each flow path has several
interesting places where velocity field can be measured. Details of the
microflow model should be requested from your TSI sales representatives.
6. Turn off the white light lamp. With inverted microscopes and
transparent flow models room light may be strong enough to see an
orange image through the eyepieces with both the laser and white light
lamp off. Placing the experiment cover over the flow model will block
direct room illumination. To completely block the room light, place the
experiment cover over the flow model and then place a dark cloth over
the experiment cover. The experiment cover is then used as support to
hold up the cover keeping the cloth off the model tubes.
WARNING
The laser light in the inverted microscope comes up from the objective.
Standing with your head over the microscope is dangerous. Permanent
eye damage could result. Use the experiment cover to block the laser light.
7. Switch the dual lamp housing to the laser position. Start the flow if
fluorescent particles are not already in the flow channel. Turn on the
laser pulsing using Insight software. Focus on the particles. With laser
illumination only fluorescent scattering off particles should be visible.
8. Fill input syringe with particle laden fluid.
9. Flow can be controlled by using the two syringes. To start the
experiment remove the plunger from the top syringe, and have the
plunger in the lower syringe fully inserted. Fill the top syringe with fluid
using a third syringe. Slowly pull the plunger from the bottom syringe.
The fluid will be drawn from the top syringe through the tubing and
into the flow model input reservoir, through the channels and into the
output reservoir and then into the output tube. When the output tube is
starting to draw fluid but has not reached the syringe yet, stop pulling
18. Refocus and fine position the stage for desired area of interest.
19. Capture images. Look for particle displacement toggling between
frame A and frame B.
20. Process the images, Capture a sequence and use Ensemble
Correlation if necessary.
21. Process the images. Adjust the dT value so that the particles have the
optimized displacement. In many microPIV experiments the particle
seeding must be low because of background noise from out of focus
particles. In these cases the Ensemble Correlation Processing can be
used.
22. Return fluid to input syringe either by sucking with syringe or pressure
from the bottom syringe.
Figure 15-11
Standard PIV
Processing with 64
64 Pixel Spot
Required for a Good
Vector Field
Figure 15-12
Ensemble
Processing Vector
Field with 1 Input
Image, Same Result
as Standard PIV
Processing Gives
Figure 15-13
Ensemble
Processing with Four
Image Pairs. The
Number of Bad
Vectors has been
Reduced but Many
Bad Vectors
Remain.
With 17 image pairs in the ensemble correlation the vector field looks good.
Figure 15-14
Ensemble of 17
Image Pairs no
Obvious Bad Vectors
Remain
Figure 15-15
Ensemble Vector
Field from 46 Image
Pairs
Figure 15-16
Recursive Ensemble
Vector Field with
Starting Spot Size
32 32 and Final
Spot Size 16 16
Background Images
Background images can be used to increase the signal-to-noise ratio of
PIV images. A background image can be either a single image captured
with an unseeded flow or from a sequence of flow images, including the
sequence of images captured for making the flow measurements. Currently
there are three background images that can computed from a sequence of
images: the minimum, maximum, and average intensity images. Each of
these background image processors creates a new image of the same size
with each pixel value computed from the same pixel location from the
sequence of images. The background images are computed separately for
Frame A and Frame B images. With a two camera system the left and right
camera images are also computed separately. In the example the
background images are computed from a set of 46 image pairs. The first
image shows a typical image from the sequence. The LUT was set to linear
grayscale 16x gain for all of the images.
Figure 15-18
Background Processor Setup
Dialog
This will generate a new image where the pixel intensity in the maximum
intensity image is the maximum of all pixels at that location in the sequence
of images. This has the effect of increasing the seeding density without
This technique can be used with image until most pixels have a particle
then the image becomes blocked and the particles lose their definition and
become blobs instead of Gaussian spots.
The main advantage of this method is that it can be used to increase the
seeding concentration for standard PIV processing.
Figure 15-19
Typical Image
Figure 15-20
Maximum Intensity
Image
Both the minimum and average images are effective at finding stationary
particles, walls, and scratches and smudges in the flow model. In these
example images the flow model had been used several times before this
experiment and the minimum and average images show stationary
particles and smudges.
Figure 15-21
Minimum Intensity
Image
Figure 15-23
Typical Image with
Minimum Intensity
Subtracted. The
Linear Gain has
Been Increased to
32
Figure 15-24
Ensemble Vector
Field 1 Image Pair
with Minimum
Intensity Image
Subtracted. The LUT
Gain has been
Increased from 16 to
32
Figure 15-26
Ensemble Vector
Field 46 Image Pairs
with the Minimum
Intensity Image
Subtracted
Figure 15-27
Ensemble Vector
Field 46 Image Pairs
with Minimum Image
Subtracted. There
are no Holes in the
Vector Field
If you have not installed Insight software into the default folder C:\Program
Files\TSI\Insight 4G\, you would need to set the Insight folder using the
Msg tab option. See “Message Folder.”
16-1
Accessing and Using TecPIV and Tecplot ®
Software
To open Tecplot® program:
Click Tecplot on the Insight Toolbar. The Tecplot® program opens and the
TecPIV dialog becomes available. The following screen shows the different
options available to display and manipulate the 2-D, 3-D, and particle data
generated by Insight software. Following are descriptions of the tasks you
can perform with each of the TecPIV display features and options. You can
configure Tecplot® software to directly open a processed image by
configuring the Msg tab option.
Figure 16-1
TecPIV Dialog
Screen
The following dialog box will show if you choose vector files:
Figure 16-2
Vector File
Dialog Box
The following dialog box will show if you choose particle files:
Figure 16-3
Particle File
Dialog Box
Figure 16-4
Scalar File Dialog
Box
Figure 16-5
File Selection
Dialog with Auto
Binary
Conversion and
File Converted to
Binary OK
Message
The binary versions of the files are saved with the same name as the
ASCII version, with a “B” pre-pended to the file extension.
When the Auto Binary Conversion is checked the file loader first checks to
see if a binary file with the same name is available and loads the binary file
If the binary file is not found it is created with the Tecplot DOS application
PrePlot. When converting a sequence of images you will see a cascade of
PrePlot DOS windows opening and closing.
The message under the Auto Binary Conversion Check gives the status of
the binary files. If there is an error in converting a sequence of files to
binary, the binary conversion will be turned off and the files loaded from the
ASCII text files, and the status text set to inform you of the problem.
With P Numbers, other than P000, the processing for a P Number is fixed
and the reprocessed ASCII files will be the same as the old ASCII files and
it is not necessary to keep track of when the binary files were converted.
The following are other options available to open and display vector files.
Option Description
Previous, Next Use Next and Previous to change the displayed file by one
in the file list. If you are already at the end of the list, the
display file is not changed. To go directly to a specific file,
open the File pull down list and select the file or type in a
new number in the file number edit box. The display file
number is updated when you change display file.
All Use to display all open vector or particle fields together.
Seeing all of the vectors or particles at a location shows the
range of velocities at that point. When All is selected, the
filename displayed on the graph changes to the experiment
family name. When the All option is selected, the statistics
page shows the statistics for all open vector or particle
fields, including the average field if it has been created.
Showing contours as colored arrows generally gives a better
result with All selected. Reducing the number of displayed
vectors with the Arrows page skip vectors may improve the
display
Animate Select to show all of the vector or particle fields in order.
Display starts with the first field and stops when the last field
is displayed. This Animate command updates the filename
on the graph; the standard Tecplot® Animate command
does not.
To record animations use the Tecplot Main Menu | Tools |
Animate | Zones dialog.
Figure 16-6
Plot Type Screen
Figure 16-7
Vector Plot for Vector and Particle Files
Figure 16-9
Scatter Plot for Vector and Particle Files
Figure 16-10
Histogram Plot for Vector and Particle Files
Figure 16-11
Arrow Option
Screen
Figure 16-12
Vector Field Display Screen
Selection Description
Velocity Vectors To have velocity values read from the vector file.
Modified Vectors To have modified velocity values read.
If you choose vector files, the following dialog box will show:
Figure 16-13
Color Options
Screen
Figure 16-14
Scalar Contour
Screen
Selecting a Background
Use this option to toggle the display background color between black and
white. The black background is usually preferable when displaying on the
computer monitor while the white background works well for printing.
Figure 16-15
Average Option
Screen
When 3-D vector fields are used, the average W and w’ are also computed
and the Reynolds Stress values -u’w’ and -v’w’ are computed.
Reynolds Stress includes a density term that is not included in the Tecplot®
equation. To compute the actual numerical value of Reynolds Stress,
multiply the compute value of Reynolds Stress/Density by the density.
Note: The Reynolds Stress -u’v’, -u’w’ and -v’w’ values are not normalized.
Option Description
Standard Select this check box if the turbulence is to be computed by
Deviation the standard deviation of the velocity vectors at the vector
node location. The Standard deviation is divided by a
velocity value in the other two turbulence formulas.
Node Select this check box if the standard deviation of the velocity
Average values is divided by the average velocity at the node. Each
vector uses the local average velocity with node average.
With Node Average a high turbulence reading may be
caused by either a wide range of velocity values at the point
or by a low average velocity value. The Max Turbulence is
used to clip the maximum turbulence computed.
Figure 16-16
Subtract Option
Screen
Subtracting the average velocity field breaks the vector fields up into the
average velocity, average velocity value, and fluctuating velocity, the
individual vector field—the average vector field.
The graph title shows the name of the reference vector field that has been
subtracted.
Statistics Options
The Statistics tab has options to show the velocity component and contour
parameter mean, standard deviation, minimum and maximum values of the
currently displayed vector field. If all fields are being displayed, the
statistics are for all of the open vector fields. The contour statistics are
shown for the currently displayed contour parameter.
Figure 16-17
Statistics Option
Screen
Figure 16-18
Choice Code Statistics
Screen
Stream Option
A stream trace shows the hypothetical path of a particle in the vector field
assuming the velocity at each point remained constant. The figure below
shows the Stream trace tab options.
Figure 16-19
Stream Trace
Screen
Clear
Erases the stream traces from the graph.
View Option
The view page is used with 3-D vector fields only. It has a set of seven
preset viewing angles. Switching view positions can help in visualizing the
third velocity component. The Tecplot Main Menu | View | 3D Rotate
dialog can be used for full control of the viewing perspective. The View
Page screen is shown below.
Figure 16-20
View Page
Screen
Figure 16-21
Vector/Scatter Graph
Figure 16-22
Particle Size
Screen
Figure 16-23
Viewing Statistics
of Particles
Screen
Message Option
The Message page shows the folders of the programs that TecPIV
communicates with. To change from the default folders, press the Edit
Folders button. The Message Count shows how many messages from
Insight software have been received, the Ticks field increments each time
TecPIV checks for a new message from Insight software. When a message
is received, it is shown in the box above the message count. The figure
below shows the Message Page screen.
Figure 16-24
Message Option
Screen
Figure 16-25
Folders Screen
Experiment Folder
The Experiment Folder is the directory that is the starting point the first time
you press the Select Files button in the file page. When this is the root
folder where your PIV vector files are located, you will have less navigation
to do to open vector files. When a file has been opened it that folder, it
becomes the starting location for the next Select Files.
Message Folder
Insight software communicates with TecPIV by writing a file named
Message.txt into this folder. This folder must be set to the location that
Insight software is writing messages into for the messages to be received.
Save Button
The Save button writes the folder information into a TecPIV.INI initialization
file. Each time TecPIV is launched, it checks to see if TecPIV.INI is
available. If it is, your stored values are automatically loaded. If TecPIV.INI
is not found, the default values are shown. If the TecPIV.INI file format has
changed since you saved it, a warning box showing the default values will
be used. The Edit Folders Dialog screen is shown below.
Time-Resolved Toolbox
The Time-Resolved Toolbox consists of two tabs in FocusPIV: Time and
Tracking.
The Time tab eases the navigation and animation (including exporting
of movies) of many 2-D and 3-D vector files. It also provides a way to
quickly create time-history plots and calculate spectral analysis for
different variables.
The Tracking tab enables you to track the minimum/maximum value of
any variable over time.
Time
1. In FocusPIV, activate the Time tab. The Time dialog box opens.
Figure 16-26
Tracking Dialog
Box in FocusPIV
2. Each vector file will require a timestamp. If the files do not have a
timestamp, or you want to re-write a timestamp, enable the Overwrite
Timestamp check-box.
3. Click the button, Enable Time Analysis. This will write a new
timestamp.
Tracking
The tracking tool enables you to record locations (via scatter plot) where
maximum and/or minimum values of any property found in a specific
Tecplot® zone. This can be particularly useful for vortex tracking, where
you might want to track max/min values of vorticity, Q Criterion, or .
1. In the Color tab, choose the property you want to track.
2. For tracking, each vector file will require a timestamp. If the files do not
have a timestamp, or you want to re-write a timestamp, enable the
Overwrite Timestamp check-box in the Time tab. Click the button,
Enable Time Analysis to write a new timestamp.
Figure 16-27
Tracking Dialog
Box in FocusPIV
Figure 16-28
Selecting
Histogram Plot
Figure 16-29
Histogram Plot with Cumulator Enabled
Figure 16-30
Y-axis Parameter Selection
Figure 16-31
Selecting Bin
Width and
Number of Bins
Range
The histogram is plotted with X-Axis values from the range minimum to
maximum.
When the Automatic Range box is checked, the minimum and maximum
range values are set to the minimum and maximum values from the data
files. The range is recomputed each time the Y-Axis Parameter or display
data file is changed. cted parameter.
Figure 16-32
Selecting
Automatic Range
When the Automatic Range is not checked, you may enter the minimum
and maximum X-axis values to plot. The values you enter will take affect
when you select another edit field or press the Apply button.
The manual range values will remain the same when a different Y-Axis
Parameter or data file selected. If the histogram is blank, try switching to
Automatic Range to see the actual data range and use this information to
help in resetting the manual range.
Sub-Integer Plot
The Sub-Integer check box was designed to give a “Peak Locking” display.
Peak Locking is a bias that gives more readings near integer pixel
displacements and fewer readings near integer +0.5 locations. When the
sub-integer box is checked, the value plotted in the histogram is:
This formula gives a value from –0.5 to +0.5. The sub-integer minimum and
maximum x-axis range is fixed to –0.5 to +0.5. When the histogram has a
high number of counts in the center (integer displacement) and few counts
at the edges (integer –0.5 and integer +0.5), peak locking may be the
reason.
The following screen shows a Sub-Integer Histogram Plot.
Figure 16-33
Sub-Integer Histogram Plot
The histogram from a single vector file may not have enough data points to
give a clear view of the pattern. To fill in the histogram, select multiple files
in the file page, and then select All on the file page before switching to the
histogram view.
The degree of peak locking is a function of both the images and the
processing. When the particles are imaged as single pixel in size, the
processing will be peak locked because the image does not contain
enough information in the neighboring pixels to locate the particle to sub-
pixel accuracy. Displacement peak locating algorithms are typically
optimized for 3-pixel diameter particle images, so the imaging should also
be optimized to capture 3-pixel diameter particle images. In processing, the
general rule is that deformation grid processing reduces peak locking over
Nyquist, Recursive Nyquist, or Rectangular grids.
Scatter Plot
The Scatter Plot graphs the data points on two axes. Select any parameter
for the X- and Y-axis for plotting. To create a scatter plot, first open a data
file using the File page controls. Go to the Plot Type page and select the
Scatter Plot option. And the graph will switch to a scatter plot.
Figure 16-34
Selecting Scatter
Plot
Figure 16-36
Changing Y-Axis
for Scatter Plot
With the Scatter page you can select the parameters for plotting on the X-
and Y-axis. Any pair of parameters can be plotted together. Seeing pattern
of the two parameters may give some insight into the flow behavior. To set
the parameter for the X- or Y-axis select it from the pull down list. The
graph range can either be set to Automatic ranging which set the limits to
display all of the data points or manual where you can enter the display
limits. To manually set the graph limits, deselect the Range and then enter
the Minimum and Maximum range value. The change takes affect when
you leave the text field by selecting a different edit field.
If the TSI Macro does not automatically appear when you press the
“Tecplot” button in Insight software, you will need to run through the
following setup steps:
1. Open the file “Tecplot.add” in Wordpad. This file may be found in one
of the following locations, or a different location if you specified
something other than the default:
C:\Program Files\TEC90\
C:\Program Files\TEC100\
C:\Program Files\TecFocus\
C:\Program Files\Tecplot\Tec360\
2. In the Tecplot.add file, go to the bottom of the file, and type one of the
following lines. Choose the line that corresponds to the version of
Tecplot® software that you have. Then click Save. This tells Tecplot®
software to load the proper *.dll.
3. Now paste the *.dll file into the “bin” folder, for example:
C:\Program Files\TEC90\bin
C:\Program Files\TEC100\bin
C:\Program Files\TecFocus\bin
C:\Program Files\Tecplot\Tec360\Bin
To reduce data processing time for PIV and GSV images, Insight software
allows you to perform distributed processing over a network of computers.
Insight software can be installed on another computer and run it as a
Worker PC without a security key.
Figure 17-1
Experiments11
Properties–
General Tab
17-1
3. In the Sharing tab click the Share… button.
Figure 17-2
Experiments11
Properties–
Sharing Tab
Figure 17-3
File Sharing
5. Click the Share button.
6. From the Insight software main menu select Tools | Insight Setup.
7. Click Enable Distributed Processing.
8. Click the This is a Host PC button.
Figure 17-4
Software Setup
Screen
10. Click the Test File Access button to verify the host sharing is working.
Figure 17-5
Map Network Drive Screen
3. Click the Browse button.
4. Navigate to the Host Computer and select the PIV Host folder.
Figure 17-6
Browse for Folder
Screen
Figure 17-7
Insight Setup Screen
Figure 17-8
Browse for Folder Screen
Figure 17-9
Insight Setup Screen
11. Click the Test File Access button to ensure file access.
Figure 17-10
Distributed
Processing:
Worker Mode PC
Name Screen
14. This dialog shows that the worker PC is waiting for work.
15. If you closed the Distributed Processing Worker dialog, reopen it from
the main menu by selecting Tools | Insight Setup… | OK.
16. To start distributed processing among your computers, use the Setup
Batch option in the menu bar to create a batch. When executing the
batch, distributed processing will take place.
The plugin structure allows you to have control of the few most critical
points in the PIV processing. The plugin author does not have to search
through large amounts of code looking for the parts that are of interest. By
isolating plugin methods, the testing and debugging of the new code is
simplified.
To create plugins quickly and easily, a set of plugin wizards has been
developed. The plugin wizards work with Visual C++ to automate the
creation of a new plugin project. The wizard-created plugins take care of
the overhead of data transfer and communication with Insight software
allowing you to concentrate on implementing your algorithm.
18-1
PluginData and Dynamic Link Libraries
(DLL) Plugin Parameters
Features of the plugins include PluginParameters and PluginData.
Plugin Parameters
Plugin parameters are used to control the processing algorithm. A plugin
parameter may be of type boolean, integer, floating point, or string. The
DefaultPeakEngine Correlation Engine parameter is an example of a string
Plugin Parameter, the Rectangular grid uses a boolean Plugin parameter
to control if recursive processing is to be used, integer Plugin parameters
set the first pass spot offsets, and a float Plugin parameter sets the spot
size reduction between passes. With plugin parameters you can develop
one plugin that can be optimized depending on the circumstances.
Plugin Data
The Plugin data feature is used to make user-defined measurements
during processing. Data is created for each vector. This data can be used
as a signal-to-noise ratio for validation, exported to the vector file, and
viewed in the process monitor. The plugin data class holds the following
information: measured value, and if it passed or failed the SNR test, data
name, plugin name, export on, SNR filter, SNR threshold, SNR greater
than or less than test.
Folder Contents
BaseEngine Contains base classes for deriving your plugin.
Interface Contains interfaces that are used in exchanging data
between Insight software and the plugin.
ExampleCode Contains example source code showing an example
implementation for each plugin point. ExampleCode
DLLs can be used as the starting point for developing
your own plugin.
To use the wizards for Visual C++, copy them from the PluginSDK\Wizard
folder into your Visual C++ Template folder default location:
The plugin image, spot and correlation map coordinates have the (0, 0)
pixel in the lower left corner and (Width, Height) in the upper right corner.
This is different from the standard image coordinate system with the (0, 0)
pixel in the upper left corner and the (Width, Height) pixel in the lower right
corner. Using the Y increasing up coordinates better matches standard
world coordinates and simplifies the conversion from pixels to mm and m/s.
Developing and Using Plugin Dynamic Link Libraries (PIV Only) 18-3
TSI Plugin Wizard Generated Code
The code that the TSI Plugin Wizards generate have two sections—DLL
export methods that communicate with Insight software and a C++ Class
where the real work of the plugin is done. The DLL export methods simply
call a class method with the same parameter list, with the exception of
InterfaceImplemented() that returns the interface version number. This
structure gives you all of the advantages of programming in C++ without
having to program the overhead of DLL communication.
When creating a plugin, first derive and compile the plugin using the wizard
generated code to verify that the plugin is functioning and connected to
Insight software. Then edit or delete the wizard methods and data as you
implement your algorithm.
Output Folder
C:\Program Files
\TSI Insight 4G
\Processor
Plugin Bass Class Class \Kernel\Plugin
Grid BaseGrid CustomGridClass GridEngine
SpotMask BaseSpotMask CustomSpotMask SpotMask-Engine
Correlation BaseCorrelator Custom- Correlation-Engine
CorrelationClass
Peak BasePeak CustomPeakClass PeakEngine
ExampleCode
Each ExampleCode subfolder contains a plugin implementation. The folder
includes the plugin CPP and H source code files. StdAfx.cpp and StdAfx.h
files are used by Visual C++ for precompiled headers. A Visual C++ project
workspace *.DSW and a Visual C++ project *.DSP are also included.
A plugin wizard has been created for each plugin point. The plugin wizard
generates a project that is linked to the PluginSDK folder so that it can
simply be built and run with Insight software. Each of the wizards
implements an algorithm so that the default wizard code is a valid plugin.
The generated code can then be modified to implement your algorithm.
The creation of a plugin for any of the plugin points is the same, with the
exception of choosing the TSI Wizard in the New Project dialog, and
setting the output file path to the correct engine folder in the project
settings dialog. The following steps illustrate how to create the plugin
project using the Gaussian Spot Mask Plugin, as an example. The code is
included in your C:\Program
Files\TSI\Insight 4G\PluginSDK\ExampleCode\GaussianMask folder.
1. From the Visual C++ main menu select File | New | Projects and
select TSI Spot Mask Wizard. The other wizards included are: TSI
Correlation Wizard, TSI Grid Wizard or TSI Peak Wizard.
Developing and Using Plugin Dynamic Link Libraries (PIV Only) 18-5
Figure 18-1
Using TSI Spot Mask Wizard
2. Enter the name in the Project name box and location in the Location
box.
3. Click OK. If you do not see the TSI Plugin Wizards, see “Installing TSI
Plugin Wizards into Visual C++” section of this chapter. The New
Project Information dialog appears describing the plugin being created.
Developing and Using Plugin Dynamic Link Libraries (PIV Only) 18-7
C:\Program Files\TSI\Insight 4G\Insight4G.exe
Figure 18-3
Debug Tab – Project Settings Screen
6. Make the following selections:
Field Selection
Settings For All Configurations.
Executable for Enter the full path to Insight 4G.exe
debug session:
7. Click General tab and in the Output files box, specify the path to
the plugin engine folder. In our example, C:\Program Files\Insight
4G\TSI\SpotMaskEngine. The default plugin engine folders are:
Figure 18-4
General Tab – Project Settings Screen
8. Click OK. The plugin DLL compiles and builds. If there are errors,
verify that the output DLL file is in the correct folder and the
PluginSDK files are being located by doing the following:
Click the Visual C++ Execute Program <Ctrl>+<F5> button or the
Go <F5> button to start Insight software. If Insight software does
not start, verify the Project | Settings | Debug | Executable for
debug session value.
Developing and Using Plugin Dynamic Link Libraries (PIV Only) 18-9
Test
Figure 18-5
PIV Processor Setup
You are now ready to start customizing the files to implement your
own algorithm.
To debug or trace through the code, set a break point at the line of
code where you want to start debugging. Then with Visual C++ set
for Win32 Debug launch Insight software using the Go <F5>
button. When the line of code with the break point is executed,
Insight software pauses as you trace through the code and use the
debugger. When you click the Go <F5> button again, Insight
software continues processing until the next break point.
Figure 18-6
GaussianMask.h
Developing and Using Plugin Dynamic Link Libraries (PIV Only) 18-11
Figure 18-7
GaussianMask.cpp
4. Add #include <math.h> at the top of the file. It is required for the
exponential (exp) function.
5. Define the static members s_pSubMeanParam and
s_pGaussRadParam.
Developing and Using Plugin Dynamic Link Libraries (PIV Only) 18-13
Figure 18-9
GaussianMask.cpp Apply Spot Mask
8. Create two float variables aSub and bSub and initialize to 0. Check the
s_pSubMeanParam value and if true, set aSub and bSub to the
average spot intensities.
9. Change the SpotA CopySpot() method to ApplyGaussianMask(), and
change the SpotB CopySpot() method to SubtractCopySpot(). The
ApplyGaussianMask method will be entered in the next step, the
SubtractCopySpot subtracts the input value, bSub, from each pixel.
10. Type in the CustomSpotMaskClass::ApplyGaussianMask() method.
This method first checks that a valid Gaussian radius was entered and if
not uses SubtractCopySpot(). The Gaussian equation parameters are then
computed and each pixel value is multiplied by a Gaussian weighting
factor.
To debug your plugin, set break point and then run Insight software from
Visual C++ in debug mode by launching Insight software with the Go <F5>
button.
Developing and Using Plugin Dynamic Link Libraries (PIV Only) 18-15
Plugin SDK Files and Classes
The following lists the files in the PluginSDK folder and their classes:
BaseEngine Folder
The BaseEngine folder contains the following plugins:
BasePlugin
This is the base class for all plugins. It implements the following methods
common to all plugins.
Developing and Using Plugin Dynamic Link Libraries (PIV Only) 18-17
Insight DLL Interface Methods
Bool FillUniformSpacingGrid( Sets the Spot A and Spot B dimensions and locations
IprocessGrid* pProcessGrid, and stores in the Process Grid using the Previous
IpluginVectorField* pVF, Pass Vector field to offset the spots.
IpluginVectorField* pPreviousPassVF, Initializes the vector field.
IpluginProcessingMask* pGridMask,
const int xSpacing, const int ySpacing,
const int aSpotW, const int aSpotH,
const int bSpotW, const int bSpotH,
const RECT aoi, const int imageWidth,
const int imageHeight,
bool isCentralDifferenceOffset);
RECT GetVectorArea(const int spotWidth, const Calculates the image range for vectors. The vectors
int SpotHeight, const RECT aoi); cannot be closer than ½ spot from the edge of the
area of interest.
Void ComputeOffsets(float xVec, float yVec, Calculates the spot offsets base on a vector from the
IgridPoint* pGridPt, int& aXOffset, int& Previous Pass Vector field.
aYOffset, int& bXOffset, int& bYOffset, int&
offsetChoiceCode);
Void ReduceSpotSize(float factor, bool& Calculates the spot sizes for the next processing
isFinalSize); pass. If the spots are at the final size returns
isFinalSize = true.
BaseSpotMask
The Base class for SpotMaskEngines is derived from BasePlugin. It
implements the following common SpotMask methods:
BasePeak
The Base class for PeakEngines, derived from BasePlugin. It implements
common peak search methods.
Developing and Using Plugin Dynamic Link Libraries (PIV Only) 18-19
Insight DLL Interface Methods Description
Float MeasurePeakToNoiseSNR(void); Computes the peak pixel intensity divided by the
highest noise peak pixel intensity. A common SNR
test for filtering out bad vectors. Returns the ratio.
void SetSearchArea(ICorrelationMap2* pMap, Use to calculate the range of correlation map pixel to
const float xZero, const float yZero, search for the peak.
const int dxMax, const int dyMax);
bool FindPeaks(ICorrelationMap2* pMap); Scans the image and finds the local peaks, storing
the parameters of the four largest peaks.
Returns false for error.
bool IsLocalPeak(ICorrelationMap2* pMap, Returns true if the pixel is higher than all of its
int x, int y, float v, float& sum); neighbors.
Sum is the sum of the pixel and its neighbors, use as
a tie-breaker if two peaks have the same height.
void StorePeak(int x, int y, float peakValue, Store the peak location in the peaks array.
float sum);
void ClearPeakArray(); Resets the peak array
void ShuffleDown(int i); Use to sort peaks in the array.
class PeakRecord Use for the peak array.
Interface Classes
The following interface classes and class methods are described. For
detailed information, including comments on the use of these methods,
refer to the *.H files in the Insight software \PluginSDK\Interface folder.
ICorrelationMap2
IGridPoint
IPluginData2
IPluginParameter
IPluginSettingFactory2
IPluginVector2
IPluginVectorField2
IProcessGrid
IProcessingMask
ISpotImage
PluginID
The following shows an example of a *.H file view with Visual C++.
Class Description
ICorrelationMap2 The correlation map is the output from the
CorrelationEngine and the input to the
PeakEngine. The correlation map is a 2-D-array
of floating point pixels. The particle image
displacement is distance from the zero pixel to
the particle image displacement peak plus the
offset.
Developing and Using Plugin Dynamic Link Libraries (PIV Only) 18-21
Class Description
ICorrelationMap2 Methods
void SetSize(int width, int height);
bool SetPixelValue(int x, int y, float value);
bool AddToPixelValue(int x, int y, float value);
bool GetPixelValue(int x, int y, float& value);
int GetWidth(void);
int GetHeight(void);
void SetZeroPixel(const float xZero, const float yZero);
bool GetZeroPixel(float& xZero, float& yZero);
void SetMaxDisplacement(const int dxMax, const int dyMax);
bool GetMaxDisplacement(int& dxMax, int& dyMax);
void SetSpotOffset(const int xOffset, const int yOffset);
bool GetSpotOffset(int& xOffset, int& yOffset);
ICorrelationMap2& operator +=(ICorrelationMap2& correlationMap);
GridPointMethods
.Bool SetSpot(int index, int left, int bottom, int width, int height);
bool GetSpot(int index, int& left, int& bottom, int& width, int& height);
bool CheckBounds(const int imageWidth, const int imageHeight;
void SetChoiceCode(const int code);
int GetChoiceCode(void);
int GetXOffset(void);
int GetYOffset(void);
IPluginParameter Methods
enum ParameterType
{
PLUGIN_PARAMETER_BOOL,
PLUGIN_PARAMETER_FLOAT,
PLUGIN_PARAMETER_INT,
PLUGIN_PARAMETER_STRING
};
LPCSTR GetParameterName(void);
LPCSTR GetPluginName(void);
int GetParameterType(void);
bool SetBoolValue(bool b);
bool GetBoolValue(void);
bool SetFloatValue(float f);
float GetFloatValue(void);
bool SetIntValue(int i);
int GetIntValue(void);
bool SetStringValue(LPCSTR string);
LPCSTR GetStringValue(void);
Developing and Using Plugin Dynamic Link Libraries (PIV Only) 18-23
Class Description
IPluginSettingFactory2 Used by a plugin to create IPluginDataConfig
and IPluginDataConfiguration objects.
IPluginSettingFactory2 Method
void CreatePluginDataConfig(
int pluginID,
LPCSTR pluginName,LPCSTR dataName,
bool isSnrFilter, bool isGreaterThan,
float snrThreshold, bool exportToFile);
IPluginParameter* CreatePluginParameter(
int pluginID,
LPCSTR pluginName,
LPCSTR ParameterName,
int parameterType);
IPluginDataConfigurationArray* GetPluginDataConfigArray();
IPluginVector2 Method
typedef enum
{
CC_BOUNDS = -4,
CC_NOT_SET,
CC_REMOVED,
CC_SNR,
CC_BLANK,
CC_1,
CC_2,
CC_3,
CC_INTERPOLATED,
CC_SMOOTHED,
CC_MAX
} ChoiceCode;
int getChoiceCode();
LPCSTR getChoiceCodeString(void);
float getU();
Float getV();
float getX();
float getY();
Developing and Using Plugin Dynamic Link Libraries (PIV Only) 18-25
Class Description
IPluginVectorField2 Methods
int getGridColumns();
int getGridRows();
int getImageHeight();
int getImageWidth();
void setImageDimensions(int width,
int height);
IPluginVector& getNearest(
float imageX, float imageY);
IPluginVector& get(int gridX, int gridY);
IPluginVectorField& operator =
(IPluginVectorField& vectorField);
void set(int gridX, int gridY,
IPluginVector& vector);
void write(const char* fileName) throw();
IPluginVector2& getVector2(int gridX,
int gridY);
IPluginVectorField2& operator =
(IPluginVectorField2& vectorField);
void setVector2(int gridX, int gridY,
IPluginVector2& vector);
IPluginVector2& getNearestVector2(float imageX, float imageY);
IProcessingMask Methods
bool getContainsMaskedPixel(int x, int y);
PluginID Methods
#define ENGINE_GRID 0x0001
#define ENGINE_SPOT_MASK 0x0002
#define ENGINE_CORRELATION 0x0004
#define ENGINE_PEAK 0x0008
Data Files
The following lists the different types of data files and settings stored in
Insight software.
File Description
user_defined_name.pivproc Saves PIV processor settings in these files.
user_defined_name.plifproc Saves PLIF and spray processor settings in these
files.
user_defined_name.pivcond Saves PIV image conditioning settings in these
files.
user_defined_name.plifcond Saves PLIF image conditioning settings in these
files.
user_defined_name.pivval Saves PIV validation settings in these files.
Developing and Using Plugin Dynamic Link Libraries (PIV Only) 18-27
(This page intentionally left blank)
This appendix describes the file naming convention and lists all the data
files generated in Insight software.
Insight Software F i l e n a m i n g
Insight™ software uses a filenaming system to help organize the many files
generated in an experiment. The filenaming system allows many filenames
to be derived from the image filenames, so that you do not have to enter
filenames for each process. A typical full filename for an image is listed in
Table A-1 below.
Table A-1
Filename Components
C:\Experiments7 Full filename
\Demo000000.T001.D001.P001.H001.La.ti
f
C:\Experiments7 Directory where the files are stored. This is the name specified when Insight
software is setup. In this example, Experiments 7 is the directory where
these image files are stored.
Cap000000.T001.D001.P001.H001.Ra.tif Filename
Filename Components
Cap RunName
000000 Sequence Number
All images that are processed to create a vector field have the same frame
number.
T0001 Traverse.
D0001 Delay
P001 Process
H001 Hardware configuration
R Camera Identifier used for two camera systems.
A camera ID is added to the filename if two-camera image capture is being
used. L is used for the left camera and R is used for the right camera. If you
have a two-camera system but are capturing a sequence using only the left
or only the right camera, no Camera ID character is used. If you have a
single camera system, no Camera ID character is added to the filename.
A-1
Table A-1
Filename Components
a Frame Straddle Frame Identifier.
Table A-2
Number of Images with Same Sequence Number for Image
Capture Modes
Number of Images
Number Frame Straddle with same Sequence
Cameras Capture Number
1 no 1
1 yes 2
2 no 2
2 yes 4
Insight Software F i l e s
The following table lists all the files that are generated and used by Insight
software. Some of these files are described in detail in this appendix.
The following describes the format and contents of some of the files listed
in the above table.
Table A-3
Choice Codes
CHC Description
1 Highest correlation peak used for vector.
2 2nd highest correlation peak used for vector.
3 3rd highest correlation peak used for vector.
4 Interpolated vector.
5 Smoothed Measured Vector, was a code 1, 2 or 3 before smoothing.
0 Temporally Blank. Vector did not pass a validation criteria and is waiting
to be filled with an interpolated vector.
-1 SNR Fail. The vector was removed because the correlation did not pass
the SNR validation criteria defined in the Process | Setup | Signal Levels
dialog.
-2 Removed point. The point has been disabled by the Process |
Polynomial Grid, or other removed point from grid.
-3 Bounds, 3-D Vector outside 2-D vector field overlap range. *.V3D file, or
the 2-D vector is out of the image bounds after spot offset.
-4 Vector has not been set.
Error Vectors
Velocity values of 9.9e9, indicate an error velocity. This is not a valid
velocity value. Following shows an error vector record:
5.200000, 49.600002, 9999899648.000000, 9999899648.000000, -1
X Position mm 5.200000
Y Position mm 49.600002
U Velocity m/s 9999899648.000000 (9.9e9)
V Velocity m/s 9999899648.000000 (9.9e9)
Choice Code -1 Non-positive choice code indicates error vector.
For Stereoscopic PIV, the left and right images must be processed in pixel
units. The vector field combination converts from pixel to velocity.
TITLE="\D:\Experiments\Deg\Vector\Deg00000L.vec" Filename
VARIABLES= "X pixel", "Y pixel", "U pixel", "V pixel", Data Column names. Note that the locations and
"CHC" displacements are in pixels.
ZONE Zone
DATASETAUXDATA Application="PIV" Application type, Image size, Length Unit, Origin and
DATASETAUXDATA SourceImageWidth="128" Time Unit.
DATASETAUXDATA SourceImageHeight="128"
DATASETAUXDATA LengthUnit="pixel"
DATASETAUXDATA OriginInImageX="0.000000"
DATASETAUXDATA OriginInImageY="127.000000"
DATASETAUXDATA TimeUnit="deltaT"
DATASETAUXDATA SecondaryPeakNumber="0"
DATASETAUXDATA DewarpedImageSource="0"
I=5, J=5, Number of data columns and rows
F=POINT Data record format
TITLE="C:\Experiments7\Experiment PIV
Demo\Sim\Analysis\sim000001.T000.D000.P001.H001.L.vec" VARIABLES="X pixel", "Y pixel", "U
pixel", "V pixel", "CHC", DATASETAUXDATA Application="PIV" DATASETAUXDATA
SourceImageWidth="128" DATASETAUXDATA SourceImageHeight="128" DATASETAUXDATA
LengthUnit="pixel" DATASETAUXDATA OriginInImageX="0.000000" DATASETAUXDATA
OriginInImageY="127.000000" DATASETAUXDATA TimeUnit="deltaT" DATASETAUXDATA
SecondaryPeakNumber="0" DATASETAUXDATA DewarpedImageSource="0" ZONE I=7, J=7, F=POINT
16.000000, 112.000000, -0.480119, -0.782582, 1
32.000000, 112.000000, -0.504793, -0.438491, 1
48.000000, 112.000000, -0.475778, -0.284266, 1
64.000000, 112.000000, -0.438533, 0.108856, 1
80.000000, 112.000000, -0.508797, 0.381481, 1
96.000000, 112.000000, -0.444264, 0.694730, 1
112.000000, 112.000000, -0.453020, 0.938349, 1
16.000000, 96.000000, -0.132720, -0.712976, 1
32.000000, 96.000000, -0.119912, -0.462049, 1
48.000000, 96.000000, -0.204022, -0.223730, 1
64.000000, 96.000000, -0.219707, 0.122304, 1
TITLE="\D:\Experiments\NoFlame\Vector\NoFlame00000.v Filename
ec"
VARIABLES= "X mm", "Y mm", "U m/s", "V m/s", "CHC" Data Columns Titles. Note that the vector positions are in mm
and the vectors are m/s.
DATASETAUXDATA Application="PIV" File calibration data. The application, X and Y pixel size in the
DATASETAUXDATA SourceImageWidth="512" fluid m/pixel, image origin, dT time between laser pulses in
DATASETAUXDATA SourceImageHeight="512" ms, and the image size in pixels.
DATASETAUXDATA
MicrometersPerPixelX="42.860001"
DATASETAUXDATA
MicrometersPerPixelY="42.860001"
DATASETAUXDATA LengthUnit="mm"
DATASETAUXDATA OriginInImageX="0.000000"
DATASETAUXDATA OriginInImageY="0.000000"
DATASETAUXDATA
MicrosecondsPerDeltaT="10.000000"
DATASETAUXDATA TimeUnit="ms" DATASETAUXDATA
SecondaryPeakNumber="0" DATASETAUXDATA
DewarpedImageSource="0"
Zone
I=5, J=5, Number of vector columns and rows.
F=POINT Data Record Format.
TITLE="C:\Experiments7\Experiment PIV
Demo\Sim\Analysis\sim000001.T000.D000.P013.H001.L.vec" VARIABLES="X mm", "Y mm", "U m/s",
"V m/s", "CHC", DATASETAUXDATA Application="PIV" DATASETAUXDATA SourceImageWidth="512"
DATASETAUXDATA SourceImageHeight="512" DATASETAUXDATA MicrometersPerPixelX="42.860001"
DATASETAUXDATA MicrometersPerPixelY="42.860001" DATASETAUXDATA LengthUnit="mm"
DATASETAUXDATA OriginInImageX="0.000000" DATASETAUXDATA OriginInImageY="0.000000"
DATASETAUXDATA MicrosecondsPerDeltaT="10.000000" DATASETAUXDATA TimeUnit="ms"
DATASETAUXDATA SecondaryPeakNumber="0" DATASETAUXDATA DewarpedImageSource="0" ZONE I=8,
J=6, F=POINT
0.685760, -0.642900, -10.748755, -15.537544, 1
1.371520, -0.642900, -10.367813, -15.116728, 1
2.057280, -0.642900, -9.883249, -15.988159, 1
2.743040, -0.642900, 24.345598, 49.439709, 1
3.428800, -0.642900, -4.079507, 3.462374, 1
4.114560, -0.642900, -10.931281, -8.633723, 1
4.800320, -0.642900, -10.680726, -8.430496, 1
5.486080, -0.642900, -11.227771, -7.058886, 1
0.685760, -1.328660, -10.104179, -14.704104, 1
1.371520, -1.328660, -10.116139, -14.203558, 1
2.057280, -1.328660, -9.289243, -13.969359, 1
2.743040, -1.328660, -9.614551, -13.373343, 1
3.428800, -1.328660, -22.890966, -0.089707, 1
The count is the number of valid vectors (vectors with a positive choice
code) at each location. The maximum count is the number of vector fields
averaged together. If some vectors at a location were not valid, the count
at that point is reduced. Only valid points are included in the average.
The vector grid for all of the vector fields in the average must be the same.
Having a different number of vector columns and rows, or different vector
The units of the *AVG.VEC file may be in either pixels or mm and m/s
depending on the units of the VEC files used in computing the average.
TITLE="\D:\Experiments\Deg\Vector\DegL” VARIABLES= "X pixel", "Y pixel", "U Mean pixel", "V
Mean pixel", "Count” ZONE T="Pixel, Height=1016, Width=1000 “ I=5, J=5, F=POINT
138.000000, 908.000000, 0.194089, 0.241566, 8
261.000000, 908.000000, 0.233431, 0.205879, 8
384.000000, 908.000000, 0.267045, 0.153003, 8
507.000000, 908.000000, 0.358548, 0.153543, 8
630.000000, 908.000000, 0.431884, 0.111491, 8
138.000000, 827.000000, 0.159519, 0.154415, 8
261.000000, 827.000000, 0.226142, 0.126557, 8
384.000000, 827.000000, 0.266780, 0.096698, 8
507.000000, 827.000000, 0.359502, 0.111918, 8
630.000000, 827.000000, 0.419891, 0.055146, 8
138.000000, 746.000000, 0.162204, 0.104445, 8
261.000000, 746.000000, 0.228636, 0.103401, 8
384.000000, 746.000000, 0.276518, 0.079071, 8
507.000000, 746.000000, 0.360926, 0.077221, 8
630.000000, 746.000000, 0.452794, 0.069008, 8
138.000000, 665.000000, 0.155498, 0.070431, 8
261.000000, 665.000000, 0.217330, 0.035222, 8
384.000000, 665.000000, 0.275173, 0.032714, 8
507.000000, 665.000000, 0.353082, -0.035741, 8
630.000000, 665.000000, 0.436182, 0.020788, 8
138.000000, 584.000000, 0.166035, 0.034134, 8
261.000000, 584.000000, 0.224729, 0.041150, 8
384.000000, 584.000000, 0.282870, 0.002764, 8
507.000000, 584.000000, 0.359145, 0.008448, 8
630.000000, 584.000000, 0.415600, -0.017352, 8
The *.STD file has two more data columns than the *AVG.VEC file and so
cannot be opened with a sequence of VEC files in Tecplot® software to
create an animation.
The units of the *.STD file may be in either pixels or mm and m/s
depending on the units of the VEC files used in computing the average.
TITLE="D:\Experiments\Deg\Vector\DegLAvg.std" Filename
VARIABLES= "X pixel", "Y pixel", "U Mean pixel", "V Mean Data Column Titles
pixel", "Count", "U StdDev", "V StdDev"
Table A-4
Choice Codes
CHC Description
1 Particles with a valid velocity vector
0 Particles obtained without velocity processing
-3 Particles with an invalid velocity vector
-4 Particles without velocity vector
Table A-5
Single-Camera PLIF
Columns Description
1 Grid point X
2 Grid point Y
3 Choice code
4 Scalar data
Table A-6
Choice Codes
CHC Description
1 Grid points with a valid scalar
-3 Grid points excluded from PLIF processing
Simultaneous PLIF-PIV
The Scalar Data file for simultaneous PLIF-PIV contains the scalar data
from the PLIF camera and the vector data from the PIV camera. The space
unit is always in mm because a perspective calibration is required when
combining the PIV and PLIF results during Scalar Data Export.
Table A-7
Simultaneous PLIF-PIV
Columns Description
1 Grid point X
2 Grid point Y
3 Choice code
4 Scalar data
5 Grid point X in pixels
6 Grid point Y in pixels
7 Vector X
8 Vector Y
Multi-Camera PLIF
The Scalar Data file for multi-camera PLIF contains the scalar data from
multiple PLIF cameras. The space unit is always in mm because a
perspective calibration is required when combining the PLIF results from
multiple cameras during Scalar Data Export.
Table A-9
Multi-Camera PLIF
Columns Description
1 Grid point X
2 Grid point Y
3 Choice code
4 Scalar data, camera 1
5 Scalar data, camera 2
… …
Table A-10
Choice Codes
CHC Description
1 Grid points with a valid scalar.
-3 Grid points excluded from PLIF processing or
without valid PIV vector.
File Filename
Velocity Statistics
U Mean Average U velocity values in vector field
V Mean Average V velocity values in vector field
U StdDev Standard Deviation of U velocity
V StdDev Standard Deviation of V velocity values in vector field
Velocity Range
U Max Largest U velocity value
U Min Minimum U velocity value
V Max Largest V velocity value
V Min Minimum V Velocity value
Choice Code Counts
1st Choice Number of first peak vectors, choice code 1
2nd Choice Number of second peak vectors, choice code 2
3rd Choice Number of third peak vectors, choice code 3
Smoothed Number of measured smoothed vectors, choice code 5
Interpolated Number of interpolated vectors, choice code 4
Temp Blank Number of temporally blank vectors, choice code 0
SNR Fail Number of vectors where correlation failed SNR criteria ,
choice code -1
Removed Number of vectors removed by polygon edit, choice code -2
Vector Units
Velocity Unit Vector field units either Pixels or m/s
File, U Mean, V Mean, U StdDev, V StdDev, U Max, U Min, V Max, V Min, 1st Choice, 2nd
Choice, 3rd Choice, Smoothed, Interpolated, Temp Blank, SNR Fail, Removed, Velocity Unit
d:\experiments\deg\vector\deg00000l.vec, 0.284133, 0.081017, 0.098876, 0.067917, 0.460182,
0.150314, 0.236902, -0.025677, 25, 0, 0, 0, 0, 0, 0, 0, pixel
d:\experiments\deg\vector\deg00002l.vec, 0.293000, 0.079595, 0.098131, 0.067056, 0.456886,
0.156136, 0.231293, -0.030029, 25, 0, 0, 0, 0, 0, 0, 0, pixel
The first line is the time and date of the opening of the log file.
The second column is the elapsed time since the beginning of the capture.
Note that the elapsed time between the beginning of the capture and the
first actual capture will always be larger than the time between subsequent
captures. This is due to various startup activities (memory allocation,
synchronizer communication, etc.) that take place during this time.
The third column shows the time since the last frame captured and can be
analyzed to look for missed triggers. To get the frame rate in frames per
second, use 1/time/1000.
The fourth column shows the time spent solely in the frame grabber. In
certain cases this can be used to determine if other processes are affecting
the capture rate.
The choice codes are listed in the VEC file format definition. Non-positive
choice codes indicate errors and must not be used in velocity field
statistics.
Getting Started
To access these features, select Tools | MATLAB | Spatial and Time
Series Analysis… or Proper Orthogonal Decomposition from the
Insight main menu.
Figure B-1
Spatial Toolbox Window
B-1
Loading Insight Software Files
Insight™ data, vector files with *.vec or *.v3d extensions can be loaded into
this program.
Figure B-2
Select Vector Files
Figure B-3
Vector File Selected
Arrow Options
The following arrow choices are available:
Option Description
On/Off Select On to display and Off to hide the arrows.
Color/Black Available only if arrows are turned on.
Color: Displays arrows according to the current
quantity.
Arrow Size Specify arrow size.
Instantaneous Mode
Leave both checkboxes unselected to choose Instantaneous mode The list
of quantities is:
Fluctuations Mode
Select the Fluctuations checkbox for this mode. The list is:
Turbulent Mode
Select both checkboxes for Turbulent quantities mode. The list is:
Contour Types
To specify a contour type, choose one of the following options in the
Contour Type box:
Option Description
Flood Displays smooth color patches with no sharp
boundaries.
Color Line Displays only color boundaries, according to the color
map of the selected quantity.
Flood + Line Displays color patches, with sharp boundaries.
Black Line Displays only boundaries of the contours.
Mode Description
Each Field Select to automatically update the contour level to each
presented map limits (min and max) and distributed evenly
into number of contour levels, that is number of colors.
All to Display Select to have the currently presented map define the
contour levels for all following maps, unless another option is
selected. If you change the quantity, the limits are updated,
but remain constant for all forthcoming views.
All Fields Select to define the contour levels by the maximum and
minimum values of the selected quantity from the whole
selected dataset. This is a powerful option allowing you to
compare the values visually, with not a single value out of the
defined color set (which can happen in the Manual or All to
Display modes). However, to determine the absolute
maximum and minimum values, the entire dataset has to be
calculated at least once. For example, All Fields of the
vorticity demands the calculating gradients in both directions
of the selected dataset. This could be time-intensive for the
time-resolved PIV images).
Manual Specify the maximum and minimum level of the color to be
shown, the selection could be symmetric by entering the
same positive and negative values or anti-symmetric, if
different values are used.
Figure B-4
Instantaneous Velocity Field (Arrows) and the Instantaneous Vorticity Field in
Color-Line Contour Mode
Figure B-5
Instantaneous Velocity Field with Longer Arrows
Figure B-6
Ensemble Averaged Velocity Field Displayed with Arrows
Note: During animation, the movie is not stored in the memory, you need
to explicitly save it using the Movie option. See “Creating Movies.”
To Start Animation
Click Animate. The first map is the current map (that could be manually
entered in the edit box).
To Stop Animation
Click Animate again. The animation stops at any map when the action was
performed. If you do not stop, the animation continues until the last map is
displayed.
Creating Movies
The movie option allows you to save your animated maps in the form of an
.avi file.
To Create a Movie
1. Click Movie.
2. Enter a name for the .AVI file. The Windows AVI video file
(uncompressed, default frame-per-second rate of 15 fps) is saved in
the Insight directory, when the last map is reached, or when the Movie
button is clicked again.
To Make a Selection
Click the appropriate selection. These are described later in this section.
Note: You can select only one type of selection. For example Add Points
cannot be selected with Add Region.
To Reset a Selection
Click Reset. All selections are cleared. Also when you click Spatial, all
selections are cleared.
Selecting Points
This selection allows you to select single/multiple points from the map as
shown in Figure B-7.
To Select Points
Drag and select a region and then click Select/Add Points.
Figure B-7
Select Single/Multiple Points from the Map
Note: When adding two or more regions, you can select only regions that
have at least one side equal, and ends of the side that lie on the
same line.
To Select Regions
Drag the mouse and select a region and then click Select/Add Regions.
Figure B-8
Two Regions Selected
Figure B-9
Selecting Rows (left) or Columns (right)
Figure B-10
Select All to Select Entire Row
Option Description
Direction Changes one of the axis to x or y, respectively.
(Rows/Columns
Swap X-Y Changes between axes.
Single Displays all the data in the selected region of interest
(rows or columns or regions or all) in spatial
distribution along rows or along columns (X or Y
profile per row or column).
Average Displays red line presenting average of quantities.
Export Figure: Allows you to use the Plot Edit options of
®
MATLAB program.
CSV: Allows you to export the selected filename,
for saving data in CSV format.
Figure B-11
Distribution Window with Average Distribution Added to Plot and Displaying Two
Disconnect Regions
Figure B-12
Distribution with Axes Swapped
Figure B-13
Output Using the Export to Figure Option
Figure B-14
Change the Visual Style of the Figure
Figure B-15
Select a Region
Figure B-16
First Window of the Time Series Toolbox
Note: The Average option is checked too, and it is emphasized by the thick
blue line on the display.
Figure B-17
Time History of a Selected Point
Figure B-18
Example of the Lateral Correlation
Figure B-19
Example of the Longitudinal Correlation Function
Figure B-20
Example of the Wave Number Spectra
Figure B-21
Export to MATLAB® Program
Figure B-22
Export to Figure Option
Figure B-23
Input Name for CSV
Figure B-24
Default Selection Window
Figure B-25
Select Options
Select/Add Region
Select a single region from the map (see Figure B-26).
Figure B-26
Selecting Regions
Figure B-27
Selecting the Entire Map
When selection of region or selection of entire map is done, the only choice
is to reset current selection and to do another selection, or to continue with
the current.
Direct/Snapshot
This checkbox is checked and unchecked
automatically by the software. There is still an
option for the user to change the selection; however, the performance of
the toolbox will be strongly altered. There are two methods to calculate the
POD modes, as it is explained in details in theoretical and computational
background: the direct method and the method of snapshots. The selection
is done according to the minimal size of the input matrix, i.e., if the number
of vectors is less than the number of the velocity vector fields, then the
Figure B-28
Plot of Relative Energy Versus Number of Modes
Figure B-30
Energy Plot Using Log-Log Notation
Figure B-31
Plot Options Field and File Name Dialog
After pressing the Continue button, default window looks like Figure B-32.
Figure B-32
Default Window, Arrows, GUI Controls, and Main Axes
Available Options
Choose between one of the large set of various combinations to present its
data: arrows in black or in color. The color of arrows could represent any
one of the available quantities for that particular mode. The arrows could
be on top of the contour map of the selected quantity, and contour could be
as color patterns, bounded, or unbounded (smooth view), color or black
contour lines. Below, in the working example, we show some of the
combinations.
Arrow Options
The following arrow choices are available:
Option Description
On/Off Select On to display and Off to hide the arrows.
Color/Black Available only if arrows are turned on.
Color: Displays arrows according to the current quantity.
v u u u v v u v u v
u, v, u 2 v 2 , , s xx , , , s yy , , s xy
x y x y x y x y y x
Figure B-33
List of Available Quantities to Use for a
Contour- or Color-Coding of an Output
Output Options
The results can be presented in Single POD modes, Multi-mode, or
Reconstruction of fields (Figure B-34).
Figure B-34
List of Available Ways to Show the
Output
Multi-Mode
The result is a linear combination of POD modes, defined by the user in the
vector of indices of modes. The combination could be of consequent or
randomly selected modes (i.e., from 1 to 5 or 1,2,5, for example). In
addition, the toolbox allows calculating the sum of the selected modes or
their linear combination by using their respective eigenvalues. The latter
option is called weighted version and realized by checking the radio-button
(the short version of Weighted/Non-Weighted). The default is a
regular sum (Non-weighted version) and checking the radio-button will
Figure B-35
Multi-Mode Controls
The software allows you to use any index notation of a vector in MATLAB®
program and gives lot of flexibility, allowing to choose single modes, group
of modes, group of modes with given step, etc. For example:
1:10—Choose all modes from 1 to 10.
1:2:10—Choose all modes with step of 2, i.e., 1,3,5,7,9 will be chosen.
1, 3, 5 or 1 3 5—modes 1, 3, and 5 will be chosen and any other
combination, like 1:2:5,10 will also work
Note: Minimum allowed value to enter is 1 and maximum allowed value is
maximum number of modes.
Reconstruction of Fields
Every one of the selected vector fields could be reconstructed by using all
the modes or some of the modes. The reconstruction with all the modes
gives the exact original vector field, while the reconstruction with lower
number of modes will provide you with the low-order reconstructed model
of the vector field. You are advised to understand more about the low-order
representation from additional documentation providing a theoretical and
computational background.
Figure B-36
Reconstruction Mode
There are several examples given below to show some of the available
arrow and contour combinations.
Figure B-37
Single Modes Velocity Field (Arrows) and the Instantaneous Vorticity Field in Color-
Line Contour Mode. Note that a number of contour levels are set to 25
During the animation, the movie is not stored in the memory. You should
operate the Movie button in the same way as the Animation button. But in
addition, you will be prompted to type in the file name of the AVI file. The
Windows AVI video file (uncompressed, default rate is 15 frames-per-
second) is saved when the last map is reached, or the Movie button is
pressed again (i.e., released).
Note: The POD Toolbox window must be in the front while the movie is
recorded. The movie is recorded by using MATLAB® standard
function getframe() that captures the screen. Therefore, if
another window pops up in front of the POD Toolbox, it might be
captured and it may corrupt the movie.
This appendix describes how to enable and setup a traverse, if you are
using one in your experiment.
The traverse manager is used to control the position of the laser/camera. It
has two modes:
Manual Move Mode in which the motion of the laser or camera is
controlled manually and not by Insight™ software.
Traverse Manager Move Mode in which motion is controlled by the
traverse manager).
Figure C-1
Traverse Manager Dialog Bar
To access the Traverse Manager click the Setup button under Traverse
Setup.
C-1
Enabling and Setting up the Traverse
To Enable and Setup the Traverse
1. From the Capture tab, click Component Setup. Select the Traverse
Manager tab in the dialog box.
2. Click OK.
3. From the Capture tab, click Traverse Setup. The traverse setup box
appears.
Figure C-2
Traverse Manager Screen
Figure C-3
Traverse Setup –
Communication
Setup Screen
2. Select the Manual Move box. When Manual Move is selected, all other
settings are unavailable.
Figure C-4
Traverse Setup –
Axis Setup
Screen
2. Select an axis.
3. To enable the axis select the Axis Enable box. The following options
become available. Make your selections based on the following
descriptions.
Option Description
Title Title of the axis to be displayed.
The Rel Home button moves the laser/camera to the set relative home
position. The Abs Home button moves the laser/camera to the hardware
home position.
Figure C-5
Manual Move Screen
Index-1
choosing color schemes, 9-23 density, 1-1 enable distributed processing, 17-3,
collapse tree, 5-5 desktop, 3-1 17-6
color dropdown, 16-27 dewarped image, 9-1, 9-32 enable software trigger, 7-12
color line, B-39 dichroic mirror, 15-6 enable time analysis, 16-25, 16-26
color options, 16-10 dichroic wavelength vs. transmission enabling distributed processing, 17-1
screen, 16-10 graph, 15-6, 15-7, 15-8, 15-9 energy content
color scheme digital gain, 7-6 choosing, B-33
choosing, 9-23 digits, C-4 energy content controls, B-34
selecting, 9-23 direct correlation, 10-18 ensemble average correlation, 9-33
component setup, 3-2 direct correlator, 10-23, 18-5 ensemble averaged mode, B-5
compute average field, 16-15 direct/snapshot, B-32 ensemble averaged velocity field, B-9
computer requirements, 2-2 disk drive, 2-2 ensemble correlation processing,
continuous, 7-11 disparity vector field, 9-33, 9-44 15-15
continuous capture mode, 7-11 disparity vector field after ensemble processing, 9-33
contour properties, 16-10 automapping, 9-46 vector field, 15-16
contour property, 16-11 display only matched particles, 13-9 ensemble vector field
contour quantity mode, B-4, B-36 display panel, 3-4 nine image pairs, 15-23
contour type, 16-12, B-5, B-39 features, 6-1 one image pair, 15-22
defining, B-6 display panel features, 6-2 epi-fluorescence, 15-2
control panel, 3-4 display while processing, 6-3 Episcopic, 15-2
correlation engine, 18-4 displaying image histogram, 6-11 error vectors, A-4
parameters, 10-23 displaying image information, 6-12 example code, 18-3, 18-4
correlation of correct velocity displaying image statistics, 6-9 exciter, 15-5
measurements, 10-4 displaying vector histogram, 6-14 exit, 3-2
correlation peak elongation, 9-32 displaying vector statistics, 6-13 expand tree, 5-5
CorrelationEngine, 10-17, 10-25, distributed processing, 4-1, 17-1 expanded uncertainty, 16-11
10-26 setting up computer, 17-1 experiment, 15-12
create image list, 6-4 setting up worker computer, 17-5 adjusting timing parameters, 7-10
create tracking, 16-27 distribution window, B-17 creating, 3-2
create vec file by vector interpolation, dock left, 4-3 creating new, 5-1
10-30 dock right, 4-3 deleting folder, 5-5
creating a run, 5-2 double correlation, 10-14, 10-15, edit, 5-2
creating an experiment, 5-1 10-24 editing, 3-2
creating calibration file, 9-27, 9-30 double correlation analysis, 10-24 file menu, 3-2
creating data files, 5-1 draw masks on images during file name components, A-1
creating dynamic mask, 8-5 processing, 8-6 how to display, 3-4
creating experiment files, 5-1 dual monitors, 4-3 managing data files, 5-2
creating experiment folder, 5-1 DVD drive, 2-2 menu options, 3-2
creating movie, B-10 dynamic mask new, 3-2
creating new calibration file, 9-12 creating, 8-5 opening, 3-2
creating new perspective calibration, draw masks on images during renaming, 5-4
9-12 processing, 8-6 setting as current, 5-4
creating run folder, 5-1 set mask velocity, 8-7 sorting order for data files, 5-3
crosshairs, 6-5 setup dialog, 8-5 time-resolved, 1-1
cumulative, 16-31 use existing, 8-6 timing setup, 7-8
dynamic processing mask, 8-5 experiment folder, 4-1, 16-24
D altering individual mask, 8-8 specifying, 4-1
data analysis, 14-6 use existing masks, 8-8 experiment tree, 5-2, 5-5, 10-13
horizontal spray, 14-6 accessing, 5-2
intensity profile, 14-6 E image list creation, 6-4, 6-13, 8-4,
statistics, 14-6 each field, B-40 8-6, 8-10, 8-13–8-17, 9-37, 9-38,
vertical spray, 14-6 edge pixels, 9-22 9-40, 9-43, 9-45, 10-12, 10-14,
data files, 18-27, A-1 edit camera, 9-13 10-37, 11-2, 11-5, 12-4, 12-7,
date-time code, 11-1 edit experiment, 3-2 12-8–12-12, 13-2, 13-3, 15-16–
define target button, 9-12 edit folders dialog, 16-24 15-23, 16-2–16-4, 16-6, 16-8,
defining contours, B-6 edit run, 3-2, 3-3 16-10, 16-11, 16-15, 16-18–
deformation grid, 10-21 Edit Run tool button, 3-3 16-33, 17-1–17-8, B-37, C-1–C-5
Delaunay Triangulation, 10-30 editing experiment, 5-2 tab, 5-2
delay, 5-3 editing run, 5-2 experiments11 properties
delete experiment, 5-5 ellipse, 8-5 sharing tab, 17-2
delete run, 5-5 emission filter, 15-8 export, 16-26
delete tracking, 16-27 export images dialog, 6-15
Please help us improve our manuals by completing and returning this questionnaire to the address listed in the
“About This Manual” section. Feel free to attach a separate sheet of comments.
Manual Title Insight 4G Global Image Acquisition, Analysis and Display Software P/N 6004904