Next Article in Journal
Robust Output Tracking of Boolean Control Networks over Finite Time
Next Article in Special Issue
A Combined Approach of Fuzzy Cognitive Maps and Fuzzy Rule-Based Inference Supporting Freeway Traffic Control Strategies
Previous Article in Journal
P Systems with Proteins on Active Membranes
Previous Article in Special Issue
Weak Inflationary BL-Algebras and Filters of Inflationary (Pseudo) General Residuated Lattices
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On an Application of Lattice Integral Transforms in Image Processing †

1
CE IT4I—IRAFM, University of Ostrava, 701 03 Ostrava, Czech Republic
2
Varroc Lighting Systems, 702 00 Ostrava, Czech Republic
*
Author to whom correspondence should be addressed.
This paper is an extended version of our paper published in Proceedings of the 19th International Conference on Information Processing and Management in Knowledge-Based System, Milan, Italy, 11–15 July 2022; pp. 471–482.
Mathematics 2022, 10(21), 4077; https://doi.org/10.3390/math10214077
Submission received: 10 August 2022 / Revised: 18 September 2022 / Accepted: 23 October 2022 / Published: 2 November 2022
(This article belongs to the Special Issue FSTA: Fuzzy Set Theory and Applications)

Abstract

:
The lattice integral transforms have been introduced to generalize lower and upper fuzzy transforms for lattice-valued functions that are used to approximate original functions from below and above. They are defined in complete analogy with classical integral transforms, particularly, the product of a lattice-valued function and a fuzzy relation called the integral kernel is integrated by a Sugeno-like fuzzy integral. In the article, we first investigate the conditions under which lattice integral transforms preserve (reverse) constant functions, which appears to be a fundamental presumption for a successful approximation of lattice-valued functions. Further, we show how the lattice integral transforms can be applied in image processing, more specifically, in non-linear filtering, compression/decompression, and opening/closing of images. We demonstrate that the filters based on integral transforms generalize the popular median filter as well as minimum and maximum filters, and also opening and closing defined using fuzzy morphological erosion and dilation. We illustrate the proposed methods in various selected images.

1. Introduction

In [1], integral transforms for lattice-valued functions (lattice integral transforms or simply integral transforms) have been introduced to provide a theoretical framework for transformations of functions whose functional values cannot, in principle, be handled by standard arithmetic of real or complex numbers or application of standard arithmetic has certain disadvantages. For example, non-additive noise in signal or image processing is filtered out by methods that do not use the standard arithmetic, but order statistic functions, such as median, are applied (see, e.g., [2]). Mathematical morphology on complete lattices provides morphological operators whose mathematically coherent application to grayscale images has already been justified (see, e.g., [3,4,5]). The scheme of lattice integral transforms is designed quite analogously to classical integral transforms, such as Fourier, Laplace, Hilbert, or wavelet transforms [6]. Namely, a new function g ( y ) is created by integrating the product of a function f ( x ) and an integral kernel function K ( x , y ) with respect to suitable limits. To develop the theory of lattice integral transforms in sufficient generality, the complete residuated lattices were chosen as the basic algebraic structure for the function values. Recall that particular examples of residuated lattices are the BL-algebra, MV-algebra, or IMTL-algebra, which are very popular in fuzzy set theory, fuzzy logic, and their applications.
The original motivation for introducing lattice integral transforms arose from the idea of generalizing fuzzy transforms of lattice-valued functions (lattice fuzzy transforms) that Perfilieva proposed in [7] to approximate functions from below or above using the appropriate composition of the direct upper (lower) fuzzy transform F ( F ) : F ( X ) F ( Y ) and the inverse upper (lower) fuzzy transform G ( G ) : F ( Y ) F ( X ) , where F ( X ) is the set of all lattice-valued functions on X and similarly for F ( Y ) . The key parameter of lattice fuzzy transforms F and F is the fuzzy partition of the domain X of functions that are approximated, which is a family of fuzzy subsets of X whose cores are non-empty sets and form a classical partition of X. Note that the core of a fuzzy set A on X is the set of all elements of X for which the membership function of A gives 1. It should be noted that the fuzzy transforms of the lattice G and G are also determined by a fuzzy partition of Y, which is derived from the fuzzy partition of X. Hence, we find that there is no difference in the definitions of F and G ( F and G ) and it is unnecessary to distinguish between the definitions of direct and inverse lattice fuzzy transforms. The approximation of original lattice-valued functions is controlled by setting of fuzzy partitions of the domain X. Note that fuzzy partitions of the domain Y do not form another approximation parameter, because they are derived from fuzzy partitions of the domain X. On Figure 1 (the figure is adopted from [8]), the lower and upper approximations of a discrete function are displayed for a uniform fuzzy partition of the domain [ 0 , 200 ] which is determined by moving a fuzzy set along the x-axis with the size of its core equal to 15.
Further development of lattice fuzzy transforms, including details, can be found in [9,10,11,12,13,14]. The relationship between fuzzy lattice transforms and fuzzy morphological operators defined on complete lattices was demonstrated by Sussner in [15]. In particular, F and G ( F and G ) have been shown to be equivalent to fuzzy morphological dilation (erosion).
The proposed integral transforms for lattice-valued functions naturally extend the lattice fuzzy transforms in two directions, namely, the fuzzy partition is replaced by a more general concept of integral kernel, and the supremum and infimum used in the calculation of fuzzy transforms are replaced by Sugeno-like fuzzy integrals. More specifically, two types of lattice integral transforms from F ( X ) to F ( Y ) were introduced using the following formula [1]:
F ( K , μ ) ( f ) ( y ) = X K ( x , y ) f ( x ) d μ and F ( K , μ ) ( f ) ( y ) = X K ( x , y ) f ( x ) d μ ,
where K : X × Y L is a fuzzy relation called the integral kernel and X is a multiplication-based Sugeno-like fuzzy integral on a fuzzy measure space ( X , A , μ ) . It was shown that F ( K , μ ) generalizes the upper lattice fuzzy transform F and F ( K , μ ) the lower lattice fuzzy transform F . More specifically, we have the following:
F = F ( K , μ ) and F = F ( K , μ )
where μ is the least fuzzy measure and μ is the highest fuzzy measure on A which is given on the powerset of X (see Example 5 on p. 5 for the definition of μ and μ ). The same formula, but with residuum-based Sugeno-like fuzzy integrals, were used in the definitions of other types of lattice integral transforms in [16]. Similarly to the lattice fuzzy transforms, in the current paper [17], we show that different compositions of the integral transforms
F ( K , μ ) : F ( X ) F ( Y ) and F ( K 1 , μ ) : F ( Y ) F ( X ) ,
where K 1 : Y × X L is given by K 1 ( y , x ) = K ( x , y ) and μ is an appropriate fuzzy measure on a fuzzy measurable space ( Y , G ) , approximate the original functions, and can also remove the present random noise, in contrast to the fuzzy transform, as shown in Figure 2. This valuable property motivated us to apply integral transformations in image processing, specifically to image filtering and compression/decompression in the current paper [8], where we outline the prerequisites to obtain successful results for these tasks and illustrate them with the Lena image. Another application of the integral transformation based on multiplication was proposed for multi-criteria decision-making in [18], where the integral transform is used to evaluate goals according to respondents’ fulfillment and significance of criteria, where the significance of criteria with respect to goals is expressed by an integral kernel. Both applications show the natural directions of using lattice integral transforms in practice, i.e., signal and image processing and multi-criteria decision-making, but a deeper analysis of the performance and usefulness of integral transforms in these and possibly other applications is still a subject of research.
This paper is a continuation of our research on signal reconstruction by lattice integral transforms starting in [17] and, especially, the image processing application provided in [8]. More specifically, we extend the ideas and complete results presented in [8] (and also in [17]) to obtain a comprehensive background for image (and also signal) processing. Particularly, we present two types of lattice integral transforms and prove their fundamental properties that ensure a successful application to image processing. In the illustration, we focus on three tasks in image processing, namely, non-linear filtering, compression/decompression, and opening/closing of images. Among other things, we show that non-linear filters based on lattice integral transforms can be seen as a generalization of the known median filter, as well as minimum and maximum filters. Note that these filters are popular for the removal of salt-and-pepper noise, more specifically, the minimum (maximum) filter removes the salt (pepper) noise because it has very high (low) values of intensities. The median filter removes both types of noise. The minimum and maximum filters are also associated with the most common morphological operations of erosion and dilation, because the minimum filter erodes shapes on the image, whereas the maximum filter extends object boundaries [19]. The opening and closing filters are achieved by combining the morphological operations of erosion and dilation, in our case, we will consider their definitions in fuzzy mathematical morphology [15].
The structure of the paper is as follows. The next section presents basic concepts that are used in the construction of lattice integral transforms. The third section introduces two types of lattice integral transforms, which are defined using the multiplication and residuum-based fuzzy integrals. The fourth section is devoted to three tasks in image processing, namely, non-linear noise filtering, compression/decompression and opening/closing, which are designed in the framework of lattice integral transforms and demonstrated on various images. The last section is a conclusion.

2. Preliminary

In this section, we present all concepts that are important to introduce lattice integral transforms. Some of them are demonstrated by examples.

2.1. Algebra of Truth Values

