On Image Pre-Processing For PIV of Single-And Two-Phase Ows Over Re Ecting Objects
On Image Pre-Processing For PIV of Single-And Two-Phase Ows Over Re Ecting Objects
net/publication/225179627
CITATIONS READS
26 217
8 authors, including:
Some of the authors of this publication are also working on these related projects:
ERC research project Multi-Scale Modeling of Mass and Heat Transfer in Dense Gas-Solid Flows View project
All content following this page was uploaded by Paul Willems on 16 May 2014.
RESEARCH ARTICLE
Abstract A novel image pre-processing scheme for PIV practice, however, these conditions cannot always be
of single- and two-phase flows over reflecting objects accomplished. Laser intensity can vary between images or
which does not require the use of additional hardware is image pairs due to differences in the two lasers (in case of a
discussed. The approach for single-phase flow consists of double-pulsed YAG laser), objects or bubbles can intro-
image normalization and intensity stretching followed by duce strong reflections of light, and/or reflection from
background subtraction. For two-phase flow, an additional channel walls in confined flows introduce glow. Several
masking step is added after the background subtraction. approaches are available in literature to tackle these
The effectiveness of the pre-processing scheme is shown problems (Seol and Socolofsky 2008; Lindken and Mer-
for two examples: PIV of single-phase flow in spacer-filled zkirch 2002; Honkanen and Nobach 2005; Westerweel
channels and two-phase flow in these channels. The pre- 1993; Shavit et al. 2007; Theunissen et al. 2008). In the
processing scheme increased the displacement peak presence of static objects or in two-phase flow, fluorescent
detectability significantly and produced high quality vector particles and a color filter are often used to avoid inter-
fields, without the use of additional hardware. ference of the object edges in the correlation map. In the
case of two-phase flow, two cameras (of which one has a
color filter) may be used to optically separate the two
1 Introduction phases before correlation. Although this enables PIV of
two-phase flow and edge flow, the average intensity of the
Throughout the years, digital particle imaging velocimetry tracer particles is lower (Raffel et al. 2007). In some cases,
(PIV) has developed into a technique that can be used in this will render the correlation rather difficult. Furthermore,
more and more complicated systems (Adrian 2005). It has fluorescent particles are about a factor ten more expensive
been successfully applied in turbulent flows, two-phase than non-fluorescent particles, and calibration of the two
flows, and flows around objects. The performance of the cameras is more complicated (Seol and Socolofsky 2008).
technique is determined by the quality of the images and by Applying a static mask to block stationary objects from
the signal treatment after acquisition (Raffel et al. 2007). If an image is a well-known technique to prevent these objects
the quality of the original images is good, i.e., even illu- from interfering with the correlation map. However, if an
mination, good contrast, low background noise, few sta- object is semi-transparent, information on flow behind the
tionary objects, suitable tracer particle displacement etc., object will be lost. To cope with moving bubbles shadow-
image processing will be relatively straightforward. In graphy is often used (Lindken and Merzkirch 2002). This
approach uses a second camera and background lighting to
N. G. Deen (&) P. Willems M. van Sint Annaland capture the shadows of moving objects, which can then be
J. A. M. Kuipers R. G. H. Lammertink used to mask these areas from the images from the first
A. J. B. Kemperman M. Wessling W. G. J. van der Meer camera. However, this approach requires an additional
Faculty of Science and Technology, Institute of Mechanics,
camera and careful alignment of the images from the two
Processes and Control Twente (IMPACT), University of Twente,
Enschede, The Netherlands cameras. Since a large difference in size and intensity
e-mail: [email protected] between the object and tracer particles is often present,
123
Exp Fluids
these objects can also be identified and masked using only where Imin(x) and Imax(x) are, respectively, the local
the original images from a single camera. sliding minimum and maximum using a filter length that
The use of an additional camera can be circumvented by is generally larger than the particle image diameter
removing the stationary objects through a background sub- (*3 px) and smaller than the interrogation window width
traction, which will leave moving tracer particles in the image (*32 px):
as suggested by Honkanen and Nobach (2005). Image nor- Imin ðxÞ ¼ minðIðxÞÞ; Imax ðxÞ ¼ maxðIðxÞÞ ð2Þ
malization to cope with uneven illumination was already x2X x2X
suggested by Westerweel (1993). This methodology scales where X is the square-shaped filter domain.
the intensity in the original image to a suitable minimum and/ To ensure that the local minima and maxima have
or maximum value. Common examples are subtracting a the same intensities, the filtered intensities are stretched
sliding minimum, sliding average, or scaling to the sliding based on the global minimum and maximum intensities:
minimum and -maximum. The last option is very attractive in
NðxÞ Imin
applications with low light intensity, since the technique SðxÞ ¼ : ð3Þ
enhances tracer particle visibility. Since this approach also Imax Imin
reduces the relative intensity of bright objects (bubble or After the image is properly normalized and stretched,
object reflections) compared to the particle intensities, the frames 1 and 2 can be subtracted from one another to
relative contribution of these objects in the correlation func- remove stationary objects in the background:
tion is also reduced (Shavit et al. 2007). Combining image
B1 ðxÞ ¼ maxðS1 ðxÞ S2 ðxÞ; 0Þ;
normalization with background subtraction solves the prob- ð4Þ
B2 ðxÞ ¼ maxðS2 ðxÞ S1 ðxÞ; 0Þ:
lems of temporal and spatial variation in the intensity distri-
bution, as discussed by Theunissen et al. (2008) recently.
In this work, we introduce a combined approach that can 3 Mask generating for images containing
be implemented at relative ease, which tackles uneven non-stationary objects
illumination, the presence of stationary objects and moving
objects (i.e. bubbles) without the use of additional hard- When non-stationary objects, like bubbles, are also present
ware. This approach consists of intensity normalization (to in the images, the algorithm for stationary objects requires
cope with uneven illumination), followed by background one additional step. While the normalization, stretching
subtraction (to remove stationary objects) and image and background subtraction is sufficient to remove the
masking (to remove the bubbles in two-phase flow). We stationary objects, the removal of non-stationary objects is
demonstrate the capabilities of this approach with two accomplished by applying a mask to the moving objects.
examples: single-phase flow in spacer-filled channels and This procedure was specifically developed for the removal
an extension to two-phase flow in these channels. of bubbles, which appear as bright rings on the image and
is similar to Seol and Socolofsky (2008). When other
moving objects are present, the generation of the mask
2 Theory might require adaptations depending on the reflection pat-
tern of the object (Fig. 1).
First the contrast of each frame is normalized with the aid To create the mask, a frame that does not contain any
of a local min/max filter: bubbles is subtracted from the frame to be analyzed.
IðxÞ Imin ðxÞ Subsequently, the resulting image is scaled to (i.e. divided
NðxÞ ¼ ð1Þ by) the maximum intensity of the image, yielding an image
Imax ðxÞ Imin ðxÞ
I N S Background B ν
Normalization Stretching PIV
subtraction
I N S Background B M ν
Normalization Stretching Masking PIV
subtraction
BW
Mask generation
123
Exp Fluids
with intensities between 0 and 1. Then, the scaled image is contain openings, which are closed by applying an erode-
binarized, using a threshold that is determined by trial and dilate operation three times to ensure full closure of the
error giving a typical value of 0.02. That is, each pixel with bubble edge, using a circular structuring element of 20 px.
intensity higher than the threshold is set to 1. Subsequently, Now, all bubble edges should form closed rings, and the
noise is removed (i.e., small objects with less than 200 bubbles can be filled up by setting the intensity of the
connecting pixels). The obtained image now contains only bubble interior equal to 1. In a final step, any small objects
bright rings originating from the bubbles. These rings may are removed from the image, and the image is inverted so
that the bubbles have an intensity value of 0, and all the rest
have an intensity value of 1.
Fig. 3 Schematic
representation of a spiral-wound
membrane module (taken from
www.mtrinc.com with
permission)
123
Exp Fluids
Fig. 4 1289128 Correlation map for a the original image, b the -11 px)). Note that the original image is indicated by a white square
background subtracted image, c the normalized image, and d the in Fig. 2. The xy positions are indicated in pixels
normalized & background subtracted image (peak position (-12,
spacer, which is oriented at a 45° angle to the x-direction. in the correlation map, it is not detected by the PIV algo-
Figure 4b shows that after background subtraction, no clear rithm. The height of the correlation peak in general is also
displacement peak is present; however, a displacement limited due to the varying intensities between the two laser
peak is visible in a valley. Since this peak is not the highest pulses. The correlation map for the normalized image
123
Exp Fluids
Fig. 7 1289128 Correlation map for a the original image, b the subtracted, and masked image (peak position (4, -6 px)). Note that
masked image, c the normalized image, d the normalized & the original image is indicated by a white square in Fig. 6. The xy
background subtracted image, and e the normalized, background positions are indicated in pixels
(Fig. 4c) shows a large ridge at a 45° angle to the x- fouled by for example deposits and biofouling. Recently,
direction with a sharp peak at the origin, which is again the use of air sparging has been suggested as a cleaning
caused by the spacer. The displacement peak is only visible method for these modules (Cui et al. 2003). Several options
once the normalization and background subtraction are have been proposed for the mechanism of cleaning method
combined, as shown in Fig. 4d. The resulting time-aver- through air sparging, which mechanism dominates is still
aged vector field is shown in Fig. 5. The problem of unknown, and optimization of the cleaning process is
elimination of particles with a displacement smaller than mainly empirical. Therefore, a detailed study on two-phase
one particle diameter by the image subtraction algorithm flow in these channels is of interest to ultimately improve
(Theunissen et al. 2008) is not applicable here, since the drinking water capacity and quality.
magnification combined with the size of the applied The effect of normalization, subtraction, and masking
interrogation area is not detailed enough to resolve the for the position shown in Fig. 6 is shown in Fig. 7. The
boundary layer flow around the spacer. correlation map of the original image (Fig. 7a) shows a
large ridge, which corresponds with the bubble edge. Fig-
4.2 Gas–liquid flow ure 7b shows that masking does not remove this ridge, due
to the uneven illumination of the image pairs. If the image
Conventionally, spiral wound modules are operated in is only normalized (Fig. 7c), this ridge is still present,
single-phase flow. During operation, these modules get although the overall height of the peak is reduced. This is
123
Exp Fluids
123