Docsity

Breaking Wave Velocity Estimation - Final Report | ME 6406, Exams of Mechanical Engineering

Partial preview of the text

Download Breaking Wave Velocity Estimation - Final Report | ME 6406 and more Exams Mechanical Engineering in PDF only on Docsity!

Breaking Wave Velocity Estimation

Final Report

ME6406 - Machine Vision

Instructor:

Dr. Wayne Daley

Nathan Young

December 7

th

Table of Contents:

Motivation:

Topographic changes in beach regions (termed the foreshore region) are of particular interest. Two reasons for this interest are recreation and local economies. These two reasons are interrelated as local economies rely on beach recreation to attract the public. Changes in the foreshore region can result in the loss of usable beach area. This loss of beach area can lead to significant impacts on the local economy as visitors no longer seek out the beach or the local community surrounding the beach. In this project, the foam of the breaking waves impinging on the beach will be tracked providing a means to calculate the velocity of the breaking waves. Breaking waves are analyzed due to their significant impact on sediment transport. From the calculation of sediment transport, the evolution of foreshore topography can be monitored to provide feedback on the causes for the appearance or disappearance of beaches allowing local communities to take actions to reduce the amount of sediment loss.

1 Problem Definition:

As displayed in Figure 1, beach conditions vary relative to many factors, a couple of which are the time of day and current weather patterns. The breaking waves can be seen in Figure 1 as the foam present at the front of incoming waves on the beach. The waves associated with this foam are typically referred to as bores. The tracking of waves will require the recognition of bore foam, labeling of bores, and tracking of the bore across a sequence of images until it disappears. The disappearance of a bore is difficult to track due to the interaction with other bores; therefore, an algorithm that can track bores until recession is required. From this definition, the algorithm must be capable of maintaining appropriate labels and position data for breaking wave foam in a sequence of images.

Figure 1: Sample images of breaking waves.

Problem Statement:

Given a sequence of images from an image acquisition system located on a beach, develop an algorithm which is capable of tracking wave velocity in sequential images to aid in the approximation of sediment transport.

2 Literature Review:

The measurement of velocity and frequency of breaking wave events is critical to the approximation of energy processes associated with sediment transport along the beach. The body of literature associated with the characterization and analysis of near-shore image data is very broad in terms of the near shore features extracted from image data, while the literature which focuses directly on the image analysis of breaking waves is somewhat disparate. In this literature review, a set of near-shore image analysis approaches and general segmentation approaches based upon the minimization of some cost or energy function are presented.

Near-Shore Image Analysis Techniques:

The study of nearshore processes can be divided into two interrelated components: the dynamics of waves and the subsequent bathymetry evolution due to the sediment transport associated with wave field dynamics. In this section, parametric inference models are addressed as they pertain to wave energy transfer processes which contribute to sediment transport.

The most relevant approach to approximating the velocity of breaking waves in the surf zone involves the combination of scatterometry and video data. A scatterometer returns data on the backscatter from breaking waves whereby information such as bathymetry and wave energy fluxes can be inferred. Video data is used in conjunction with this technology as a means to validate the information gathered from the scatterometer.

In this approach, sea spikes (white caps) are measured from the water surface by means of microwave backscatter. From this backscatter, a normalized radar cross section (NRCS) of backscatter is retrieved. From the NRCS, the sea spikes are interpreted as any deviation above the NRCS mean for a neighborhood comprised of more than one data point. To ensure that the sea spikes from the NRCS are breaking waves, image data is recorded for the scene of interest. Two parallel transects, normal to the wave direction, are overlaid on the image scene where the backscatter is recorded. From each frame, an intensity value is recorded for every transect pixel value. By storing each pixel, an intensity profile is created relative to the number of image frames. By cross correlating backscatter with the intensity profiles, it is shown that the phases of breaking waves can be generally extracted from the profile by observing local optima and comparing the two transect profiles (Haller 2003).