In this paper, we assume that the algebra of truth values is a complete residuated lattice on [ 0 , 1 ] , i.e., an algebra L = [ 0 , 1 ] , , , , , 0 , 1 with four binary operations and two constants, such that [ 0 , 1 ] , , is a complete lattice, [ 0 , 1 ] , , 1 is a commutative monoid (i.e., ⊗ is associative, commutative and the identity α 1 = α holds for any α [ 0 , 1 ] ) and the adjointness property is satisfied, i.e.,
α β γ iff α β γ
holds for each α , β , γ [ 0 , 1 ] , where ≤ denotes the corresponding lattice ordering, i.e., α β if α β = α for α , β [ 0 , 1 ] . The operations ⊗ and → are called the multiplication and residuum, respectively. For more information about residuated lattices, we refer to [20,21].
Example 1.
It is well-known that the algebra
L T = [ 0 , 1 ] , min , max , T , T , 0 , 1 ,
where T is a left continuous t-norm (see, e.g., [22]) and α T β = { γ [ 0 , 1 ] T ( α , γ ) β } , defines the residuum, is a complete residuated lattice (for the proof, we refer to [20]).
The following example presents the Schweizer–Sklar class of t-norms that can be used to introduce complete residuated lattices specified in the previous example and will be used later in the illustration of lattice integral transforms in image processing.
Example 2.
The Schweizer–Sklar class of t-norms is defined for any α , β [ 0 , 1 ] and λ [ , ]  as
T λ S S ( α , β ) = min ( α , β ) , λ = , ( α λ + β λ 1 ) 1 λ , λ ( , 0 ) , α · β , λ = 0 , ( max ( 0 , ( α λ + β λ 1 ) ) 1 λ , λ ( 0 , ) , α · D β , λ = ,
where
α · D β = 0 , α , β [ 0 , 1 ) , min ( α , β ) , 1 { α , β } ,
The t-norms T S S , T 0 S S , T 1 S S , and T F are called the minimum, product, ukasiewicz, and Drastic product t-norms, respectively. For λ [ , ) , the t-norm T λ S S is continuous. Note that the drastic product t-norm is only right-continuous. According to Example 1, one can determine the residua for the Schweizer–Sklar t-norms (except λ = ) as follows. Let α , β [ 0 , 1 ] . For α β , there is α T λ S S β = 1 , and for β < α , there is
α T λ S S β = β , λ = , β α , λ = 0 , ( 1 α λ + β λ ) 1 λ , λ ( , 0 ) ( 0 , ) ,
where we use 1 0 = , 1 = 0 , x + = + x = for any x ( , ) , and λ = for any λ ( 0 , ) . Note that α T λ S S β = min ( 1 , ( 1 α λ + β λ ) 1 λ ) for any λ ( 0 , ) .
A unary operation N : [ 0 , 1 ] [ 0 , 1 ] is called a negation on [ 0 , 1 ] if N is a non-increasing function, such that N ( 0 ) = 1 and N ( 1 ) = 0 (see, e.g., [23]). A canonical example of negation is the negation based on residuum given as N res ( α ) = α 0 for α [ 0 , 1 ] .
Example 3.
For the Schweizer–Sklar class of t-norms with λ [ , ) , the negation N λ S S determined by the residuum T λ S S has the following form. For α = 0 , there is N λ S S ( 0 ) = 1 , for α 0 , there is
N λ S S ( α ) = 0 , λ [ , 0 ] , ( 1 α λ ) 1 λ , λ ( 0 , ) ,
Note that for λ ( , 0 ) , according to (3), we have ( 1 α λ + 0 λ ) 1 λ = ( 1 ( 1 α ) λ + λ ) 1 λ = 1 λ = 0 1 λ = 0 . Obviously, for λ ( 0 , ) , it is sufficient to consider only one formula to express the negation, namely N λ S S ( α ) = ( 1 α λ ) 1 λ for α [ 0 , 1 ] . The negation N λ S S is continuous, and, as a particular case, we obtain the negation N 1 S S in the ukasiewicz algebra L T 1 S S , which is well established in fuzzy logic [21,24]. Figure 3 shows four examples of negations of N λ S S with positive parameter λ.

2.2. Fuzzy Sets

Let L be a complete residuated lattice, and let X be a non-empty set. A function A : X [ 0 , 1 ] is called a fuzzy subsetin X. A fuzzy set A on X with A ( x ) { 0 , 1 } for all x X is called crisp. The symbol is used to denote the empty fuzzy set on X, i.e., ( x ) = 0 for any x X . The set of all crisp fuzzy subsets in X (i.e., the power set of X) is denoted by P ( X ) . A constant fuzzy set A on X (denoted as α ̲ X ) satisfies A ( x ) = α for any x X , where α [ 0 , 1 ] . The sets Supp ( A ) = { x x X and A ( x ) > 0 } and Core ( A ) = { x x X and A ( x ) = 1 } are called the support and the core of a fuzzy subset A in X, respectively. A fuzzy subset A in X is called normal if Core ( A ) . The elementary operations as the union, intersection, scalar multiplication for fuzzy subsets in X are defined as follows:
( A B ) ( x ) = A ( x ) B ( x ) ( A B ) ( x ) = A ( x ) B ( x ) ( α A ) ( x ) = α A ( x )
for A , B F ( X ) and α [ 0 , 1 ] .
Let X , Y be non-empty sets. A fuzzy subset K in X × Y is called (binary) fuzzy relation. We say that
(i)
K is normal in the second component if for any y Y there is x X such that K ( x , y ) = 1 .
(ii)
K is normal in the first component if for any x X there is y Y such that K ( x , y ) = 1 .
The fuzzy subset K 1 in Y × X given by K 1 ( y , x ) = K ( x , y ) is called the inverse to K. It is easy to see that if K is normal in the second (first) component, then K 1 is normal in the first (second) component.

2.3. Fuzzy Measure Spaces

In this part, we introduce a fuzzy measure on an algebra of sets. For details, we refer to [25,26,27]. Note that fuzzy measures may also be introduced for fuzzy subsets, that is, on algebra of fuzzy sets [28], but it is rather difficult to calculate fuzzy integrals that use such type of fuzzy measures. Therefore, the practical use of integral transforms motivated us to restrict ourselves to algebras of sets. We use X \ A to denote the complement of A in X, where A is a subset (crisp fuzzy subset) of X.
Definition 1.
Let X be a non-empty set. A subset A of P ( X ) is an algebra of sets on X provided that:
(i) 
X A ;
(ii) 
If A A , then X \ A A ;
(ii) 
If A , B A , then A B A .
A pair ( X , A ) is called a measurable space on X, provided that A is an algebra of sets on X.
It is easy to see that if A is an algebra of sets, then the intersection of finite number of sets belongs to A . Let ( X , A ) be a measurable space, and A P ( X ) . We say that A is A -measurable if A A . Obviously, the sets { , X } and P ( X ) are algebras of sets on X. If B P ( X ) , then the least algebra of sets containing B is denoted as alg ( B ) . Note that alg ( B ) can be constructed from the elements of B as the set consisting of all finite unions applied on the set of all finite intersections over the elements of B and their complements.
Example 4.
Let L be a residuated lattice, and L = { [ 0 , α ] α [ 0 , 1 ] } , where [ 0 , 0 ] = { 0 } is a hybrid interval. Obviously, L P ( [ 0 , 1 ] ) , and alg ( L ) is an algebra of sets on L, which differs from P ( [ 0 , 1 ] ) . Indeed, for example, there is [ α , 1 ] alg ( L ) for any α ( 0 , 1 ] .
The following two definitions introduce fuzzy and complementary fuzzy measures. Note that complementary fuzzy measures and fuzzy integrals based on them were introduced in [29] to define models of fuzzy quantifiers as “no”, “little”, “few”, etc.
Definition 2.
A function μ : A [ 0 , 1 ] is called a fuzzy measure on a measurable space ( X , A )  if:
(i) 
μ ( ) = 0 and μ ( X ) = 1 ;
(ii) 
If A , B A such that A B , then μ ( A ) μ ( B ) .
A triplet ( X , A , μ ) is called a fuzzy measure space whenever ( X , A ) is a measurable space and μ is a fuzzy measure on ( X , A ) .
It should be noted that the term “fuzzy measure” was introduced by Sugeno in [25], but in the literature equivalent names can be found for μ , such as a capacity or a non-additive measure (see [27]). The following lemma shows how to determine a new fuzzy measure from a given fuzzy measure using a suitable function.
Lemma 1.
Let μ be a fuzzy measure on ( X , A ) , and let φ : [ 0 , 1 ] [ 0 , 1 ] be a monotonically non-decreasing function with φ ( 0 ) = 0 and φ ( 1 ) = 1 . Then the function μ φ : A [ 0 , 1 ] given by μ φ ( A ) = φ ( μ ( A ) ) for any A A is a fuzzy measure on ( X , A ) .
Proof. 
The properties of the fuzzy measure for the function μ φ immediately follow from the monotonicity of φ and the conditions φ ( 0 ) = 0 and φ ( 1 ) = 1 .    □
Definition 3.
A function ν : A [ 0 , 1 ] is called a complementary fuzzy measure on a measurable space ( X , A ) if:
(i) 
ν ( ) = 1 and ν ( X ) = 0 ;
(ii) 
If A , B A such that A B , then ν ( A ) ν ( B ) .
A triplet ( X , A , ν ) is called a complementary fuzzy measure space whenever ( X , A ) is a measurable space and ν is a complementary fuzzy measure on ( X , A ) .
The following lemma shows two ways in which a complementary fuzzy measure can be introduced from a fuzzy measure.
Lemma 2.
Let μ be a fuzzy measure on ( X , A ) , and let N be a negation on [ 0 , 1 ] . Then a function ν : A [ 0 , 1 ] given by ν ( A ) = μ c ( A ) = μ ( X \ A ) or ν ( A ) = μ N ( A ) = N ( μ ( A ) ) for any A A is a complementary fuzzy measure.
Proof. 
Obvious.    □
A dual lemma can be formulated for complementary fuzzy measures, from which the fuzzy measures can be determined by negation or set complement. Using Lemmas 1 and 2, one can introduce a broad class of fuzzy and complementary fuzzy measures. In addition to the previous two types of fuzzy measures (i.e., μ c and μ N ), we will use the so-called conjugate fuzzy measure to a given fuzzy measure.
Definition 4.
Let μ be a fuzzy measure on ( X , A ) , and let N be a negation on [ 0 , 1 ] . A function μ N c : A [ 0 , 1 ] given by μ N c ( A ) = μ N μ c ( A ) = N ( μ ( X \ A ) ) for any A A is called a N-conjugate fuzzy measure to μ.
Note that conjugate fuzzy measures were introduced in [30] to define a type of Sugeno integral based on the residuum operation. In this case, the authors restricted themselves to the negation N 1 S S in the ukasiewicz algebra (see Example 3). Similarly, one can introduce a N-conjugate complementary fuzzy measure. Since we deal with finite sets of pixels in image processing, the following examples present fuzzy measures defined over finite measurable spaces.
Example 5.
Let ( X , A ) be a finite measurable space, that is, X = { x 1 , , x n } . The least and thehighestfuzzy measure on ( X , A ) is given by
μ ( A ) = 0 , A X , 1 , otherwise , and μ ( A ) = 0 , A = , 1 , otherwise ,
for any A A , respectively.
Example 6.
A relative fuzzy measure μ r on ( X , A ) is given as
μ r ( A ) = # A # X
for all A A , where # A and # X denote the number of elements in A and X, respectively.
By Lemma 1, the relative fuzzy measure μ r can be modified by a non-decreasing function φ with φ ( 0 ) = 0 and φ ( 1 ) = 1 to obtain a fuzzy measure μ φ r . In the following example, we introduce a class of functions φ that determines a class of fuzzy measures from the relative fuzzy measure, which corrects the class of functions φ presented in [8].
Example 7.
Let 0 u 1 and 0 < p be a natural number. Define ψ , u p , φ , u p : [ 0 , 1 ] [ 0 , 1 ] as follows:
ψ , u p ( x ) = 0 , x = 0 or x < , e p 2 x u 1 e p 2 x u 1 + 1 , < x u , 1 , x = 1 or u < x ,
and
φ l , u p ( x ) = ψ l , u p ( x ) ( e p + 1 ) 1 e p 1 , l < x u , ψ l , u p ( x ) , otherwise .
It could be simply verified that for < u , φ , u p ( x ) modifies ψ , u p ( x ) to obtain a continuous function on [ 0 , 1 ] . For = u , however, φ , u p ( x ) achieves only two values 0 and 1 with the jump at the point x = . For example, if = u = 0 , then φ 0 , 0 p ( x ) = ψ 0 , 0 p ( 0 ) = 0 and φ 0 , 0 p ( x ) = ψ 0 , 0 p ( x ) = 1 for x > 0 . Examples of the function φ , u p for the parameters ( , u , p ) { ( 0 , 0 , 1 ) , ( 0.2 , 0.4 , 5 ) , ( 0.4 , 0.8 , 3 ) , ( 1 , 1 , 1 ) } are shown in Figure 4.
The function φ , u p obviously satisfies the assumptions of Lemma 1, so it can be used to modify any fuzzy measure. Hence, we can introduce a class of fuzzy measures on ( X , A ) derived from the relative fuzzy measure μ r introduced in Example 6 as follows:
M r = { μ φ , u p r , u [ 0 , 1 ] , u , p N , p > 0 } .
It is easy to see that μ = μ φ 0 , 0 1 r , μ = μ φ 1 , 1 1 r and μ r = μ φ 0 , 1 1 r .
Example 8.
By φ , u p from the previous example, we can introduce two additional functions through which the complementary and conjugate fuzzy measures can be determined from the relative fuzzy measure. Let N be a negation on [ 0 , 1 ] and define φ , u p , c , φ , u p , N : [ 0 , 1 ] [ 0 , 1 ] as follows:
φ , u p , c ( x ) = φ , u p ( 1 x ) and φ , u p , N ( x ) = N ( φ , u p ( x ) ) ,
for any x [ 0 , 1 ] . By Lemma 2, it is easy to check that μ φ , u p , c r and μ φ , u p , N r are complementary fuzzy measures on ( X , A ) . Define φ , u p , c , N = φ , u p , N φ , u p , c , then μ φ , u p , c , N r is an N-conjugate fuzzy measure to a fuzzy measure μ φ , u p r on ( X , A ) . In Figure 5, we display the functions φ , u p , c , N for the same parameters as in Example 7 and N ( α ) = 1 α for α [ 0 , 1 ] (i.e., the negation in the ukasiewicz algebra). One can see that the conjugate fuzzy measure to μ ( μ ) is μ ( μ ); it is sufficient to compare the green (orange) functions in Figure 4 and Figure 5). Fuzzy measures μ φ 0 , 1 p r are self-conjugate, which immediately follows from φ 0 , 1 p = φ 0 , 1 p , c , N .
Remark 1.
It is easy to see that all fuzzy measures (and similarly complementary and conjugate fuzzy measures) in the above examples are cardinality invariant, that is, for any sets A and B such that # A = # B , it holds that μ ( A ) = μ ( B ) . Fuzzy measures invariant with respect to the cardinality of the set are referred to as symmetric fuzzy measures.

