1 Introduction

An influential branch of investigation that emerged from the amalgamation of a majority propositions and methodologies, which incorporates pattern identification and image manipulation, called image matching. The ambition is to navigate a pixel-for-pixel comparison methodology to locate the template photograph for the analogous spot in the original photograph and estimate if the reference photograph and the template photograph vary or are similar to accomplish the matching effect [1,2,3,4,5]. A bigger similarity expresses a greater matching quantity and more information, and a smaller similarity describes a lower matching quantity and lesser information. The two principal categories of image matching are grayscale-based and feature-based methodologies. By facilitating the similarity between the two photographs, the grayscale-based methodology aligns the template photograph with the original photograph's location and measures the precision and successful degree of matching. The essential elements of a photograph for matching in the feature-based methodology are margins, borders, texture, entropy, electricity, coloration, intersections, etc. The stability and quality of the chosen photograph attributes investigate the technology's cumulative efficiency. Template matching technology can efficiently and expeditiously recognize images, facilitating the wide-ranging utilization of target image recognition, such as medical diagnosis, pattern recognition, remote sensing mapping, military guidance, industrial component detection, environmental monitoring, etc.

The image acquisition is affected by the position, time, light, angle, object shape and multi-sensors, and the image obtained from the same scene may be distorted. Various matching technologies perform complicated operations for image matching to achieve image collection and information extraction, such as normalized cross-correlation, distance template, SIFT operator, and atomic potential field matching. These approaches have simplified estimation forms and desire minimal destination information, the security and precision of matching are guaranteed as the detected item does not obstruct it, particularly when non-contact measurement is appropriate. However, classical template matching has multiple drawbacks: susceptible to target geometric deformation and grayscale distortion, intuitive to remove degeneration after rotation, incurs substantial cumulative errors, significant information processing complexity, generates combinatorial explosion, precision and velocity that are insufficient for practical applications. Recently, numerous optimization approaches have been presented to address image matching, such as aquila optimization (AO) [6], dingo optimization algorithm (DOA) [7], spotted hyena optimizer (SHO) [8], slime mould algorithm (SMA) [9], seagull optimization algorithm (SOA) [10], sooty tern optimization algorithm (STOA) [11], tunicate swarm algorithm (TSA) [12].