depend upon the pixel values of the entire region, there is a resulting “chicken and egg problem.” To solve this problem, a two step algorithm is implemented: First associate a local signature to each pixel, by integrating visual information on a fixed spatial neighborhood. The signature is computed based upon the subspace angle relative to the reference model for a texture.

1) Calculating Signatures: While considering local neighborhoods around each pixel. Generate a spatio-temporal signature from the cosines of the subspace angles between the signature and a reference model. By minimizing a cost function, which requires a minimization of homogeneity with respect to signatures in each region and minimizing the length of the separating boundary, a segmentation of the image plane is achieved. 2) Level Set Formulation: Level set based representation is used to identify the boundaries of solution as it does not restrict topology and boundary evolution and does not require regridding of marker points which represents a spatial neighborhood search template. 3) Energy Minimization: In incremental steps, estimate mean signatures and boundary evolution. Average the signatures over each phase. For fixed regions, use gradient descent to minimize level-set formulation to model the boundary evolution.

From this method, there is a framework for effectively segmenting dynamically behaving regions (Doretto 2003).

Problem Connection: In this approach, the idea of dynamic textures is directly analogous to the idea of foam as a texture in the ocean. In the proposed problem areas, such as wave crests in the foam pattern, would be considered as blobs. For each blob, a signature would be applied relative to a model of the ideal signature. To implement this, it would require the analyst to identify ideal wave crest models to judge the blobs in each image. Once the crests are identified and signed, the energy minimization can be applied; whereby, the boundary evolution of each crest is tracked. By tracking the boundary transition between images, the breaking wave velocity could be calculated. It must be observed that this approach could be too computationally expensive to be applied to large amounts of image data.

The next approach is related to the first approach based on the minimization of a cost function. In this approach, the image is segmented into regions of motion using an adapted Mumford-Shah energy function. Essentially, motion vectors are used to segment the regions.

A major assumption is that the intensity of a moving point is constant; hence, this approach cannot be used for dynamically changing textures. A probabilistic formulation is used to predict whether a point of a spatio-temporal derivative of an image sequence is part of a specific region. From this probability, the vectors associated with these regions can be determined to be orthogonal or parallel; thus, guiding the contour.

An energy function is created which incorporates the summation of derivatives of the spatio- temporal gradient of the homogenous velocity for each region contained in an image. A factor containing the length of the contour is added to the function. Essentially, a region is added to the image and it matches the contour of the boundary of a region by minimizing the energy function.

Using this approach, the boundary of a moving object such as a car can be tracked using both a static and a moving camera (Cremers 2003).

Problem Connection: This approach focuses on the motion of segmented regions of an image such as a moving car. Since wave crests are moving, evolving regions of an image the tracking of segmented regions of an image could be of value. The vectors associated with the wave crest region could be tracked and the wave crest velocity directly extracted. Using these vectors, the wave crests could be continuously tracked resulting in a model of the velocity across various images. It must be observed that the pixel value of a moving point is held constant. This could prevent the robust tracking of wave crests due to the constant evolution of the wave crest intensity values.

By solving the piecewise-smooth Mumford-Shah energy function with a level set formulation, an image can be analyzed by detecting edges, employing active contours to locate boundaries, denoising images, and segmented to locate objects. The following approach proposes a level set function formulation for minimizing the Mumford-Shah energy function.

The approach is presented in the form of three case studies: one dimensional, two- dimensional/two phase, and two-dimensional/four phase model. The one dimensional case study involves the segmentation of an image based upon the signal representation of an image. For signal segmentation to be performed, only one level set function, also called a Lipschitz function is needed to represent a piecewise smooth Mumford-Shah energy function. By employing a gradient ascent of descending portion of the signal, the signal jump can be robustly discovered; thus, detecting an image.

For the two-dimensional case with a two-phase model, it is assumed that the set of contours used to detect edges can be represented as one level set function. When applied to the image, this representation applies a higher energy value to objects relative to the energy of the background. The energy function of the image can then be searched with a gradient descent algorithm, until the object boundaries are located.