2.4. Multiplication and Residuum-Based Sugeno-like Fuzzy Integrals

In what follows, the integrated functions are fuzzy sets on X and are denoted by f, g, etc. First, we recall the definition of the multiplication-based fuzzy integral introduced in [28,30].
Definition 5.
Let ( X , A , μ ) be a fuzzy measure space, and let f : X [ 0 , 1 ] . The⊗-fuzzy integral of f on Xis given by
f d μ = A A μ ( A ) x A f ( x ) .
Let ( X , A , μ ) be a fuzzy measure space. We say that a function f : X L is measurable, if { x i f ( x i ) α } A for any α [ 0 , 1 ] . For measurable functions, the ⊗-fuzzy integral can be calculated as follows (see, Theorem 3.2 in [1]).
Theorem 1.
Let ( X , A , μ ) be a fuzzy measure space, and let f : X [ 0 , 1 ] be a measurable function. Then
f d μ = α [ 0 , 1 ] α μ ( { x X f ( x ) α } ) .
The following corollary provides a simple computational formula for the ⊗-fuzzy integral of measurable functions defined on a finite set X = { x 1 , , x n } . Denote [ n ] = { 1 , , n } .
Corollary 1.
Let ( X , A , μ ) be a finite fuzzy measure space, that is, X = { x 1 , , x n } , and let f : X [ 0 , 1 ] be measurable. Then
f d μ = i [ n ] f σ ( i ) μ i ,
where σ is a permutation on [ n ] such that f σ ( 1 ) f σ ( 2 ) f σ ( n ) , where f σ ( i ) = f ( x σ ( i ) ) for i [ n ] and μ i = μ ( { x σ ( i ) , , x σ ( n ) } ) .
Proof. 
It immediately follows from Theorem 1, where we restrict the calculation from α [ 0 , 1 ] to α { f σ ( 1 ) , , f σ ( n ) } . Indeed, for α = 0 or f σ ( n ) < α 1 , we trivially obtain α μ ( { x X f ( x ) α } ) = 0 . If f σ ( i 1 ) < α f σ ( i ) for i [ n ] (we put f σ ( 0 ) = 0 ), then
α μ ( { x X f ( x ) α } ) = α μ i f σ ( i ) μ i ,
where we used the fact that the multiplication is non-decreasing in both variables. Hence, we find that
α [ 0 , 1 ] α μ ( { x X f ( x ) α } ) i [ n ] f σ ( i ) μ i .
Since the opposite inequality is trivially true, we obtain the desired equality.    □
Note that, if A = P ( X ) , then any function f : X [ 0 , 1 ] is measurable, and thus its ⊗-fuzzy integral can be calculated using formula (12). Calculation by Formula (12) can even be simplified for symmetric fuzzy measures, because it is sufficient to define μ i = μ ( { x i , , x n } ) for any i [ n ] .
Now, we introduce a modified version of the original definition of residuum-based fuzzy integral presented in [29].
Definition 6.
Let ( X , A , ν ) be a complementary fuzzy measure space, and let f : X L . The →-fuzzy integral of f on X is given by
f d ν = A A x A f ( x ) ν ( A ) .
Note that a residuum-based fuzzy integral was also proposed by Dubois, Prade, and Rico in [30] under the name desintegral for reasoning with a decreasing evaluation scale. A comparison of both fuzzy integrals can be found in [31]. Similarly to the multiplication-based fuzzy integral, for measurable functions, we get a more pleasant computational formula.
Theorem 2.
Let ( X , A , ν ) be a complementary fuzzy measure space, and let f : X [ 0 , 1 ] be a measurable function. Then
f d ν = α [ 0 , 1 ] α ν ( { x X f ( x ) α } ) .
Proof. 
Denote L α = { x [ 0 , 1 ] x α } for any α [ 0 , 1 ] . It is easy to see that
f 1 ( L a ) = { x X f ( x ) L a } = { x X f ( x ) α } .
Put
K = A A x A f ( x ) ν ( A ) L = α [ 0 , 1 ] α ν f 1 ( L α ) .
First, we show that K L . Define λ f : A [ 0 , 1 ] by λ f ( A ) = x A f ( x ) . Obviously, we have A f 1 ( L λ f ( A ) ) , and thus ν ( f 1 ( L λ f ( A ) ) ) ν ( A ) by (ii) of Definition 3. Since λ f ( A ) [ 0 , 1 ] , we get
K = A A ( λ f ( A ) ν ( A ) ) A A ( λ f ( A ) ν ( f 1 ( L λ f ( A ) ) ) ) L ,
where we used the fact that the residuum is non-decreasing in its second variable.
Furthermore, we show that K L . Define ϱ f : [ 0 , 1 ] A by ϱ f ( α ) = f 1 ( L α ) . Since f is measurable, the function ϱ f is well defined. Obviously, we have x ϱ f ( α ) f ( x ) α for any α [ 0 , 1 ] and ϱ f ( [ 0 , 1 ] ) A . Hence, we obtain
K α [ 0 , 1 ] x ϱ f ( α ) f ( x ) ν ( ϱ f ( α ) ) α [ 0 , 1 ] ( α ν ( f 1 ( L α ) ) = L ,
where we used the fact that the residuum is non-increasing in its first variable. Hence, we obtain K = L , and the proof is completed.    □
As a corollary, we get a simple computational formula for measurable functions defined on finite set X = { x 1 , , x n } .
Corollary 2.
Let ( X , A , ν ) be a finite complementary fuzzy measure space, that is, X = { x 1 , , x n } , and let f : X [ 0 , 1 ] be measurable. Then
f d ν = i [ n ] f σ ( i ) ν i ,
where σ is a permutation on [ n ] such that f σ ( 1 ) f σ ( 2 ) f σ ( n ) , where f σ ( i ) = f ( x σ ( i ) ) for i [ n ] , and ν i = ν ( { x σ ( i ) , , x σ ( n ) } ) .
Proof. 
Analogously to the proof of Corollary 1, for α = 0 and f σ ( n ) < α 1 , we find that α ν ( { x X f ( x ) α } ) = α ν ( ) = α 1 = 1 . If f σ ( i 1 ) < α f σ ( i ) for i [ n ] (we put f σ ( 0 ) = 0 ), then
α ν ( { x X f ( x ) α } ) = α ν i f σ ( i ) ν i ,
where we used the fact that the residuum is non-increasing in its first variable. Hence, we get
α [ 0 , 1 ] α ν ( { x X f ( x ) α } ) i [ n ] f σ ( i ) ν i .
Since the opposite inequality is trivially true, we obtain the desired equality.    □
It should be noted that there is a relationship between both types of fuzzy integrals under specific conditions on the residuated lattice (see [31]). For more information on both types of fuzzy integrals, we refer to [1,16,28,29].

3. Lattice Integral Transforms

In this part, we introduce two types of integral transforms for lattice-valued functions related to multiplication and residuum-based fuzzy integrals. As with the classical integral transform, the key concept in our lattice integral transform theory is an integral kernel. The following definition was provided in [17].
Definition 7.
A fuzzy relation K : X × Y L that is normal in the second argument is said to be an integral kernel.
The next definition generalizes the upper and lower F-transforms and unifies the definitions of lattice integral transforms mentioned in the Introduction (see [1]).
Definition 8.
Let ( X , A , μ ) be a fuzzy measure space, let K : X × Y [ 0 , 1 ] be an integral kernel, and let { , } . A function F ( K , μ ) : F ( X ) F ( Y ) defined by
F ( K , μ ) ( f ) ( y ) = K ( x , y ) f ( x ) d μ
is called a ( K , μ , ) -lattice integral transform.
The elementary properties of the integral transform for lattice-valued functions can be presented in the following theorem.
Theorem 3.
Let { , } , and put F = F ( K , μ ) . For any f , g F ( X ) and α [ 0 , 1 ] , we have
(i) 
F ( f ) F ( g ) if f g ;
(ii) 
F ( f g ) F ( f ) F ( g ) ;
(iii) 
F ( f ) F ( g ) F ( f g ) ;
(iv) 
α F ( f ) F ( α f ) ;
(v) 
F ( α f ) α F ( f ) .
Proof. 
See [1].    □
The next theorem introduced without proof in [17] (see also [8]) shows conditions under which a constant function (fuzzy set) α ̲ X is transformed into a constant function α ̲ Y , that is, F ( K , μ ) ( α ̲ X ) = α ̲ Y . For an integral kernel K on X × Y and y Y , we use K y to denote a fuzzy subset of X given by K y ( x ) = K ( x , y ) for any x X . Recall that Core ( K y ) follows from the definition of the integral kernel.
Theorem 4.
Let ( X , A , μ ) be a fuzzy measure space, let K be an integral kernel, and let α [ 0 , 1 ] .
(i) 
If for any y Y there exists A y A such that A y Core ( K y ) and μ ( A y ) = 1 , then F ( K , μ ) ( α ̲ X ) = α ̲ Y .
(ii) 
If for any y Y and for any A A with A X \ Core ( K y ) it holds that μ ( A ) α , then F ( K , μ ) ( α ̲ X ) = α ̲ Y .
Proof. 
(i) Let α [ 0 , 1 ] and y Y . By the assumption of (i), we assume that there is A y Core ( K y ) such that μ ( A y ) = 1 . Then
F ( K , μ ) ( α ̲ X ) ( y ) = K ( x , y ) α ̲ X ( x ) d μ = A A ( μ ( A ) x A ( K ( x , y ) α ̲ X ( x ) ) = A A ( μ ( A ) x A ( K ( x , y ) α ) μ ( A y ) x A y ( K ( x , y ) α ) = 1 α = α .
On the other hand, it is trivially true that μ ( A ) x A ( K ( x , y ) α ) α for any A A . Therefore, we find F ( K , μ ) ( α ̲ X ) ( y ) α , which proves the desired equality.
(ii) Let α [ 0 , 1 ] and y Y . By the assumption of (ii), for any A A such that A X \ Core ( K y ) , we have μ ( A ) α . Since Core ( K y ) , we get X X \ Core ( K y ) . Then
F ( K , μ ) ( α ̲ X ) ( y ) = K ( x , y ) α ̲ X ( x ) d μ = A A A X \ Core ( K y ) ( μ ( A ) x A ( K ( x , y ) α ) ) A A A X \ Core ( K y ) ( μ ( A ) x A ( K ( x , y ) α ) ) A A A X \ Core ( K y ) ( α μ ( A ) ) A A A X \ Core ( K y ) μ ( A ) = α A A A X \ Core ( K y ) μ ( A ) = α μ ( X ) = α ,
where we used the distributivity of ⊗ over ⋁, the equality
x A ( K ( x , y ) α ) ) = α
for any A X \ Core ( K y ) , which follows from K ( x , y ) = 1 for some x A , 1 α = α , and β α α for any β [ 0 , 1 ] , and the assumption stating that μ ( A ) α for any A A , such that A X \ Core ( K y ) . On the contrary, we have
F ( K , μ ) ( α ̲ X ) ( y ) x X K ( x , y ) α ̲ X ( x ) = x X ( K ( x , y ) α ) = α ,
where we used the same arguments as above, which proves the desired equality.    □
It is worth noting that the standard real-valued F-transforms as well as lower and upper lattice-valued F-transforms preserve constant functions; therefore, it seems to be reasonable to assume that integral kernels and fuzzy measures as the parameters of the integral transforms satisfy the conditions under which the constant functions are preserved.
Example 9.
Let ( X , A ) be a measurable space with X = { x 1 , , x n } and A = P ( X ) , and let M r be the class of fuzzy measures on ( X , A ) introduced in Example 7. Let K : X × Y [ 0 , 1 ] be an integral kernel, where Y = { y 1 , , y m } and put u = min { # Core ( K y j ) y j Y } / n . Then the class
M u r = { μ φ , u p r [ 0 , 1 ] , u , p N , p > 0 }
consists of all fuzzy measures, for which the ( K , μ , ) -integral transform preserves constant functions. Indeed, we trivially have Core ( K y j ) A for any y j Y . By the definition of u, we find that for any y j Y it holds
μ φ , u p r ( Core ( K y j ) ) = φ , u p ( # Core ( K y j ) / n ) = 1
for any u and p > 0 , since u # Core ( K y j ) / n . Therefore, the assumption in (i) of Theorem 4 is satisfied, and thus the ( K , μ , ) -integral transform preserves constant functions for any μ M u r .
In addition, the class
M u r , c , N = { μ φ , u p , c , N r [ 0 , 1 ] , u , p N , p > 0 }
consists of all fuzzy measures (N-conjugate fuzzy measures to fuzzy measures from M u r ), for which the ( K , μ , ) -integral transform preserves constant functions. Indeed, let us show that an N-conjugate fuzzy measure to μ M u r satisfies the assumption in (ii) of Theorem 4. Let μ = φ , u p μ r . Recall that μ N c ( A ) = N ( μ ( X \ A ) ) for any A A . Let y j Y , B A be arbitrary, such that B X \ Core ( K y j ) , and put s = # B . Since # Core ( K y j ) / n u , we find that s = # B # ( X \ Core ( K y j ) ) n n · u ; therefore, μ r ( X \ B ) = # ( X \ B ) / n = ( n s ) / n = 1 s / n 1 ( 1 u ) = u . Since N is a non-increasing function and φ l , u p is a non-decreasing function, we get
μ N c ( B ) = N ( μ ( X \ B ) ) = N ( φ l , u p ( μ r ( X \ B ) ) ) N ( φ l , u p ( u ) ) = N ( 1 ) = 0 ,
where φ l , u p ( u ) = 1 follows from the definition of φ l , u p . Hence, the assumption in (ii) of Theorem 4 is satisfied, and thus the ( K , μ , ) -integral transform preserves arbitrary constant functions for any fuzzy measure from M u r , c , N .
The next definition introduces a “reverse” alternative to the lattice integral transform introduced above, where the residuum-based fuzzy integral on a complementary fuzzy measure space is considered instead of the multiplication one.
Definition 9.
Let ( X , A , ν ) be a complementary fuzzy measure space, let K : X × Y L be an integral kernel, and let { , } . A function G ( K , ν ) : F ( X ) F ( Y ) defined by
G ( K , ν ) ( f ) ( y ) = K ( x , y ) f ( x ) d ν
is called a ( K , ν , ) -reverse lattice integral transform.
We use the term “reverse lattice integral transform” to simply distinguish between both types of lattice integral transforms. The next theorem presents selected properties of the reverse lattice integral transform.
Theorem 5.
Let { , } , and put G = G ( K , ν ) . For any f , g F ( X ) and α [ 0 , 1 ] , we have
(i) 
G ( f ) G ( g ) if f g ;
(ii) 
G ( f g ) G ( f ) G ( g ) ;
(iii) 
G ( f ) G ( g ) G ( f g ) ;
(iv) 
G ( α f ) α G ( f ) ;
(v) 
G ( α f ) α G ( f ) .
Proof. 
See [16].    □
Similarly to Theorem 4, we are interested in sufficient conditions under which reverse lattice integral transforms ensure the reversal of constant functions, i.e., G ( K , ν ) ( α ̲ X ) = ¬ α ̲ Y , where ¬ is the standard negation defined by the residuum, i.e., ¬ α = α 0 .
Theorem 6.
Let ( X , A , ν ) be a complementary fuzzy measure, let K be an integral kernel, and let α [ 0 , 1 ] .
(i) 
If for any y Y there exists A y A such that A y Core ( K y ) and ν ( A y ) = 0 , then G ( K , ν ) ( α ̲ X ) = ¬ α ̲ Y ;
(ii) 
If for any y Y and for any A A with A X \ Core ( K y ) it holds that ν ( A ) ¬ α , then G ( K , ν ) ( α ̲ X ) = ¬ α ̲ Y .
Proof. 
(i) Let y Y , and α ̲ X F ( X ) . Assume that there is A y Core ( K y ) such that ν ( A y ) = 0 . Then
G ( K , ν ) ( α ̲ X ) ( y ) = K ( x , y ) α ̲ X ( x ) d ν = A A x A ( K ( x , y ) α ) ν ( A ) x A y ( 1 α ) 0 = α 0 = ¬ α = ¬ α ̲ Y ( y ) .
On the other hand, for any A A , we trivially have x A ( K ( x , y ) α ) ν ( A ) α 0 = ¬ α ̲ Y ( y ) , where we used the monotonically non-increasing in the first argument and the monotonically non-decreasing in the second argument of residuum. Hence, we find G ( K , ν ) ( α ̲ X ) ( y ) ¬ α ̲ Y ( y ) , which proves the desired equality.
(ii) Let y Y . Since Core ( K y ) , so X X \ Core ( K y ) . Then
G ( K , ν ) ( α ̲ X ) ( y ) = K ( x , y ) α ̲ X ( x ) d ν = A A A X \ Core ( K y ) x A ( K ( x , y ) α ) ν ( A ) A A A X \ Core ( K y ) x A ( K ( x , y ) α ) ν ( A ) A A A X \ Core ( K y ) ( 1 ν ( A ) ) A A A X \ Core ( K y ) ( α ν ( A ) ) ¬ α ( α 0 ) = ¬ α = ¬ α ̲ Y ( y ) ,
where we used that the residuum is monotonically non-increasing in the first component and the monotonically non-decreasing in the second component, i.e., trivially K ( x , y ) α 1 , therefore, ( K ( x , y ) α ) ν ( A ) 1 ν ( A ) = ν ( A ) ¬ α for A X \ Core ( K y ) by the assumption in (ii). On the contrary, we have:
G ( K , ν ) ( α ̲ X ) ( y ) x X ( K ( x , y ) α ) ν ( X ) = α 0 = ¬ α = ¬ α ̲ Y ( y ) ,
where we used the fact that K ( x , y ) α α for any ( x , y ) X × Y and K ( x , y ) α = 1 α = α for any x Core ( K y ) , which proves the desired equality.    □
Example 10.
From Lemma 2, we know that a complementary fuzzy measure can be introduced from a given fuzzy measure using a negation N on [ 0 , 1 ] as ν N ( A ) = N ( μ ( A ) ) for any A A . It is easy to observe that if K is an integral kernel and μ a fuzzy measure such that (i) (or (ii)) of Theorem 4 is satisfied, then ν N is a complementary fuzzy measure that satisfies (i) (or (ii)) of Theorem 6, where N = ¬ for case (ii). In fact, if μ ( A y ) = 1 for some A y Core ( K y ) , then ν N ( A y ) = N ( μ ( A y ) ) = N ( 1 ) = 0 . Similarly, if for any A X \ Core ( K y ) , we have μ ( A ) α , then ν N ( A ) = N ( μ ( A ) ) N ( α ) = ¬ α . Obviously, if G ( K , ν ) has to reverse an arbitrary constant function, that is, (ii) of Theorem 6 holds for any α [ 0 , 1 ] , which is equivalent to ν ( A ) = 1 holds for any A A with A X \ Core ( K y ) , then we can consider an arbitrary negation N on [ 0 , 1 ] to get the desired reversal.

4. Application of Lattice Integral Transforms to Image Processing

In this part, we apply lattice integral transforms (LITs for short) to image processing, namely, non-linear filtering, compression/decompression and closing/opening of images. For the purpose of this paper, we restrict ourselves to grayscale images. We assume that an image h of the size N × M (the number of pixels in rows and columns) is a function I : D [ 0 , 1 ] , where D = { ( i , j ) 1 i N , 1 j M } and the value I ( i , j ) expresses the intensity of shades of gray from black to white for the pixel at the position ( i , j ) D . For simplicity, we assume that the shade of gray can be determined for any number from [ 0 , 1 ] . Since an image is a two-dimensional function, we consider lattice integral transforms from F ( D 1 ) to F ( D 2 ) , where D 1 is the domain of original (input) images and D 2 is the domain of output images (e.g., compressed images). In the following part, we first describe in detail the way in which the lattice integral transforms are applied to the above tasks and then demonstrate them in various images. For an introduction to methods used in non-linear image processing, we refer to [32,33].

4.1. Method Description

Let N , M , ϱ be natural numbers such that ϱ divides N and M. Denote n = N / ϱ and m = M / ϱ . The number ϱ will be called the shift and ϱ 2 : 1 will express compression ratio. Denote D = { ( i , j ) 1 i N , 1 j M } and D ϱ = { ( i , j ) 1 i n , 1 j m } , where D ϱ provides the domain for compressed images ( ϱ > 1 ) or filtered images ( ϱ = 1 ).
Let r , s be natural numbers such that ϱ r N and ϱ s M , and denote [ r , r ] = { r , , 0 , , r } and similarly for [ s , s ] . Let W = { w i , j i [ r , r ] , j [ s , s ] } be an ( 2 r + 1 ) × ( 2 s + 1 ) matrix of values from [ 0 , 1 ] , which will be referred to as window of size R × S , where R = 2 r + 1 and S = 2 s + 1 . A window W specifies the weights assigned to pixels in the neighborhood of a corresponding pixel in the input image. In our application, we assume that w 00 = 1 . Note that W can be viewed as a normal fuzzy relation on [ r , r ] × [ s , s ] .
To properly process the pixels at the edges of the images, we extend D to a broader domain given as
D r , s = { ( i , j ) r + 1 i N + r , s + 1 j M + s } ,
and consider a function  ^ : F ( D ) F ( D r , s ) that each image I F ( D ) extends to an image I ^ F ( D r , s ) such that I ^ ( i , j ) = I ( i , j ) for any ( i , j ) D . The extension of I for pixels from D r , s \ D can be adjusted in different ways according to the given task. For example, we can consider the following extending functions:
(a)
I ^ ( i , j ) = I ( i , j ) , for ( i , j ) D , and I ^ ( i , j ) = 1 , otherwise, which is used in dilation;
(b)
I ^ ( i , j ) = I ( i , j ) , for ( i , j ) D , and I ^ ( i , j ) = 0 , otherwise, which is used in erosion;
(c)
I ^ ( i , j ) = I ( i , j ) , where
i = 2 · max ( 1 , min ( N , i ) ) i and j = 2 · max ( 1 , min ( M , j ) ) j .
It is easy to see that i = i and j = j , whenever 1 i N and 1 j M , therefore, the definition of extension in case (c) is correct. In case (c), the grayscale intensity in the new pixels is mirrored over the edges.

4.1.1. Image Filtering

Filtering is a technique to adjust or enhance an image. For example, we can filter an image to emphasize certain elements or remove other elements. Filtering is a neighborhood operation in which the value of any given pixel in the output image is determined by applying some algorithm to the values of the pixels in the neighborhood of the corresponding pixel in the input image. Our approach based on the lattice integral transforms provides a class of non-linear filters which includes some of the known filters as median filter, or minimum and maximum filter.
A lattice integral transform (LIT-)filter for the images in F ( D ) is defined as a lattice integral transform F ( K W , μ ) : F ( D r , s ) F ( D ) , where K W : D r , s × D [ 0 , 1 ] is an integral kernel determined by a widow W of size R × S given by
K W ( ( i , j ) , ( i , j ) ) = W ( i i , j j ) , | i i | r and | j j | s , 0 , otherwise ,
and μ is a fuzzy measure defined on ( D r , s , P ( D r , s ) ) . Furthermore, we assume that K W and μ are adjusted so that F ( K W , μ ) preserves constant functions (see Theorem 4). By Example 9, we can select μ M u r for = and μ M u r , c , N for = .
One can see that image filtering is provided by aggregation based on a Sugeno-like integral applied to the values in specific neighborhoods that are adjusted by the weights in the window W. More precisely, for any ( i , j ) D , there is determined the following neighborhood in D r , s :
N ( i , j ) = { ( i + k , j + ) r k r , s s }
collecting positions of pixels that are actually processed. The calculation of the output pixel value at position ( i , j ) D is given (using Corollary 1)
F ( K W , μ ) ( I ^ ) ( i , j ) = k [ p ] I ^ σ ( k ) K W ( σ ( k ) , ( i , j ) ) μ k ,
where p = # N ( i , j ) , σ : [ p ] N ( i , j ) is a bijection, such that
I ^ σ ( 1 ) K W ( σ ( 1 ) , ( i , j ) ) ) I ^ σ ( 2 ) K W ( σ ( 2 ) , ( i , j ) ) ) I ^ σ ( n ) K W ( σ ( n ) , ( i , j ) ) )
with I ^ σ ( k ) = I ^ ( σ ( k ) ) and μ k = { σ ( k ) , , σ ( n ) } . Therefore, the image filtering calculation procedure is very simple and fast.
By setting of the window (integral kernel), an operation { , } , and a fuzzy measure μ on ( D r , s , P ( D r , s ) ) , we can determine various types of non-linear filters. Assume that the window W consists of the weights w i , j { 0 , 1 } for any i [ r , r ] and j [ s , s ] . In Table 1, we show the operation ⋆ and the fuzzy measure μ (see Example 7) specifying the integral transform F ( K W , μ ) that determine the classical non-linear filters.
Note that, also, the weighted median could be introduced within the framework of integral transform, but the definition is not straightforward, because the window used for the weighted median contains natural numbers that determine the repetition of pixels in the window from which the median is calculated (see, [2,32]). A solution of this task is to extend the input image domain in a suitable way to respect the repetition of pixels according to the weights in the window and define the weighted median as an integral transform from the images over the extended domain to the original domain with the integral kernel that connects the positions of the pixels according to the repetitions in the window. Obviously, the specific choice of operation ⋆ has no influence on the result, because the weights are only 0 and 1, and ⋆ for 0 and 1 always give the same results regardless of the specific operation.
A reverse (negative) LIT-filter is defined similarly as a reverse lattice integral transform G ( K W , ν ) : F ( D r , s ) F ( D ) , where K W is the same integral kernel as in the previous case, and ν is a complementary fuzzy measure on ( D r , s , P ( D r , s ) ) , such that constant functions are reversed (see Theorem 6 and Example 10). In contrast to the LIT-filter, the reverse LIT-filter provides a negative output image, see, e.g., Figure 6e on page 21. Again, the calculation of the output pixel values is simple and fast and, with the help of Corollary 2, is given by
G ( K W , ν ) ( I ^ ) ( i , j ) = k [ p ] I ^ σ ( k ) K W ( σ ( k ) , ( i , j ) ) ν k ,
where p = # N ( i , j ) , σ : [ p ] N ( i , j ) is a bijection such that
I ^ σ ( 1 ) K W ( σ ( 1 ) , ( i , j ) ) ) I ^ σ ( 2 ) K W ( σ ( 2 ) , ( i , j ) ) ) I ^ σ ( n ) K W ( σ ( n ) , ( i , j ) ) )
with I ^ σ ( k ) = I ^ ( σ ( k ) ) and ν k = { σ ( k ) , , σ ( n ) } .