Si et al. initiated an automatic pattern estimation genetic algorithm that utilized a mutation technique and self-awareness crossing supervisor to remedy image matching, this mentioned algorithm displayed substantial sustainability and durability to prohibit precocious convergence, accelerate integration frequency and attain greater matching proficiency [13]. Mousavi et al. constructed a dual-stage descriptor-based keypoint screening technique that utilized a mean-shift clustering procedure to assess the productivity and precision of image matching, a numerical index and confusion elimination were incorporated into the mentioned technique to arrive at and screen out the remaining disoriented key points [14]. Liu et al. recommended an altered firework method to remedy the color image attribute matching by altering the firework detonation distance and detonation quantity, this mentioned method maintained durable durability and dependability in retaining the color image's essential feature areas and extending noticeably greater color image matching precision and productivity [15]. Wang et al. created an innovative objective monitoring technique based on stackable polygonal matching and multiscale investigation, this mentioned technique exhibited reliable tracking precision and excessive matching productivity by measuring an appropriate radial distance and assessing the similarity [16]. Cui et al. employed a flexible juxtapose threshold scale-invariant feature conversion approach that utilized photograph complexity estimation to remedy the remotely sensed image matching, this mentioned approach retrieved the advisable points to accomplish upgraded profound sustainability and near-real-time accuracy [17]. Liu et al. released a parallel technique that utilized hausdorff proximity to remedy the image matching, this mentioned technique featured extreme parallelism and scalability to regulate stochastic vibration, disregard photograph clamor collaboration, and deliver the strongest matching impact [18]. Tamilkodi et al. crafted a weighted cutting-edge matching retrieval technique to remedy image extraction, this mentioned technique employed an integration procedure of extracting color, texture, and shape attributes from the image, which displayed substantial reliability and durability to attain faster recall productivity and higher matching precision [19]. Srinivasa et al. advised a 3-D photograph skeletonization approach to remedy the shape matching, this mentioned approach delivered field-programmable arrays to alleviate resource requirements and attain greater matching precision [20]. Lu et al. initiated an altered graph cut stereo matching methodology established on survey transformation to remedy the stereo matching, the hamming separation of the appropriate pixel is constructed as the similarity, this mentioned methodology exhibited adequate stability and durability to attain a greater stereo matching precision [21]. Nie et al. advised an alternative approach that integrated the ant colony optimization with 3D particle matching technique, this mentioned approach exhibited durable stability and reliability to refresh the particle monitoring velocimetry, minimize the displacement-pattern value and acquire the augmented matching precision and resolution efficiency [22]. Wang et al. pursued a profitable image matching approach to correlate conspicuous features in visual remote-sensing photographs, this mentioned approach seamlessly integrated line segment definition and characteristic matching to maximize matching quality and convergence impact [23]. Shao et al. identified a trustworthy and durable feature point matching system that utilized minimum motion-related entropy to upgrade feature-matching precision, this mentioned system maintained remarkable robustness and magnificent feature-matching profitability [24]. Xiang et al. originated a golden sine cosine salp swarm technique with an unpredictable neighbor discovery strategy to remedy the shape matching, this mentioned technique displayed certain superiority and dependability to maintain discovery and extraction and establish the greatest matching quality [25]. Rosenke et al. invented a generic mixed technique centered on discretization structure to remedy the image matching, this mentioned technique possessed excellent consistency and reliability for accomplishing affine modifications and multiple combinations of scaling, rotation, and translation [26]. Liu et al. explored hypothetical verification to construct an e-commerce customer categorization system that utilized an augmented 3-D block matching technique and conducted a performance evaluation, this mentioned system exhibited excellent robustness and dependability to gather the greatest solution [27]. Shao et al. discovered an innovative navigational visual method to remedy the lander's attitude and location, this mentioned method accomplished accurate pin-point descending and eliminated the cumulative error of juxtaposed navigation to attain high matching precision and substantial stability [28]. Shen et al. identified a subdivision selection methodology to remedy rapid and precise video event identification and productivity of the mentioned methodology integrating projections in identifying individuals activities have been confirmed [29]. Liu et al. advised a productive metrics training methodology to cultivate competitive instances that are authorized to deliver durable separation metrics, this mentioned methodology exhibited courageous consistency and dependability to safeguard the re-ID models against feature disruption assaults and yield accurate predictions [30]. To summarize, These algorithms can successfully maintain an equilibrium between discovery and extraction to refrain from preterm convergence and anticipation stagnation and exhibit fantastic durability and adaptability to furnish superior matching effectiveness and precision.

The GJO is motivated by the jackal’s synchronized foraging that emphasizes the strategy of scavenging for prey, wrapping around prey and attacking prey to deliver the most outstanding value, which has substantial sustainability and durability to prohibit precocious convergence, accelerate convergence frequency and attain greater matching proficiency [31]. The lateral inhibition inhibits visual information loss, strengthens the gray gradient and spatial resolution, upgrades the photograph matching precision, promotes image contrast, and amplifies the visible foreground and background [32]. The LI-GJO integrates the natural combination and complementary benefits to eliminate exploration stagnation and recognize the most suitable solution. The LI-GJO is utilized to accomplish image matching, and the stated intention is to execute a pixel-for-pixel comparison methodology to locate the appropriate portion of the template photograph in the original photograph and guarantee the matching precision by assessing the similarities or distinctions between the two photographs. The experimental conclusions exhibit that the LI-GJO equalizes discovery and extraction to prohibit precocious convergence, which has substantial durability and dependability to acquire a higher anticipated precision, a greater matching proficiency, better convergence effectiveness and stronger stability.

