|
Algorithm A1 Preprocessing procedure for hydrofoil-region suppression |
Input: Averaged grayscale image I
Output: Residual image D
-
1.
Store the original image:
-
2.
Determine the maximum image intensity:
-
3.
Extract high-intensity pixels:
otherwise
-
4.
Detect image edges using the Sobel operator:
-
5.
Suppress the hydrofoil region and its edges:
-
6.
Binarize the resulting image:
-
7.
Retain the two largest connected components:
-
8.
Identify the removed small components:
-
9.
Set pixels corresponding to R to zero in .
-
10.
Apply median filtering to using a window.
-
11.
Apply median filtering to using a window.
-
12.
Compute the residual image:
-
13.
Return D.
|