4.1.2. Image Compression

Image compression is a technique to reduce the size of the image. Similarly to image filtering, we introduce LIT-compression as a lattice integral transform F ( K W , μ ) : F ( D r , s ) F ( D ϱ ) , where ϱ > 1 is the shift, K W : D r , s × D ϱ [ 0 , 1 ] is an integral kernel determined by a widow W of size R × S given by
K W ( ( i , j ) , ( i , j ) ) = W ( ( i 1 ) ϱ i , ( j 1 ) ϱ j ) , | ( i 1 ) ϱ i | r and | ( j 1 ) ϱ j | s , 0 , otherwise ,
and μ is a fuzzy measure defined on ( D r , s , P ( D r , s ) ) . Again, we assume that K W and μ are adjusted in such a way that F ( K W , μ ) preserves constant functions. The procedure of calculation of image compression is performed in the same way as for image filtering, only the neighborhood in D r , s for ( i , j ) D ϱ is determined as
N ϱ ( i , j ) = { ( ( i 1 ) ϱ + 1 + k , ( j 1 ) ϱ + 1 + ) r k r , s s } .
Obviously, N = N ϱ for ϱ = 1 .
A reverse (negative) LIT-compression is defined analogously by a reverse lattice integral transform G ( K W , ν ) : F ( D r , s ) F ( D ϱ ) , where K W is the same integral kernel as in the previous case, and ν is a complementary fuzzy measure on ( D r , s , F ( D r , s ) ) such that constant functions are reversed.

