Next Article in Journal
Capacity-Raising Reversible Data Hiding Using Empirical Plus–Minus One in Dual Images
Next Article in Special Issue
An Efficient Fractional Chebyshev Chaotic Map-Based Three-Factor Session Initiation Protocol for the Human-Centered IoT Architecture
Previous Article in Journal
Multi-Document News Web Page Summarization Using Content Extraction and Lexical Chain Based Key Phrase Extraction
Previous Article in Special Issue
Efficient Image Encryption Scheme Using Novel 1D Multiparametric Dynamical Tent Map and Parallel Computing
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Image Hiding in Stochastic Geometric Moiré Gratings

by
Loreta Saunoriene
1,
Marius Saunoris
2 and
Minvydas Ragulskis
1,*
1
Department of Mathematical Modelling, Kaunas University of Technology, Studentu 50-146, LT-51368 Kaunas, Lithuania
2
Department of Electronics Engineering, Kaunas University of Technology, Studentu 50-443, LT-51368 Kaunas, Lithuania
*
Author to whom correspondence should be addressed.
Mathematics 2023, 11(8), 1763; https://doi.org/10.3390/math11081763
Submission received: 18 February 2023 / Revised: 30 March 2023 / Accepted: 4 April 2023 / Published: 7 April 2023
(This article belongs to the Special Issue Chaos-Based Secure Communication and Cryptography)

Abstract

:
An image hiding scheme based on stochastic moiré gratings is proposed, discussed, and illustrated in this paper. The proposed scheme is based on a counter-intuitive optical feature of specially designed stochastic moiré gratings when similar images in the static mode become very different in the time-averaged mode. A soft computing PSO algorithm was used for the construction of stochastic gratings. Complex computational algorithms were required to construct the cover image; however, the decryption process was completely visual. The cover image must oscillate in a predefined direction and at a predefined amplitude (the amplitude of the harmonic oscillation is one of the parameters of the proposed image hiding scheme). Computational experiments were used to demonstrate the efficacy of this optical image hiding scheme based on the stochastic moiré gratings.

1. Introduction

Geometric moiré is a classical optical experimental technique used for the experimental identification of displacements, strains, etc., from the patterns of moiré fringes [1,2,3,4]. Geometric moiré is classified into double exposure geometric moiré and time-averaged geometric moiré [1,2]. Both optical techniques require the formation of moiré gratings on the surface of a deformable object. Double exposure geometric moiré uses the superposition of two images. The first image of the moiré grating is taken in the state of equilibrium. The second image of the grating is taken in a deformed state. Two static moiré gratings yield a two-dimensional pattern of fringes used to describe the spatial field of in-plane deformations.
Time-averaged geometric moiré techniques use exposure times such that many oscillation periods fit into the averaging interval. Naturally, time-averaged geometric moiré techniques are commonly used for vibrating deformable bodies [2].
Two main goals exist in the analysis of moiré patterns (generated by double exposure or time-averaged techniques). The first goal deals with the interpretation of experimentally obtained patterns of moiré fringes. Those patterns are used to reconstruct the field of displacements, strains, etc., at the centerlines of moiré fringes [2,3,4]. The other goal is associated with the synthesis of a predefined target pattern of moiré fringes [5,6]. Note that there is a tight link between both tasks as one task gives insight into the other.
Recently, moiré techniques have been successfully exploited in different image hiding applications. For example, an image encryption technique based on embedding the secret image into the geometric moiré pattern is discussed in [7]. Unfortunately, with this method, rough details of the secret image may still be visible in the deformed pattern of moiré grating lines, even to the naked eye. To address this issue, an improved algorithm for image encryption and decryption that uses stochastic moiré grating manipulations is presented in [8]. In this approach, the secret information is hidden by deforming a stochastic moiré grating according to the grayscale intensities of the secret image. Decryption is performed by correlating the pixel intensities in the encrypted image and the original stochastic moiré grating [8].
The relationship between the pitch of the moiré grating, the order of the time-averaged fringe, and the amplitude of the harmonic oscillations forms the basis for the dynamic visual cryptography (DVC) image hiding technique [9]. This term (DVC) originates from the concept of visual cryptography (VC), which was introduced in 1995 [10]. VC can be characterized by two basic features. Complex computational algorithms are required to encode the secret image. However, a computer is not required to decode the image; the secret is revealed and can be interpreted by the naked eye [10]. VC algorithms are used to split the secret image into two (or more) separate shares (usually printed on transparencies). The secret image emerges when those transparencies are aligned and stacked together [10].
DVC is not based on image sharing [9]. The secret dichotomous image is embedded into the moiré grating in such a way that the stationary cover image does not reveal any hidden information, but the secret can be decoded as a pattern of time-averaged moiré fringes when the cover image oscillates harmonically with a predefined amplitude a, and time-averaging techniques are used to register the time-averaged image [9]. The secret can be directly visually decoded by observing the oscillating cover image. The naked human eye is capable of integrating oscillating images over time and perceiving embedded secret information only if the minimum frequency of oscillations exceeds 25–28 Hz [11].
The main objective of this paper is to introduce stochastic moiré gratings into DVC schemes, which enables an increase in the security of the cover image. The main advantage of the proposed DVC scheme is based on the fact that the stochastic structure of the cover image ensures robustness to statistical algorithms. In other words, statistical analysis of the stationary cover image cannot reveal the encoded visual information.
This paper is structured as follows. Section 2 discusses the one-dimensional Wada index, governing equations of time-averaged geometric moiré, and the scheme for image hiding in harmonic gratings. The construction of the dynamic visual cryptography scheme based on near-optimal stochastic gratings is introduced in Section 3. Concluding remarks are presented in the last section.

2. Preliminaries

2.1. The Wada Index for the Evaluation of the Grating Complexity

It is common to evaluate the randomness of digital grayscale images using the Shannon entropy [12,13]. In [14], the Wada index, based on weighted and truncated Shannon entropy, was proposed for detecting Wada boundaries in phase plots of nonlinear dynamical systems. Moreover, the Wada index provides a numerical estimate of the number of different colors and their proportions in a two-dimensional phase space diagram, making it applicable not only in nonlinear dynamics but also in image processing in general [14]. In this study, the Wada index is used to estimate the number of different grayscale levels and their distribution in stationary and time-averaged moiré gratings.
Let us list the notations required for the introduction of the one-dimensional (1D) Wada index, which is used to evaluate the complexity of the 1D digital image:
  • s—The length of the 1D observation window measured in the number of pixels; s 2 .
  • c—The number of different grayscale levels in the 1D observation window; c 1 .
  • ν k , k = 1 , 2 , , c —The number of k-th color pixels in the 1D observation window.
  • p k = ν k s 2 , k = 1 , 2 , , c —The discrete probability of the k-th color in the 1D observation window.
  • The indicator function 1 2 ( s ) is equal to 1 if the number of grayscale levels in the 1D observation window is greater than or equal to 2: 1 2 ( s ) = 1 , c 2 , 0 , c = 1 .
  • The indicator function 1 3 ( s ) is equal to 1 if the number of grayscale levels in the 1D observation window is greater than or equal to 3: 1 3 ( s ) = 1 , c 3 , 0 , c 2 .
  • The Shannon entropy of different grayscale levels in the 1D observation window:
    e s p 1 , p 2 , , p c = k = 1 c p k log p k .
The Wada index ω 1 ( s ) in the 1D observation window of length s reads [14]:
ω 1 s p 1 , p 2 , , p c = c log c 1 3 s e s = 0 , c < 3 , c log c k = 1 c p k log p k , c 3 .
Let us denote the number of 1D observation windows covering the whole 1D digital image as N. Then, the Wada index W 1 ( s ) for the whole 1D digital image can be formulated in accordance with [14]:
W 1 ( s ) = k = 1 N ω 1 , k ( s ) k = 1 N 1 2 , k ( s ) ,
where ω 1 , k s and 1 2 , k ( s ) are the Wada index ω 1 ( s ) (Equation (2)) and the indicator function 1 2 ( s ) in the k-th observation window.

