The image command also provides the hough function, which makes it possible to detect and measure lines in a photographic document.
The gradient command makes it possible to highlight steep areas in a DEM. Its syntax is simple:
gradient method type
where method is a number indicating the way in which the gradient is calculated.
The second argument, type, specifies which part of the gradient is displayed on the screen.
Two applications of this command are illustrated below. In the first, the y component of the gradient of Mount Saint Helens is displayed. This has the effect of strongly emphasizing topography by hill shading. In the second, the norm of the gradient is calculated. The brightest pixels indicate the steepest areas.
Figure 1 : The y component of the gradient of the Mount Saint Helens DEM.
Figure 2 : The norm of the gradient of the Mount Saint Helens DEM.
When type is equal to 3 or 4, the gradient is represented by small segments whose length is proportional to the gradient magnitude. Red segments descend to the left, in other words the gradient vectors are oriented to the right. Conversely, blue segments indicate a slope descending to the right of the image. To represent the vector field of the gradient, the gradient instruction needs three additional arguments:
gradient method type
dx dy f
where dx and dy control the horizontal and vertical spacing of the segments, and f is a factor that determines their length.
Figure 3 : Representation of the gradient vector field on the Mount Saint Helens DEM.
GEOD includes an experimental function for detecting lines in an image. In practice, these lines may correspond to lineaments, fractures such as faults and joints, or bed boundaries. This function, called hough, is based on the Hough transform. Before giving the syntax of this instruction, it is useful to look at a first simple example.
Let us first consider the following photograph. It is characterized by a number of strong, visually obvious lineaments. The goal is to detect them automatically. To do so, GEOD proceeds in two stages.
Figure 4 : The photograph to be processed.
The first step is the construction of the Hough diagram. In this diagram, each point corresponds to a line of given position and direction. By numerical processing of the initial image, the algorithm marks all the points that may correspond to a line.
Figure 5 : The Hough diagram. Each cluster corresponds to a lineament.
The second step is then the identification of these clusters.
Figure 6 : The Hough diagram. The identified clusters are marked by red crosses.
By measuring the x and y coordinates of each of these clusters, it is possible to reconstruct the detected lines in the original image. This is what is shown below, where the recognized lines are drawn in red.
Figure 7 : The lines detected by GEOD are drawn in red.
It should be noted that the current algorithm does not take into account the true extent of the detected lines. The red lines drawn on the processed image may therefore extend far beyond their real endpoints. One way to overcome this problem is to divide the study area into several contiguous rectangular zones.
The hough instruction has a rather complex syntax because it includes many adjustable parameters.
image "..."
hough
nx ny n d amin amax w h bg bh f
where the italicized parameters must be replaced by numerical values.
The next figure shows a small collapse graben visible in the quarry face of Gandaillat. After processing with the hough instruction, which takes only a few seconds, one obtains the following result. The essential features are recognized. By clicking the Info button in the menu bar of the Mac version of GEOD, one may open the information panel, which gives the apparent dips of the two normal faults, namely 66° and 50°. Some other lines, however, are clearly artefacts. Some are produced by shadows, so a photograph taken on a cloudy day would have been preferable. Other artefacts are related to external elements such as tufts of grass in the upper right part of the image. Another useful feature of the information panel is that it indicates, for each recognized line, the number of pixels belonging to the corresponding cluster in the Hough diagram. This helps to assess how representative the corresponding line is in the processed image.
Figure 8 : Outcrop in the Gandaillat quarry, in the Limagne, showing two normal faults bounding a graben.
Figure 9 : The same image processed by the hough command. The main lines are recognized, namely the ground surface, the two normal faults, the post-tectonic erosion surface, and the marker beds.
Figure 10 : The Info panel displayed by GEOD. Here it provides the angular values, direction or dip depending on the nature of the image, of the lines identified by the Hough transform.
Aerial photographs taken in desert regions provide very rich structural geological information. Faults, joints, and bedding are generally very easy to see. This kind of document is therefore well suited, at least in principle, to processing with the hough command. An example is shown below. The main fracture directions are well recognized, although the automatic treatment does not yet achieve the same degree of precision and detail as a manual analysis. That said, the algorithm implemented in GEOD could still be greatly improved.
Figure 11 : Aerial photograph of a rocky massif in a desert environment. The red lines mark the lineaments recognized by the hough command.