For the two-dimensional case with a four-phase model, it is assumed that if a boundary cannot be represented with a single level set function, then it can be located using two level set functions. This idea is the operating principle behind the Four Color Theorem. In this theorem, regions can only be colored with one of four colors, represented by one of two level set functions and their positive or negative state. Also in this representation, adjacent regions are required to have different colors. By employing the Heaviside step-function and the relation between the four colors, the energy minimization in level set formulation can be represented (Chan 2001).

Problem Connection: In this application, a one dimensional case could be applied to the proposed problem for computational efficiency. The signal representation of an image could be represented. Using a gradient ascent/descent algorithm, the signal jumps of the image could be detected resulting in a tracking of multiple crests with in the same image. Essentially, the gradient ascent/descent must track the entire image to ensure that the all crests are found and robustly represented from image to image.

1) Read Image

The images selected to read are retrieved from a two frame per second frame dump of the video segment. A sequence of nine images is shown in Figure 3. These images are selected for their good quality and weather conditions.

Figure 3: Sample image data.

As shown in Figure 3, there are developing waves which can be recognized by two features: 1) the white foam front 2) the dark region due to ambient lighting. These features can be seen in the circled portion of the ninth image. A further discussion of breaking wave recognition is discussed in the image windowing step.

2) Subtract Images

To extract the dynamic breaking wave features, an image subtraction is applied by iteratively subtracting images from the supplied data. An example image subtraction is shown in Figure 4.

Subtract

Figure 4: Image subtraction.

The image subtraction results in a new image. In this new image, constant pixel intensities result in a difference of zero; whereas, dynamic data is represented by the difference between pixel values. The breaking wave fronts are constantly changing; therefore, fronts can be extracted by an image subtraction as shown by the red arrows in Figure 4.

3) Window and Filter Images

Due to the nature of the image data, the image is windowed to eliminate superfluous image data such as open ocean and beach area. An example of the selected windows is displayed in Figure

Figure 5: Example of image windows.

The regions are split for a reduction in computation and to accommodate three areas of interest representing various levels of difficulty relative to feature recognition. The first window is created to capture the initial breaking wave. The second window is created to aid image processing of the most complex region of the surf zone. In this region, spurious foam is more prevalent and waves tend to interact due to varying breaking wave velocities. The third region

5) Create Intensity Profiles

From the transect mapping, intensity values will be recorded every 25 pixels in the N direction for each region. This intensity profile provides a means to track the breaking wave front. An example intensity profile is shown in Figure 8.

(^00 20 40 60 80 100 120 140 160 180 )

20

40

60

80

100

120

Intensity Profile

Pixels

Intensity Value (0-255)

Figure 8: Example intensity profile.

The intensity profile represents the intensity values of a transaction of points for one frame. In this case, the profile shows the intensity values for the first N transaction. By tracking the local minima on the wave fronts, a velocity can be extracted.

6) Approximate Velocity

Since, the distance (in pixels) between the transects is known, a velocity can be approximated based upon the frequency of wave fronts (signal spikes) crossing transects. To perform this, the intensity profiles will be mapped relative to time. The difference in pixel distance relative to the number of frames required to travel that distance will result in an approximation of the velocity.

4 Results:

Having embodied the selected approach in a computing system, several interesting results were obtained pertaining to both intensity profiling and breaking wave velocity estimation. Intensity profiling is discussed first as it is the foundation of the velocity estimation.

Intensity Profiling

Intensity profiling involves the measurement of intensity values across a transect. For this project, the data representation for the intensity profile is augmented from the proposed profile in the Approaches Section. This augmentation is implemented due to the vast amount of data that is required to be processed for the image data. A transaction profile mapping is displayed in Figure

Figure 9: Profile mapping for intensity data.

The red, vertical arrows represent the mapping along which intensities are measured for each frame. These lines denote approximate positions of the profile mappings. Furthermore, the direction denoted by the arrow represents the motion of the waves and the origin of distance measurement. The termination end of the arrow represents pixel 183; whereas, the origin of the arrow represents the pixel 0. These values can be correlated to the dependent axes shown in Figure 10. Also, the resulting intensity profile evolution over the entire range of image data ( frames) is presented in Figure 10. Intensities are measured across each pixel row.