2.2. Time-Averaged Geometric Moiré: Harmonic Grating

The one-dimensional harmonic moiré grating M x in the state of equilibrium reads:
M x = 1 2 + 1 2 cos 2 π λ x ,
where x is the one-dimensional spatial coordinate; λ is the pitch of the grating, indicating the distance between the centers of two adjacent white (or black) grating lines. Values of M x vary from 0 (which corresponds to the black color) to 1 (the white color); values from the interval [ 0 , 1 ] represent different grayscale levels.
Let us suppose that the moiré grating M x (Equation (4)) oscillates in time according to the harmonic function a sin ω t + φ in the direction perpendicular to the grating lines (a, ω and φ stand for the amplitude, frequency, and phase of harmonic oscillations, respectively). The brightness of the gray color at point x at time moment t 0 reads:
M x t = t 0 = 1 2 + 1 2 cos 2 π λ x a sin ω t 0 + φ .
If time-averaging techniques are used to register the image in Equation (5) for a sufficiently long exposure time T, the grayscale time-averaged image reads [2]:
M ¯ x , a = lim T 1 T 0 T M x a sin ( ω t + φ ) d t = 1 2 + 1 2 cos 2 π λ x J 0 2 π λ a ,
where J 0 is the zero-order Bessel function of the first kind:
J 0 x = lim T 1 T 0 T exp i · x sin ω t + φ d t ; i 2 = 1 .
It is clear that the brightness of the grayscale color in the time-averaged geometric moiré depends only on the amplitude of the harmonic oscillations. The oscillation frequency ω and the phase φ have no influence on the time-averaged M ¯ x , a (when T ).
The computational representation of M ¯ x , a (Equation (6)) can be implemented by computing the arithmetic average of M x t = t k ( k = 1 , 2 , 3 , ) over one period of harmonic oscillations ( 0 t k < 2 π ) [9]:
M ¯ x , a = lim n 1 n k = 1 n M x t = t k 1 n k = 1 n cos 2 π λ x a sin 2 π n ( k 1 ) .
The accuracy of a numerical reconstruction of the time-averaged image is determined by the number of discrete time steps n used in one period of oscillations (Equation (8)). The relationship between n and the number of reconstructed time-averaged moiré fringes with a predefined accuracy is given in [9].
Time-averaged moiré fringes become fully developed when
J 0 2 π λ a = 0 .
The relationship between the sequential number of time-averaged fringes, the amplitude of harmonic oscillations, and the pitch of the moiré grating reads:
2 π λ a i = r i ,
where r i denotes the i-th root of J 0 (Equation (7)); a i is the amplitude of oscillations at the center of the i-th time-averaged fringe.
The graphical interpretation of Equation (10) is presented in Figure 1. One-dimensional time-averaged moiré gratings M ¯ x , a at increasing amplitudes of harmonic oscillations a are depicted in the left panel of Figure 1. Note that the top row of this image (at a = 0 ) coincides with the stationary moiré grating M x . The stationary moiré grating M x , its optical representation, and the Wada index W 1 ( s ) are depicted in Figure 1a. Note that 0 M x 1 , but the brightness of pixels in the optical representation varies from 0 to 255.
The panels representing Wada indexes in Figure 1 are constructed in such a way that the horizontal axis represents the length of the 1D observation window s. In other words, Figure 1 represents the variation of the Wada index W 1 ( s ) in respect to s. The Wada index W 1 ( s ) is depicted at a = 0 (Figure 1a), the middle of the first time-averaged moiré fringe ( a = λ r 1 2 π 0.1914 , Figure 1b), and the zone between the first and the second time-averaged fringes ( a = 0.3 , Figure 1c).
Note that W 1 ( s ) is a monotonous function with respect to s. The wider the observation window, the larger the number of pixels with different brightness. The maximum value of W 1 ( s ) is produced at the largest s. However, periodic moiré gratings (Figure 1a,c) yield maximum values of W 1 ( s ) even when the width of the observation window is equal to one period of the grating.
Time-averaged moiré gratings become continuously gray (the time-averaged fringes becomes fully developed) at a = λ r i 2 π , i = 1 , 2 , 3 , (see Equation (10) and Figure 1b). The time-averaged moiré fringe is not fully developed when amplitude a does not satisfy Equation (10). This fact is illustrated in Figure 1c.

2.3. Image Hiding in Harmonic Gratings

Let us suppose that two moiré gratings M 1 x and M 2 x are given with two different pitches λ 1 = 0.5 and λ 2 = 0.57 . Static moiré gratings M 1 x and M 2 x are depicted in Figure 2a,c. Optical representations of the static moiré gratings M 1 x and M 2 x are depicted in Figure 2b,d.
Both moiré gratings are oscillated harmonically with the same amplitude of oscillations a = 0.19 (Figure 2). Time-averaged moiré gratings M ¯ 1 x , 0.19 and M ¯ 2 x , 0.19 are shown in Figure 2a,c; their optical representations are shown in Figure 2b,d.
The amplitude of harmonic oscillations a = 0.19 is preselected in such a way that the pitch λ 1 = 0.5 satisfies Equation (10). The time-averaged image M ¯ 1 x , 0.19 becomes plain gray and the time-averaged fringe becomes fully developed (Figure 2b).
However, amplitude a = 0.19 and the pitch λ 2 = 0.57 do not satisfy the relationship given by Equation (10). The time-averaged moiré fringe is not fully developed, and the blurred original moiré grating is still visible in the resulting time-averaged image (Figure 2d).
The DVC encoding scheme is illustrated by a simple computational example when a plain circle is embedded into the surrounding background (Figure 2e). The stochastic initial moiré phase algorithm and the algorithm for the regularization of moiré phases on the boundary lines between the secret and the background [9] are used to hide the “secret” circle in the background (Figure 2e). The naked eye cannot interpret the secret image in the stationary encoded image.
However, the secret image is leaked when the amplitude of harmonic oscillations is preselected in such a way that a fully developed moiré fringe is formed either in the background or in the area occupied by the secret image. The Moiré grating M 1 x is used to cover the background; the moiré grating M 2 x is the area occupied by the circle. Therefore, the background becomes plain gray, and the circle appears in the form of not-fully developed moiré fringe in the time-averaged image in Figure 2e.
The image hiding scheme in harmonic gratings (the DVC scheme based on harmonic moiré gratings) can be characterized by the two essential features. The secret image should be unrecognizable to the naked eye from the stationary cover image. The secret image should be interpretable to the naked eye when the cover image oscillates, and the amplitude of harmonic oscillations is set to a given value (the amplitude of harmonic oscillations is one of the keys used for decoding the secret) [9].

2.4. Time-Averaged Random Moiré Grating