4.1.3. Image Decompression

Unlike image compression, image decompression is used to reconstruct the original image from its compression. To introduce image decompression, in the first step, we extend the domain D ϱ to the domain D ϱ , u , v , where u denotes the integer part of r / ϱ and similarly v denotes the integer part of s / ϱ . To better understand our motivation for the definition of extension, consider the situation ϱ = r = s , that is, u = 1 = v . For any pixel position ( i , j ) D ϱ of output images, the neighborhood N ϱ ( i , j ) of the pixel at the position ( ( i 1 ) ϱ + 1 , ( j 1 ) ϱ + 1 ) in D r , s , over which the calculation is provided, contains positions ( ( i + a 1 ) ϱ + 1 , ( j + b 1 ) ϱ + 1 ) for u a u and v b v , where ( i + a , j + b ) D ϱ can occur in general. So, once we use the pixel values at positions ( ( i + a 1 ) ϱ + 1 , ( j + b 1 ) ϱ + 1 ) to calculate image compression, it seems reasonable to use the pixel values at positions ( i + a , j + b ) to account for the reconstructions of compressed images.
Assume that LIT-compression with the ratio ϱ 2 : 1 is performed by F ( K W , μ ) for { , } , and denote ¯ the adjoined operation to ⋆, e.g., if = , then ¯ = . The LIT-decompression is introduced as a lattice integral transform F ( K W 1 , μ ) ¯ : F ( D ϱ , u , v ) F ( D ) , where K W 1 : D ϱ , u , v × D [ 0 , 1 ] is the integral kernel determined by a widow W of size R × S given by
K W 1 ( ( i , j ) , ( i , j ) ) = W ( ( i 1 ) ϱ i , ( j 1 ) ϱ j ) , | ( i 1 ) ϱ i | r and | ( j 1 ) ϱ j | s , 0 , otherwise ,
μ is a fuzzy measure defined on ( D ϱ , u , v , P ( D ϱ , u , v ) ) . Furthermore, we assume that K W 1 and μ are adjusted so that F ( K W 1 , μ ) ¯ preserves constant functions.
It is easy to see that the integral kernel K W 1 is the inverse to K W (for the definition of the inverse fuzzy relation, see page 6) if we restrict ourselves to the original domains D and D ϱ , that is, K W 1 ( ( i , j ) , ( i , j ) ) = K W ( ( i , j ) , ( i , j ) ) for any ( i , j ) D and ( i , j ) D ϱ .
A reverse (negative) LIT-decompression is defined analogously by a reverse lattice integral transform G ( K W 1 , ν ) ¯ : F ( D ϱ , u , v ) F ( D ) , where K W 1 is the same integral kernel as in the previous case, and ν is a complementary fuzzy measure on ( D ϱ , u , v , F ( D ϱ , u , v ) ) , such that constant functions are reversed. It should be noted that the decompression of the negative image, which is a result of the compression procedure, we again get a positive image.

