1. Introduction
Underwater imaging is a preferred survey tool for marine environments yet optical imaging is challenging [
1], particularly with respect to illumination. Within water, light attenuates with increasing depth; exponentially decreasing in intensity [
2]. This is driven by increased wavelength absorption and scattering [
2], resulting in low contrast images that often suffer from colour reduction and blurring effects. To lessen these effects, underwater surveys must utilise strong artificial lighting on camera platforms [
3]. However, this can cause inconsistent lighting patterns. Such inconsistencies may be both deliberate, such as lighting adjustments to limit the interest of fish shoals, which can obstruct seafloor imaging and impede investigation. They can also be unintentional, like non-uniform illumination, light distortion and shadow effects. These may be caused by variation in the height or angle of imaging platforms, induced by alternative deployment methods and prevailing weather conditions. The quality of underwater images is, therefore, highly variable with low correspondence between images. Features such as seafloor-dwelling organisms may be poorly visible or irregular in appearance and, thus, annotation tasks can be severely hindered [
1,
4].
Tone mapping, which manipulates image histograms (or brightness distributions), can be an effective method to enhance the appearance and/or visibility of image features and suppress non-desirable lighting effects. Tone mapping can be framed as a problem of mapping an input brightness distribution to a target output distribution, such as in
Figure 1. It uses a tone curve, or transform curve, which simply defines how to change image brightness values.
Tone maps such as this can be created using photo-editing tools, such as Photoshop or GIMP. In this example, a user can, effectively, make their own input to output (brightness) tone curve, see
Figure 2.
At the start, a user is presented with an input to output ‘identity’ mapping; simply a graph with a line at 45 (A). This linear tone curve means that an input brightness, of say , maps to an equivalent output brightness, i.e., . This is true for all brightness values in this case. A user can then select (B) and move (C) control-points up or down to alter the curve shape. Movement upwards causes brightness values to increase, or become brighter, whereas movement downwards cause values to reduce, becoming darker. Finally, a smooth interpolation is made between the adjusted control points to define the overall tone adjustment (D).
However, bespoke tonal adjustments such as these are time consuming. Since benthic (seafloor) surveys, for example, typically capture thousands of images there is interest in finding automatic adjustments of images. Perhaps the best known automatic tone adjustment is histogram equalization (HE). The method begins with the observation that an image that has a flat, or uniform, brightness histogram conveys maximum information (entropy) [
5]. In this case, all brightness values are in use, and in an equal amount; they are equalised. This visually translates to image details appearing more conspicuous. In HE, a tone curve is found that maps an input image to an output with a flat histogram [
6,
7]. However, HE is too simplistic in formulation and often produces images with contrasts that are both unnaturally low and high (in different image regions). Moreover, underwater images are intrinsically dark, particularly those taken in deeper waters. The requirement for artificial lighting to capture adequate imagery leaves images dominated by a strong spot-light or halo effect. Thus, their histograms are rarely uniform and any attempts to enforce this behaviour can lead to abnormal brightness changes. In Contrast Limited Histogram Equalisation (CLHE) [
8], the aim again is to flatten the histogram of the output image. However, the set of allowable tone curves are constrained so that they are neither too steep nor too shallow. CLHE has the advantage that it is a simple method and often produces improved, though not preferred, tone-renderings of images [
9]. Tone mapping is, of course, a large field. In the context of underwater imaging, a range of algorithms have been applied, including [
8,
10,
11,
12,
13,
14,
15,
16,
17,
18]. See [
19,
20] for a review of underwater image processing. Since the data collected from underwater imagery, and its usage, is highly diverse, it is crucial to consider the purpose the imagery serves (and its audience) when designing, or evaluating, an enhancement. However, to our knowledge, existing automated algorithms are rarely designed from the perspective of an end-user, nor do they reliably produce outputs which are always preferred by the users.
We might say that automated algorithms are constructive, in the sense that they provide an algorithm that makes an output image without user involvement. In this paper, we consider a descriptive approach. We propose properties that an automated algorithm should have. We then adopt these properties—in a simplified user tone-manipulation scenario—without specifying how an automated algorithm should work. Rather, we manipulate the brightness values, in the same way that the data suggests an automated algorithm should alter them.
Our work builds on the prior art of Weibull Tone Mapping (WTM) [
9,
21]. A Weibull distribution (WD) is a smooth & unimodal function that is parameterised by two numbers that control the peak location and spread of the distribution [
22,
23]. In Weibull Tone Mapping, the brightness distributions of an input and a user-adjusted output image are first represented as WDs. Then, the tone map, that alters the input image to the output, is defined as the function that maps the underlying input WD to the target output WD. Significantly, for identifying benthic habitats from imagery, images tone-mapped using WTM were found to be preferred by domain experts over their own bespoke adjustments.
The prior work on WTM [
9,
21] did not allow users themselves to enhance images according to the WTM theory. A key contribution of this paper is that it allows such direct manipulation. First, given an input image, we can calculate its WD. Next, the user defines a target output WD by adjusting two sliders. These sliders alter the peak position and spread of the target WD. The user adjusts the sliders, whilst simultaneously viewing the live tonal alterations in the output image. They continue until a desirable enhancement is reached. In the case where users find the WTM image unsuitable, they can carry out an advanced manipulation by manipulating control-points on a tone curve.
For our study, domain-experts were tasked with enhancing images of benthic habitats such that details important for annotation purposes were more conspicuous. Broadly, we found that the two-slider WTM adjustment simplified the image enhancement task, thereby making users more productive in image annotation. Mostly, observers did not use the advanced manipulation. Yet even when they did, their output images were, almost always, found to have WD distributions. This may indicate that over-time, as users become familiar with our tool, the need to use the advanced manipulation would further diminish.
In this paper we make the following contributions:
We develop the WTM algorithm into an interactive tone mapping tool to enhance underwater imagery, allowing end-users to design targeted tonal enhancements more quickly and simply.
We show that arbitrary histogram adjustments using two intuitive parameters (approximating brightness and contrast) are generally sufficient to support image analysis by domain experts.
We further demonstrate, on a large dataset, that the brightness histograms of underwater images can be described and adjusted very effectively using the Weibull Distribution.
We demonstrate that characteristics of desirable underwater image enhancements are strongly linked to image purpose; for example, identifying and annotating specific image features.
This paper is organised as follows: in
Section 2. we provide a background on tone mapping, in
Section 3. we recap our WTM algorithm. In
Section 4 we present a series of experiments to evaluate the performance of WTM. Lastly, in
Section 5. we conclude the findings of this study.
2. Background
The histogram of a brightness image , denoted , records the frequency of pixels of a given value b. It is often useful to normalise h, creating a probability density function (PDF), by dividing the raw frequencies of the histogram by its sum. For the remainder of this paper, we assume all histograms sum to 1 and all image brightness values lie in the interval .
Let
denote the RGB pixel values at location
in a colour image. As defined in HSV [
7], we define brightness as the maximum of R,G and B, denoted as follows:
. Using the maximum, rather than the mean, for example, allows for simpler calculation of output colour images. Given an input colour image
, the corresponding maximum brightness input image is denoted as
. Given an output brightness image
,(created by tone mapping, for example) the output colour image,
is computed as:
Our brightness is the per-pixel maximum of R, G and B,
l; that is, the maximum definition ensures that
is in the display range, see [
24]. In contradistinction, if we had defined brightness to be the mean of R, G and B,
, then the output colour image (Equation
1) could have values larger than 1 and, thus, not be displayed directly. By using the maximum of R, G and B as our brightness, we avoid the question of what to do if the manipulated brightness values fall outside of the display range.
Often, in image processing pipelines (and workflows), the input brightness image is modified to make an improved output image. For example, if the details in an image are too dark to see we might brighten the image and, conversely, if the pixels are too bright we might darken the image. Both these adjustments, as well as many others, can, thus, be thought of as mapping an input image with a brightness histogram
to an output image with a desired target brightness distribution
. The venerable Histogram Equalisation (HE) [
6,
7] operates in this way. Here, the target distribution,
, is a uniform or equalised histogram.
Importantly, there exists an increasing function of brightness
—often called a tone map—such that the histogram of
is uniform.
The function,
, is the cumulative distribution function (CDF), or integral, of the input brightness distribution; a histogram that is normalised to sum to one.
We show a worked example of HE in
Figure 3 and
Figure 4.
Figure 3A,B depict an input image and its histogram-equalised counterpart, respectively. In
Figure 4 we show the corresponding brightness distribution of this input image (A), labelled as ’HE’, and the HE tone curve (B)—the cumulative distribution of the input (or HE) histogram (A)—that delivers the output image. Note that a tone curve has low slopes for small and large brightness values. In the equalised image in
Figure 3B, this translates to a loss of details in darker regions (i.e., bottom right) and bright regions (i.e., sponges on the cobble). In the mid-brightness range of the tone curve, the steepness of the slope causes the equalised output to appear overly enhanced, with too much contrast.
In
Figure 3 we show a second enhanced image (C), possessing more detail than the input image (A), yet without the artefacts present in (B). This has been enhanced using the Contrast Limited Histogram Equalisation (CLHE) algorithm [
8,
10]; the tone curve of which is shown in
Figure 4B. We can see from this that the tone curve never has a slope less than 0.5 or greater than 2, shown by the shaded areas. This slope-constrained tone curve is the cumulative distribution of the CLHE-derived histogram shown in
Figure 4A.
CLHE strives to find a histogram
, such that the minimum slope (
m) and maximum slope (
M) of its cumulative histogram are bounded. Here,
represents our input (HE) histogram and, in this case,
&
, as depicted by dotted lines in
Figure 4A. To understand how this is achieved, let us move to the discrete domain. We map the continuous histogram
to a discrete N-vector
, which has
N bins and sums to 1. Here, the input domain
is uniformly sampled into
N regions. As such, the
jth bin is the interval
and
is the percentage of brightness values in the image that falls in this interval; under the assumption that histograms are normalised to sum to one.
In the continuous domain, the tone curve for HE is the integral of
, see Equation (
3). In the discrete domain, we have an
N-element tone curve,
, which is analogously defined. Here the integral is replaced by a summation:
As the size of each histogram bin is
, the slope of the tone curve at the
jth brightness level
is defined as:
Clearly, we can also write the slope as:
If , then the slope of the corresponding tone curve (cumulative histogram) is always equal to one; that is, the tone curve is a line at 45 degrees. As we would expect, if we try and equalise an image that already has a flat histogram then the tone curve is a null operation i.e., each input brightness maps to the same output brightness.
In the case of CLHE, we would like to flatten an input histogram, yet limit the extent of this imposed uniformity, using a tone curve with a bounded slope that is neither too large nor too small. The CLHE algorithm achieves this by finding a proxy histogram that is similar to the original but in which the slope conditions are adhered to. Mathematically, we would like the distance, , to be small and the slope constraint to be met.
However, what, exactly, is meant by ‘small’ is not well defined. As discussed in [
25], CLHE appears to empirically minimise a least-squares error; indeed it generally returns the same proxy as an algorithm that minimises the least-squares error. So, to a first approximation, we can consider ‘small’ to mean a minimum least-squares error. The integral of this
proxy brightness histogram (
Figure 4A) creates the CLHE tone map shown in
Figure 4B.
CLHE is often deployed in its adaptive form, which is called Contrast Limited Adaptive Histogram Equalization (CLAHE). In CLAHE, an image is tiled into several non-overlapping regions, say a grid. We calculate the histogram of each tile and use CLHE to derive a slope-limited tone curve. This tone curve is associated with the central pixel in each tile. Individual pixels are then mapped to output values by bilinearly interpolating the output values found for the four tone curves (from the four neighbouring centres).
Finally, the target distribution for the histogram of the output image need not be uniform in any sense. Following initial recommendations by [
26], the majority of CLAHE applications to underwater images seek a target histogram modelled by a Rayleigh distribution (RD) [
27].
3. Weibull Tone Mapping (WTM)
In CLHE, the proxy brightness distribution is related to the actual brightness distribution, where the proxy cumulative histogram (the CLHE tone curve) has a bounded slope. This implies that the proxy histogram itself adheres to the slope constraints.
Here, we wish to further constrain the shape of the proxy histogram beyond just slope-limitations. Specifically, we represent brightness histograms by proxies defined by the Weibull Distribution. To ease the exposition, we present the approach in the continuous domain. However, in practice, all computations are carried out in the discrete domain.
In its two-parameter form, a Weibull distribution is defined as:
where
b is the brightness value,
is the scale parameter and
k is the shape parameter.
Typically, RGB images are eight-bit encoded, leaving
possible pixel values in the interval
. In this work, for mathematical simplicity, we assumed pixel values exist.
. By default the Weibull distribution has a brightness scale (x-axis) that stretches to infinity. Yet, for the Weibull distributions of interest in this paper we found there are not significant Weibull probabilities for values larger than 2.55 (e.g., see [
28]). We, therefore, truncated the Weibull distribution, such that
, and divided by 2.55 to scale the distribution to the
interval.
The Weibull parameters,
and
k, control the shape of the WD, broadly accounting for the peak position and the slope or spread of the distribution, respectively, as can be seen in
Figure 5. These parameters encapsulate underwater image brightness distributions well [
9,
21]. It has also been demonstrated that the WD can explain the contrast statistics of natural images [
29,
30] and is correlated with our own perception of natural images [
31].
3.1. Creating a Proxy Brightness Distribution Using the Weibull Distribution
Here we wish to use Weibull distributions to drive tone-mapping. The steps in our Weibull Tone Mapping approach are summarised in
Figure 6. First, analogously to CLHE, we wish to approximate the histogram
of a brightness image
L, by a proxy histogram
. However, here the proxy histogram is the ’closest’ Weibull distribution. The Weibull proxy,
, is found by finding the Weibull parameters,
and
k, that minimise the Kullback–Leibler (KL) divergence—as a measure of closeness:
The KL-divergence is a probabilistic measure of the difference between the distributions
and
. If the two distributions are highly similar, then the KL-divergence is low, with 0 reached only when
=
. Thus, we seek the
and
k that returns the lowest KL-divergence. We approach the problem discretely, searching parameter pairs of
and
. These create a large diversity of histogram shapes that fit suitably within the brightness range. In
Figure 5A we see how increasing
results in a WD in which the peak location is right-skewed, simulating a histogram of a ’brighter image. Whereas in (B), we see how decreasing
k creates a flatter and wider histogram. If attributed to an image, this would infer higher contrast.
In [
9], we have access to an input image and a user-adjusted output image, enhanced using a user-crafted tone curve (
Figure 2). Thus, for input and output histograms,
and
, we find the Weibull proxies,
and
, by minimising KL-divergence. This results in proxy WDs that closely
match the input and output brightness distributions, as demonstrated in
Figure 7A, in solid and dashed lines, respectively.
3.2. Calculating the Weibull Tone Map
The tone curves that map the input and output Weibull proxy distributions to a uniform brightness histogram are
and
, respectively, as seen in Equation (
3). Where the corresponding CDF (or cumulative histogram), of a WD
, is the tone mapping function
(as with HE). It is denoted as:
The inverse of these tone curves, denoted as
and
, therefore, map the uniform distribution to the input and output proxies. In WTM, we map the original input brightness image
using the tone curve
, so that the input proxy brightness histogram matches the output proxy. We apply:
This results in a tone map that closely approximates that created by an analyst, as shown in
Figure 7B.
In
Figure 8, the corresponding images are shown, demonstrating that application of the WTM tone map to image (A), results in image (C), that is almost indistinguishable from the user-adjusted output image in (B). The tonal adjustments in this case produced a slightly darker, but better contrasted, output image. Visibility of textural details improved, aiding assessment of substrate complexity and, thus, annotation of the habitat type. In general, over a large set of user-adjusted images, approximating tone curves in this way generated outputs that were visually similar. Moreover, to the extent that there are visual differences, these were ‘liked’ by users. Indeed, Weibull Tone Mapping delivered outputs that were slightly preferred by observers, compared to the images generated by the users themselves [
9].
3.3. WTM as a Parameterised Enhancement Tool
In our WTM method, we approximate input and output brightness histograms, ( and ), by proxies that follow the Weibull distribution ( and ). Then, the tone mapping, , that is applied to the input brightness image is the curve that maps the input to output proxy. The output brightness image is mapped from the input, according to .
In the context of the parameterised tool we develop here, we continue to use the Weibull proxy for the input brightness distribution. However, the behaviour of the output distribution is determined by the user, by adjusting the two parameters that drive the Weibull distribution. In effect, they define the output proxy distribution. An analyst can simultaneously look at the tone-mapped output image while continuing to adjust the Weibull parameters until a preferred result is found.
Under the hood, the users adjust the Weibull parameters,
and
k, as seen in Equation (
7). A high
is associated with a histogram peak towards the brightest region in the dynamic range of the image, whereas a high
k decreases the slope, narrowing the peak and its spread across the same dynamic range. Thus, increasing
in
results in a WTM output image,
, that is brighter than its input,
. Here, we used the
notation to indicate a user-defined proxy). If we select a lower
k than the input WD for the target WD, this causes
to appear to have more contrast than
, with increased visibility of edge pixels and textures. In
Figure 8D–F we show a range of possible output images following the parameterised WTM.
4. Experiments
In [
9,
21], we established that WTM delivered preferred tonal enhancements for analysts, in the sense that the enhanced images helped them to identify marine benthic habitats from imagery. Here, we explore the usability and performance of WTM implemented as a parameterised tone mapping tool. We investigate whether users find this approach sufficient, compared to classic and manual control-point tone-mapping approaches, that are more complex. The experimental design and the results are summarised in the following sections.
4.1. Domain-Expert Tone-Mapping
We asked 10 image analysts at our collaborator Gardline Ltd. (Great Yarmouth, UK) to tonally adjust underwater images, using our bespoke GUI (
Figure 9), so that details required to annotate the content of the image (i.e., the habitat) were made as conspicuous as possible. Participants were instructed to find a suitable WTM enhancement by manipulating two sliders that modified the parameters,
&
k, of the target output WD. For user clarity,
&
k were respectively named as
Brightness and
Contrast in the GUI. These terms have two advantages. First, they are intuitively understood by the users; appearing in almost all image adjustment tools. Second, the effect of WTM on an image often resembles a sort of brightness and contrast change. This is entirely to be expected as the WD parameters,
and
k, broadly map to the terms brightness (peak of a distribution) and contrast (distribution width or spread). Additionally, as explained in WTM (
Section 3), the WD of an input image is mapped to the WD of a target and these distributions are described in terms of their peak/brightness and width/contrast. In effect, the tone map that modifies one WD to another is effectively making a brightness and contrast adjustment (by definition).
When a suitable WTM (contrast and brightness) adjustment could not be found, an analyst could construct custom tone mapping, by pressing
Advanced. This action would plot the current WTM tone map that they could then modify using 6 control points fixed along the x-axis at
. Only movements that maintained a monotonically increasing tone map were possible. Movements to each control point created a new tone map using a Piecewise Cubic Hermite Interpolating Polynomial [
32], or PCHIP interpolation, through each point. All tone maps in this study were vectors of 256 values.
Each analyst received GUI training on how to make WTM and custom tone mapping adjustments, with separate test data, before conducting the experiment. Following this training, they were each asked to adjust (enhance) a unique dataset of 42 RGB JPEG images (3236 × 4320), randomly selected from a larger underwater image dataset provided by Gardline Ltd. The random selection contained images of 6 broad habitat classes (7 images per habitat), representing the breadth of biological and physical features expected in the Gardline dataset. These classes are summarised in
Table 1 and image examples of each are shown in
Figure 10. As we had 10 analysts, their adjustments resulted in 42 × 10 = 420 unique image enhancements. Augmenting this set, a further
common sample set of 18 images (3 per habitat class) was shared with each analyst. Each analyst viewed the common sample set twice, creating a further (18 × 2) × 10 = 360 enhancements. This allowed us to investigate the intra- and inter-person variability of the tonal adjustments.
This study was conducted under ISO standard 3664:2009 conditions [
33]; with participants sitting approximately 70 cm from the display in a darkened room. On average, analysts took ∼30 min to complete the experiment.
4.2. WTM Suitability for Underwater Imagery
Domain experts in this study overwhelmingly used the 2-slider WTM to adjust the underwater imagery, with 81% of the total image dataset satisfactorily enhanced without recourse to the control-point tone curve adjustment. Moreover, on average, individual observers selected WTM for 81% (±19) of their images. In fact, 60% of observers chose WTM almost (≥90%) exclusively in their images. This would suggest that tonal adjustments offered by WTM are highly suitable for enhancing underwater imagery, in accordance with [
9,
21].
Observers in this study designed their bespoke enhancements to improve image quality to aid image annotation. These enhancements were subjective and tailored and, thus, might not adhere to aesthetic improvements in the conventional sense, such as those that score highly with objective reference metrics. Indeed, studies have shown that objective assessments of image quality do not always correspond well with subjective perception [
34,
35]. That being said, we found the enhancements in this study were also beneficial objectively. In
Table 2 we present the following three popular no-reference quality metrics for underwater image enhancement: (1) Underwater Image Quality Metric (UIQM) [
36], (2) Underwater Color Image Quality Evaluation (UCIQE) index [
37] and (3) a colourfulness, contrast and fog density (CCF) metric [
38]. The UIQM evaluates image colourfulness, sharpness and contrast, whereas UCIQE measures the degradation of colour in the CIELAB colour space. CCF is inspired by underwater imaging absorption and scattering characteristics to predict colour loss, blurring and fog/haze. For each, better image quality is associated with a higher value. Image quality was, thus, improved in enhanced output images, though not significantly in terms of UCIQE (colourfulness). However, this is unsurprising, given that the higher values of this metric are associated with a more colourful image, yet the tonal adjustments in this study preserved chromaticity. Assessing the output metrics in more detail, we see that the limited cases of custom control-point adjustments improved image quality more, on average, than the WTM-enhancements. However, in the following experiment we show that this was independent of the tone mapping method and linked to the enhancements themselves.
Intra-observer variability in this study was low for image pairs in the common set, see
Table 3. In row
Agreement, we detail the proportion of times analysts used the same tool (WTM or control-point) for each of the 18 images in the control set, which they viewed twice. This showed that they typically selected the same enhancement tool, with 80% of analysts choosing the same tool in >90% of their common images. Mean intra-observer agreement was, therefore, also high, at 93% (±8).
In the remaining rows (
Table 3), we consider the average
relative extent to which the observers’ tool parameters varied between image pairs when they selected the same tool. Parameters here refer to
&
k for WTM-enhanced images or each of the control-points in the interactively tone-mapped images. We compared variance between observers and parameters using a coefficient of variation (
), or normalized standard deviation.
is a standardized measure of dispersion around the mean, calculated as
, where
is the standard deviation and
the mean. A
of zero indicates zero dispersion from the mean and, thus, equal values.
For each observer, we determined the
for each parameter (in each image pair) and summarised by the mean across image pairs (
). In WTM-enhanced pairs, we denoted this as
and
in
Table 3. For simplicity and brevity, we do not report the
for each control-point (or tone-map parameter). Instead, we first derived the average control-point
in each image pair (creating one summary measure) and, then, as before, derived the mean of this across image pairs, denoted as
in
Table 3. Lastly, if an enhancement tool was not used by an observer, we denoted the absent
values by ‘-’ in
Table 3.
When using WTM, analysts typically introduced more variation between image pairs, in terms of k, a proxy for contrast, than , a proxy for brightness. Comparatively, there was more variation in control-point adjustments between images, with the exception of observer 10 whose control-points varied by = 0.06, on average. Increased is unsurprising with the control-point tool, as the potential for difference increases with more parameters (or control-points); here requiring 6 compared to 2 in WTM. These results demonstrated that WTM parameters were more similar and, thus, analyst adjustments were more consistent.
Variability between observers (inter-personal) is particularly likely in studies such as this, as observers manipulate images according to their own aesthetic preferences. In terms of tool preference, we found, on average, that 81% (± 4) selected the same enhancement type across images; specifically, the favoured tool in the dataset, WTM, see
Table 4. There was a comparable proportion to the full dataset.
Using , we assessed similarity of selected parameters across images for each tool. Note that here refers to the average across all values i.e., across all observer image pairs. As with intra-personal variance, we found that observer adjustments using WTM were more similar across images than those enhanced with the control-point tool. For images enhanced with WTM, observers were again more varied in their selection of k, than . For the remaining images, control-point adjustments were, comparatively, more variable on average. Assessing the in all of these cases provides only relative comparison. It is not possible to say what is a good value. However, a value closer to zero suggests higher similarity of observer adjustments when using WTM. This general behaviour of end-user WTM preferences is promising for future development of an automatic WTM.
4.3. Simplification of Control-Point Tonal Manipulations
In previous work [
9], it was found that, often, an analyst-defined control-point tone curve could be well approximated by WTM. That is, the control-point tone curve could be interpreted as the tone adjustment that maps a Weibull approximation of the input brightness distribution to the Weibull approximation of the control-point-adjusted brightness distribution. Thus, we wondered if the same result would be found here in the case of control-point adjusted images. In this paper, when an analyst could not obtain a suitable output using the WTM slider adjustment, they resorted to a custom control-point manipulation. Here, we ask whether—like the prior experiments—these custom adjustments might also be interpreted as a WTM. If this was found to be the case this would imply that the WTM sufficed in general, but that finding the best WTM could not always be easily found using the two slider adjustment.
In
Table 5, we summarise the colour difference between WTM approximations and their custom-enhanced counterparts. We adopted the CIELAB Delta E (or
) as a measure of colour difference. First, we converted a custom-adjusted RGB image to its corresponding CIELAB (CIE 1976
) image, where, at each pixel, we had a
L,
a and
b triplet. Describing CIELAB is beyond the scope of this paper, but suffice to say that
L represents brightness, whilst
a and
b encode the chromatic aspects of an image, see [
39]. Second, we calculated the CIELAB image for the WTM approximation. Denoting dependence on the custom- and WTM-adjusted images using the subscripts
and
, respectively, the
difference for one pair of corresponding pixels is calculated as:
Significantly, CIELAB was designed to be a perceptually uniform space that correlates with perceived colour difference [
39]. In that regard, a
of approximately 1 coincides with a
just noticeable difference. In terms of images, if the average
calculated between images (across all pixel pairs) is up to 5, then images appear the same, or similar [
40].
We found that the average colour difference between our WTM- and custom-adjusted image pairs was small, with an average
of 2.98 (
). Furthermore, a significant proportion (91%) had a mean
< 5, demonstrating that, for the most part, custom tone maps could be convincingly approximated using WTM. In
Figure 11 we show example images that were tone-mapped by an expert, and their WTM approximations. The colour differences between each pair was <5, and, in each case, the differences were near indistinguishable to the observer. These results indicated that when a control-point adjustment was made (∼20% of adjustments) the adjusted images could be well-approximated by the WTM model (i.e., the closest WTM adjustment resulted in a similar image visually). Additionally, these successful WTM approximations (mean
< 5) did not jeopardize image quality in an objective sense, with metrics equivalent to their custom counterpart, see
Table 6.
Custom tone maps that could not be well matched by WTM were varied in behaviour, see
Figure 12. In general, they appeared to be complex operations, with, sometimes, multiple transitions between very low and steeper gradients. This is a morphology that is not consistent with WTM tone maps, which are smoother and simpler. Aesthetically speaking these tone curves can, counter-intuitively, lead to too little and too much contrast in parts of an image and cause it to appear unnatural. However these
outlier tone adjustments
were preferred by the analysts as they helped them to see details important to identify the image content; in this case, the habitat. Thus, they did not need to be aesthetically pleasing. That said, there were few outliers and only 9% of control-point tone maps were not well-approximated by the Weibull approximation method. Combining the successful WTM approximations (mean
< 5) with the observer-selected WTM enhancements, we found that, for >98% of image adjustments, there was a suitable WTM to enhance the image in a way that was useful for the analyst. This offers the promise of supporting analysts to make quicker adjustments of their images, with control-point tone adjustments rarely required.
4.4. Behaviour of WTM Enhancements
The experiments demonstrated that the majority of analysts preferred Weibull Tone Mapping to support their benthic image analyses. In this section, we discuss these enhancements in more detail, contextualising them by considering the influence of image content. Note that, when describing these tonal adjustments, we also include the WTM approximations that had a mean < 5.
In general, analysts decreased between input and output Weibull Distributions in the experiment (61% of images). Decreasing (a proxy for brightness) shifts the peak of a brightness histogram towards a lower pixel intensity. This adjustment, thus, causes a brightness reduction in images following WTM. This may have helped to lessen the intensity of the light cone and halo-effect, which are common problems in artificially lit underwater imagery.
Of the images that were darkened, 45% were classified as soft substrate (SS) habitats (SS1 & SS2), as described in
Table 1. In
Figure 13A we show the mean standardized (Z-Score) difference in WTM parameters, between input and output WDs, for each habitat class in the image dataset. Note that the differences presented for average
refer to cases where only
was decreased. The full results are presented in
Appendix A. From this, we note that not only did SS habitats 1 & 2 represent a large proportion of darkened images, but the extent to which they were darkened was larger than average. In
Figure 13B we detail the average standardised (Z-Score)
value across all input WDs for each habitat class. From this, we see that SS images in this dataset were significantly brighter, on average, demonstrated by a high
value, likely due to the light and homogeneous appearance of sand and mud. Decreasing
, in output images, may have helped reduce the bright illumination (reflective) effects on the seafloor, whilst highlighting the appearance of burrows (a distinguishing habitat feature).
Of the remaining images (55%), in which
was decreased, the other habitats (HS1, HS2, Cor1 & Cor2) were represented roughly equivalently; on average, ∼14% each. Yet the extent to which
was reduced in each was variable, see
Figure 13A. Most notably, the brightness of images classified as hard substrate (HS) (HS1 & HS2,
Table 1), on average, reduced significantly less. Images of these more structurally complex habitats were significantly darker than SS images (
Figure 13B), containing increased shadow presence around topographic features, such as boulders and cobbles. Small reductions in
would help to diminish the unwanted brightness effects mentioned prior, yet minimise visibility reduction of distinguishing features within shadowed/darker image regions. Reef framework (Cor1) and soft coral (Cor2) habitats (
Table 1) can also feature such shadowing, due to their pronounced height above the seafloor, in association with topographic highs. Yet these images were, on average, darkened to a greater extent than HS habitats. Corals, such as stony coral
Desmophyllum pertusum in habitat Cor1 and soft coral
Paragorgia arborea in habitat Cor2, typically appeared very bright (
Figure 13B) and sometimes dominated the field-of-view. A logical enhancement may, therefore, be to reduce brightness. This is particularly true when increasing contrast, as the intensity of pixels in the regions of interest are elevated and potentially saturated.
Intensifying contrast is an important tonal adjustment in underwater images [
11,
12,
41], to lessen undesirable image effects induced by light absorption in the water medium and scattering due to particulates (i.e.,
marine snow) [
19]. It is no surprise, therefore, that contrast was enhanced in 74% of images. Analysts achieved this with WTM by decreasing
k (a proxy for contrast), which flattened the peak of the brightness histogram. In 43% of images in which
k was decreased SS habitats (SS1 & SS2) were contained. This reduction in
k was also significantly greater for these habitats on average, as shown in
Figure 13A. Images of SS habitats were the most poorly contrasted in this work, indicated by the high
k values in
Figure 13B. Images typically lacked edge details and contained more cryptic fauna, such as those that burrow into the sediment. Increasing contrast would, therefore, allow analysts to improve seafloor texture visualisation; in this case, obtaining absence of gravels and pebbles in order to classify an SS habitat. Distinguishing between habitats SS1 & SS2It would also allow easier searching for sponge presence; a factor equally applicable to discriminating between HS habitats (HS1 & HS2), which represented 37% of
k decreased images. However, as evident from
Figure 13A, contrast was increased significantly less than average in HS images. HS images, as well as the soft coral and reef images (Cor1 & Cor2), typically appeared better contrasted (
Figure 13B) and highly textured. The degree to which
k was reduced in each of these was, therefore, likely to be less. Few soft coral and reef images received a contrast enhancement by analysts and those that did were adjusted significantly less than average. Enhancing contrast in these images, thus, appears less important to analysts. In fact, of the 26% of images in which a contrast reduction was enforced, by increasing
k, 66% were classified as soft coral or reef.
A final remark on the behaviour of the WTM adjustments was that 17% compressed the dynamic range. Shrinking the dynamic range reduces contrast, but can, however, also be used to lessen the intensity of stark bright and dark regions. It is no surprise, therefore, that this dynamic compression mostly occurred in images containing soft corals (51%) and Reef (38%). These images are typically dominated by bright corals in the image foreground, surrounded by a very dark background. Reducing these intensities would allow for better visualisation of cryptic features.
As expected, these results demonstrated that the types of tonal adjustments made by end-users are logical. They are clearly driven by the underlying brightness distributions of underwater images, which, in turn, are a product of artificial lighting interactions with the seafloor. For example, a positive trend exists between the brightness of images and the extent to which they are darkened, as well as a negative trend between general seabed complexity and the degree of contrast enhancement.
5. Conclusions
Building on our prior work, we showed here that the Weibull distribution is highly suitable for both modelling, and adjusting, the brightness histograms of underwater images. Its properties are driven by two reasonably intuitive parameters which roughly conform to the brightness (peak) and contrast (spread) of a distribution. These preserve the natural behaviour of pixel intensities in underwater imagery well, but can also provide enhancements to support annotation through their modification using our Weibull Tone Mapping (WTM) algorithm.
We demonstrated, here, that the characteristics of user tonal enhancements are tightly linked to the content of underwater imagery and their associated brightness distributions, and the purpose the imagery serves (in this case habitat annotation). This explains the increased preference amongst analysts for bespoke tone-mapping adjustments over more general automatic tonal enhancements identified in prior work. Although time-consuming, control-point tonal manipulations offer end-users more complex and targeted tonal enhancements. That being said, this work showed that, given the choice, annotators rarely opted for control-point tonal manipulations. Instead, they preferred to utilise WTM, specifying desirable Weibull brightness distributions by simply manipulating its two parameter-sliders. Furthermore, in the few cases where a control-point tone map was sought, the majority behaved like WTM.
Since most analysts enhance imagery according to the Weibull distribution, WTM is a useful mechanism to grant analysts the ability to modify an image, such that it maintains Weibull properties. It also strikes a good trade-off between the flexibility of bespoke control-point manipulation and the simplicity and speed of an automated tone-mapper. Thus, it can easily be used as a live modification tool alongside annotation. WTM also lends itself well to future automation, by highlighting properties that an automated enhancement should have to support underwater image analysis. We note that. although the design and current function of WTM is domain-specific (underwater imaging), its usage could extend outside of this scope. For example, future work could investigate its performance in medical imaging or images collected for terrestrial- or aerial-based ecological surveys.