Two moiré gratings ( M 1 x and M 2 x ) used to construct the DVC scheme in Figure 2 are harmonic functions. Moreover, although the naked eye cannot interpret the embedded secret in the static cover image, advanced statistical algorithms could be exploited to check the variations in the period of the pixel brightness in each row of the digital cover image.
The robustness of the DVC scheme to statistical algorithms can be enhanced by using non-harmonic oscillations [15], near-optimal periodic gratings [16], chaotic oscillations [17], and deformable periodic gratings [18].
Nevertheless, the periodicity of the moiré grating in DVC schemes is a drawback from the point of view of the robustness of steganalysis algorithms. Note that VC schemes are completely robust to steganalysis [10,19]. However, VC schemes are required to split the secret image into shares. The fact that the secret image is split into separate shares also raises serious security issues. VC schemes suffer from the possibility of cheating when the eavesdropper obtains information about one of the shares and can generate another/other share/shares in order to produce fake secret images [19]. Special advancements in VC schemes help to lower the cheating probability, but it remains an issue related to the security of those schemes [20,21].
Therefore, the ability to exploit random non-periodic moiré gratings in DVC schemes remains an attractive objective, which could raise the security of those schemes to another level.
Time-averaged patterns produced by random moiré gratings are discussed in [22]. Time-averaging effects produced by random moiré gratings are illustrated in Figure 3. One-dimensional time-averaged random moiré gratings M ¯ x , a at increasing amplitudes of harmonic oscillations a are depicted in the left panel of Figure 3. Note that the top row of this image (at a = 0 ) coincides with the stationary random moiré grating M x . The stationary random moiré grating M x , its optical representation, and the Wada index W 1 ( s ) are depicted in Figure 3a.
The time-averaged random moiré grating M ¯ x , a at a = 0.4 , its optical representation, and the Wada index W 1 ( s ) are depicted in Figure 3b. The higher the value of the amplitude of harmonic oscillations, the larger the motion-induced optical blur, and the lower the maximum value of the Wada index W 1 ( s ) in the time-averaged image (Figure 3b,c).

3. Dynamic Visual Cryptography Based on Stochastic Gratings

3.1. One-Dimensional Stochastic Gratings for Image Hiding Applications

As mentioned previously, all available DVC schemes exploit the relationship between the pitch of the periodic moiré grating, the parameters of oscillations, and the order of the time-averaged fringe to hide the secret in a single cover image. Such DVC schemes are based on the phase regularization and random initial phase shifting algorithms [9]. The secret information is leaked as a pattern of time-averaged moiré fringes when the cover image oscillates at a predefined amplitude, and time-averaging techniques (or the naked eye) are used to register the time-averaged image [11].
The main objective of this paper is to introduce stochastic moiré gratings into DVC schemes. The apparent simplicity of the problem is truly misleading. The stationary cover image must remain uninterpretable (the secret image should not be directly leaked from the stationary image). The secret image should be leaked in the time-averaged image when the cover image oscillates according to a pre-set amplitude of harmonic oscillations. Clearly, phase regularization and random initial phase shifting algorithms are not applicable for stochastic moiré gratings (the concept of the phase is lost in the set of pixels with random brightness). Moreover, changes in the contrast of stochastic images affected by motion blur are completely different from the mathematical point of view. As discussed in the previous section, DVC schemes with harmonic gratings are based on Bessel functions and the interplay of their roots. A completely new nomenclature has to be introduced in order to describe (and control) motion-induced blur for stochastic gratings.
Recently, the Wada index was introduced to measure the randomness of digital images that are more complex than fractal dichotomous basin boundaries of nonlinear dynamical systems [14]. Since the stochastic DVC scheme is based on manipulation with pixels in separate rows (columns) of the cover image, the concept of the Wada index needs to be adapted to one-dimensional sets of pixels (Section 2.1).
The proposed DVC scheme based on stochastic moiré gratings is also based on the interplay between two gratings, where one grating is used to encode the background and the other grating is used to encode the secret. Unfortunately, as mentioned previously, the concept of the phase and the pitch is lost in stochastic moiré gratings. A completely new strategy is required to design those two stochastic gratings.
The basic principle of the DVC scheme must hold true. The first requirement is that the naked eye should not be able to interpret a secret embedded in the cover image. The second requirement is that the secret should be optically leaked from the time-averaged image when the cover image oscillates at a predefined amplitude of harmonic oscillations.
We will use the Wada index W 1 ( s ) to measure the randomness of the stochastic moiré gratings. The relationship between W 1 ( s ) and the size of the one-dimensional observation window s helps reveal the complexity of the stochastic grating throughout multiple scales. This is absolutely necessary for the successful implementation of the two DVC requirements since the pitch of the stochastic grating is not defined.
In fact, it would be easy to construct stochastic moiré gratings if both DVC requirements would be constructed in an alternative (opposite) way. It is easy to construct such stochastic gratings where the secret is leaked in the stationary cover image. Then, the motion-induced optical blur in the time-averaged images would equalize both gratings, and the secret would not be recognizable in the time-averaged mode.
However, the formulated DVC requirements pose a serious challenge from both theoretical and computational perspectives. The Wada indexes for the two stochastic gratings should be almost identical in the static mode, while being as different as possible for the same stochastic gratings in the time-averaged mode.
Clearly, manual manipulations with the brightness of pixels cannot be expected to produce stochastic gratings that satisfy both DVC requirements simultaneously. High-end machine learning algorithms should be employed for this purpose. Moreover, the application of machine learning algorithms, including the cost functions and system of constraints, is highly nontrivial. Special additional requirements for the stochastic gratings should be formulated and efficiently implemented.

3.2. Requirements for Stochastic Gratings

Requirements for two stochastic gratings M 1 x and M 2 x are formulated in this section. Grating M 1 x will be used for the background; grating M 2 x will be used in the areas occupied by the secret information.

3.2.1. Requirements for M 1 x

  • The standard deviation of the stationary grating M 1 x is as high as possible. This requirement is necessary to ensure that the brightness range of pixels used to construct the grating is as large as possible.
  • The mean and standard deviation are approximately the same in any segment of the stationary grating M 1 x . This requirement is necessary to ensure the consistency of the grating.
  • The difference between the brightness of each pixel of the time-averaged grating M ¯ 1 x , a and the value 127.5 is as small as possible. This requirement ensures that the time-averaged image of the stochastic grating closely resembles a plain gray image.

3.2.2. Requirements for M 2 x

As mentioned previously, the static stochastic image represented by M 2 x should be as close as possible to the image represented by M 1 x . On the other hand, the time-averaged image of M 2 x must be as different as possible from the time-averaged image of M 1 x .
  • The stationary grating M 2 x should be as similar as possible to M 1 x .
  • The mean of the stationary grating M 2 x is approximately the same as the mean of M 1 x . Otherwise, the secret will be clearly visible in the static cover image.
  • The standard deviation of the stationary grating M 2 x is approximately the same as the standard deviation of M 1 x . This requirement is also crucial for hiding the secret in the cover image.
  • The Wada index of the stationary grating M 2 x is approximately the same as the Wada index of M 1 x . This requirement defines the similarity of the secret and the background in multiple scales of the observation window.
  • The standard deviation of the time-averaged grating M ¯ 2 x , a is as high as possible. This requirement ensures that the area occupied by M 2 x is not transformed into a plain gray image in the time-averaged mode.
  • The mean, the standard deviation, and the Wada index are approximately the same in any segment of the time-averaged grating M ¯ 2 x , a . This requirement ensures the consistency of the secret image in the time-averaged mode.

3.3. The Formulation of the Cost Functions

Let us consider that the spatial coordinate x is bounded by the limits of the one-dimensional observation interval 0 x L . Moreover, let us assume that this observation interval comprises n grayscale pixels, and that coordinate x i , 1 i n is the center point of the i-th pixel.
Let us divide the observation interval into such q segments that each segment comprises exactly ν pixels ( q ν = n ).

3.3.1. Notations of Statistical Characteristics