1 2 3 4 5 6 7 8 9 10

Velocity Estimation

The velocity estimation performed in this project is implemented as a manual process requiring human intervention. The intensity profile matrices, in Figure 10, were added and the indices of nonzero elements were recorded. The resulting data is displayed as a pixel versus frame plot in Figure 11.

Figure 11: Breaking wave interpretation.

To estimate the velocities, the breaking waves were identified by human inference. Waves 1, 5, and 6 are quite distinct; therefore, lines were generated from the minimum frame point to the max frame point. For waves 2, 3, and 4, the wave front is not as distinct. The frame data is observed and from the observation it was concluded that waves 2, 3, and 4 could be inferred from the data; therefore, lines were created. Table 1 contains the distances traveled and times of the breaking wave data.

Table 1: Breaking wave velocity data. Distance (pixels) Time (s) Velocity (pixels/s) Wave 1 6 3 2 Wave 2 -1 6 -0. Wave 3 15 8.5 1. Wave 4 26 8 3. Wave 5 45 9.5 4. Wave 6 36 6.5 5.

Towards Beach

As shown by the data, the velocity ranged from 5.5 to -0.2 pixels per second. The velocity decreased as the waves approached the beach. This decrease can be attributed to the dissipation of energy as the waves run-up on the beach. A graphical representation of this data is shown Figure 12.

Breaking Wave Velocity Data

0

1

2

3

4

5

6

0 1 2 3 4 5 6 7

Wave Label

Velocity (pixels/s)

Moving towards beach

Figure 12: Breaking wave velocity plot.

As mentioned before, the data decreases as the waves approach the beach. This occurs in a linear fashion as shown by the regression line plotted with the data.

Summary

After performing the image analysis, a manual approach to calculating velocity has been presented. From the approach, a decreasing trend in breaking wave velocity has been discovered as waves move toward the beach. This observation appears to hold based upon the conservation of energy as waves run up the beach. A discussion of the results is presented in the next section to critically evaluate the quality of the selected solution approach.

The image is windowed in three locations, as shown in Figure 14. This windowing is performed for two reasons: computational efficiency, wave behavior, and wave recognition.

Region 1

Region 2

Region 3

Figure 14: Image region windowing.

The argument for computational efficiency is posed for the reason that superfluous image data need not be processed; therefore, time can be saved. From Figure 14, the windowed regions can be seen. Three regions are chosen for intensity variation and wave dynamics. The intensity of the breaking waves appeared to decrease as the wave approached the beach. As this occurs, it becomes more difficult to extract a breaking wave from foam. In this implementation, filtering is used to cope with the sea foam, but it may be a more sound approach to create an adaptive thresholding operation whereby the maximum intensity of a region is recorded and applied to the region. Finally, wave dynamics refers to the way in which the wave breaks. In region 1, breaking waves are quite easy to observe as there is a great deal of foam which makes feature extraction quite easy. Conversely, region 2 and 3 do not contain the same amount of foam resulting in a tougher extraction. Also, region 2 contains a great deal of spurious foam due to the mixing of waves in this region.

Filtering and Thresholding

Filtering is performed for each region of the image data. For region 1 a series of filtering and thresholding operations were performed to extract the breaking wave feature. This process is shown in Figure 15.

Figure 15: Region 1 filtering operations.

To begin the process, an unsharp contrast enhancement filter is implemented to increase the contrast between the breaking wave and the dark image background. A median filter is applied to the contrast enhancement to eliminate extraneous foam. A threshold is then performed to extract the feature. Finally, a median filter is applied to further eliminate foam data.

This series of filtering is performed to produce binary information for the presence of a breaking wave. As mentioned before, a gradient based technique could be applied to intensity profile with subtracted data. This approach is not selected due to the difficulty associated with finding the local optima of a sharply changing intensity function. For future work a different series of filtering could be applied to generate a better feature extraction in region 1.