1. Introduction
The use of sigmoid functions has been one of the most prominent strategies in the field of digital image processing, applied not only to highlight characteristics of scenes, objects, or regions of interest but also to segment different image modalities [
1,
2]. In this paper, we focus on sigmoid functions applied to the enhancement of regions of interest or to the enhancement of global contrast. In this way, the work of Reference [
3] proposes an image enhancement method using a modified sigmoid function, where a
kernel was used as a low-pass convolution filter in the
Y component of the
color system. In the same line, in addition to using the sigmoid function as a filter, Reference [
4] proposed the improvement of the support vector regression (SVR) method using a sigmoid kernel for high-resolution imaging without the need for training datasets. In this approach, the best models were chosen using the Bayesian decision theory.
For segmentation, the work of Reference [
5] presented a neural network with a nucleus based on a sigmoid function in order to segment cysts in liver tissues. Also, in Reference [
6], methodology called group method of data handling (GMHD) for malignant tumors detection in computed tomography is applied. However, considering the low contrast in some medical CT scans, the segmentation of organs, tumors, or other types of components becomes difficult tasks and wrong results can compromise diagnoses.
Such a problem motivates the study that can be found in Reference [
7], which proposed a contrast enhancement algorithm and compares its performance with counterpart methods for several modalities of images. On the other hand, the work in Reference [
8] presents a sigmoid model based on a cross-correlation algorithm to solve estimation errors in ultrasound images. More recently, saliency models and convolutional neural networks (CNNs) have been used for automatic tumor detection and breast segmentation and in ultrasound images [
9,
10].
Beyond the medical images field, another application of sigmoid functions is in the area of image fusion for the global enhancement of focus or contrast. Thus, Reference [
11] presented a method of merging several partially focused images into different regions for generating a globally focused image using a sigmoid function. Moreover, in Reference [
12], it is proposed a fusion algorithm of multifocal imaging based on a spectral comparison. In this algorithm, a sigmoid function was also applied in the fusion process. Also in the same line, the work by Reference [
13] presented an image fusion method based on the segmentation of regions with the use of a sigmoid function applied to the method named adaptive multi-strategy fusion rule (AMFR).
In addition to segmentation and fusion of images, another important application of sigmoid functions is for the improvement of stereoscopic images. In this way, Reference [
14] presented a visual comfort enhancement approach in 3-D stereoscopic images using nonlinear disparity mapping adaptable to fiducial features.
However, the efficiency of sigmoid functions in the mentioned applications depends mainly on the parameterization involved, which in turn leads the curve fitting over the regions of interest. On the other hand, the flexibility of sigmoid functions, based on traditional exponential and Gaussian functions, is restricted to the standard deviation and mean, imposing limitations due to reduced degrees of freedom. However, in the mid-1980s, the Tsallis entropy approach allowed more general functions to be proposed in the field of non-extensive statistical mechanics, also called
q-statistics, which proved to be a generalization of the traditional statistics [
15,
16,
17]. Since its initial proposal, this theory has been accepted in many areas of applications [
18]. In the medical imaging field, in particular, it has been successfully used for feature extraction [
19] but mainly for image segmentation [
20,
21,
22,
23]. Also, it allowed the emergence of the
q-exponential functions, of which the parameter
, called the non-extensive parameter, can be used for fine tuning the image information.
Thus, in this paper, we introduce the
q-exponential as a kernel of sigmoid expression, generating the
q-sigmoid functions. Then, we demonstrate the versatility of
q-sigmoids in contrast enhancement. The
q-sigmoids are applied in the core of the image processing algorithm, and the obtained results are compared with the original sigmoid functions, as well as two other well-known methods for image enhancement: slicing and histogram equalization. We have shown that their superior performance over traditional methods is achieved by adapting the profile of these new functions to the image intensity distributions involved. Moreover, we demonstrate the advantages of
q-sigmoid as a preprocessing step of input images in segmentation pipelines that include Otsu thresholding or CNN architectures [
24,
25]. The U-Net is a known deep network in this field, outperforming prior best methods [
10].
The paper is organized as follows.
Section 2 focuses on the
q-statistics approach and
q-exponential functions and summarizes some of their basic properties. The
q-sigmoids families are proposed in
Section 3, and important properties of such functions for image enhancement are proved in
Section 4. The computational results are presented in
Section 5. Next,
Section 6 discusses some important points that have emerged from this work, the relationship with related topics, and further improvements regarding automatic parametrization. Finally, in
Section 7, we conclude the paper, summarizing its main contributions and describing possible future work.
2. The -Exponential Distribution
In the last decades, Tsallis [
16] has proposed the following generalized non-extensive entropic form:
where
k is a positive constant,
is a probability distribution,
W is the total number of states of the system (grayscale intensities, in the case of digital imaging), and
is called the entropic index, or
q-index also. This expression recovers the Shannon entropy in the limit
. The Tsallis entropy, computed by Equation (
1), offers a new formalism in which the real parameter
q quantifies the level of nonextensivity of a physical systems [
16]. In particular, a general principle of maximum entropy (PME) has been considered to find out the distribution
to describe such systems. In this PME, the goal is to find the maximum of
subjected to
and
where
is a known application dependent value and
represents the possible states of the system (in image processing, the grayscale intensities). Equation (
2) is just a necessary condition for
to be probability, and Equation (
3) is a generalized expectation value of the
(if
, we get the usual mean value). The proposed PME can be solved using Lagrange multipliers, and the solution has the form [
15,
16]
where
and
are defined by Equations (
5) and (
6):
with
being the Lagrange multiplier associated with the constraint given by Equation (
3), and if
, then
whenever
(cutoff condition). Then, Equations (
1) and (
4) inspire the definition of the
q-exponential function [
26]:
It can be shown that the traditional exponential function (exp) is given by the limit:
3. Proposed -Sigmoid Functions
We built our proposal from the
q-exponential function which, in turn, is derived from the PME and Tsallis entropy formalism (
Section 2). In this context, we suppose a grayscale image
, where
is the image domain and a specific region in
D with an average luminance value
and standard deviation
. With the purpose of contrast enhancement, we consider the sigmoid transformation given by
Figure 1 shows a schematic example of the use of parameters
and
in Equation (
9). In this figure, we indicate the
value in the input image as well as the range, defined through the parameter
, around the luminance given by
. We can notice that the luminance nearby
was mapped close to 1, while outside the rage
, it became darker. In this way, we get an enhancement of the target region, of which the pixel intensities fall in the range
in the transformed field
.
On the other hand, we get interesting enhancement effects of values nearby
by using another sigmoid-like function defined as
Following the idea of non-extensive systems for natural as well as medical images [
22,
27,
28,
29], in this work, we propose an extended version of Equations (
9) and (
10), called here as
q-sigmoid functions, which are defined based on the
q-exponential function, given by Equation (
7) in the forms bellow.
q-Sigmoid for
:
where
Using the fact that, in the limit,
non-extensive expressions are reduced to extensive ones, and applying usual limit properties, it is straightforward to show that
and
which prove that
q-sigmoids are extensions of sigmoid functions.
The idea behind the use of
q-sigmoids rather than sigmoid functions is motivated by the fact that
q-sigmoids have the extra non-extensive parameter to control the curve’s profile. Therefore, one can better customize filters to each class of applications by tuning
q besides
,
, and
parameters. This idea has been used in several fields of applications, mainly in image processing and computer vision applied to medical areas [
22,
27,
29].
It is interesting to compare the profile of sigmoid and
q-sigmoid functions under the variation of parameters, such as
. For this task, we consider some values inside the interval
. Also, we set
,
, and
and built
Figure 2 that allows a comparison of the behavior of Equations (
9) and (
10) for
. Also,
Figure 3 shows the profiles of Equations (
11) and (
12) for
and
.
- (i)
Both sigmoid and q-sigmoid functions have global maximum at .
- (ii)
Equation (
12) seems to have an asymptotic behavior for large values of
I.
- (iii)
The slope is given by
where
could give information about the decay of the corresponding expressions nearby the intensity
.
- (iv)
The limit value in Equation (
15) is highly influenced by
if
.
- (v)
We shall analyze Equation (
15) to get the way in which the
q value influences the decay for
and analogously for expression
with respect to
.
- (vi)
Equation (
10) has a null derivative with respect to
I at
.
Property (i) is a direct consequence of Equations (
9)–(
12), and it is true for the whole family of considered sigmoid and
q-sigmoid functions. Property (ii) can be verified by observing that
The other points will be studied in the next section through the derivative of sigmoid and q-sigmoid functions.
4. Analysis of the Derivatives
For simplicity, we will consider the expressions only for . The case is analogous with a change of signal only due to the symmetries of the target expressions with respect to .
Derivative of sigmoid in Equation (
9) for
:
Derivative of sigmoid in Equation (
10) for
:
Derivative of
q-sigmoid (Equation (
11)) if
and
:
Derivative of
q-sigmoid, given by Equation (
12), if
and
:
From Equations (
17)–(
19), the following properties are straightforwardly verified:
As stated in Property (v) of
Section 3, we shall consider the derivative results above to quantify the influence of parameters
q and
. From Equation (
21), it becomes obvious that the behavior of Equation (
9) is highly influenced by
, as also noticed in the plots of
Figure 2a and pointed out in Property (iv). Equation (
22) demonstrates Property (vi) which states that the modified sigmoid Equation (
10) is smooth at
with a null derivative with respect to
I. Equation (
23) shows that the decay of
nearby the intensity
is almost insensitive to the
q variation. To get more information about the decay of
in a neighborhood of
, we shall consider the first terms of the Taylor series to approximate Equation (
11) as
Hence, we can compare the first-order approximation in Equation (
24) with the
q-sigmoid through
We experimentally notice that this expression is monotonically increasing with respect to
I. Moreover, for
,
, and
, we get
which shows that the (almost) linear behavior observed for
in
Figure 2c is a general property of Equation (
11).
An analogous procedure can be performed by Equation (
9). However, such an analysis is not so simple when considering Equation (
12) because its derivative with respect to
I does not have an analytical form for
. To get some guess about Equation (
15) for
, we plot in
Figure 4 the difference equation:
for
,
,
,
, and
The plots in
Figure 4 indicate that the derivative of Equation (
12) depends on the
q value, which also agrees with the visual analysis of
Figure 2c. From
Figure 4a, we could guess that
while
which implies a dependence of
with respect to parameter
q that cannot be explained with the first-order approximation for all ranges
.
5. Experimental Results
Before starting the computational experiments, it is worthwhile to state the practical consequences of Properties (i)–(vi) and the theoretical analysis of
Section 4. Firstly, due to Property (i), we can assure that functions (
9)–(
12) highlight the pixel intensities nearby
, as pictured in
Figure 1. From Equations (
21)–(
23), we can say that the way the transformed image intensity decays in a neighborhood of
is linear (respect to
I) for Equations (
9) and (
11) and quadratic (at least) for the modified sigmoid (
10). Moreover, in the linear case, it does not depend on the
q value, and the linear coefficients are proportional to
and inversely proportional to
. However, the numerical experiments reported in
Figure 4 show that the derivative of Equation (
20) undergoes a different behavior nearby
, which depends on the
q value besides
.
In this paper, initially we propose an experimental analysis under artificial data to make easier a quantitative evaluation of the q-sigmoid for image enhancement. Then, we repeat the experiments for real images. The implementations were performed using the MATLAB Release 13 facilities. For the artificial data analysis, we built a 2-D Gaussian distribution so that we can manipulate its parameters (mean and standard deviation ). The Gaussian’s amplitude is normalized between so that we can observe its 3-D profile as a grayscale image, creating artificial conditions for the application of the proposed filters.
With this idea at hand, we can use the Gaussian parameters in order to create severe conditions to improve the contrast and to enhance some regions of interest. For this purpose, we defined as a region to be highlighted the one with an intensity in the interval
.
Figure 5 shows this setup, where
Figure 5a is the original image with a clear region of interest, and
Figure 5b is its corresponding perspective visualization.
5.1. Locally Linear Behavior
In this section, we perform computational experiments using the families given by Equations (
9) and (
11), of which the derivatives at
are linear functions with respect to
(see Equations (
21) and (
23)). Therefore, we set the parameters
and
and vary the
value for both the sigmoid (Equation (
9)) and
q-sigmoid (Equation (
11)) functions. Under the scenario of Equations (
21) and (
23), when
is set to small values (e.g., 0.02 or 0.01), the rate of decrease of the transformed image intensity becomes too high. Consequently, the highlighted region in the output field can be very small compared to the original one (e.g.,
Figure 5c–d).
Now, we keep the value of
and
and set the value of
for both the sigmoid and
q-sigmoid functions. The
q-sigmoid function was parameterized by taking also
. We apply the two filters in the image shown in
Figure 5a.
The values of
q were chosen in order to highlight significant behaviors. For instance, for
, the function
q-sigmoid gets optimal results for all
values studied here (the case
is discussed later). Note that the value
corresponds to the traditional sigmoid function, since
q-sigmoid reduces to sigmoid when
q tends to
, as explained in
Section 3.
For each value of
q, the
q-sigmoid filter of Equation (
11) was applied on the artificial image of
Figure 5a. The same was done for the sigmoid filter in Equation (
9). Since each highlighted region may represent a connected set of pixels, a comparison between both results (by sigmoid and
q-sigmoid) is accomplished by relating the convex-hull of both enhanced and original areas, according to the following equation:
where
is the convex-hull area of the
q-sigmoid/sigmoid achieved region and
is the ground-truth area defined in a Gaussian grayscale profile image by setting
. When
achieves zero, it means that
q-sigmoid/sigmoid filtering gets the optimal performance.
Table 1 shows the error for each value of
q cited above.
Figure 6 shows the corresponding visual result when
.
Figure 6a shows the original Gaussian grayscale profile but now with a circle around indicating the convex hull of the ground truth area.
Figure 6b is the corresponding filled area, and
Figure 6c is the achieved area after sigmoid filtering. The visually imperceptible difference (confirmed in
Table 1 for
) between areas of
Figure 6b,c indicates that this was a good performance of filtering approach.
On the other hand, in the more extreme case, we set
,
, and
and apply the
q-sigmoid function for all values of
q in our set up. Under this new scenario, the value of
is too small, severely hampering the search by the region of interest. To allow the comparison with the results of
Table 1 and
Figure 6, we report in
Table 2 the
measure found for each
q value and show in
Figure 7 the corresponding visual results.
Now, according to
Table 2, some values of
q are more sensitive to the variation of
and present a low performance for the same input of
Figure 5a. In
Figure 7, we present four convex hulls found for three
q-sigmoid filters (when
) and the sigmoid one (when
). For all other
q values, including
, under
, the
q-sigmoid filtering behavior was optimal.
For completeness, we show in
Table 3 the same results observed in the
Table 1 and
Table 2 but add the results for other values of
. As said before, for
, it is no longer extreme cases and both filters achieve the same optimal performances, so these cases are not shown here.
Finally,
Figure 8 shows the overall observed behavior in
Table 3. In this figure, we can clearly see that as the
value increases (shown inside the small box), the value of
also decreases for all values of
q. However, for each value of
, the value of
, the traditional sigmoid function presents the worst performance. In this figure, we also show results for
.
Clearly,
Table 3 and
Figure 8 show the superiority of the
q-sigmoid filtering over the traditional sigmoid one to highlight images in extreme conditions when the range of values around
are known to be small.
5.2. Generalized Behavior
Now, we shall analyze results using Equation (
12) that depends on the
q value besides
. We follow the same methodology of previous sections and apply the proposed enhanced technique over the input image pictured in
Figure 5a.
Initially, we set the value of
,
, and
for both sigmoid (Expression (
10)) and
q-sigmoid functions (Equation (
12)) and applied the filters in the image shown in
Figure 5a. The
q-sigmoid function was applied with values of
. A comparison between both results was accomplished by computing Equation (
27). However, the errors for all considered value of
q, when
and
were zero.
On the other hand, in the extreme case, we set and applied the q-sigmoid function for all values of . Under this new scenario, the value of was too small, severely hampering the search by the region of interest.
Table 4 shows the performance of sigmoid (
) and
q-sigmoid for increasing values of
and
q. Note that
for values of
tends to zero for all
ranges.
5.3. Experiments with Ultrasound Images
The tests in artificial images indicate how
q-sigmoid functions behave for image enhancement regarding their parameters. We conclude that
q-sigmoids defined by Equations (
11)–(
12) achieve the better performance in the enhancement tests using
Figure 5a. The
q-sigmoid results tend to highlight with a higher contrast the region of interest from the background, as shown when comparing the synthetic experiments of
Figure 6 and
Figure 7. We would like to exploit this property in applications involving medical images.
Besides the influence of noise and low contrast, the morphology of regions of interest is also a factor that hampers the assessment of filters considered to highlight the target information. For instance, ultrasound images as seen in
Figure 9 are heavily corrupted by speckle noise, besides having target objects not clearly defined. Under such conditions, the region of interest (lesion) can merge with the background, making difficult further segmentation operations.
Thus, the greatest challenge faced by image enhancing methods automatically isolates the lesion from its background, reducing the interference of noise and artifacts in further operations.
A well-known method for image enhancement is the slicing, which consists of mapping the original intensity range within a small track [
30]. The most popular mapping is one that generally excludes the lower and higher intensity ranges of the original image. The justification for this slicing method is that the human visual system is much more sensitive to medium intensity ranges than low and high intensities. Besides slicing, histogram equalization also improves the visual contrast of such images, but it does not mean that they facilitate the automatic extraction of the lesion. One reason is because these two popular methods, although they tend to produce more visually pleasing results, also enhance noise, artifacts, and contrast between unwanted areas. In order to compare the slicing and histogram equalization results with the ones obtained with
q-sigmoids, we use a statistical measure that quantifies the difference in intensity between two images, in our case, the original image (
X) and the output one (
Y) obtained by the considered methods. Specifically, we apply the absolute mean brightness error (AMBE), which can be calculated through the absolute difference between the mean intensities of
X and
Y:
where
denotes the statistical mean.
Equation (
28) clearly shows that AMBE is designed to detect excessive change in the brightness. In current practice, a lower AMBE implies that the original brightness is better preserved and, hence, that the image
Y should yield a better enhancement of the region of interest.
Figure 10 allows a visual comparison between the results of the histogram equalization, slicing, and
q-sigmoid given by Equation (
12) when applied to the four images in
Figure 9. In these examples, it can be noted from
Figure 10a–d and
Figure 10i–l that the histogram equalization method and slicing-based technique obtain a better visual result than the proposed method (
Figure 10q–t). However, the output of
q-sigmoid has a much stronger contrast, clearly facilitating the isolation of region of interest from the background as we can check in the images of
Figure 10q–t. In
Figure 10u–z, we show the segmentation results obtained by preprocessing the original images with
q-sigmoid and entering the obtained result in the Otsu thresholding algorithm [
24]. If compared with the segmentation results obtained after preprocessing with counterpart techniques (
Figure 10e–h and
Figure 10m–p), we can visually confirm that the lesion segmentation, in general, is better extracted after a
q-sigmoid enhancement. Specifically,
Figure 10e–m,u shows equivalent results in the sense that the region of interest is isolated from the surrounding object. In this line, the results in
Figure 10v,x favor a
q-sigmoid against the counterpart methods (
Figure 10f,n,g,o) once there are no bridges between the target object and its neighborhood. The segmentation presented in
Figure 10h,p,z can be considered equivalent ones.
In order to obtain a quantitative comparison, we apply the AMBE, formally described by Equation (
28). The test database contains 250 ultrasound images of breast cancer, 100 malignant, and 150 benign. The images in
Figure 9 are four samples of this database. The images are processed by the considered methods, and Equation (
28) was applied for a subsequent analysis.
For the proposed method, we set
,
and
, and we varied the
q value in
q-sigmoid as
. For each of the 250 images of the database, the three methods were then applied.
Figure 11 allows the comparison of the performance of classical methods (equalization and slicing) and the proposed method with the five
q values cited before, given a total of eight comparative instances for each sample. The box-plot of
Figure 11 clearly shows that the proposed method outperforms the other two (histogram equalization and slicing-mapping) with any value of
q in the
q-sigmoid function.
It can be seen that the best performance was obtained with the value of . On the other hand, although for the value of we have obtained a better result than the two other traditional methods, it is the configuration that generates the highest standard deviation.
5.4. q-Sigmoid and CNN Segmentation
This section discusses the
q-sigmoid efficiency as a preprocessing step in CNN-based image segmentation pipelines. To demonstrate this idea, we used two databases in our experiments. The first one is a
artificial image database, generated through the Gaussian function shown in
Figure 5a. In order to build such a database, we add to the gray scale image in
Figure 5a different Gaussian noise levels, generating 100 images with signal to noise ratio (SNR) from
to
. The second grayscale image database is composed by the 250 breast cancer ultrasound images used in
Section 5.3. Examples of these images can be seen in
Figure 9, where the central part of the images represent the lesion (region of interest). For both databases, we randomly separate
images for training and the remaining ones for test, using a cross-validation strategy for CNN training.
The databases were tested on two CNNs with the same architecture: 3 convolutional, 2 max pooling, and 1 transpose layer. The convolutional layers use Relu, and the transpose applies the linear activation functions. The networks are named and , of which the purpose is to segment the input images (artificial for and ultrasound for ) by separating the region of interest from its background.
The segmentation quality measure used in this work compares the CNNs prediction with a ground-truth. For the artificial database, the ground-truth is the image shown in
Figure 5a. In the case of ultrasound images, they were manually segmented by an expertise to build the ground-truth as pictured in
Figure 12.
Therefore, we fed the trained
with a test image and computed the similarity between its segmentation result (say
A) and the ground-truth (say
G) by expression:
where # means the number of pixels, ⊕ is the dilation operation,
B is the canonical
structuring element [
31], and
means the negative of image
A. The above expression is motivated by the fact that, in the case of ultrasound images, the
might extract other objects with similar texture patterns besides the region of interest, as observed in
Figure 12g–i. If those regions are disconnected in the segmentation result, it is easy to isolate them in a further process of information extraction. In this case, the ratio
is approximately one, indicating that the
isolates the region of interest. Otherwise, this ratio falls in the interval
, penalizing the similarity measure because the lesion is connected with other regions in the segmented image.
Therefore, we apply the
q-sigmoid filter to each image before entering the CNN and computing Equation (
29) to measure the quality of the segmentation obtained.
Figure 13a shows the
efficiency for the segmentation of the synthetic database (black line) and its filtered version (blue line).
Figure 13b reports an analogous result for
.
From
Figure 13a,b, we notice that the application of
q-sigmoid as a preprocessing step, in general, improves the segmentation results for both
and
, although this fact is more evident in the case of artificial images because these images are less challenging than the ultrasound ones to be segmented.
6. Discussion
This paper describes the applicability of the proposed
q-sigmoid functions, defined by Equations (
11) and (
12) in breast ultrasound images, which are images highly affected by speckle noise. Moreover, tests were performed with artificial images, under controlled parameterization demonstrating the superiority of
q-sigmoids against their classical sigmoid versions.
It should be emphasized that our goal is not to improve global contrast but to highlight a specific region of interest, as in the case of the lesions in the breast ultrasound images of
Figure 9. The box-plot of
Figure 11 clearly shows that the performance of the proposed
q-sigmoid function overcomes the techniques of slicing and equalization in this task. Clearly, there is a decay of the AMBE measure as the
q value increases, indicating that, although the ideal value of
q has not been pre-calculated, an acceptable range is easily defined, that is, the proposed
q-sigmoid function produces a good performance for a large range of
q values.
It is also noticed in the synthetic experiments of
Section 5.1 the great influence of the values of
q in relation to function decay. Thus, although this sensitivity is large, due to the overall good performance for a wide range of
q values, this behavior does not affect negatively the final result.
The results of
Section 5.3 and
Section 5.4 indicate that the
q-sigmoid preprocessing can simplify segmentation stages if used in pipelines, such as the ones of CAD (Computer Aided Diagnosis) systems. This is the main factor that highlights the proposed functions as promising strategies to be used in computational systems of image analysis even considering recent approaches based on CNNs. In fact,
Figure 10 and
Figure 13 show some results, indicating that the
q-sigmoid can improve the segmentation obtained by Otsu and CNN in this application.
Also, we shall include some comments about the relationship between our work and the fractional logistic function written as
where
with
[
32,
33]. We can demonstrate that the derivative of Equation (
30) with respect to
I is zero in
and that this point is a local minimum. For
, named a quadratic logistic function in Reference [
33], we can verify that
. Moreover, Equation (
30) does not have other critical point different from
. Consequently, Equation (
30) has the profile given by
Figure 14a if
. In
Figure 14b, we show the profile of
, which is a bell-shaped function. Therefore, it resembles the plots in
Figure 2b, where we have
if
, as shown by Equations (
18) and (
22).
Consequently, a local analysis nearby
shows an equivalent behavior between
in Equation (
10) and
. Far from
, we can adjust the parameters
and
such that we obtain
. Hence, the quadratic fractional logistic function and the sigmoid in Equation (
10) generate (almost) equivalent enhancement results. Consequently, once
q-sigmoid functions surpass the sigmoid one, we expect the same conclusion regarding the quadratic fractional logistic function.
On the other hand, if
in Equation (
30), we get an S-shaped profile discussed in References [
32,
33], like the one pictured in
Figure 14c. Therefore, in this case, the behavior of the logistic function family is very different from the bell-shaped
q-sigmoid functions represented in
Figure 3.
However, in another way, from the result of Equation (
8), we can write
Therefore, we can generalize Equation (
30) as
and study its behavior for
. We intend to perform such task as future works.
Regarding the parametrization of
q-sigmoids, we shall perform some comments once we set the parameters
, and
q. The parameters
and
define the interval
that we want to highlight in the output image, as pictured in
Figure 1. Therefore, these values are set using the knowledge about the regions of interest. In the case of Equation (
11) of the material, the parameter
controls the decay of the image intensity nearby
, as noticed in Equation (
24). If we want to sharpen the highlighted region, we must increase it. Otherwise, we shall set it smaller. In the case of images with a gray scale intensity in the interval
, a systematic procedure would be to start with
and then to make it larger or smaller depending on the effect the user wants. The setting of parameter
q is more involved, and in general, it is performed by defining a sequence of
q-values and analyzing the results to realize the best one. One suggestion is to take some values smaller and larger than
besides the
itself that corresponds to the sigmoid functions. We proceed in this manner to generate
Figure 11 of the submitted manuscript.
Moreover, we would like to comment another approach that we shall analyze in further works. We can transform the intensity values of the input image such that the histogram of the output field matches the solution of the PME discussed in
Section 2. Formally, we suppose a random variable
with a probability density
given by the histogram of the input image. Then, inspired by the histogram equalization approaches [
34], we transform the variable
u in another random variable
such that its probability density
is given by the solution of the PME. To perform this task, it is just a matter of defining the functions:
and imposing that the variable
v must satisfy the constraint
, which gives
Now, the idea is to solve the problem:
and to seek for parameters
such that the
q-sigmoid
, wherever
or
are, approximates
v defined by Equation (
34). In this manner, we strengthen the association of the
q-sigmoid functions with Tsallis entropy because the random variable
v has a probability density
that is the solution of the Tsallis PME. On the other hand, we can generate a systematic procedure to set the model parameters in the
q-sigmoids.
Moreover, it is important to emphasize the consequences of the
q-calculus and
q-analysis, which are subproducts of the Tsallis formalism to the signal processing area. In this way, in Reference [
35,
36], the
q-deformation of known functions, introduced in the
q-calculus [
37], are considered that allow the consideration of some modifications in known functional transforms (wavelets and Gabor transform, for instance) in order to discuss the performance of image processing techniques on noisy objects in the frequency domain. Also,
q-Gaussian and difference-of-q-Gaussian kernels have been used as generalizations of the classical counterparts, with outstanding results for noise reduction and high-pass filtering (see Reference [
38] and references therein).
7. Conclusions
This paper introduced the
q-sigmoid functions as spatial filters for image enhancing in order to isolate the region of interest. The main objective was to highlight a particular region and not visually improve the image through the contrast enhancement. The
q-sigmoid functions are generalizations of the well-known sigmoid families, obtained when setting
in Equations (
11) and (
12).
Tests were carried out with synthetic images when the proposed method outperformed the sigmoid functions under a range of parameter values that leave the scenario in extreme conditions. When the value is extremely low, the q-sigmoid functions always get better results than the sigmoid family, especially for values of . The method was also applied to ultrasound breast cancer images, which are severely affected by the speckle noise, low contrast, and subjective boundary. In this case, the proposed method was also compared with two other known methods of contrast enhancement (histogram equalization and slicing) using the AMBE, which allows the measurement of the contrast level of the transformed image against the level of contrast of the original one. The proposed method achieved better results in terms of AMBE than the counterpart ones for , suggesting that the q-sigmoids are promising for region enhancement and can be used in CAD systems for this type of image. In particular, the Otsu and CNN segmentation results obtained when preprocessing ultrasound images with q-sigmoids indicate the capabilities of the functions in segmentation pipelines.
As further works, we intend to apply
q-sigmoid functions for other image modalities to emphasize the contribution of our proposal as a general technique for image enhancement. Also, we shall compare
q-sigmoids with the generalization of fractional logistic functions (Equation (
32)) and to implement a scheme to solve problem (Equation (
35)).