The following notations of statistical characteristics used in the construction of the cost functions are introduced:
  • The average brightness of the moiré grating M 1 x over the entire observation interval:
    m ( 1 ) = 1 n i = 1 n M 1 x i .
  • The average brightness of M 1 x in the k-th segment:
    m ( 1 , k ) = 1 ν i = 1 ν M 1 x ( k 1 ) · ν + i .
  • The standard deviation of the brightness of M 1 x over the entire observation interval:
    σ ( 1 ) = 1 n i = 1 n ( M 1 x i m ( 1 ) ) 2 .
  • The standard deviation of the brightness of M 1 x in the k-th segment:
    σ ( 1 , k ) = 1 ν i = 1 ν M 1 x ( k 1 ) · ν + i m ( 1 , k ) 2 .
  • The average brightness of M ¯ 1 x , a over the entire observation interval:
    m ¯ ( 1 ) = 1 n i = 1 n M ¯ 1 x i , a .
  • The average brightness of M ¯ 1 x , a in the k-th segment:
    m ¯ ( 1 , k ) = 1 ν i = 1 ν M ¯ 1 x ( k 1 ) · ν + i , a .
  • The standard deviation of the brightness of M ¯ 1 x , a over the entire observation interval:
    σ ¯ ( 1 ) = 1 n i = 1 n M ¯ 1 x i , a m ¯ ( 1 ) 2 .
  • The standard deviation of the brightness of M ¯ 1 x , a in the k-th segment:
    σ ¯ ( 1 , k ) = 1 ν i = 1 ν M ¯ 1 x ( k 1 ) · ν + i , a m ¯ ( 1 , k ) 2 .
  • The fourth central moment of the brightness of M ¯ 1 x , a over the entire observation interval:
    μ ¯ 4 ( 1 ) = 1 n i = 1 n M ¯ 1 x i , a m ¯ ( 1 ) 4 .
  • The maximal Wada index of M 1 x , a over the entire observation interval ( s = n ) is denoted as ω m a x ( 1 ) = ω 1 ( n ) (Equation (3)).
  • The maximal Wada index of M ¯ 1 x , a in the k-th segment ( s = ν ) is denoted as ω ¯ m a x ( 1 , k ) .
The corresponding statistical characteristics m ( 2 ) , m ( 2 , k ) , σ ( 2 ) , σ ( 2 , k ) , ω m a x ( 2 ) for the stationary grating M 2 x and m ¯ ( 2 ) , m ¯ ( 2 , k ) , σ ¯ ( 2 ) , σ ¯ ( 2 , k ) , μ ¯ 4 ( 2 ) , ω ¯ m a x ( 2 , k ) for the time-averaged grating M ¯ 2 x , a are defined and computed analogously to Equations (3), (11)–(19).

3.3.2. The Formulation of the Cost Function F 1

The formulation of the cost function F 1 ( M 1 ) (to be minimized) for the stochastic moiré grating M 1 x follows the set of requirements defined in Section 3.2.1:
F 1 M 1 = k 1 127.5 σ ( 1 ) 1 + k 2 1 q i = 1 q m ( 1 , i ) m ( 1 ) 2 + k 3 1 q i = 1 q σ ( 1 , i ) 1 q j = 1 q σ ( 1 , j ) 2 + μ ¯ 4 ( 1 ) ,
where k 1 , k 2 , k 3 are real positive weighting coefficients.
The larger the standard deviation of the 1D image M 1 x in the state of equilibrium, the smaller the term 127.5 σ ( 1 ) 1 . Note that the highest possible standard deviation of a digital image is equal to 127.5. Such a situation is possible when half of all pixels in the observation interval are black, and the other half are white.
Terms 1 q i = 1 q m ( 1 , i ) m ( 1 ) 2 and 1 q i = 1 q σ ( 1 , i ) 1 q j = 1 q σ ( 1 , j ) 2 tend to zero when the mean brightness and the standard deviation in all segments become approximately the same.
The term μ ¯ 4 ( 1 ) is close to zero when the time-averaged grating M 1 x is continuously gray (the brightness of all pixels is close to 127.5). The power of 4 in Equation (19) prevents large fluctuations around 127.5.

3.3.3. The Formulation of the Cost Function F 2

According to the requirements listed in Section 3.2.2, the stationary stochastic grating M 2 x should not differ substantially from M 1 x (otherwise the secret would leak in the cover image). Therefore, M 2 x is constructed as the perturbation of M 1 x . The perturbation is implemented in the form of additive noise:
M 2 x = M 1 x + ε ,
where ε is the array of integer corrections, ε [ C , C ] , where C defines the magnitude of the perturbation.
The vector of corrections ε is constructed in such a way that the second cost function F 2 M 1 , ε is minimized:
F 2 M 1 , ε = 1 n i = 1 n | ε i | + | m ( 1 ) m ( 2 ) | + | σ ( 1 ) σ ( 2 ) | + | ω m a x ( 1 ) ω m a x ( 2 ) | + k 1 σ ¯ ( 2 ) + k 2 1 q i = 1 q m ¯ ( 2 , i ) m ¯ ( 2 ) 2 + k 3 1 q i = 1 q σ ¯ ( 2 , i ) 1 q j = 1 q σ ¯ ( 2 , j ) 2 + k 4 1 q i = 1 q ω ¯ m a x ( 2 , i ) 1 q j = 1 q ω ¯ m a x ( 2 , j ) 2 ,
where k 1 , k 2 , k 3 , and k 4 are real positive weighting coefficients. The proportional weights of terms at k 2 , k 3 , and k 4 are similar. Therefore, the constraint k 2 = k 3 = k 4 is set in further computations (which also helps to reduce the computational complexity of the optimization process). The corrections ε are minimized because the stationary stochastic grating M 2 x should not be very different from M 1 x .
It is clear that lower values of the correction vector ε result in a lower value of the term 1 n i = 1 n | ε i | in the cost function F 2 M 1 , ε . The terms | m ( 1 ) m ( 2 ) | , | σ ( 1 ) σ ( 2 ) | , and | ω m a x ( 1 ) ω m a x ( 2 ) | tend to zero when the means, standard deviations, and maximal Wada indexes of the gratings M 1 x and M 2 x become similar.
Analogously, the higher the standard deviation σ ¯ ( 2 ) , the smaller the value of the term 1 σ ¯ ( 2 ) . Note that a higher value of σ ¯ ( 2 ) is required to ensure that the area occupied by M 2 x is not transformed into a plain gray image in the time-averaged mode.
The terms 1 q i = 1 q m ¯ ( 2 , i ) m ¯ ( 2 ) 2 , 1 q i = 1 q σ ¯ ( 2 , i ) 1 q j = 1 q σ ¯ ( 2 , j ) 2 ,
1 q i = 1 q ω ¯ m a x ( 2 , i ) 1 q j = 1 q ω ¯ m a x ( 2 , j ) 2 tend to zero when the mean brightness, the standard deviation, and the maximal Wada index in all segments of the time-averaged image M ¯ 2 x , a become similar.

3.4. Evolutionary Algorithms for the Optimization of Stochastic Gratings for Image Hiding Applications