The article is scheduled as follows: Section 2 manifests GJO. Section 3 explores lateral inhibition. Section 4 generates the hybrid GJO and lateral inhibition. Section 5 extends the experimental comparison and outcome. Section 6 portrays the conclusion and future research.

2 GJO

The GJO utilizes the cooperative hunting measures of jackal pairs to capture the best prey, which includes three crucial search processes: scavenging for prey, wrapping around prey and attacking prey, which is exhibited in Fig. 1. The GJO manipulates discovery and extraction to arrive at exceptional measured precision and prompt convergence productivity.

Fig. 1
figure 1

A A jackal pair (B) scavenging for prey (C) Tracking and wrapping around prey (D & E) attacking prey

2.1 Search domain model

The initialization of the jackal is constructed as:

$${Y}_{0}={Y}_{{\text{min}}}+rand\left({Y}_{{\text{max}}}-{Y}_{{\text{min}}}\right)$$
(1)

where \(Y_{\max }\) and \(Y_{\min }\) embody the control interval, \(Y_{\max }\) embodies the initial position, \(rand\) embodies a variable in [0,1].

In GJO, two fittest individuals embody a jackal pair, which is constructed as:

$$Prey=\left[\begin{array}{cccc}{Y}_{\mathrm{1,1}}& {Y}_{\mathrm{1,2}}& \cdots & {Y}_{1,d}\\ {Y}_{\mathrm{2,1}}& {Y}_{\mathrm{2,2}}& \cdots & {Y}_{2,d}\\ \vdots & \vdots & \vdots & \vdots \\ {Y}_{n,1}& {Y}_{n,2}& \cdots & {Y}_{n,d}\end{array}\right]$$
(2)

where \(Y_{i,j}\) embodies the jth position of ith prey, \(n\) embodies the total prey, \(d\) embodies the issue dimension. The \(F_{OA}\) is constructed as:

$${F}_{OA}=\left[\begin{array}{c}f({Y}_{\mathrm{1,1}};{Y}_{\mathrm{1,2}};{Y}_{1,d})\\ f({Y}_{\mathrm{2,1}};{Y}_{\mathrm{2,2}};{Y}_{2,d})\\ \vdots \\ f({Y}_{n,1};{Y}_{n,2};{Y}_{n,d})\end{array}\right]$$
(3)

where \(f\) embodies the objective function, \(F_{OA}\) embodies the fitness value matrix.

2.2 Exploration

The jackal utilizes its distinctive predation structure to perceive the surrounding area and investigate prey. Once the jackal finds the prey, the pair based on mutual collaborative hunting behavior will quickly surround and capture the prey. The positions are constructed as:

$${Y}_{1}(t)={Y}_{M}(t)-E\cdot \left|{Y}_{M}(t)-rl\cdot Prey(t)\right|$$
(4)
$${Y}_{2}(t)={Y}_{FM}(t)-E\cdot \left|{Y}_{FM}(t)-rl\cdot Prey(t)\right|$$
(5)

where \(t\) embodies the nowaday iteration, \(Prey(t)\) embodies the nowaday prey, \(Y_{M} (t)\) and \(Y_{FM} (t)\) embody the jackal pair’s nowaday positions, \(Y_{1} (t)\) and \(Y_{2} (t)\) embody the refreshed jackal pair’s positions.

The evading energy \(E\) is constructed as:

$$E={E}_{1}*{E}_{0}$$
(6)

where \(E_{1}\) embodies a reduction process of prey energy, \(E_{0}\) embodies an initial value of prey energy.

$${E}_{0}=2*r-1$$
(7)

where \(r\) embodies a variable in [0,1].

$${E}_{1}={c}_{1}*(1-(t/T))$$
(8)

where \(T\) embodies the maximum iteration, \(c_{1}\) embodies a constant 1.5, and \(E_{1}\) decays linearly.

The \(rl\) is constructed as:

$$rl=0.05*LF(y)$$
(9)

The \(LF\) is the target fitness of the Lévy, which is constructed as:

$$LF\left(y\right)=0.01\times \left(\mu \times \sigma \right)/\left(\left|{v}^{(1/\beta )}\right|\right); \sigma ={\left(\frac{r\left(1+\beta \right)\times sin\left(\pi \beta /2\right)}{r\left(\frac{1+\beta }{2}\right)\times \beta \times \left({2}^{\frac{\beta -1}{2}}\right)}\right)}^{1/\beta }$$
(10)

where \(\mu\) and \(v\) embody the variables in (0,1), \(\beta\) embodies 1.5.

The refreshed jackal’s position is constructed as:

$$Y(t+1)=\frac{{Y}_{1}(t)+{Y}_{2}(t)}{2}$$
(11)

2.3 Exploitation

The evading energy will decrease rapidly once the prey is found and threatened. The golden jackal will encircle, attack and consume prey. The jackal pair’s capture technique is constructed as:

$${Y}_{1}(t)={Y}_{M}(t)-E\cdot \left|rl\cdot {Y}_{M}(t)-Prey(t)\right|$$
(12)
$${Y}_{2}(t)={Y}_{FM}(t)-E\cdot \left|rl\cdot {Y}_{FM}(t)-Prey(t)\right|$$
(13)

where \(t\) embodies the nowaday iteration, \(Prey(t)\) embodies the nowaday prey, \(Y_{M} (t)\) and \(Y_{FM} (t)\) embody a jackal pair’s nowaday positions, \(Y_{1} (t)\) and \(Y_{2} (t)\) embody a jackal pair’s refreshed positions. Formula (11) yields the refreshed jackal’s position.

To illustrate the solution phase further, the pseudocode of GJO is displayed in Algorithm 1.

Algorithm 1
figure a

GJO

3 Lateral inhibition

The lateral inhibition has been found and confirmed by Hartline in the electrophysiological experiment on tachypleus vision. Each eyelet of tachypleus compound eye is equivalent to a receptor, which is a neural network composed of a unique optical system, sensory cells and nerve fibers. Each optical system of tachypleus has an associated inhibitory field around it. When the receptors are exposed to different light intensities, the electric pulse intensity and nerve excitation have some changes, and it is extremely easy to generate maximum or minimum values.

The lateral inhibition mechanism can avoid visual information loss, improve image contrast, enhance the gray gradient, and strengthen the visual foreground and background. The lateral inhibition preprocessess the original and template images, which considerably enhances the precision, dependability and spatial resolution of template matching, that is constructed as:

$${r}_{p}={e}_{p}+\sum_{j=1}^{n}{k}_{p,j}\left({r}_{j}-{r}_{p,j}\right), p=\mathrm{1,2},...,n;j\ne p$$
(14)

where \(e_{p}\) and \(r_{p}\) embody the input and output of \(pth\) receptor, \(k_{p,j}\) embodies a coefficient.

To calculate efficiently, the lateral inhibition is modified to a 2D gray. The gray intensity of image pixel \((m,n)\) is constructed as:

$$R(m,n)={I}_{0}(m,n)+\sum_{i=-M}^{M}\sum_{j=-N}^{N}{\alpha }_{i,j}{I}_{0}(m+i,n+j)$$
(15)

where \(\alpha_{i,j}\) embodies a coefficient between point \((i,j)\) and centroid point, \(I_{0} (m,n)\) embodies the initial gray intensity of point \((m,n)\), \(R(m,n)\) embodies the gray intensity of point \((m,n)\) after preprocessing via lateral inhibition, \(M \times N\) embodies the area of the acceptable domain. The schematic representation when \(M = N = 2\) is exhibited in Fig. 2.

Fig. 2
figure 2

Schematic representation via lateral inhibition structure when \(M = N = 2\)

The corresponding distance has an inverse relationship with the competition coefficient. The strength of the inhibitory impact increases with decreasing distance from the receptor. The range of the receptor is \(5 \times 5\), which is constructed as:

$$R(m,n)={I}_{0}(m,n)+\sum_{i=-M}^{M}\sum_{j=-N}^{N}{\alpha }_{i,j}{I}_{0}(m+i,n+j)$$
(16)

Since visual neurons are all at the same input level, the competing coefficient is infinitely close to zero, which is constructed as:

$${\alpha }_{0}+8{\alpha }_{1}+16{\alpha }_{2}=0$$
(17)

where \(\alpha_{0} { = }1\), \(\alpha_{1} = - 0.075\), and \(\alpha_{2} = - 0.025\). The matrix model is constructed as:

$$U=\left[\begin{array}{cc}\begin{array}{c}-0.025\\ \begin{array}{c}-0.025\\ \begin{array}{c}-0.025\\ \begin{array}{c}-0.025\\ -0.025\end{array}\end{array}\end{array}\end{array}& \begin{array}{cc}\begin{array}{c}-0.025\\ \begin{array}{c}-0.075\\ \begin{array}{c}-0.075\\ \begin{array}{c}-0.075\\ -0.025\end{array}\end{array}\end{array}\end{array}& \begin{array}{cc}\begin{array}{c}-0.025\\ \begin{array}{c}-0.075\\ \begin{array}{c}1\\ \begin{array}{c}-0.075\\ -0.025\end{array}\end{array}\end{array}\end{array}& \begin{array}{cc}\begin{array}{c}-0.025\\ \begin{array}{c}-0.075\\ \begin{array}{c}-0.075\\ \begin{array}{c}-0.075\\ -0.025\end{array}\end{array}\end{array}\end{array}& \begin{array}{c}-0.025\\ \begin{array}{c}-0.025\\ \begin{array}{c}-0.025\\ \begin{array}{c}-0.025\\ -0.025\end{array}\end{array}\end{array}\end{array}\end{array}\end{array}\end{array}\end{array}\right]$$
(18)

The template \(U\) is coupled with \(R(m,n)\) to create a fresh gray intensity and retrieve the edge information.