4.1.4. Opening and Closing

Opening and closing are two important morphological operators. They are both derived from the fundamental operations of erosion and dilation, namely, the opening is defined as an erosion followed by a dilation, and vice versa for closing. Opening is generally used to restore the original image to the maximum possible extent. It eliminates the thin protrusions of the obtained image and is also used to remove internal noise. Closing is generally used to smooth the contour of the distorted image and fuse back the narrow breaks and long, thin gulfs. It is also used to remove the small holes in the obtained image.
In our case, we consider the opening and closing defined by fuzzy morphological erosion and dilation, which correspond to the direct lower and upper lattice fuzzy transforms, respectively, as was shown in [15]. The fuzzy morphological erosion (dilation) is defined in a way similar to the minimum (maximum) filter introduced in Table 1. More precisely, fuzzy morphological erosion is the ( K W , μ , ) -lattice integral transform from F ( D r , s ) to F ( D ) , where μ denotes the least fuzzy measure on the powerset P ( D r , s ) and the window W consists of arbitrary weights from [ 0 , 1 ] , as described in Section 4.1. The fuzzy morphological dilation is the ( K W , μ , ) -lattice integral transform from F ( D r , s ) to F ( D ) , where μ denotes the highest fuzzy measure on the powerset P ( D r , s ) and again the window W consists of arbitrary weights from [ 0 , 1 ] . However, the lattice integral transforms provide an opportunity to generalize the fuzzy morphological erosion (dilation), so that instead of the least (highest) fuzzy measure, we can consider fuzzy measures that are close (but not equal) to the least (highest) fuzzy measure. The combination of more general fuzzy morphological operations introduces a generalization of opening and closing. More precisely, a generalized opening (LIT-opening) operation is obtained as the composition of the ( K W , μ , ) -lattice integral transform (LIT-erosion) and ( K W , μ , ) -lattice integral transform (LIT-dilation) that are set to preserve constant functions and μ is close to μ and μ to μ . The reverse composition of the previous lattice integral transforms leads to a generalized closing (LIT-closing) operation. Other alternatives to opening and closing can be obtained by applying reverse lattice integral transforms.

4.2. Illustration of Filtering, Compression/Decompression, and Opening/Closing

The aim of this part is to illustrate our method based on integral transforms for lattice-valued functions. We do not have the ambition to present results that surpass current approaches, but we want to show that lattice integral transforms provide a useful tool for extending selected methods with a wide space for setting parameters that can be used to solve various tasks in image processing. We believe that certain parameter settings could provide interesting alternatives to popular techniques such as the median, minimum, or maximum filter, opening and closing, and the (reverse) lattice integral transforms can be used to introduce other useful types of filters and morphological operators. However, a detailed analysis is beyond the scope of this article, and we leave it for future work.
For illustration, we assume complete residuated lattices determined by continuous t-norms from the Schweizer–Sklar class of t-norms T λ S S (see Example 2) and negations N = N λ S S determined by the residuum T λ S S for λ > 0 (see Example 3). Note that N λ S S are involutive for λ > 0 , that is, N λ S S N λ S S = i d [ 0 , 1 ] , where i d [ 0 , 1 ] denotes the identity function on [ 0 , 1 ] . In addition, we consider a fuzzy measure μ = μ , u p = μ r φ , u p for the ( K , μ , ) -lattice integral transform and an N-conjugate fuzzy measure μ N c = μ , u p , c , N = μ r φ , u p , c , N for the ( K , μ , ) -lattice integral transform, which were introduced in Examples 6 and 7, and a complementary fuzzy measure ν = N μ = μ N for the reverse ( K , ν , ) -lattice fuzzy integral and a complementary N-conjugate fuzzy measure ν N c = N μ N c for the reverse ( K , ν , ) -lattice integral transform, which were discussed in Example 10. Since the negation N is involutive in our case, we get ν N c = μ c .
For image filtering and other tasks based on our method, we have prepared a program in Mathematica v. 12 software, which is sufficient for our illustration, but insufficient for real applications. In this direction, we plan to prepare the code in Python.

4.2.1. Image Filtering

For illustration, we consider the Cameraman image (256 × 256) with 30 % and 40 % of salt-and-pepper noise, see Figure 6b and Figure 7b, where we assume that the salt and pepper noise is in the ratio 2:1 and 3:1, respectively. The reason for the non-uniform distribution of salt and pepper noise is to show that (reverse) LIT-filters provide a more efficient way to reduce noise due to greater parameter flexibility than the standard median filter and its combination with minimum filter. Note that the median filter provided the best solution in case of the uniform distribution of salt and pepper noise in our experiment. To compare results of (reverse) LIT-filters with the median filter approach, we use the same window of size 3 × 3 with all weights equal to 1. Further, we consider λ = 2 , which specify the used t-norm, residuum, and negation. The fuzzy measure is the crucial parameter in our experiment and its setting will be specified for each result of (reverse) LIT-filters.
Filtering results of 30% salt-and-pepper noise (2:1 ratio) for different filters are displayed in Figure 6. In our demonstration, we also consider the application of two filters in succession to show the effect of the composition of LIT-filters determined by the multiplication and residuum. In Figure 6c–e, one can see the results of the median filter and the LIT-filter with the multiplication (M-LIT-filter) with the fuzzy measure μ = μ 0.56 , 0.67 5 , and the reverse LIT-filter with the multiplication (M-reverse LIT-filter) with the complementary fuzzy measure ν derived from μ . By adjusting the fuzzy measure μ , we can remove more salt noise, see Figure 6d, compared to the median filter, see Figure 6c, with the presence of a higher proportion of pepper noise. The negative image as the result of the M-reverse LIT-filter seems unnecessary at first glance, especially if we want to work with it immediately without further processing. In Figure 6f–i, one can see the results of combinations of two filters. Particularly, we use the double application of the median filter (D-Median filter) and the application of the median filter and then the minimum filter (Min-Median filter). Further, the composition of the LIT-filters with the multiplication and residuum (MR-LIT-filter), where the R-LIT-filter with the N-conjugate fuzzy measure μ N c derived from μ = μ 0.5 , 0.5 1 (the same fuzzy measure as for the median filter, see Table 1) is applied on the result of the M-LIT-filter displayed in Figure 6d. Finally, the composition of the reverse LIT-filters with the multiplication and residuum (MR-reverse LIT-filter), where the R-reverse LIT-filter with the N-conjugate complementary fuzzy measure ν N c derived from μ = μ 0.39 , 0.56 5 is applied on the result of the M-reverse LIT-filter displayed in Figure 6e. Comparing the results visually, the MR-reverse LIT-filter in Figure 6i provides the best filtering. This claim is also underlined by the highest PSNR among others in Table 2.
Filtering results of 40% salt-and-pepper noise (3:1 ratio) for different filters are displayed in Figure 7. We consider the same filters as in the previous case. The M-LIT filter has the same fuzzy measure as above. For the MR-LIT-filter, we consider the conjugate fuzzy measure μ N c derived from μ = μ 0.23 , 0.5 in the setting of R-LIT-filter, which is applied on the result of the M-LIT-filter in Figure 7d. The M-reverse LIT-filter and MR-reverse LIT-filter have the same setting as in the previous case. Again, the MR-reverse LIT-filter provides the best result both visually and supported by the highest PSNR (see Table 2).
To summarize the results, the filters based on (reverse) integral transforms seem to be useful in filtering non-uniform salt-and-pepper noise from images. For the sake of comparison, the only parameter here was the fuzzy measure whose setting improves the results for the median filter. The further development of more sophisticated filters based on (reverse) lattice integral transforms is the subject of future research.

4.2.2. Image Compression and Decompression

For illustration, we use the Lena image (256 × 256) and the compression ratio of 4:1, that is, the shift is ϱ = 2 . We consider the window of size 5 × 5 with the weights equal to 1 around the center and other less than 1, more specifically, w i j = 1 for i , j [ 3 , 3 ] and w i j < 1 , otherwise. The respective integral kernel is denoted by K. Additionally, we consider λ { 0.5 , 1 , 2 } , which specifies the operations used.
For LIT-compression, we consider the fuzzy measure μ = μ 0.16 , 0.36 5 , and the remaining fuzzy measures are derived from μ as follows: μ N c is the conjugate fuzzy measure to μ , ν = μ N is the complementary fuzzy measure, and ν N c is the conjugate complementary fuzzy measure to ν . The results of LIT-compression of the Lena image for different settings are displayed in Figure 8 (the figure is partially adopted from [8]). In particular, the multiplication-based (M-) LIT-compression and residuum-based (R) LIT-compression are presented in Figure 8a,b. The negative output image for the multiplication-based (M-)reverse LIT-compression and the residuum-based (R-)reverse LIT-compression can be seen in Figure 8c,d.
For LIT-decompression, we consider the highest fuzzy measure as μ on P ( D ϱ , u , v ) and the remaining fuzzy measures are again derived from μ as for μ , where we use ν = μ N . The reason for setting μ is the fact that the cores of the inverse integral kernel K 1 have the form of singleton, two, and four element sets. Therefore, according to Theorem 4 and the fact that we consider a symmetric fuzzy measure (see Remark 1), we must assign the fuzzy measure μ equal to 1 to all singletons leading to the highest fuzzy measure. The results of the decompression of the compressed Lena image in Figure 8 for different settings are shown in Figure 9 (the figure is partially adopted from [8]). The (reverse) LIT-image decompression always uses the adjoined operation to that which is applied in the LIT-image compression; i.e., the R-(reverse) LIT-decompression is applied to the M-(reverse) LIT-compression, where the residuum (R) is an adjoined operation to the multiplication (M), and vice versa.
In principle, lattice integral transforms lead to lossy (irreversible) compression, and the question is whether the quality of reconstructed images can be improved by appropriate parameter settings, which is the subject of our future research. To compare the quality of Lena image decompression for the various types of LIT-decompression, we calculated the PSNR for each reconstructed Lena image. The results are shown in Table 3, according to which the best decompression is obtained by the R-LIT-decompression with λ = 0.5 (the left image in Figure 9b).

4.2.3. Opening and Closing