It is clear that the complexity of the cost functions (Equations (20) and (22)) is so high that deterministic optimization algorithms should be replaced by evolutionary optimization algorithms. Since the particle swarm optimization (PSO) algorithm is widely considered to be a robust optimization algorithm with good properties of convergence [23], further construction of stochastic gratings is performed by means of PSO (though other soft computing algorithms are also used in image steganography [24]). PSO is an algorithm inspired by the social behaviors of animal groups [23,25]. The initial version of the algorithm was proposed by J. Kennedy and R. Eberhart in 1995 [26]. Since then, different modifications and new versions of the PSO algorithm were introduced [27].
A new parameter, called an inertia weight, incorporated into the original particle swarm optimizer, improved the performance of the original technique [28]. The constriction coefficient introduced into the PSO algorithm enhance the convergence speed and improves the balance between global exploration and local exploitation [29]. The sine–cosine acceleration coefficients are introduced into the particle swarm optimizer in [30]. A proportional factor based on the Nash equilibrium is incorporated in the PSO in [31].
Numerous new learning and searching strategies for different applications were incorporated into the PSO optimizer as well. The authors of [32] propose selectively informed PSO, in which the particles choose different learning strategies based on their connections. A new version of PSO based on several initializations in different zones of the search space (using charged particles) is presented in [33]. A level-based multi-strategy learning swarm optimizer for large-scale multi-objective optimization is introduced in [34]. A multi-swarm particle swarm optimization algorithm using an adaptive factor selection strategy is described in [35].
The constricted PSO algorithm was employed in further investigations. Note that the constricted PSO enables the avoidance of early convergence and swarm explosion [23,25]. Information about each particle i is stored in n-dimensional vectors P i , Q i , and V i , representing the current location, the previous best position, and the current velocity of the particle, respectively. Vector G b denotes the position of the best particle. In each j-th iteration, particle i updates its position and velocity according to the following iterative equations [25,27,29]:
V i j = χ · V i j + c 1 · φ 1 j · Q i j P i j + c 2 · φ 2 j · G b j P i j , j = 1 , 2 , P i j = P i j + V i j ,
where φ 1 j and φ 2 j are random numbers uniformly distributed in ( 0 , 1 ) ; coefficient c 1 pulls the particle towards the position where it has the best fitness, while c 2 propels the particle towards the current best particle; χ is the constriction coefficient χ = 2 κ | 2 c c 2 4 c | ; c 1 + c 2 > 4 , 0 < κ 1 . Parameter κ controls the exploitation and exploration abilities of the swarm. If κ is close to 0, then the convergence is faster with local exploitation, and if κ approaches 1, then the convergence is slow with a higher degree of exploration [27].
We set c = 4.1 as the convergence is quick and guaranteed at c > 4 [23,27]. The parameters c 1 and c 2 are set to be equal ( c 1 = c 2 = 2.05 ) [27,36]. We use κ = 0.7 in our computations. Thus, the value of the constriction coefficient is set to χ 0.5109 .
Let us consider the stochastic grating consisting of 100 pixels. Then, the computational optimization of the cost function F 1 M 1 in Equation (20) yields the near-optimal stochastic moiré grating M 1 x (Figure 4a). Unsurprisingly, the time-averaged image M ¯ 1 x , 5 is almost a plain image (Figure 4a). Note that the scale of x and the amplitude of oscillations in M ¯ 1 x , 5 are defined in terms of discrete pixels (the amplitude is set to cover the distance equal to five adjacent pixels).
The variation of W 1 ( s ) for the static stochastic grating M 1 x is almost linear with respect to s and reaches 77.11 at s = 100 (Figure 4c). However, the variation of the Wada index W 1 ( s ) for the time-averaged grating M ¯ 1 x , 5 only reaches 4.94 (Figure 4c). Such an effect is caused by the blur induced by the harmonic oscillations of the time-averaged image.
The optimization of the cost function F 2 M 1 , ε in Equation (22) yields the near-optimal perturbed stochastic moiré grating M 2 x (Figure 4d). However, M 2 x is not transformed into a plain image in the time-averaged mode (Figure 4d). This is predetermined by the structure of the cost function F 2 M 1 , ε , where ( M 2 x is similar to M 1 x , but time-averaged effects produced by M 2 x and M 1 x are substantially different).
Note that W 1 ( s ) for M 2 x is almost identical to M 1 x in the static mode (Figure 4c,f). However, W 1 ( s ) for M ¯ 1 x , 5 and M ¯ 2 x , 5 are very different (panels (c) and (f) in Figure 4). Such optical effects build the foundation for the construction of the dynamic visual cryptography scheme based on stochastic moiré gratings.
In general, the optical effects illustrated in Figure 4 are strongly counterintuitive. The motion-induced blur makes the time-averaged images more similar, not vice versa. This fact is illustrated in Figure 5. Note that the DVC scheme developed in this paper is based on completely different optical effects than demonstrated in Figure 5.

3.5. The DVC Scheme Based on Stochastic Moiré Gratings

Let us consider a two-dimensional dichotomous secret image of size n y × n x (with n y rows, each containing n x pixels). The main steps of the proposed scheme are shown in Figure 6. In the preprocessing step (STEP 1), two near-optimal stochastic gratings ( M 1 and M 2 ) must be generated. Both gratings M 1 and M 2 are computed using the PSO algorithm (the detailed pseudo-code and flowchart of the PSO algorithm are described in [23]). Note that both near-optimal stochastic gratings M 1 and M 2 are constructed only once and can be reused to encode any secret dichotomous image.
The encoding of the two-dimensional secret dichotomous image (STEP 2) is implemented by a straightforward combination of two-dimensional stochastic gratings M 1 and M 2 . The pixels containing the secret information are covered by M 2 (the background is covered by M 1 ).
The decoding of the secret information (STEP 3) can be performed visually [9,11] or by using computational simulation [9]. Visual decoding lies in the essence of DVC; complex algorithms are required to encode the secret, but the decoding of the secret does not require a computer. In our case, the cover image should oscillate in a given direction with a given amplitude; the naked eye is sufficient to interpret the secret image [11]. However, computational simulations could also be used to decode the secret. The additive superposition of a sufficient number of identical copies of the cover image deflected from the state of equilibrium according to the harmonic motion law with a given amplitude results in the interpretable secret image [9]. Note that all illustrations of the decoded secret images in this paper are constructed using computational decoding algorithms.
The preprocessing step appears to be the most computationally intensive stage of the encoding process. Let us suppose that the swarm size used in the PSO algorithm is preset to N particles. A comprehensive discussion about the swarm size can be found in [39] (we used N = 1000 in our computations). Five multiplications and four additions per particle per dimension are required for one iteration of the PSO algorithm to update the particle’s velocity [40]. One “addition” operation per particle per dimension is also required to update the particle’s position (Equation (23)) [40]. Overall, 10 N n x arithmetic operations are required for the whole swarm of N particles with dimension n x for one iteration of the PSO algorithm (for the one-dimensional grating). This number of operations results in an algorithmic complexity of O n x per iteration for the one-dimensional stochastic grating. The computational complexity of one evaluation of the cost-functions F 1 M 1 and F 2 M 1 , ε is O n x 2 per iteration of the PSO algorithm (for the one-dimensional grating).
Although the computations described in STEP 1 are time-consuming, two-dimensional stochastic gratings are constructed only once and can then be reused for encoding any secret dichotomous image of size n y × n x . Computational decoding requires the arithmetic superposition of the encoded image per one period of harmonic oscillations, resulting in a complexity estimate of O n x .
The DVC scheme based on the stochastic moiré gratings is illustrated in Figure 7. The resolution of the cover image is set to 300 × 180 pixels. Moreover, 180 copies of non-identical near-optimal one-dimensional moiré gratings M 1 x constitute the static image in panel (a) of Figure 7. The time-averaged image M ¯ 1 x , 5 yields an almost plain gray image (Figure 7a). Moreover, 180 copies of non-identical near-optimal one-dimensional moiré gratings M 2 x constitute the static image in Figure 7b. The time-averaged image M ¯ 2 x , 5 in panel (b) is very different from M ¯ 1 x , 5 in panel (a).
The dichotomous secret image is depicted in panel (c). The static digital image in Figure 7a is used for the construction of the background of the cover image; the static digital image in Figure 7b is used to fill the regions occupied by the secret. The resulting static cover image is depicted in Figure 7d. Note that the secret is uninterpretable to the naked human eye (due to the optimization of M 1 x and M 2 x ). However, the time-averaged cover image yields the secret (Figure 7d).

3.6. The Comparison between the Proposed Technique and Classical DVC Schemes

The proposed DVC technique based on stochastic gratings is compared with two classical DVC schemes. The static cover image produced by the DVC scheme based on the harmonic moiré gratings [9] is depicted in Figure 8a. The static cover image produced by the DVC scheme based on the dichotomous black and white gratings is shown in Figure 8b. Note that the embedded secret information is exactly the same as in Figure 7. Harmonic oscillations with amplitude a = 5 are used to decode the secret for both schemes (Figure 8a,b). The same pitches λ 1 = 2 π a r 1 = 13.06 (Equation (10)) and λ 2 = 0.9 · λ 1 = 11.75 are used for the harmonic and dichotomous gratings. Pitch λ 1 is used for the background image; pitch λ 2 is used for the areas occupied by the secret image.
One of the main features used to characterize the quality of the decoded image in visual cryptography is the difference between the standard deviation of the pixels in the background of the decoded image and the standard deviation of the pixels in the areas of the secret image [41]. This difference in standard deviations defines the contrast and visual interpretability of the decoded secret. The corresponding calculations are presented in Table 1. The contrast of the decoded image produced by the proposed scheme is lower compared to the classical DVC scheme based on the harmonic moiré grating. On the other hand, the major advantage of the proposed scheme is its robustness to statistical analysis algorithms (Table 1).

4. Concluding Remarks

A novel DVC scheme based on the stochastic moiré gratings is proposed, discussed, and illustrated in this paper. The proposed scheme is based on a counter-intuitive optical feature of time-averaged moiré gratings, when similar images in the static mode become very different in the time-averaged mode.
Special cost functions and a complex system of constraints were developed for the computation of the moiré gratings used for the background and the representation of the secret. The defined optimization problem is very complicated, and near-optimal soft computing algorithms are used for the construction of two planar images.
The proposed DVC scheme is a typical VC scheme. Complex computational algorithms are required for the construction of the cover image. However, a computer is not required to decrypt the embedded image. The decryption process is completely visual. The cover image must oscillate in a predefined direction and at a predefined amplitude (the amplitude of harmonic oscillations is one of the parameters of the proposed image’s hiding scheme). Computational experiments were used to demonstrate the efficacy of the proposed optical DVC scheme based on the stochastic moiré gratings.
As mentioned in the introduction, classical DVC schemes are based on harmonic moiré gratings with slightly different pitches. The proposed DVC scheme based on the stochastic moiré gratings provides a serious advantage compared to DVC schemes based on harmonic gratings. It is interesting to observe that this advantage in the security of the scheme is achieved without compromising the quality of the decrypted secret in the time-averaged cover image. Moreover, the developed DVC scheme based on the stochastic moiré gratings provides a foundation for different extensions and a large variety of experimental applications. DVC schemes based on the stochastic moiré gratings and chaotic oscillations, as well as building experimental prototypes for testing the human visual system, will remain definite objectives of future research.

Author Contributions

Methodology, L.S. and M.R.; software, L.S.; validation, L.S. and M.S.; investigation, L.S.; writing—review and editing, M.R.; visualization, M.S.; supervision, M.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The data presented in this study are available upon request from the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Kobayashi, A. Handbook on Experimental Mechanics; VCH: New York, NY, USA, 1993. [Google Scholar]
  2. Patorski, K. Handbook of the Moiré Fringe Technique; Elsevier: Amsterdam, The Netherlands, 1993. [Google Scholar]
  3. Li, X. Displacement measurement based on the moiré fringe. In Proceedings of the Seventh International Symposium on Precision Engineering Measurements and Instrumentation, Yunnan, China, 7–11 August 2011; Fan, K.C., Song, M., Lu, R.S., Eds.; International Society for Optics and Photonics. SPIE: Washington, DC, USA, 2011; Volume 8321, p. 832148. [Google Scholar] [CrossRef]
  4. Wang, Q.; Ri, S.; Xia, P. Wide-view and accurate deformation measurement at microscales by phase extraction of scanning moiré pattern with a spatial phase-shifting technique. Appl. Opt. 2021, 60, 1637–1645. [Google Scholar] [CrossRef] [PubMed]
  5. Tsai, P.H.; Chuang, Y.Y. Target-Driven Moiré Pattern Synthesis by Phase Modulation. In Proceedings of the 2013 IEEE International Conference on Computer Vision, Sydney, NSW, Australia, 1–8 December 2013; pp. 1912–1919. [Google Scholar] [CrossRef] [Green Version]
  6. Su, Y.; Wang, Z.; An, D. Simulation of moiré pattern based on transmittance calculation of LCD metal mesh touch panel. J. Soc. Inf. Disp. 2021, 29, 620–631. [Google Scholar] [CrossRef]
  7. Mu noz-Rodríguez, J.A.; Rodríguez-Vera, R. Image encryption based on moiré pattern performed by computational algorithms. Opt. Commun. 2004, 236, 295–301. [Google Scholar] [CrossRef]
  8. Ragulskis, M.; Aleksa, A.; Saunoriene, L. Improved algorithm for image encryption based on stochastic geometric moiré and its application. Opt. Commun. 2007, 273, 370–378. [Google Scholar] [CrossRef]
  9. Ragulskis, M.; Aleksa, A. Image hiding based on time-averaging moiré. Opt. Commun. 2009, 282, 2752–2759. [Google Scholar] [CrossRef]
  10. Naor, M.; Shamir, A. Visual cryptography. In Proceedings of the Advances in Cryptology–EUROCRYPT’94, Perugia, Italy, 9–12 May 1994; De Santis, A., Ed.; Springer: Berlin/Heidelberg, Germany, 1995; pp. 1–12. [Google Scholar]
  11. Lu, G.; Saunoriene, L.; Gelžinis, A.; Petrauskiene, V.; Ragulskis, M. Visual integration of vibrating images in time. Opt. Eng. 2018, 57, 093107. [Google Scholar] [CrossRef]
  12. Wu, Y.; Zhou, Y.; Saveriades, G.; Agaian, S.; Noonan, J.P.; Natarajan, P. Local Shannon entropy measure with statistical tests for image randomness. Inform. Sci. 2013, 222, 323–342. [Google Scholar] [CrossRef] [Green Version]
  13. Ilunga, M. Shannon entropy for measuring spatial complexity associated with mean annual runoff of tertiary catchments of the Middle Vaal basin in South Africa. Entropy 2019, 21, 366. [Google Scholar] [CrossRef] [Green Version]
  14. Saunoriene, L.; Ragulskis, M.; Cao, J.; Sanjuán, M.A.F. Wada index based on the weighted and truncated Shannon entropy. Nonlinear Dyn. 2021, 104, 739–751. [Google Scholar] [CrossRef]
  15. Ragulskis, M.; Aleksa, A.; Navickas, Z. Image hiding based on time-averaged fringes produced by non-harmonic oscillations. J. Opt. A Pure Appl. Opt. 2009, 11, 125411. [Google Scholar] [CrossRef]
  16. Sakyte, E.; Palivonaite, R.; Aleksa, A.; Ragulskis, M. Image hiding based on near-optimal moiré gratings. Opt. Commun. 2011, 284, 3954–3964. [Google Scholar] [CrossRef]
  17. Petrauskiene, V.; Palivonaite, R.; Aleksa, A.; Ragulskis, M. Dynamic visual cryptography based on chaotic oscillations. Commun. Nonlinear Sci. Numer. Simul. 2014, 19, 112–120. [Google Scholar] [CrossRef]
  18. Lu, G.; Saunoriene, L.; Aleksiene, S.; Ragulskis, M. Optical image hiding based on chaotic vibration of deformable moiré grating. Opt. Commun. 2018, 410, 457–467. [Google Scholar] [CrossRef]
  19. Weir, J.; Yan, W. A Comprehensive Study of Visual Cryptography. In Transactions on Data Hiding and Multimedia Security V; Springer: Berlin/Heidelberg, Germany, 2010; Volume 6010, pp. 70–105. [Google Scholar] [CrossRef]
  20. Lin, P.Y.; Wang, R.Z.; Chang, Y.J.; Fang, W.P. Prevention of cheating in visual cryptography by using coherent patterns. Inf. Sci. 2015, 301, 61–74. [Google Scholar] [CrossRef]
  21. Ibrahim, D.R.; Teh, J.S.; Abdullah, R. An overview of visual cryptography techniques. Multimed. Tools Appl. 2021, 80, 31927–31952. [Google Scholar] [CrossRef]
  22. Ragulskis, M. Time-averaged patterns produced by stochastic moiré gratings. Comput. Graph. 2009, 33, 147–150. [Google Scholar] [CrossRef]
  23. Gad, A.G. Particle Swarm Optimization Algorithm and Its Applications: A Systematic Review. Arch. Comput. Methods Eng. 2022, 29, 2531–2561. [Google Scholar] [CrossRef]
  24. Kich, I.; Ameur, E.B.; Taouil, Y. CNN Auto-Encoder Network Using Dilated Inception for Image Steganography. Int. J. Fuzzy Log. Intell. Syst. 2021, 21, 358–368. [Google Scholar] [CrossRef]
  25. Shami, T.M.; El-Saleh, A.A.; Alswaitti, M.; Al-Tashi, Q.; Summakieh, M.A.; Mirjalili, S. Particle Swarm Optimization: A Comprehensive Survey. IEEE Access 2022, 10, 10031–10061. [Google Scholar] [CrossRef]
  26. Kennedy, J.; Eberhart, R. Particle swarm optimization. In Proceedings of the ICNN’95–International Conference on Neural Networks, Perth, WA, Australia, 27 November–1 December 1995; Volume 4, pp. 1942–1948. [Google Scholar] [CrossRef]
  27. Jain, M.; Saihjpal, V.; Singh, N.; Singh, S.B. An Overview of Variants and Advancements of PSO Algorithm. Appl. Sci. 2022, 12, 8392. [Google Scholar] [CrossRef]
  28. Shi, Y.; Eberhart, R. A modified particle swarm optimizer. In Proceedings of the 1998 IEEE International Conference on Evolutionary Computation Proceedings, IEEE World Congress on Computational Intelligence (Cat. No.98TH8360), Anchorage, AK, USA, 4–9 May 1998; pp. 69–73. [Google Scholar] [CrossRef]
  29. Eberhart, R.; Shi, Y. Comparing inertia weights and constriction factors in particle swarm optimization. In Proceedings of the 2000 Congress on Evolutionary Computation. CEC00 (Cat. No.00TH8512), La Jolla, CA, USA, 16–19 July 2000; Volume 1, pp. 84–88. [Google Scholar] [CrossRef]
  30. Ruiheng, L.; Qiong, Z.; Nian, Y.; Ruiyou, L.; Huaiqing, Z. Improved Hybrid Particle Swarm Optimizer with Sine-Cosine Acceleration Coefficients for Transient Electromagnetic Inversion. Curr. Bioinform. 2022, 17, 60–76. [Google Scholar] [CrossRef]
  31. Luo, W. Particle swarm optimization algorithm with proportional factor based on Nash equilibrium. J. Phys. Conf. Ser. 2022, 2258, 012027. [Google Scholar] [CrossRef]
  32. Gao, Y.; Du, W.; Yan, G. Selectively-informed particle swarm optimization. Sci. Rep. 2015, 5, 9295. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  33. El Dor, A.; Clerc, M.; Siarry, P. A multi-swarm PSO using charged particles in a partitioned search space for continuous optimization. Comput. Optim. Appl. 2012, 53, 271–295. [Google Scholar] [CrossRef]
  34. Qi, S.; Zou, J.; Yang, S.; Zheng, J. A level-based multi-strategy learning swarm optimizer for large-scale multi-objective optimization. Swarm Evol. Comput. 2022, 73, 101100. [Google Scholar] [CrossRef]
  35. Chrouta, J.; Fethi, F.; Zaafouri, A. A modified multi swarm particle swarm optimization algorithm using an adaptive factor selection strategy. Trans. Ins. Meas. Control 2021, 01423312211029509. [Google Scholar] [CrossRef]
  36. Shu, M.C.; Song, M.; Wang, Y. Parameter Selection and Performance Comparison of Particle Swarm Optimization in Sensor Networks Localization. Sensors 2017, 17, 487. [Google Scholar] [CrossRef] [Green Version]
  37. The USC-SIPI Image Database. Available online: https://sipi.usc.edu/database (accessed on 30 November 2022).
  38. Image Repository. Available online: https://links.uwaterloo.ca/Repository.html (accessed on 30 November 2022).
  39. Piotrowski, A.P.; Napiorkowski, J.J.; Piotrowska, A.E. Population size in Particle Swarm Optimization. Swarm Evol. Comput. 2020, 58, 100718. [Google Scholar] [CrossRef]
  40. Iqbal, N.; Zerguine, A.; Al-Dhahir, N. Decision Feedback Equalization Using Particle Swarm Optimization. Signal Process. 2015, 108, 1–12. [Google Scholar] [CrossRef]
  41. Cimato, S.; Yang, C.-N. (Eds.) Visual Cryptography and Secret Image Sharing, 1st ed.; Digital Imaging and Computer Vision; CRC Press: Boca Raton, FL, USA, 2012. [Google Scholar]
Figure 1. Optical time-averaging effects induced by harmonic oscillations on a periodic moiré grating ( λ = 0.5 ). Time-averaged moiré gratings are depicted in the left panel at increasing values of amplitude a (the numbering on the right boundary of the panel corresponds to the consecutive order of the time-averaged fringe). Time-averaged moiré gratings, their optical representations, and their Wada indexes W 1 ( s ) are shown at a = 0 (panel (a)), a = λ r i 2 π (panel (b)), and a = 0.3 (panel (c)).
Figure 1. Optical time-averaging effects induced by harmonic oscillations on a periodic moiré grating ( λ = 0.5 ). Time-averaged moiré gratings are depicted in the left panel at increasing values of amplitude a (the numbering on the right boundary of the panel corresponds to the consecutive order of the time-averaged fringe). Time-averaged moiré gratings, their optical representations, and their Wada indexes W 1 ( s ) are shown at a = 0 (panel (a)), a = λ r i 2 π (panel (b)), and a = 0.3 (panel (c)).
Mathematics 11 01763 g001
Figure 2. A schematic illustration of the DVC scheme based on two harmonic moiré gratings. Two moiré gratings ( M 1 x and M 2 x ) with slightly different pitches (depicted in panels (a,c)) are used to represent the background and the secret (the circle); their optical representations are shown in panels (b,d). The static and time-averaged cover image is shown in panel (e). The amplitude of harmonic oscillation a is chosen in such a way that the time-averaged moiré fringe is not fully developed in the area occupied by the secret image.
Figure 2. A schematic illustration of the DVC scheme based on two harmonic moiré gratings. Two moiré gratings ( M 1 x and M 2 x ) with slightly different pitches (depicted in panels (a,c)) are used to represent the background and the secret (the circle); their optical representations are shown in panels (b,d). The static and time-averaged cover image is shown in panel (e). The amplitude of harmonic oscillation a is chosen in such a way that the time-averaged moiré fringe is not fully developed in the area occupied by the secret image.
Mathematics 11 01763 g002
Figure 3. Harmonic oscillations of a random moiré grating produce optical motion-induced blur in the time-averaged image. Time-averaged random moiré gratings are depicted in the left panel at increasing values of amplitude a. Time-averaged random moiré gratings, their optical representations, and their Wada indexes W 1 ( s ) are shown at a = 0 (panel (a)), a = 0.4 (panel (b)), and a = 0.8 (panel (c)).
Figure 3. Harmonic oscillations of a random moiré grating produce optical motion-induced blur in the time-averaged image. Time-averaged random moiré gratings are depicted in the left panel at increasing values of amplitude a. Time-averaged random moiré gratings, their optical representations, and their Wada indexes W 1 ( s ) are shown at a = 0 (panel (a)), a = 0.4 (panel (b)), and a = 0.8 (panel (c)).
Mathematics 11 01763 g003
Figure 4. Stochastic gratings with similar statistical and visual characteristics yield different time-averaged gratings. The optimal grating M 1 x is depicted in panel (a); μ 1 = 127.8 , σ 1 = 66.2 . The statistical characteristics of the time-averaged grating M ¯ 1 x , 5 read as follows: μ ¯ 1 = 127.9 , σ ¯ 1 = 1.2 . The optical representations of M 1 x and M ¯ 1 x , 5 are depicted in panel (b). Wada indexes W 1 ( s ) of M 1 x and M ¯ 1 x , 5 are shown in panel (c) ( ω m a x ( 1 ) = 77.1 , ω ¯ m a x ( 1 ) = 5.1 ). The optimal grating M 2 x is shown in panel (d); μ 2 = 127.9 , σ 2 = 66.2 . The statistical characteristics of the time-averaged grating M ¯ 2 x , 5 read as follows: μ ¯ 2 = 127.9 , σ ¯ 2 = 8.6 . The optical representations of M 2 x and M ¯ 2 x , 5 are depicted in panel (e). Wada indexes W 1 ( s ) of M 2 x and M ¯ 2 x , 5 are given in panel (f) ( ω m a x ( 2 ) = 77.1 , ω ¯ m a x ( 2 ) = 30.3 ).
Figure 4. Stochastic gratings with similar statistical and visual characteristics yield different time-averaged gratings. The optimal grating M 1 x is depicted in panel (a); μ 1 = 127.8 , σ 1 = 66.2 . The statistical characteristics of the time-averaged grating M ¯ 1 x , 5 read as follows: μ ¯ 1 = 127.9 , σ ¯ 1 = 1.2 . The optical representations of M 1 x and M ¯ 1 x , 5 are depicted in panel (b). Wada indexes W 1 ( s ) of M 1 x and M ¯ 1 x , 5 are shown in panel (c) ( ω m a x ( 1 ) = 77.1 , ω ¯ m a x ( 1 ) = 5.1 ). The optimal grating M 2 x is shown in panel (d); μ 2 = 127.9 , σ 2 = 66.2 . The statistical characteristics of the time-averaged grating M ¯ 2 x , 5 read as follows: μ ¯ 2 = 127.9 , σ ¯ 2 = 8.6 . The optical representations of M 2 x and M ¯ 2 x , 5 are depicted in panel (e). Wada indexes W 1 ( s ) of M 2 x and M ¯ 2 x , 5 are given in panel (f) ( ω m a x ( 2 ) = 77.1 , ω ¯ m a x ( 2 ) = 30.3 ).
Mathematics 11 01763 g004
Figure 5. The motion-induced blur decreases the contrast of the digital image. Two horizontal sections of the Lena [37] and the Baboon [38] digital images are denoted by black lines in the left column. The variations of the brightness of pixels in the section of the static Lena image and the time-averaged Lena image (the amplitude of oscillations is set to 10) are depicted in panel (a). The variations of W 1 ( s ) with respect to s in both one-dimensional images are shown in panel (b) ( ω m a x ( L e n a ) = 77.7 , ω ¯ m a x ( L e n a ) = 37.3 ). The variations of the brightness of pixels in the section with the static Baboon image and the time-averaged Baboon image (where the amplitude of oscillations is set to 10) are depicted in panel (c). The variations of W 1 ( s ) with respect to s in both one-dimensional images are shown in panel (d) ( ω m a x ( B a b o o n ) = 57.1 , ω ¯ m a x ( B a b o o n ) = 37.1 ). Note that one-dimensional images are very different in the static mode, but become similar in the time-averaged mode. The DVC scheme developed in this paper is based on a completely different optical effect.
Figure 5. The motion-induced blur decreases the contrast of the digital image. Two horizontal sections of the Lena [37] and the Baboon [38] digital images are denoted by black lines in the left column. The variations of the brightness of pixels in the section of the static Lena image and the time-averaged Lena image (the amplitude of oscillations is set to 10) are depicted in panel (a). The variations of W 1 ( s ) with respect to s in both one-dimensional images are shown in panel (b) ( ω m a x ( L e n a ) = 77.7 , ω ¯ m a x ( L e n a ) = 37.3 ). The variations of the brightness of pixels in the section with the static Baboon image and the time-averaged Baboon image (where the amplitude of oscillations is set to 10) are depicted in panel (c). The variations of W 1 ( s ) with respect to s in both one-dimensional images are shown in panel (d) ( ω m a x ( B a b o o n ) = 57.1 , ω ¯ m a x ( B a b o o n ) = 37.1 ). Note that one-dimensional images are very different in the static mode, but become similar in the time-averaged mode. The DVC scheme developed in this paper is based on a completely different optical effect.
Mathematics 11 01763 g005
Figure 6. The main steps of the proposed scheme.
Figure 6. The main steps of the proposed scheme.
Mathematics 11 01763 g006
Figure 7. The DVC scheme based on the stochastic moiré gratings. The resolution of the cover image is set to 300 × 180 pixels; 180 copies of non-identical near-optimal one-dimensional moiré gratings M 1 x constitute the static image in panel (a). The time-averaged image M ¯ 1 x , 5 yields an almost plain gray image (panel (a)); 180 copies of non-identical near-optimal one-dimensional moiré gratings M 2 x constitute the static image in panel (b). The time-averaged image M ¯ 2 x , 5 in panel (b) is very different from M ¯ 1 x , 5 in panel (a). The dichotomous secret image is depicted in panel (c). The static cover image containing the embedded secret is shown in panel (d). The time-averaged image of the cover image yields the secret.
Figure 7. The DVC scheme based on the stochastic moiré gratings. The resolution of the cover image is set to 300 × 180 pixels; 180 copies of non-identical near-optimal one-dimensional moiré gratings M 1 x constitute the static image in panel (a). The time-averaged image M ¯ 1 x , 5 yields an almost plain gray image (panel (a)); 180 copies of non-identical near-optimal one-dimensional moiré gratings M 2 x constitute the static image in panel (b). The time-averaged image M ¯ 2 x , 5 in panel (b) is very different from M ¯ 1 x , 5 in panel (a). The dichotomous secret image is depicted in panel (c). The static cover image containing the embedded secret is shown in panel (d). The time-averaged image of the cover image yields the secret.
Mathematics 11 01763 g007
Figure 8. The stationary cover image and the decoded secret image produced by the different DVC schemes. The DVC scheme based on the harmonic moiré gratings is used to encode and decode the secret information in panel (a). The DVC scheme based on the dichotomous moiré gratings is depicted in panel (b).
Figure 8. The stationary cover image and the decoded secret image produced by the different DVC schemes. The DVC scheme based on the harmonic moiré gratings is used to encode and decode the secret information in panel (a). The DVC scheme based on the dichotomous moiré gratings is depicted in panel (b).
Mathematics 11 01763 g008
Table 1. The comparison of the proposed scheme with classical DVC schemes (the DVC scheme based on harmonic moiré gratings (Scheme A), and the DVC scheme based on dichotomous moiré gratings (Scheme B)).
Table 1. The comparison of the proposed scheme with classical DVC schemes (the DVC scheme based on harmonic moiré gratings (Scheme A), and the DVC scheme based on dichotomous moiré gratings (Scheme B)).
DVC SchemeEncoded and Decoded ImagesStandard Deviation in the Background AreaStandard Deviation in the Secret AreaDifference of Standard DeviationsRobustness to Statistical Algorithms
The proposed schemeFigure 7d3.177.604.43YES
Scheme AFigure 8a0.9212.3211.4NO
Scheme BFigure 8b14.7118.653.94NO
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Saunoriene, L.; Saunoris, M.; Ragulskis, M. Image Hiding in Stochastic Geometric Moiré Gratings. Mathematics 2023, 11, 1763. https://doi.org/10.3390/math11081763

AMA Style

Saunoriene L, Saunoris M, Ragulskis M. Image Hiding in Stochastic Geometric Moiré Gratings. Mathematics. 2023; 11(8):1763. https://doi.org/10.3390/math11081763

Chicago/Turabian Style

Saunoriene, Loreta, Marius Saunoris, and Minvydas Ragulskis. 2023. "Image Hiding in Stochastic Geometric Moiré Gratings" Mathematics 11, no. 8: 1763. https://doi.org/10.3390/math11081763

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