$$F(m,n)=\left\{\begin{array}{c}0\\ 255\end{array} \begin{array}{c}R\left(m, n\right)\\ R\left(m,n\right)\end{array}\right.\begin{array}{c}\le \\ >\end{array}\begin{array}{c}T\\ T\end{array}$$
(19)

where \(T\) embodies the threshold set by actual condition, and \(F(m,n)\) embodies a gray intensity of point \((m,n)\) after multiple operations.

4 LI-GJO

4.1 The fitness of LI-GJO

The fitness is utilized to measure the jackal’s fitness in accordance with actual situation and particular operation. If the matched image has a noteworthy size, the LI-GJO will consume longer to estimate the fitness. The schematic representation of the template operation is exhibited in Fig. 3.

The objective function is constructed as:

$$f(m,n)=\frac{1}{PQ}\sum_{i=0}^{P-1}\sum_{j=0}^{Q-1}I(m+i,n+j)$$
(20)

where \(P \times Q\) embodies the size of template photograph \((m,n)\); \(I(m + i,n + j)\) embodies the preprocessed gray intensity of the \((m + i,n + j)\). If the original photograph’s size is \(A \times B\), a coordinate interval of original photograph for template matching is \(1 \le m \le A - P + 1\) and \(1 \le n \le B - Q + 1\).

Fig. 3
figure 3

Schematic representation of the template operation

4.2 The procedure of LI-GJO

The pseudocode of the LI-GJO is displayed in Algorithm 2. The flow chart of the LI-GJO for image matching is exhibited in Fig. 4.

Fig. 4
figure 4

Flow chart of the LI-GJO for image matching

Algorithm 2
figure b

LI-GJO

5 Experimental comparison and outcome

5.1 Experimental configuration

The experimental configuration is maintained on a computer with an Intel Core i9-12900HX 2.30 GHz CPU, RTX 3080 Ti, and 64 GB RAM. Each technique is scheduled in MATLAB R2018b.

5.2 Configuring parameters

To guarantee the profitability and practicability, LI-GJO is contrasted with LI-AO, LI-DOA, LI-SHO, LI-SMA, LI-SOA, LI-STOA and LI-TSA. Configuring parameters of each technique are trustworthy and representative values of the original research, which are depicted in Table 1.

Table 1 Configuring parameters of each technique

5.3 The outcomes and analysis

For various techniques, the population amount is 100, the greatest iteration is 300, and the standalone procedure is 30. Best, Worst, Mean and Std are the optimal solution, worst solution, mean solution and standard deviation. CR is the correct rate, time is the execution time, and standard deviation is employed to establish the ranking. These important indicators are used to detect the success rate and matching accuracy of the template image. The LI-GJO is contrasted with other algorithms to confirm the matching performance and optimization efficiency, the threshold value of extracted edge image is defined \(T = 110\). The comparative results accomplished utilizing various algorithms are depicted in Table 2.

Table 2 Comparative results accomplished utilizing various algorithms

The GJO utilizes a cooperative predation mechanism to search, enclose and capture the prey. The GJO not only has strong stability and robustness to promote the computational efficiency but also uses exploration or exploitation to intensify the matching accuracy. The lateral inhibition effectively preprocesses the original image to eliminate the noise, avoid visual information loss, enhance the gray gradient, strengthen the visual foreground and background, accentuate the image features and maximize the matching effect. The LI-GJO intensifies the computational precision by combining the potential characteristics of the GJO and lateral inhibition. The LI-GJO has a large search domain to avert rapid convergence to locate the best solution. The stated intention is to execute a pixel-for-pixel comparison methodology to locate the appropriate portion of the template photograph in the original photograph and guarantee the matching precision by assessing the similarities or distinctions between the two photographs. The optimal solution and worst value embody discovery and extraction. The mean solution embodies the overall optimization level and convergence accuracy. The standard deviation embodies the stability. CR embodies the matching accuracy. The time reveals the matching efficiency. Through different evaluation indicators, the LI-GJO is contrasted to existing algorithms in toder to demonstrate the reliability and stability. For images 1, 2, 3, 4, 5, 6, 8 and 9, the optimal solution, worst solution and mean solution of LI-GJO are consistent and optimal, which implies that the LI-GJO has greater superiority and overall search performance to explore the finest matching effect. The LI-GJO exhibits a lesser standard deviation and superior ranking, which implies that the LI-GJO has high stability. The correct rate of the LI-GJO is 100%, which implies that the LI-GJO has substantial global and local optimization to deliver an accurate solution. The completion time of the LI-GJO is relatively small, which implies that the LI-GJO has excellent operational efficiency. For image 7, all algorithms generate the exact solutions, but all evaluation indicators of the LI-GJO are superior to those of the LI-AO, LI-DOA, LI-SHO, LI-SMA, LI-SOA, LI-STOA and LI-TSA. The LI-GJO has a higher CR and quicker completion time, which implies that the LI-GJO can reasonably use exploration or exploitation to promote matching accuracy. For image 10, each algorithm obtains the same optimal value. The standard deviation of LI-GJO is lesser than that of LI-SHO, but the worst solution, mean solution, CR and completion time of LI-GJO are more productive than those of other techniques, the LI-GJO has excellent stability and high convergence effect. To summarize, the LI-GJO has superior durability and sustainability to obtain better evaluation indicators, which is an practical and usefull method to resolve the image matching.

The p-value Wilcoxon rank-sum [33] is depicted in Table 3, which is designed to investigate if two groups of data differ substantially. \(p < 0.05\) implies a noteworthy discrepancy. \(p \ge 0.05\) implies no noteworthy discrepancy. N/A implies “not applicable”. The experimental conclusions exhibite that there is a substantial discrepancy between LI-GJO and other techniques.

Table 3 Outcomes of p-value for Wilcoxon rank-sum

The stated intention of template matching is to accurately align the original photograph with the template photograph and guarantee fitness value by measuring the similarity between two photographs, which is the area of focus for pattern recognition, image processing, computer vision and feature extraction. The experimental outcomes with the original photographs are exhibited in Figs. 5a, 6a, 7a, 8a, 9a, 10a, 11a, 12a, 13a and 14a and the template photographs are exhibited in Figs. 5b, 6b, 7b, 8b, 9b, 10b, 11b, 12b, 13b and 14b. The original photographs and template photographs extracted via the lateral inhibition are exhibited in Figs. 5c, 6c, 7c, 8c, 9c, 10c, 11c, 12c, 13c and 14c and Figs. 5d, 6d, 7d, 8d, 9d, 10d, 11d, 12d, 13d and 14d. The lateral inhibition mechanism preprocesses the original or template photograph to avoid visual information distortion, improve the gray gradient and spatial resolution, and enhance the image edges and background intensity, which remarkably intensifies the matching accuracy and computational efficiency. The final template matching outcomes ascertained via the LI-GJO are exhibited in Figs. 5e, 6e, 7e, 8e, 9e, 10e, 11e, 12e, 13e and 14e. The GJO, motivated by the jackal’s synchronized foraging, exhibits its procedure of scavenging for prey, wrapping around prey and attacking prey to furnish the most appropriate solution. The lateral inhibition improves the characteristics of the test image and enhances the stability of template matching, which contributes to boosting the calculation accuracy. The template photograph and the original photograph can be perfectly matched by the LI-GJO, which implies that the LI-GJO has excellent robustness and stability. Compared with LI-AO, LI-DOA, LI-SHO, LI-SMA, LI-SOA, LI-STOA and LI-TSA, the optimal solution, worst solution, mean solution, standard deviation, CR, completion time and ranking of the LI-GJO are superior, which implies that the LI-GJO utilizes the unique optimization mechanism to obtain higher calculational efficiency and greater matching accuracy. The convergence lines of experimental outcomes are exhibited in Figs. 5f, 6f, 7f, 8f, 9f, 10f, 11f, 12f, 13f and 14f. Compared with other techniques, the LI-GJO exhibits greater matching precision, superior measured accuracy and greater convergence frequency. The ANOVA tests of experimental outcomes are exhibited in Figs. 5g, 6g, 7g, 8g, 9g, 10g, 11g, 12g, 13g and 14g. The LI-GJO exhibits attractive sustainability and dependability to attain a lower standard deviation. To summarize, the LI-GJO delivers superiority and feasibility to resolve image matching.

Fig. 5
figure 5

Experimental outcomes for photograph 1. a Original photograph (\(1024 \times 773\)). b Template photograph (\(68 \times 61\)). c Original photograph extracted via the lateral inhibition. d Template photograph extracted via the lateral inhibition. e Ultimate template matching ascertained via LI-LWOA. f Convergence lines of experimental outcomes. g ANOVA of experimental outcomes

Fig. 6
figure 6

Experimental outcomes for photograph 2. a Original photograph (\(1543 \times 1393\)). b Template photograph (\(191 \times 217\)). c Original photograph extracted via the lateral inhibition. d Template photograph extracted via the lateral inhibition. e Ultimate template matching ascertained via LI-LWOA. f Convergence lines of experimental outcomes. g ANOVA of experimental outcomes

Fig. 7
figure 7

Experimental outcomes for photograph 3. a Original photograph (\(670 \times 325\)). b Template photograph (\(79 \times 67\)). c Original photograph extracted via the lateral inhibition. d Template photograph extracted via the lateral inhibition. e Ultimate template matching ascertained via LI-LWOA. f Convergence lines of experimental outcomes. g ANOVA of experimental outcomes

Fig. 8
figure 8

Experimental outcomes for photograph 4. a Original photograph (\(800 \times 533\)). b Template photograph (\(46 \times 54\)). c Original photograph extracted via the lateral inhibition. d Template photograph extracted via the lateral inhibition. e Ultimate template matching ascertained via LI-LWOA. f Convergence lines of experimental outcomes. g ANOVA of experimental outcomes

Fig. 9
figure 9

Experimental outcomes for photograph 5. a Original photograph (\(900 \times 562\)). b Template photograph (\(145 \times 127\)). c Original photograph extracted via the lateral inhibition. d Template photograph extracted via the lateral inhibition. e Ultimate template matching ascertained via LI-LWOA. f Convergence lines of experimental outcomes. g ANOVA of experimental outcomes

Fig. 10
figure 10

Experimental outcomes for photograph 6. a Original photograph (\(1093 \times 697\)). b Template photograph (\(67 \times 87\)). c Original photograph extracted via the lateral inhibition. d Template photograph extracted via the lateral inhibition. e Ultimate template matching ascertained via LI-LWOA. f Convergence lines of experimental outcomes. g ANOVA of experimental outcomes

Fig. 11
figure 11

Experimental outcomes for photograph 7. a Original photograph (\(1080 \times 617\)). b Template photograph (\(73 \times 153\)). c Original photograph extracted via the lateral inhibition. d Template photograph extracted via the lateral inhibition. e Ultimate template matching ascertained via LI-LWOA. f Convergence lines of experimental outcomes. g ANOVA of experimental outcomes

Fig. 12
figure 12

Experimental outcomes for photograph 8. a Original photograph (\(1024 \times 683\)). b Template photograph (\(98 \times 71\)). c Original photograph extracted via the lateral inhibition. d Template photograph extracted via the lateral inhibition. e Ultimate template matching ascertained via LI-LWOA. f Convergence lines of experimental outcomes. g ANOVA of experimental outcomes

Fig. 13
figure 13

Experimental outcomes for photograph 9. a Original photograph (\(780 \times 490\)). b Template photograph (\(87 \times 66\)). c Original photograph extracted via the lateral inhibition. d Template photograph extracted via the lateral inhibition. e Ultimate template matching ascertained via LI-LWOA. f Convergence lines of experimental outcomes. g ANOVA of experimental outcomes

Fig. 14
figure 14

Experimental outcomes for photograph 10. a Original photograph (\(1065 \times 879\)). b Template photograph (\(85 \times 90\)). c Original photograph extracted via the lateral inhibition. d Template photograph extracted via the lateral inhibition. e Ultimate template matching ascertained via LI-LWOA. f Convergence lines of experimental outcomes. g ANOVA of experimental outcomes

6 Conclusion and future research

The GJO is motivated by the jackal’s synchronized foraging that emphasizes the strategy of scavenging for prey, wrapping around prey and attacking prey to deliver the most outstanding value. The lateral inhibition inhibits visual information loss, strengthens the gray gradient and spatial resolution, upgrades the photograph matching precision, promotes image contrast, and amplifies the visible foreground and background. The LI-GJO employs natural combinations and complementary benefits to prohibit precocious convergence and deliver the most suitable value. The LI-GJO is integrated to address the image matching and confirm sustainability and durability. The stated intention is to execute a pixel-for-pixel comparison methodology to locate the appropriate portion of the template photograph in the original photograph and guarantee the matching precision by assessing the similarities or distinctions between the two photographs. The experimental outcomes are utilised to estimate each technique's aggregate matching impact and measured accuracy. The evaluation indicators of the LI-GJO are superior to those of LI-AO, LI-DOA, LI-SHO, LI-SMA, LI-SOA, LI-STOA and LI-TSA. The experimental outcomes imply that the LI-GJO can successfully balance exploration and exploitation to attain higher computational efficiency, better matching accuracy, and greater robustness and stability. Meanwhile, the LI-GJO has excellent practicality and stability and thus can efficaciously resolve the image matching.

In future work, the LI-GJO will be utilized to address complex image processing issues, such as sophisticated patterns, feature tracking, stereo matching and real-world images. Additionally, we will focus more on the theoretical study and mathematical model and investigate the astringency and implementation of the LI-GJO for image matching. The modified GJO will be utilized to address the shape matching via atomic potential function, further verifying the effectiveness and feasibility.