For the last illustration in this paper, we use a 300 × 300 binary image with black balls inside a white circle, which can be seen in Figure 10a. Similarly to compression, we consider the window (structuring element) W of size 5 × 5 with the weights equal to 1 around the center and other less than 1.
By setting the window W, the effect of the morphological operations can be seen on white pixels. As we stated above, in our case, opening and closing operations are fuzzy morphological operations that can be expressed in terms of lattice integral transforms as compositions of fuzzy morphological erosion and dilation.
The results of fuzzy morphological erosion, dilation, opening, and closing for the considered image with respect to the given window are shown in Figure 10b–e. For example, we can see that the white space erodes in Figure 10b and is extended in Figure 10c. For comparison, we consider the LIT-dilation defined as the ( K W , μ , ) -lattice integral transform with μ = μ 0.12 , 0.24 , which is close to the highest fuzzy measure μ , and the LIT-erosion as the ( K W , μ , ) -lattice integral transform with μ = μ c , which is close to μ . Further, we use the t-norm T λ S S and its residuum T λ S S with λ = 1 in the definitions of lattice integral transforms. The LIT-opening is defined as the composition of LIT-erosion and LIT-dilation, and vice verse for the LIT-closing. The results of all modified fuzzy morphological operations are displayed in Figure 10f–i. The effect of the newly defined conjugate fuzzy measure μ in the LIT-erosion is obvious and consists in a smaller erosion of white part in the image in contrast to the fuzzy erosion. The opposite effect can be recognized for the LIT-dilation defined by the fuzzy measure μ . The LIT-opening provides a better restoration of the original image than fuzzy opening, and the LIT-closing leaves more of the black circle than the fuzzy closing. Interestingly, morphological operations based on lattice integral transforms better preserves the shape of black balls in image.

4.3. Remark on Method Complexity

The complexity of the method depends on the implemented algorithm. In case the output pixel of the median filter is calculated by the brute-force method, i.e., first a list of pixel values in the filter window (kernel) is built, then it is sorted and finally the median is determined as the middle value in the list, the complexity of the algorithm is O ( R 2 log R ) for a window of size R × R (see, e.g., [34,35]). When a constant number of possible pixel values is considered, as in the case of 8-bit images, a bucket sort can be used resulting in O ( R 2 ) complexity [34]. Fast algorithms for median filters use a histogram instead of a sorting algorithm to calculate the median with O ( 1 ) complexity. The classical algorithm proposed by Huang et al. in [36] and used in virtually all publicly available implementations, provides O ( R ) complexity (see, also, [34]). An improvement of the Huang’s algorithm was proposed in [34] which decreases the complexity of the median filter to O ( 1 ) . Nevertheless, as was noted in [35], a disadvantage of this method is a high memory consumption and a complicated implementation in hardware. In [37], the authors show that even for the weighted median filter the standard complexity O ( R 2 ) can be reduced to O ( R ) with the help of a joint histogram. This is possible under the assumption that the weights do not varies according to feature distance. It should be noted that all approaches reducing the complexity of the (weighted) median filter to O ( R ) or even O ( 1 ) use a trick that simplifies the histogram update, since this step is crucial to determine the complexity of the algorithm.
To discuss the complexity of a non-linear filter based on lattice integral transforms, we present the basic steps of the method in Algorithm 1, where the operation ⋆ represents one of the operations ⊗ and →.
Algorithm 1 Non -linear filter based on lattice integral transform.
Input: Image I of size N × M , window W = { w k , } of size R × R with R = 2 r + 1
Output: Image J of the same size as I
 Initialize pixel neighborhood H = { H k }
for  i = 1 to N do
  for  j = 1 to M do
   for  k = r to r do
    for  = r to r do
     Calculate pixel neighborhood H = { H k } with H k = I ( i + k , j + ) w k ,
    end for
   end for
    J ( i , j ) Integrate ( H )
  end for
end for
The algorithm shows that the list H representing the “weighted pixels” in the neighborhood must be updated at each step, resulting in O ( R 2 ) complexity. To calculate the Sugeno-like integral of the list H, we need three consecutive procedures (cf. Corollary 1): sort the list H, multiply it by the list of measure values, and find the maximum, which results in O ( R 2 log R ) complexity, i.e., the complexity of sorting the list H, which is the most complex procedure of all. If a constant number of possible pixel values is considered, the complexity can be reduced to O ( R 2 ) by using the bucket sort. To summarize, the complexity of the proposed filter is the same as the complexity of the weighted median filter. Since the scheme of the compression/decompression algorithm is analogous to Algorithm 1, only the image size J in the output is different, the same complexity also holds for these tasks.

5. Conclusions

In this paper, we demonstrated an application of (reverse) integral transforms for lattice-valued functions to image processing. We introduced two types of lattice integral transforms and showed some of their properties, including the preservation (reversion) of constant functions, which is an important property considered in image processing. Specifically, we used lattice integral transforms for image filtering, compression/decompression, and extension of fuzzy morphological opening and closing operations. The proposed methods are illustrated on different images. The advantage of the application of lattice integral transforms in image processing is a wide range of settings where the user can combine the integral kernel (window), fuzzy measure, and the definitions of multiplication, residuum, and negation operations. The provided demonstration cannot be taken as a comprehensive presentation of image processing methods based on lattice integral transforms, but rather as a new and perspective approach that could expand the class of similar methods as non-linear filters or (fuzzy) morphological operations.
In future research, we plan to analyze in detail the relationship between the setting of lattice integral transform parameters and the results for various tasks in image processing and compare outputs also with other non-linear approaches on a large image datasets. In addition, we also intend to apply the proposed approach to color images or videos as follows. The movie is decoded into individual frame(s) and accessed separately. The color image is then divided into color channels and independently processed one by one. The standard RGB color model is suitable for noise filtering. For compression, it is preferable to use the YUV color model, where U and V are compressed more strongly than the Y component that contains information important to human perception. Finally, the proposed method can be used as a pooling layer in deep neural networks. Here, pooling is a layer without trainable parameters that reduces spatial dimension, and it is one of the basic layers used in convolutional neural networks. Contrary to standard pooling operations of mean or maximum, we access the spatial information in a more sophisticated way, from which a neural network should benefit. The implementation and confirmation of this hypothesis is our next challenge.

Author Contributions

M.H.: conceptualization, methodology, investigation, formal analysis, visualization, writing—original draft, writing—review and editing, V.B.Q.: software, investigation, visualization, writing—review and editing, P.F.: software, investigation, writing—review & editing. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the ERDF/ESF project AI-Met4AI under No. CZ.02.1.01/0.0/0.0/17_049/0008414.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
LITLattice Integral Transform
MMultiplication
RResiduum

References

  1. Holčapek, M.; Bui, V. Integral transforms on spaces of complete residuated lattice valued functions. In Proceedings of the IEEE World Congress on Computational Intelligence (WCCI), Glasgow, UK, 19–24 July 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 1–8. [Google Scholar]
  2. Arce, G.R. Nonlinear Signal Processing: A Statistical Approach; John Wiley & Sons: Hoboken, NJ, USA, 2005. [Google Scholar]
  3. Serra, J. Image Analysis and Mathematical Morphology, Vol. 2: Theoretical Advances; Academic Press: New York, NY, USA, 1988. [Google Scholar]
  4. Ronse, C. Why mathematical morphology needs complete lattices. Signal Process. 1990, 21, 129–154. [Google Scholar] [CrossRef]
  5. Heijmans, H. Morphological Image Operators; Academic Press: New York, NY, USA, 1994. [Google Scholar]
  6. Keener, J. Principles of Applied Mathematics: Transformation and Approximation, 4th ed.; Westview Press: Cambridge, UK, 2000. [Google Scholar]
  7. Perfilieva, I. Fuzzy transforms: Theory and applications. Fuzzy Sets Syst. 2006, 157, 993–1023. [Google Scholar] [CrossRef]
  8. Holčapek, M.; Quoc, V.B. On an application of integral transforms for lattice-valued functions in image processing. In Proceedings of the Information Processing Management of Uncertainty (IPMU), Milan, Italy, 11–15 July 2022; Springer Nature: Cham, Switzerland, 2022; pp. 471–482. [Google Scholar]
  9. Močkoř, J. Spaces with fuzzy partitions and fuzzy transform. Soft Comput. 2017, 21, 3479–3492. [Google Scholar] [CrossRef]
  10. Močkoř, J. Axiomatic of lattice-valued F-transform. Fuzzy Sets Syst. 2018, 342, 53–66. [Google Scholar] [CrossRef]
  11. Močkoř, J. F-transforms and semimodule homomorphisms. Soft Comput. 2019, 23, 7603–7619. [Google Scholar] [CrossRef]
  12. Močkoř, J.; Holčapek, M. Fuzzy objects in spaces with fuzzy partitions. Soft Comput. 2017, 21, 7269–7284. [Google Scholar] [CrossRef]
  13. Močkoř, J.; Hurtík, P. Lattice-valued F-transforms and similarity relations. Fuzzy Sets Syst. 2018, 342, 67–89. [Google Scholar] [CrossRef]
  14. Tiwari, S.; Perfilieva, I.; Singh, A. Generalized residuate lattice based F-transform. Iran. J. Fuzzy Syst. 2015, 18, 165–182. [Google Scholar]
  15. Sussner, P. Lattice fuzzy transforms from the perspective of mathematical morphology. Fuzzy Sets Syst. 2016, 288, 115–128. [Google Scholar] [CrossRef]
  16. Holčapek, M.; Bui, V. On integral transforms for residuated lattice-valued functions. In Proceedings of the Information Processing Management of Uncertainty (IPMU), Lisbon, Portugal, 15–19 June 2020; pp. 1–14. [Google Scholar]
  17. Holčapek, M.; Quoc, V.B. Reconstruction of Lattice-Valued Functions by Integral Transforms. In Proceedings of the 13th International Workshop on Fuzzy Logic and Applications, WILF 2021, CEUR-WS, Mare, Italy, 20–22 December 2021; pp. 1–8. [Google Scholar]
  18. Holčapek, M.; Quoc, V.B. On an application of lattice-valued integral transform to multicriteria decision making. In Soft Computing: Biomedical and Related Applications; Studies in Computational Intelligence; Springer: Cham, Switzerland, 2022; Volume 981, pp. 471–482. [Google Scholar]
  19. Efford, N. Digital Image Processing: A Practical Introduction Using Java (with CD-ROM); Addison-Wesley Longman Publishing Co., Inc.: Harlow, England, 2000. [Google Scholar]
  20. Bělohlávek, R. Fuzzy Relational Systems: Foundations and Principles; Kluwer Academic Publishers: New York, NY, USA, 2002. [Google Scholar]
  21. Novák, V.; Perfilieva, I.; Močkoř, J. Mathematical Principles of Fuzzy Logic; Kluwer Academic Publishers: Boston, MA, USA, 1999. [Google Scholar]
  22. Klement, E.; Mesiar, R.; Pap, E. Triangular Norms; Trends in Logic; Kluwer Academic Publishers: Dordrecht, The Netherlands, 2000; Volume 8. [Google Scholar]
  23. Baczyński, M.; Jayaram, B. Fuzzy Implications; Springer: Heidelberg, Germany, 2010. [Google Scholar]
  24. Hájek, P. Metamathematics of Fuzzy Logic; Kluwer Academic Publishers: Dordrecht, The Netherlands, 1998. [Google Scholar]
  25. Sugeno, M. Theory of Fuzzy Integrals and Its Applications. Ph.D. Thesis, Tokyo Institute of Technology, Tokyo, Japan, 1974. [Google Scholar]
  26. Wang, Z.; Klir, G. Generalized Measure Theory; IFSR International Series on Systems Science and Engineering 25; Springer: New York, NY, USA, 2009. [Google Scholar]
  27. Grabisch, M.; Marichal, J.L.; Mesiar, R.; Pap, E. Aggregation Functions; Cambridge University Press: Cambridge, UK, 2009. [Google Scholar]
  28. Dvořák, A.; Holčapek, M. Fuzzy measures and integrals defined on algebras of fuzzy subsets over complete residuated lattices. Inf. Sci. 2012, 185, 205–229. [Google Scholar] [CrossRef]
  29. Dvořák, A.; Holčapek, M. L-fuzzy quantifiers of type 〈1〉 determined by fuzzy measures. Fuzzy Sets Syst. 2009, 160, 3425–3452. [Google Scholar] [CrossRef]
  30. Dubois, D.; Prade, H.; Rico, A. Residuated variants of Sugeno integrals: Towards new weighting schemes for qualitative aggregation methods. Inf. Sci. 2016, 329, 765–781. [Google Scholar] [CrossRef] [Green Version]
  31. Holčapek, M.; Rico, A. A note on the links between different qualitative integrals. In Proceedings of the IEEE World Congress on Computational Intelligence (WCCI), Glasgow, UK, 19–24 July 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 1–8. [Google Scholar]
  32. Mitra, S.; Sicuranza, G. (Eds.) Nonlinear Image Processing; Academic Press: Cambridge, MA, USA, 2001. [Google Scholar]
  33. Barner, K.; Arce, G. (Eds.) Nonlinear Signal and Image Processing: Theory, Methods, and Applications; CRC Press: Boca Raton, FL, USA, 2004. [Google Scholar]
  34. Perreault, S.; Hebert, P. Median Filtering in Constant Time. IEEE Trans. Image Process. 2007, 16, 2389–2394. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  35. Bae, J.; Yoo, H. Fast Median Filtering by Use of Fast Localization of Median Value. Int. J. Appl. Eng. Res. 2007, 13, 10882–10885. [Google Scholar]
  36. Huang, T.; Yang, G.; Tang, G. A fast two-dimensional median filtering algorithm. IEEE Trans. Acoust. Speech Signal Process. 1979, 27, 13–18. [Google Scholar] [CrossRef]
  37. Zhang, Q.; Xu, L.; Jia, J. 100+ Times Faster Weighted Median Filter (WMF). In Proceedings of the 2014 IEEE Conference on Computer Vision and Pattern Recognition, Columbus, OH, USA, 24–27 June 2014; IEEE: Piscataway, NJ, USA, 2014; pp. 1–8. [Google Scholar]
Figure 1. Lower (green) and upper (red) approximations of a discrete function obtained by the composition of F and G , and F and G , respectively.
Figure 1. Lower (green) and upper (red) approximations of a discrete function obtained by the composition of F and G , and F and G , respectively.
Mathematics 10 04077 g001
Figure 2. Comparison of noisy signal reconstructions based on lower and upper fuzzy transforms and integral transforms with multiplication-based Sugeno-like fuzzy integral. (a) lattice fuzzy transforms; and (b) lattice integral transforms.
Figure 2. Comparison of noisy signal reconstructions based on lower and upper fuzzy transforms and integral transforms with multiplication-based Sugeno-like fuzzy integral. (a) lattice fuzzy transforms; and (b) lattice integral transforms.
Mathematics 10 04077 g002
Figure 3. The negations N λ S S for λ = 0.4 (blue), λ = 1 (green), λ = 2 (yellow), and λ = 5 (orange) from Example 3.
Figure 3. The negations N λ S S for λ = 0.4 (blue), λ = 1 (green), λ = 2 (yellow), and λ = 5 (orange) from Example 3.
Mathematics 10 04077 g003
Figure 4. The functions φ 0 , 0 1 (orange), φ 0.2 , 0.4 5 (blue), φ 0.4 , 0.8 3 (yellow), and φ 1 , 1 1 (green) from Example 7 that are used to determine fuzzy measures.
Figure 4. The functions φ 0 , 0 1 (orange), φ 0.2 , 0.4 5 (blue), φ 0.4 , 0.8 3 (yellow), and φ 1 , 1 1 (green) from Example 7 that are used to determine fuzzy measures.
Mathematics 10 04077 g004
Figure 5. The functions φ 0 , 0 1 , c , N (orange), φ 0.2 , 0.4 5 , c , N (blue), φ 0.4 , 0.8 3 , c , N (yellow), and φ 1 , 1 1 , c , N (green) from Example 7 that are used to determine conjugate fuzzy measures.
Figure 5. The functions φ 0 , 0 1 , c , N (orange), φ 0.2 , 0.4 5 , c , N (blue), φ 0.4 , 0.8 3 , c , N (yellow), and φ 1 , 1 1 , c , N (green) from Example 7 that are used to determine conjugate fuzzy measures.
Mathematics 10 04077 g005
Figure 6. Filtering Cameraman image with 30 % salt-and-pepper noise (2:1 ratio) using standard filters and new filters based on (reverse) lattice integral transforms with the window 3 × 3. (a) Original image; (b) 30 % salt-pepper; (c) Median filter; (d) M-LIT-filter; (e) M-reverse LIT-filter; (f) D-Median filter; (g) Min-Median filter; (h) MR-LIT-filter; and (i) MR-reverse LIT-filter.
Figure 6. Filtering Cameraman image with 30 % salt-and-pepper noise (2:1 ratio) using standard filters and new filters based on (reverse) lattice integral transforms with the window 3 × 3. (a) Original image; (b) 30 % salt-pepper; (c) Median filter; (d) M-LIT-filter; (e) M-reverse LIT-filter; (f) D-Median filter; (g) Min-Median filter; (h) MR-LIT-filter; and (i) MR-reverse LIT-filter.
Mathematics 10 04077 g006
Figure 7. Filtering Cameraman image with 30 % salt-and-pepper noise (2:1 ratio) using standard filters and new filters based on (reverse) lattice integral transforms with the window 3 × 3. (a) Original Image; (b) 30 % salt-pepper; (c) Median filter; (d) M-LIT-filter; (e) M-reverse LIT-filter; (f) D-Median filter; (g) Min-Median filter; (h) MR-LIT-filter; and (i) MR-reverse LIT-filter.
Figure 7. Filtering Cameraman image with 30 % salt-and-pepper noise (2:1 ratio) using standard filters and new filters based on (reverse) lattice integral transforms with the window 3 × 3. (a) Original Image; (b) 30 % salt-pepper; (c) Median filter; (d) M-LIT-filter; (e) M-reverse LIT-filter; (f) D-Median filter; (g) Min-Median filter; (h) MR-LIT-filter; and (i) MR-reverse LIT-filter.
Mathematics 10 04077 g007
Figure 8. Compression of the Lena image in the 4:1 ratio using (reverse) LIT-compression with a 5 × 5 window for various operations determined by λ = 0.5 (left), λ = 1 (middle) and λ = 2 (right). (a) M-LIT-compression; (b) R-LIT-compression; (c) M-reverse LIT-compression; and (d) R-reverse LIT-compression.
Figure 8. Compression of the Lena image in the 4:1 ratio using (reverse) LIT-compression with a 5 × 5 window for various operations determined by λ = 0.5 (left), λ = 1 (middle) and λ = 2 (right). (a) M-LIT-compression; (b) R-LIT-compression; (c) M-reverse LIT-compression; and (d) R-reverse LIT-compression.
Mathematics 10 04077 g008
Figure 9. Decompression of 4:1 compressed Lena image using (reverse) LIT-image decompression for various operations determined by λ = 0.5 (left), λ = 1 (middle), and λ = 2 (right). (a) Original Lena image; (b) R-LIT-decompression of M-LIT-compressed Lena image; (c) M-LIT-decompression of R-LIT-compressed Lena image; (d) R-reverse LIT-decompression of M-reverse LIT-compressed Lena image; and (e) M-reverse LIT-decompression of R-reverse LIT-compressed Lena image.
Figure 9. Decompression of 4:1 compressed Lena image using (reverse) LIT-image decompression for various operations determined by λ = 0.5 (left), λ = 1 (middle), and λ = 2 (right). (a) Original Lena image; (b) R-LIT-decompression of M-LIT-compressed Lena image; (c) M-LIT-decompression of R-LIT-compressed Lena image; (d) R-reverse LIT-decompression of M-reverse LIT-compressed Lena image; and (e) M-reverse LIT-decompression of R-reverse LIT-compressed Lena image.
Mathematics 10 04077 g009aMathematics 10 04077 g009b
Figure 10. Comparison of fuzzy and lattice integral transforms (LIT)-based morphological operations of erosion, dilation, opening, and closing with the use of window of size 5 × 5. (a) 300 × 300 binary image; (b) Fuzzy erosion; (c) Fuzzy dilation; (d) Fuzzy opening; (e) Fuzzy closing; (f) LIT-erosion; (g) LIT-dilation; (h) LIT-opening; and (i) LIT-closing.
Figure 10. Comparison of fuzzy and lattice integral transforms (LIT)-based morphological operations of erosion, dilation, opening, and closing with the use of window of size 5 × 5. (a) 300 × 300 binary image; (b) Fuzzy erosion; (c) Fuzzy dilation; (d) Fuzzy opening; (e) Fuzzy closing; (f) LIT-erosion; (g) LIT-dilation; (h) LIT-opening; and (i) LIT-closing.
Mathematics 10 04077 g010
Table 1. Classical types of non-linear filters.
Table 1. Classical types of non-linear filters.
FiltersType of LIT ( ) Fuzzy Measures
( μ , u p = μ φ , u p r )
Standard median μ 0.5 , 0.5 1
Minimum μ 1 , 1 1 = μ
Maximum μ 0 , 0 1 = μ
Table 2. PSNR for different methods of filtering of salt-and-pepper noise.
Table 2. PSNR for different methods of filtering of salt-and-pepper noise.
FiltersPSNR for 30% Noise (dB)PSNR for 40% Noise (dB)
Median filter18.41613.552
M-LIT filter18.93316.675
D-Median filter20.61415.714
Min-Med filter16.49617.192
MR-LIT-filter21.37218.939
MR-reverse LIT filter21.37319.789
Table 3. PSNR for various types of decompression of the 4:1 compressed Lena image by LIT-compression.
Table 3. PSNR for various types of decompression of the 4:1 compressed Lena image by LIT-compression.
λ Type of Decompression
R-LITM-LITR-Reverse LITM-Reverse LIT
0.522.224721.628421.090619.8279
122.033521.483320.640420.7553
219.216318.055916.428218.986
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Holčapek, M.; Quoc, V.B.; Ferbas, P. On an Application of Lattice Integral Transforms in Image Processing. Mathematics 2022, 10, 4077. https://doi.org/10.3390/math10214077

AMA Style

Holčapek M, Quoc VB, Ferbas P. On an Application of Lattice Integral Transforms in Image Processing. Mathematics. 2022; 10(21):4077. https://doi.org/10.3390/math10214077

Chicago/Turabian Style

Holčapek, Michal, Viec Bui Quoc, and Petr Ferbas. 2022. "On an Application of Lattice Integral Transforms in Image Processing" Mathematics 10, no. 21: 4077. https://doi.org/10.3390/math10214077

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop