<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD with MathML3 v1.1d2 20140930//EN" "JATS-journalpublishing1-mathml3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.1d2" xml:lang="en">
  <front>
    <journal-meta>
      <journal-id journal-id-type="nlm-ta">JIAP</journal-id>
      <journal-id journal-id-type="publisher-id">ICCK</journal-id>
      <journal-title-group>
        <journal-title>ICCK Journal of Image Analysis and Processing</journal-title>
      </journal-title-group>
      <issn pub-type="ppub" publication-format="print"/>
      <issn pub-type="epub" publication-format="electronic">pending</issn>
      <publisher>
        <publisher-name>Institute of Central Computation and Knowledge Inc</publisher-name>
        <publisher-loc>522 W RIVERSIDE AVE STE N, SPOKANE, WA, 99201, UNITED STATES</publisher-loc>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.62762/JIAP.2025.772403</article-id>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>Research Article</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>Multi Focus Image Fusion using Image Enhancement Methods</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <name>
            <surname>Danyal</surname>
            <given-names>Mian Muhammad</given-names>
          </name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <name>
            <surname>Samin</surname>
            <given-names>Omar Bin</given-names>
          </name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <name>
            <surname>Khan</surname>
            <given-names>Sarwar Shah</given-names>
          </name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <contrib-id contrib-id-type="orcid">https://orcid.org/0009-0001-2556-7068</contrib-id>
          <name>
            <surname>Khan</surname>
            <given-names>Sajid</given-names>
          </name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff1"><label>1</label>Center for Excellence in Information Technology, Institute of Management Sciences, Peshawar 25000, Pakistan</aff>
        <aff id="aff2"><label>2</label>Department of Computer Science, University of Engineering and Technology Mardan, Mardan 23200, Pakistan</aff>
      </contrib-group>
      <author-notes>
        <corresp id="cor3">Corresponding Author: Sarwar Shah Khan. Email: <email>sskhan0092@gmail.com</email></corresp>
      </author-notes>
      <pub-date date-type="pub" pub-type="epub" publication-format="online">
        <day>26</day>
        <month>6</month>
        <year>2025</year>
      </pub-date>
      <volume>1</volume>
      <issue>2</issue>
      <fpage>57</fpage>
      <lpage>72</lpage>
      <history>
        <date date-type="received">
          <day>11</day>
          <month>4</month>
          <year>2025</year>
        </date>
        <date date-type="accepted">
          <day>19</day>
          <month>5</month>
          <year>2025</year>
        </date>
      </history>
      <permissions>
        <copyright-statement>© 2025 by the Authors. Published by Institute of Central Computation and Knowledge. This is an open access article under the CC BY license (https://creativecommons.org/licenses/by/4.0/).</copyright-statement>
        <license xlink:href="https://creativecommons.org/licenses/by/4.0/">
        <license-p>This work is licensed under a <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
        </license>
      </permissions>
      <self-uri xlink:href="https://www.icck.org/article/abs/jiap.2025.772403">This article is available from https://www.icck.org/article/abs/jiap.2025.772403</self-uri>
      <abstract>
        <p>The challenge with multifocus images lies in different regions being in focus across various shots, resulting in some areas appearing blurry while others are sharp. This issue is prevalent in fields such as medical imaging, remote sensing, and photography, where clear and detailed images are essential. This project introduces a novel approach to multifocus image fusion by integrating the Marr–Hildreth edge detection technique with Discrete Cosine Transform (DCT), Stationary Wavelet Transform (SWT), and Discrete Wavelet Transform (DWT). The Marr–Hildreth algorithm detects edges by identifying zero-crossings in the Laplacian of a Gaussian-blurred image, effectively highlighting areas with significant intensity changes. The proposed method was evaluated across four datasets–clocks, leaves, balloons, and bottles. Performance metrics such as Peak Signal-to-Noise Ratio (PSNR), Root Mean Square Error (RMSE), Mean Absolute Error (MAE), and Entropy indicated that this integrated approach significantly enhances image quality. By combining Marr–Hildreth edge detection with DCT, SWT, and DWT, the method improves image clarity and detail, offering a promising advancement in image fusion techniques. This innovative approach not only addresses multifocus image challenges but also paves the way for further developments in image fusion processes. The study suggests that enhanced image processing techniques can be applied across various fields requiring high-quality image fusion.</p>
      </abstract>
      <kwd-group kwd-group-type="author" xml:lang="en">
        <kwd>image fusion</kwd>
        <kwd>multifocus images</kwd>
        <kwd>discrete cosine transform</kwd>
        <kwd>high boost filter</kwd>
        <kwd>discrete wavelet transform</kwd>
        <kwd>marr–hildreth edge detection</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="S1">
      <label>1.</label>
      <title>Introduction</title>
      <p id="S1.p1">Capturing images in everyday life is that it helps remember memories. Taking images allows you to capture special moments, everyday occurrences, and the evolution of people and places over time [<xref rid="ref001" ref-type="bibr">1</xref>]. An ideal image should perfectly capture every detail of a scene, providing all the necessary information. However, since cameras have limitations, this isn't always possible [<xref rid="ref002" ref-type="bibr">2</xref>]. One of the most common photographic challenges is to capture an image with varying focal depths, where other parts of the scene have become focused, as well as parts that have been blurred or unclear. This is a result of the fact that the lens of a camera cannot focus at a different depth. Image fusion techniques are employed to overcome this problem [<xref rid="ref003" ref-type="bibr">3</xref>].</p>
      <p id="S1.p2">Image fusion combines elements from multiple photos into a single picture that captures every detail of the scene clearly. This technique is particularly useful when a camera's low depth of field avoids it from capturing everything in focus at once. For example, when taking a photo, the camera may focus well on either a nearby or a distant object, but not both. Image fusion addresses this problem by combining images taken at different distances [<xref rid="ref004" ref-type="bibr">4</xref>]. Image fusion is used in many different kinds of applications to improve image clarity and information content. In medical imaging, it combines data from various scans such as MRI and CT to improve diagnostic accuracy. Remote sensing uses images from multiple spectral bands to improve monitoring of the environment. It is also used in monitoring to combine feeds from multiple cameras for complete monitoring, and in automotive technology to help advanced driver-assistance systems by consolidating sensor data to improve safety features [<xref rid="ref005" ref-type="bibr">5</xref>].</p>
      <p id="S1.p3">Multifocus image fusion is an approach for combining a set of images that are differently focused, to form a single fused composite image and clear representation such that all useful information in every image is well-focused ensuring the efficiency on further analysis or visualization not limited by any loss occurred from defocusing [<xref rid="ref006" ref-type="bibr">6</xref>]. Multifocus image fusion is majorly used in medical imaging for sharp diagnostic visuals, and improved surveillance so clearer image and photography to achieve high depth of field [<xref rid="ref007" ref-type="bibr">7</xref>].</p>
      <p id="S1.p4">In this article, we explore the application of image fusion techniques consisting of Marr–Hildreth edge detection, Discrete Cosine Transform (DCT), Stationary Wavelet Transform (SWT), and Discrete Wavelet Transform (DWT) to perform image fusion, especially multi-focus one. The Marr–Hildreth technique enhances image features by applying a Gaussian blur followed by the Laplacian operator, which helps in detecting and preserving edges. The Discrete Cosine Transform (DCT) is used for separating the image into parts of varying importance, increasing efficiency by focusing on the more important components [<xref rid="ref008" ref-type="bibr">8</xref>]. Furthermore, the Stationary Wavelet Transform (SWT) helps in maintaining shift-invariance, ensuring better structural preservation in images, while the Discrete Wavelet Transform (DWT) provides efficient multi-resolution decomposition, allowing images to be analyzed at different levels of detail, which is important for effectively combining data from multiple sources [<xref rid="ref009" ref-type="bibr">9</xref>].</p>
      <p id="S1.p5">The first step involves collecting two multi-focused images and applying Marr–Hildreth edge detection as a preprocessing technique. This method enhances image sharpness by detecting and preserving edges, which contributes to better fusion results. After preprocessing, the images are finally combined using image fusion techniques such as DCT, SWT, and DWT to get a single clear, enhanced composite image. The objective is to produce a final image that enhances significant information from the original elements, improving the quality of the total image.</p>
      <p id="S1.p6">The dataset for this experiment contains four groups of grayscale photos: "Balloons," "Leaves," "Clock," and "Clocks and Leaves." These collections are based on the "Lytro multi-focus datasets" [<xref rid="ref010" ref-type="bibr">10</xref>]. They have been selected specifically to improve the evaluation and testing of multi-focus images using modern techniques. This study made the following contributions:</p>
      <p>
        <list list-type="bullet" id="S1.I1">
          <list-item id="S1.I1.i1">
            <p id="S1.I1.i1.p1">The images were pre-processed using the Marr–Hildreth edge detection technique to enhance image clarity and sharpness. This method involves applying a Gaussian blur to the image to reduce noise, followed by computing the Laplacian to detect areas with rapid intensity changes, effectively highlighting edges and fine details.</p>
          </list-item>
          <list-item id="S1.I1.i2">
            <p id="S1.I1.i2.p1">The proposed method used advanced image fusion methods DCT, SWT and DWT that combines multiple images captured at different focal depths to improve image clarity and detail. The experiments also discuss the fusion results using different datasets.</p>
          </list-item>
          <list-item id="S1.I1.i3">
            <p id="S1.I1.i3.p1">The experiments were designed to check the efficiency of multi-focus image fusion on a dataset that includes four sets of grayscale images ("Clocks" "Balloons," "Leaves," and "Clock and Leaves"). This testing is important for calculating the effectiveness of the image fusion techniques used.</p>
          </list-item>
        </list>
      </p>
      <p id="S1.p8">The paper is structured as follows: Section 2 covers previous research. In Section 3, we describe our research methodology. Section 4 describes the datasets, and Section 5 presents the results and discussions. Finally, Section 6 summarizes the findings and outlines future directions of the study.</p>
    </sec>
    <sec id="S2">
      <label>2.</label>
      <title>Literature Review</title>
      <p id="S2.p1">Multifocus image fusion implies combining images taken at various focus levels to achieve one focused image, where details are well-defined all over. The development has taken place from simple pixel-based techniques to better synthesis algorithms, including wavelet transforms and neural networks. Applications have been noted in various imaging fields, including medical images, remote sensing, and photography, for clarity and detail to help with better analysis and interpretation. Different researchers worked in the area of multifocus image fusion such as Liu et al. [<xref rid="ref011" ref-type="bibr">11</xref>] suggested method for a new Algorithm of Multi-Focus Color Image Fusion Based on Low-Vision Image Reconstruction and Focused Feature Extraction. They proposed an architectural gradient-based method to determine the focused feature and how it can be extracted to increase the image resolution in the multi-focused point scenarios. One of the main novelties in their approach was a deep residual network, together with a degradation model designed to further improve the level of detail in the fused images. The algorithm accurately detected areas of focus and realized a huge progress in keeping the image's detail and edge structures well preserved, compared to the existing techniques.</p>
      <p id="S2.p2">Li et al. [<xref rid="ref012" ref-type="bibr">12</xref>] introduced a swift and efficient image fusion approach that strategically merges multiple images to generate a single, highly informative composite. This method hinges on a dual-scale decomposition framework, where an input image is separated into a base layer—capturing large-scale intensity variations—and a detail layer—responsible for finer structural elements. To achieve effective fusion, a novel guided filtering-based weighted average algorithm is employed, ensuring robust spatial consistency throughout the fusion process. Extensive experiments involving multispectral, multifocus, multimodal, and multiexposure image datasets underscore the superior performance of this technique, as it consistently delivers fused images of remarkable visual clarity and detail preservation across diverse application scenarios.</p>
      <p id="S2.p3">Zhang et al. [<xref rid="ref002" ref-type="bibr">2</xref>] presented a comprehensive and detailed survey of multi-focus image fusion (MFIF), specifically addressing the advancements and limitations of deep learning-based methods that have emerged in this field since 2017. Recognizing the gap in the existing literature—namely, the absence of an exhaustive review focusing on deep learning for MFIF—this paper thoroughly reviews a broad array of algorithms, datasets, and evaluation metrics employed in contemporary MFIF research. As the first of its kind, this survey not only charts the progress of deep learning-driven MFIF approaches but also systematically compares them with traditional fusion techniques, highlighting significant improvements in performance as evidenced by both qualitative and quantitative metrics. Furthermore, the authors provide insightful commentary on the present state of MFIF and outline promising directions for future investigations, thereby offering a valuable roadmap for further research and applications in high-detail imaging domains.</p>
      <p id="S2.p4">Turgut et al. [<xref rid="ref013" ref-type="bibr">13</xref>] used a gradient transform-based novel method to combine the focused and unfocused pixels. This aimed to counter the common problems witnessed within the performance-hindering already in use methods, such as shift variance and misregistration. It starts with generating halftone images using the Halftoning-Inverse Halftoning (H-IH) transform. The focus measurement is calculated for these gradient images through the Energy of Gradient (EOG) and Standard Deviation functions, forming a composite image. This composite was further improved with a decision fusion strategy using majority voting for the combination. The method was at the time very unique to most common robustness issues in fusion and, at the same time, captures the details which are normally unobservable by other methods. This new innovative approach has shown excellent results compared to 17 different modern and traditional techniques, both visually and objectively. In a more objective manner, the assessments were using six quantitative metrics, where with the new method doing better in five out of the six, pointing to a huge improvement over other technique.</p>
      <p id="S2.p5">Li et al. [<xref rid="ref006" ref-type="bibr">6</xref>] proposed a robust and effective deep learning-based image fusion approach designed to address the challenges of integrating infrared and visible images into a single composite image with all essential features preserved. The technique initiates with a decomposition of the input images into base and detail components, enabling a structured and balanced fusion. Specifically, the base parts of the images are merged through a weighted averaging process to maintain global structure, while the detail content is refined using a deep learning network to extract multi-layer features that encapsulate rich spatial and spectral information. To further improve the fused detail quality, a combination of -norm and weighted-average strategies is utilized to generate multiple candidate fused detail contents, followed by a max selection step to finalize the fusion process. Ultimately, the fused image is reconstructed by integrating the refined base and detail components. Experimental evaluations underscore the approach's superior performance in both visual quality and quantitative metrics, positioning it as a promising tool for high-detail image fusion applications.</p>
      <p id="S2.p6">Zhou et al. [<xref rid="ref003" ref-type="bibr">3</xref>] presented a comprehensive review of multi-focus image fusion (MFIF), a critical technique in overcoming the depth of field limitations inherent in optical lenses by merging multiple partially focused images into a single, fully focused composite. The authors systematically introduced a new classification system for MFIF algorithms, categorizing them into four distinct groups: transform domain methods, boundary segmentation methods, deep learning-based methods, and hybrid fusion approaches. Within this framework, they elaborated on the defining characteristics of boundary segmentation methods, highlighting their effectiveness in preserving edge information and maintaining image integrity compared to conventional methods. The paper further delineates both subjective and objective evaluation metrics, offering an in-depth discussion of eight widely recognized objective indicators used to assess the quality of fusion results. Drawing on an extensive body of literature, the authors compared and summarized a variety of representative algorithms, providing a well-rounded overview of the field. The work concludes by identifying the primary challenges faced by current MFIF research and outlining future directions for development, underscoring the method's potential for advanced applications requiring high levels of detail and visual clarity, such as medical imaging and remote sensing.</p>
      <p id="S2.p7">Kaur et al. [<xref rid="ref014" ref-type="bibr">14</xref>] explored the intrinsic limitations of optical lenses, which, constrained by finite depth-of-field (DOF), struggle to produce fully focused images in a single capture. In practice, only elements within the DOF appear sharp, leaving other regions blurred. To address this challenge, researchers have proposed a suite of algorithms aimed at fusing multiple partially focused images of the same scene into a single, fully focused composite. The authors systematically reviewed these algorithms, classifying them into conventional and deep learning-based approaches, while emphasizing the unique challenges of multi-focus image fusion (MFIF). Applications of MFIF are diverse and impactful, spanning optical microscopy, micro-image fusion, digital photography, and remote sensing networks. Beyond outlining the conceptual and algorithmic underpinnings, this paper performed a comprehensive qualitative and quantitative evaluation of seven representative MFIF methods using the Real-MFF dataset. The findings highlighted both the advancements and current limitations of existing approaches, culminating in a forward-looking discussion on promising directions for future research and development in the field. Pan et al. [<xref rid="ref015" ref-type="bibr">15</xref>] suggested an innovative methodology that is DDMF, as denoted by the Feature Difference Network for the betterment of Multi-Focus Image Fusion MFIF. The technique introduces noise to highlight the difference in the information loss between the focused and defocused regions of an image. The method applies Gaussian noise to the picture to improve the representation of features at the denoising stage while using a Denoising Diffusion Probabilistic Model diffusion process. This enables DDMF to detect and label each pixel much more accurately. Their experiments show that this new approach outperforms existing methods in terms of visual quality and objective performance measures.</p>
      <p id="S2.p8">You et al. [<xref rid="ref016" ref-type="bibr">16</xref>] introduced new multi-focus image fusion technique by applying the local standard deviations of Laplacian images from the input images that are further enhanced with a guided filter. The key innovation is that locally computed standard deviation indicates the sharpness of the images; indeed, if the pixel is sharper, then the local variance is higher. This technique includes the application of Laplacian filters to source images, followed by calculation and enhancement of local standard deviations by a guided filter, and then the creating of decision maps for the selection of pixels based on the data that is enhanced. Following this, a variant method is applied to refine this decision map further using guided filtering. The approach resulted in much better performance in comparison with those of the prior advanced techniques. Farid et al. [<xref rid="ref017" ref-type="bibr">17</xref>] have proposed a novel multifocus image fusion scheme to enhance the depth of field and fuse in-focused regions from multiple partially focused images. Blur is induced in another less-in-focus region of the selected single-in-focus image. These authors have applied the CAB algorithm with selective image blurring based on the local content of the image. With this approach, it can be ensured that meaningful blur is induced over focus regions, and blur regions are left relatively unchanged. The initial segmentation map, extracted from the difference between the original and CAB-blurred images, is further refined for increased accuracy. The algorithm has been tested and outperforms all the current methods using two public datasets.</p>
      <p id="S2.p9">Bhat et al. [<xref rid="ref018" ref-type="bibr">18</xref>] further enhanced MFIF by overcoming the problems of low resolution, high noise, and blurriness in traditional techniques. The method used the combination of NSWT in a Neutrosophic Set and Stationary Wavelet Transform to produce more transparent and more informative fused images. NSWT improves image quality and Depth-of-Field better than some advanced methods, as shown during two dataset tests. Wang et al. [<xref rid="ref019" ref-type="bibr">19</xref>] introduce a new multifocus image fusion algorithm using CNN's in the DWT domain. Their method blends spatial and transform domain techniques, with the CNN creating decision maps for frequency sub bands, replacing traditional fusion rules. The steps include decomposing images into sub bands, using the CNN to generate weight maps, refining these maps with postprocessing, and fusing the sub bands to produce the final image.</p>
      <p id="S2.p10">Compared to previous studies, our research introduces a distinctive methodology by integrating DCT, SWT, and Discrete Wavelet Transform (DWT) for image fusion, complemented by Marr–Hildreth edge detection as a pre-processing step. This approach emphasizes enhancing edge details and overall image clarity prior to the fusion process.In contrast, prior works such as Li et al. [<xref rid="ref012" ref-type="bibr">12</xref>] have explored the combination of Laplacian filters with Discrete Fourier Transforms (DFT) for image sharpening, while Liu et al. [<xref rid="ref011" ref-type="bibr">11</xref>] have provided comprehensive surveys on multi-focus image fusion techniques, focusing on various transformation domains.Other methodologies, including those by Turgut et al. [<xref rid="ref013" ref-type="bibr">13</xref>], have utilized gradient transform-based methods, and You et al. [<xref rid="ref016" ref-type="bibr">16</xref>] have employed local standard deviations enhanced by guided filters.Unlike these, our structured framework synergizes frequency domain transformations with edge enhancement techniques, leading to superior image quality.This is evidenced by higher PSNR and RMSE values, underscoring the effectiveness and applicability of our approach.The summary of literature review is shown in Table <xref rid="T1" ref-type="table">1</xref>.</p>
      <p>
        <table-wrap id="T1">
          <label>Table 1</label>
          <caption>
            <p>Summary of literature review.</p>
          </caption>
          <table>
            <thead>
              <tr>
                <th style="border-top: 1px solid black;" align="justify">
                  <p>Reference</p>
                </th>
                <th style="border-top: 1px solid black;" align="justify">
                  <p>Technique(s)</p>
                </th>
                <th style="border-top: 1px solid black;" align="justify">
                  <p>Preprocessing Method(s)</p>
                </th>
                <th style="border-top: 1px solid black;" align="justify">
                  <p>Dataset(s)</p>
                </th>
                <th style="border-top: 1px solid black;" align="justify">
                  <p>Evaluation Measures</p>
                </th>
                <th style="border-top: 1px solid black;" align="justify">
                  <p>Pros &amp; Cons</p>
                </th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td style="border-top: 1px solid black;" align="justify">
                  <p>Liu et al. [<xref rid="ref011" ref-type="bibr">11</xref>]</p>
                </td>
                <td style="border-top: 1px solid black;" align="justify">
                  <p>Low-vision reconstruction + focused feature extraction with deep residual network</p>
                </td>
                <td style="border-top: 1px solid black;" align="justify">
                  <p>Low-vision image reconstruction</p>
                </td>
                <td style="border-top: 1px solid black;" align="justify">
                  <p>Multi-focus color images (clock, leaves)</p>
                </td>
                <td style="border-top: 1px solid black;" align="justify">
                  <p>PSNR, SSIM, edge preservation rate</p>
                </td>
                <td style="border-top: 1px solid black;" align="justify">
                  <p>+ Accurate focus detection and edge preservation– High computational cost of deep networks</p>
                </td>
              </tr>
              <tr>
                <td style="width:85.4pt;" align="justify">
                  <p>Li et al. [<xref rid="ref012" ref-type="bibr">12</xref>]</p>
                </td>
                <td style="width:113.8pt;" align="justify">
                  <p>SWT &amp; DWT fusion</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>Laplacian filter + DFT (LF+DFT)</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>Medical (breast CT, MRI) &amp; non-medical</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>RMSE, PSNR, Entropy</p>
                </td>
                <td style="width:142.3pt;" align="justify">
                  <p>+ Sharpens structures effectively– DFT may introduce ringing; extra steps increase runtime</p>
                </td>
              </tr>
              <tr>
                <td style="width:85.4pt;" align="justify">
                  <p>Zhang et al. [<xref rid="ref002" ref-type="bibr">2</xref>]</p>
                </td>
                <td style="width:113.8pt;" align="justify">
                  <p>SWT fusion</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>LF+DFT + Unsharp masking</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>"Planes" &amp; "Clocks"</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>RMSE, Entropy</p>
                </td>
                <td style="width:142.3pt;" align="justify">
                  <p>+ Combined sharpening methods improve detail– Complex preprocessing pipeline</p>
                </td>
              </tr>
              <tr>
                <td style="width:85.4pt;" align="justify">
                  <p>Turgut et al. [<xref rid="ref013" ref-type="bibr">13</xref>]</p>
                </td>
                <td style="width:113.8pt;" align="justify">
                  <p>Halftoning-inverse + gradient-based fusion</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>—</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>Standard multifocus benchmarks</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>EOG, Std Dev, visual inspection</p>
                </td>
                <td style="width:142.3pt;" align="justify">
                  <p>+ Robust to shifts/misregistration– Multi-stage; relatively slow</p>
                </td>
              </tr>
              <tr>
                <td style="width:85.4pt;" align="justify">
                  <p>Li et al. [<xref rid="ref006" ref-type="bibr">6</xref>]</p>
                </td>
                <td style="width:113.8pt;" align="justify">
                  <p>DCT fusion</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>Unsharp masking</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>Clock, Leaves</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>PSNR, SSIM</p>
                </td>
                <td style="width:142.3pt;" align="justify">
                  <p>+ Simple and fast– Less effective on very high-frequency details</p>
                </td>
              </tr>
              <tr>
                <td style="width:85.4pt;" align="justify">
                  <p>Zhou et al. [<xref rid="ref003" ref-type="bibr">3</xref>]</p>
                </td>
                <td style="width:113.8pt;" align="justify">
                  <p>Two-level SWT fusion</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>Laplacian filter + DFT</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>Multi-focus color</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>Std Dev, Mean, Entropy</p>
                </td>
                <td style="width:142.3pt;" align="justify">
                  <p>+ Reduces distortion and preserves detail– Two-level approach adds latency</p>
                </td>
              </tr>
              <tr>
                <td style="width:85.4pt;" align="justify">
                  <p>Kaur et al. [<xref rid="ref014" ref-type="bibr">14</xref>]</p>
                </td>
                <td style="width:113.8pt;" align="justify">
                  <p>Statistical/CNN-based fusion metric validation</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>—</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>Large-scale multimodal with ground truth</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>Correlation measures, CNN-based metric</p>
                </td>
                <td style="width:142.3pt;" align="justify">
                  <p>+ Validates metrics against CNN features– Focused on evaluation rather than new fusion algorithm</p>
                </td>
              </tr>
              <tr>
                <td style="width:85.4pt;" align="justify">
                  <p>Pan et al. [<xref rid="ref015" ref-type="bibr">15</xref>]</p>
                </td>
                <td style="width:113.8pt;" align="justify">
                  <p>Denoising Diffusion + feature-difference network (DDMF)</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>Gaussian noise injection</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>Multimodal test sets</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>Visual IQA, PSNR, RMSE</p>
                </td>
                <td style="width:142.3pt;" align="justify">
                  <p>+ Superior visual fidelity– Computationally heavy diffusion process</p>
                </td>
              </tr>
              <tr>
                <td style="width:85.4pt;" align="justify">
                  <p>You et al. [<xref rid="ref016" ref-type="bibr">16</xref>]</p>
                </td>
                <td style="width:113.8pt;" align="justify">
                  <p>Guided-filter decision maps via local standard deviation</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>Laplacian → local std → guided filter</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>Custom multifocus sets</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>PSNR, visual comparison</p>
                </td>
                <td style="width:142.3pt;" align="justify">
                  <p>+ Precise pixel selection– Sensitive to noise; filter parameters critical</p>
                </td>
              </tr>
              <tr>
                <td style="width:85.4pt;" align="justify">
                  <p>Farid et al. [<xref rid="ref017" ref-type="bibr">17</xref>]</p>
                </td>
                <td style="width:113.8pt;" align="justify">
                  <p>CAB selective blur fusion</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>Content-adaptive blurring</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>Public multifocus datasets</p>
                </td>
                <td style="width:85.4pt;" align="justify">
                  <p>IQA, segmentation accuracy</p>
                </td>
                <td style="width:142.3pt;" align="justify">
                  <p>+ Preserves depth cues– Depends on accurate blur map</p>
                </td>
              </tr>
              <tr>
                <td style="border-bottom: 1px solid black;" align="justify">
                  <p>Bhat et al. [<xref rid="ref018" ref-type="bibr">18</xref>]</p>
                </td>
                <td style="border-bottom: 1px solid black;" align="justify">
                  <p>Neutrosophic set + NSWT fusion</p>
                </td>
                <td style="border-bottom: 1px solid black;" align="justify">
                  <p>—</p>
                </td>
                <td style="border-bottom: 1px solid black;" align="justify">
                  <p>Two medical datasets</p>
                </td>
                <td style="border-bottom: 1px solid black;" align="justify">
                  <p>PSNR, Depth-of-field measure</p>
                </td>
                <td style="border-bottom: 1px solid black;" align="justify">
                  <p>+ Excellent noise handling– Complex neutrosophic processing</p>
                </td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </p>
    </sec>
    <sec id="S3">
      <label>3.</label>
      <title>Methodology</title>
      <p id="S3.p1">With the increased demand over the years in the field of digital image processing, the popular techniques enhance the level of precision and detail in an image. In this article, a two-step image fusion methodology is proposed as shown in Figure <xref ref-type="fig" rid="F1">1</xref>. The first step sharpens the input images to a better-quality level of sharpness by using Marr–Hildreth edge detection. The more informative the detailed image would be, the higher the contrast in the fused image. In the second step, theenhanced images were fused together using DCT fusion, SWT fusion, and DWT fusion methods. These enhanced images are then combined to generate a single highly informative image. The proposed method is designed to improve the most important details of the original input images, since this would increase the overall quality of the fused images.</p>
      <p>
        <fig id="F1">
          <label>Figure 1.</label>
          <caption>
            <p>Proposed methodology.</p>
          </caption>
          <graphic xlink:href="fig1.png"/>
        </fig>
      </p>
      <sec id="S3.SS1">
        <label>3.1</label>
        <title>Preprocessing</title>
        <p id="S3.SS1.p1">Pre-processing in image fusion refers to processes and methods applied to input images before these images are combined or merged into one for a single, enhanced image with higher visual quality and information content [<xref rid="ref020" ref-type="bibr">20</xref>]. The objective of image fusion pre-processing is to prepare input images for effective fusion, where the most important and usable information will be contained in the result of the fused image [<xref rid="ref021" ref-type="bibr">21</xref>]. A few of the techniques of pre-processing that the framework uses are described:</p>
        <sec id="S3.SS1.SSS1">
          <label>3.1.1</label>
          <title>Marr-Hildreth Edge Detector (MHED)</title>
          <p id="S3.SS1.SSS1.p1">The Marr–Hildreth technique is a widely used edge detection method in image processing that enhances the clarity of object boundaries by detecting regions of rapid intensity change. It applies Gaussian smoothing to reduce noise and then computes the Laplacian to identify zero-crossings, which represent edges in the image [<xref rid="ref022" ref-type="bibr">22</xref>]. This approach effectively highlights fine details and structural features, making it particularly useful for applications requiring precise edge detection, such as medical imaging, remote sensing, and object recognition [<xref rid="ref023" ref-type="bibr">23</xref>]. In the context of multi-focus image fusion, the Marr–Hildreth technique helps refine image details before fusion, ensuring that only the most relevant and well-defined features contribute to the final composite image [<xref rid="ref024" ref-type="bibr">24</xref>]. Although Marr–Hildreth Edge Detection (MHED) is traditionally utilized to detect edges in an image, it is adapted here as part of the preprocessing step. Instead of using it for edge detection, MHED is employed to enhance the overall sharpness and edge clarity of the input images. This enhancement enables the fusion algorithms to better combine the information from multiple sources, resulting in a higher-quality fused image. The modified MHED process prepares the images by sharpening them and making edge details more prominent, which is essential for effective fusion.</p>
        </sec>
      </sec>
      <sec id="S3.SS2">
        <label>3.2</label>
        <title>Fusion Techniques</title>
        <p id="S3.SS2.p1">After pre-processing, fusion combines enhanced images into a single, informative representation. This amalgamation enhances visual quality, detail richness, and overall scene representation. Fusion maximizes improvement potential by implementing diverse enhancement techniques, resulting in a final image that effectively communicates desired information. Techniques include:</p>
        <sec id="S3.SS2.SSS1">
          <label>3.2.1</label>
          <title>Stationary Wavelet Transform (SWT)</title>
          <p id="S3.SS2.SSS1.p1">The Stationary Wavelet Transform (SWT) is an advanced multi-resolution analysis technique used in image processing to enhance and preserve important image details. Unlike the traditional Discrete Wavelet Transform (DWT), SWT is shift-invariant, meaning it does not suffer from information loss due to down-sampling. This property makes SWT particularly useful for applications such as image denoising, enhancement, and fusion, where maintaining spatial consistency is crucial. In multi-focus image fusion, SWT effectively decomposes images into different frequency components while retaining spatial alignment, ensuring that critical details from each source image are accurately preserved and combined into a single, sharp, and well-focused composite image [<xref rid="ref025" ref-type="bibr">25</xref>].</p>
        </sec>
        <sec id="S3.SS2.SSS2">
          <label>3.2.2</label>
          <title>Discrete Wavelet Transform (DWT)</title>
          <p id="S3.SS2.SSS2.p1">This approach applies wavelets to get uncertain signals because of noise, and it has proven very useful for processing X-ray images, magnetic resonance images, and applications in medical science. In this approach, it is possible to enhance the image without distortion or blurring of finer features. The DWT applied in this method gives adaptive spatial frequency resolution; that is, it improves the frequency resolution at low frequencies and enhances the spatial resolution at high frequencies. The DWT does this compactly by representing the frequency components of the signal so that the resolution is in real-time and gives better data about frequency. A better image is generated using DWT through non-duplicative graphic representation features, which furtherimproves the spectral and spatial localization [<xref rid="ref025" ref-type="bibr">25</xref>]. Based on the concept of multiresolution analysis, a fast technique under the title of Wavelet Transform was developed; it tends to have both temporal and frequency discrete properties. The Wavelet Transform has the property of providing a complete representation by covering both time and frequency features in an image quickly. This method decomposes the data into two sets: high-frequency and low-frequency components. Decomposition is the division process that helps to derive statistics related to low and high frequencies [<xref rid="ref026" ref-type="bibr">26</xref>].</p>
          <p id="S3.SS2.SSS2.p2">The wavelet transform has been one of the important logical tools developed for describing images at different resolutions. The basic idea behind what has made wavelet transform theory possible is the mother wavelet. This idea of the mother wavelet has found applications, and many more are likely to be realized as technology advances in texture analysis, image compression, digital image watermarking, and facial recognition. The classification of wavelets comes under two kinds: continuous and discrete. This new tool influences many analytical domains, not necessarily image processing [<xref rid="ref027" ref-type="bibr">27</xref>]. The discrete wavelet transforms (DWT) use wavelet coefficients, scale factors, and functions. The DWT may be represented as a discrete signal or image, <inline-formula><mml:math alttext="x[n]" display="inline"><mml:mrow><mml:mi>x</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mi>n</mml:mi><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>, as shown by Eq. <xref rid="S3.E1">1</xref>:</p>
          <p>
            <disp-formula id="S3.E1">
              <mml:math alttext="W(a,b)=\frac{1}{\sqrt{a}}\sum_{n=-\infty}^{\infty}{x[n]}\cdot\psi\left(\frac{n%&#10;-b}{a}\right)" display="block">
                <mml:mrow>
                  <mml:mrow>
                    <mml:mi>W</mml:mi>
                    <mml:mo>⁢</mml:mo>
                    <mml:mrow>
                      <mml:mo stretchy="false">(</mml:mo>
                      <mml:mi>a</mml:mi>
                      <mml:mo>,</mml:mo>
                      <mml:mi>b</mml:mi>
                      <mml:mo stretchy="false">)</mml:mo>
                    </mml:mrow>
                  </mml:mrow>
                  <mml:mo>=</mml:mo>
                  <mml:mrow>
                    <mml:mfrac>
                      <mml:mn>1</mml:mn>
                      <mml:msqrt>
                        <mml:mi>a</mml:mi>
                      </mml:msqrt>
                    </mml:mfrac>
                    <mml:mo>⁢</mml:mo>
                    <mml:mrow>
                      <mml:munderover>
                        <mml:mo movablelimits="false">∑</mml:mo>
                        <mml:mrow>
                          <mml:mi>n</mml:mi>
                          <mml:mo>=</mml:mo>
                          <mml:mrow>
                            <mml:mo>−</mml:mo>
                            <mml:mi mathvariant="normal">∞</mml:mi>
                          </mml:mrow>
                        </mml:mrow>
                        <mml:mi mathvariant="normal">∞</mml:mi>
                      </mml:munderover>
                      <mml:mrow>
                        <mml:mrow>
                          <mml:mrow>
                            <mml:mi>x</mml:mi>
                            <mml:mo>⁢</mml:mo>
                            <mml:mrow>
                              <mml:mo stretchy="false">[</mml:mo>
                              <mml:mi>n</mml:mi>
                              <mml:mo rspace="0.055em" stretchy="false">]</mml:mo>
                            </mml:mrow>
                          </mml:mrow>
                          <mml:mo rspace="0.222em">⋅</mml:mo>
                          <mml:mi>ψ</mml:mi>
                        </mml:mrow>
                        <mml:mo>⁢</mml:mo>
                        <mml:mrow>
                          <mml:mo>(</mml:mo>
                          <mml:mfrac>
                            <mml:mrow>
                              <mml:mi>n</mml:mi>
                              <mml:mo>−</mml:mo>
                              <mml:mi>b</mml:mi>
                            </mml:mrow>
                            <mml:mi>a</mml:mi>
                          </mml:mfrac>
                          <mml:mo>)</mml:mo>
                        </mml:mrow>
                      </mml:mrow>
                    </mml:mrow>
                  </mml:mrow>
                </mml:mrow>
              </mml:math>
            </disp-formula>
          </p>
          <p id="S3.SS2.SSS2.p4"><inline-formula><mml:math alttext="W(a,b)" display="inline"><mml:mrow><mml:mi>W</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>a</mml:mi><mml:mo>,</mml:mo><mml:mi>b</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> in Eq. <xref rid="S3.E1">1</xref> are wavelet coefficients at scale <inline-formula><mml:math alttext="a" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula> and translation <inline-formula><mml:math alttext="b" display="inline"><mml:mi>b</mml:mi></mml:math></inline-formula>. <inline-formula><mml:math alttext="x[n]" display="inline"><mml:mrow><mml:mi>x</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mi>n</mml:mi><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> is the input signal or image. <inline-formula><mml:math alttext="\psi" display="inline"><mml:mi>ψ</mml:mi></mml:math></inline-formula> is the symbol of the wavelet function. The frequency resolution is determined by the scale factor denoted by <inline-formula><mml:math alttext="a" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula>. A factor <inline-formula><mml:math alttext="b" display="inline"><mml:mi>b</mml:mi></mml:math></inline-formula> defines the position of the wavelet function and, in turn, is a translation or shift factor.</p>
          <p id="S3.SS2.SSS2.p5">The DWT shows the input signal or image in different levels of expressions, which is done in an iterative process by applying this expression to the decomposition layers. The Wavelet Transform is a function receiving two inputs. When the scale increases, the signal's peaks become more similar, but greater translation values are necessary for the tails of the signal to resemble one another [<xref rid="ref028" ref-type="bibr">28</xref>]. The Discrete Wavelet Transform can extract hidden changes by analysing signals and visuals from a measurable time-frequency point of view. Wavelets explore sharp changes in signals or visual [<xref rid="ref029" ref-type="bibr">29</xref>]. In this wavelet transform method, the signal isprojected onto a set of wavelet functions, which decomposes the signal into a sequence of wavelet functions. To put it another way, this transformation is a complete conversion [<xref rid="ref030" ref-type="bibr">30</xref>].</p>
          <p id="S3.SS2.SSS2.p6">The Discrete Wavelet Transform (DWT) includes advantages such as analyzing signals and images at various sizes and capturing localized and global information. DWT also offers multiscale analysis, effective data compression, feature extraction, and pattern recognition. One of the downsides of the Discrete Wavelet Transform (DWT) is that the fused pictures lose responsiveness to directional features [<xref rid="ref031" ref-type="bibr">31</xref>].</p>
        </sec>
        <sec id="S3.SS2.SSS3">
          <label>3.2.3</label>
          <title>Discrete Cosine Transform (DCT)</title>
          <p id="S3.SS2.SSS3.p1">Discrete Cosine Transform (DCT) image fusion method is commonly used to fuse images because of its effectiveness and good properties. The utilization of DCT is needed to transform the original images into frequency domain followed by fusing the obtained DCT coefficients. Finally, the parameters are synthesized in spatial domain to obtain the fused image. One of the good properties of DCT-based fusion methods is their capability to keep high frequency information, which is important for retaining image features [<xref rid="ref032" ref-type="bibr">32</xref>]. While it is an important transformation in various problems of science and engineering, the key thing where this concept is needed for our focus is for picture compression. DCT offers an efficient transformation, converting a picture from the spatial to frequency domain increasing its applicative area [<xref rid="ref033" ref-type="bibr">33</xref>]. The overall framework of the proposed multi-focus image fusion method is illustrated in Figure <xref ref-type="fig" rid="F2">2</xref>, highlighting the main components and processing pipeline.</p>
          <p>
            <fig id="F2">
              <label>Figure 2.</label>
              <caption>
                <p>DCT block diagram for image fusion.</p>
              </caption>
              <graphic xlink:href="fig2.png"/>
            </fig>
          </p>
          <p id="S3.SS2.SSS3.p2">DCT is known for its computational efficiency and low memory consumption, which makes it better for image fusion applications. DCT-based fusion has a significant drawback: its sensitivity to image misalignment. When the source images aren't properly aligned, the fused image can exhibit undesirable artifacts such as ringing or blurring. For this purpose, DCT based fusion combined with image fusion techniques can be used. Before carrying out fusion, it is therefore critical to register the source images as perfectly aligned results in a marked reduction of artefacts and hence significantly improved precision. This results in outputs of higher quality when the strengths and weaknesses or DCT-based fusion are combined properly [<xref rid="ref032" ref-type="bibr">32</xref>].</p>
        </sec>
      </sec>
    </sec>
    <sec id="S4">
      <label>4.</label>
      <title>Experimental Setup</title>
      <p id="S4.p1">This research experiment is done on Core i5 10th generation system with a ram of 16GB which uses MATLAB for implementation. MATLAB tool was employed for pre-processing, image fusion and performance evaluation.</p>
      <sec id="S4.SS1">
        <label>4.1</label>
        <title>Dataset Description</title>
        <p id="S4.SS1.p1">In this research experiment, we used four different sets of grayscales multifocus images. Figure <xref ref-type="fig" rid="F1">1</xref> shows the Lytro Multifocus dataset [<xref rid="ref020" ref-type="bibr">20</xref>]. This dataset is popular among researchers worldwide for multifocus image experiments. It includes images of clocks, balloons, leaves, and bottles.</p>
      </sec>
      <sec id="S4.SS2">
        <label>4.2</label>
        <title>Performance Metrices</title>
        <p id="S4.SS2.p1">The performance measurements employed in this study included entropy, peak signal-to-noise ratio (PSNR), mean absolute error (MAE) and root mean square error. Without these metrices, it is impossible to calculate the weight of how effectively those techniques are working in an unbiased way. These are the widely accepted metrices that gives a formal and systematic way for evaluating performance and efficiency of novel techniques.</p>
        <sec id="S4.SS2.SSS1">
          <label>4.2.1</label>
          <title>Root Mean Squared Error (RMSE)</title>
          <p id="S4.SS2.SSS1.p1">RMSE is frequently used to compare the pixel differences between original and generated images. It provides a good measure of the final image's quality by indicating how accurately the colours and brightness are represented [<xref rid="ref034" ref-type="bibr">34</xref>]. Equation <xref rid="S4.E1">1</xref> shows the RMSE formula.</p>
          <p>
            <disp-formula id="S4.E1">
              <mml:math alttext="\text{RMSE}=\sqrt{\frac{1}{H\times W}\sum_{i=1}^{H}{\sum_{j=1}^{W}\left(F(i,j)%&#10;-R(i,j)\right)^{2}}}" display="block">
                <mml:mrow>
                  <mml:mtext>RMSE</mml:mtext>
                  <mml:mo>=</mml:mo>
                  <mml:msqrt>
                    <mml:mrow>
                      <mml:mfrac>
                        <mml:mn>1</mml:mn>
                        <mml:mrow>
                          <mml:mi>H</mml:mi>
                          <mml:mo lspace="0.222em" rspace="0.222em">×</mml:mo>
                          <mml:mi>W</mml:mi>
                        </mml:mrow>
                      </mml:mfrac>
                      <mml:mo>⁢</mml:mo>
                      <mml:mrow>
                        <mml:munderover>
                          <mml:mo movablelimits="false" rspace="0em">∑</mml:mo>
                          <mml:mrow>
                            <mml:mi>i</mml:mi>
                            <mml:mo>=</mml:mo>
                            <mml:mn>1</mml:mn>
                          </mml:mrow>
                          <mml:mi>H</mml:mi>
                        </mml:munderover>
                        <mml:mrow>
                          <mml:munderover>
                            <mml:mo movablelimits="false" rspace="0em">∑</mml:mo>
                            <mml:mrow>
                              <mml:mi>j</mml:mi>
                              <mml:mo>=</mml:mo>
                              <mml:mn>1</mml:mn>
                            </mml:mrow>
                            <mml:mi>W</mml:mi>
                          </mml:munderover>
                          <mml:msup>
                            <mml:mrow>
                              <mml:mo>(</mml:mo>
                              <mml:mrow>
                                <mml:mrow>
                                  <mml:mi>F</mml:mi>
                                  <mml:mo>⁢</mml:mo>
                                  <mml:mrow>
                                    <mml:mo stretchy="false">(</mml:mo>
                                    <mml:mi>i</mml:mi>
                                    <mml:mo>,</mml:mo>
                                    <mml:mi>j</mml:mi>
                                    <mml:mo stretchy="false">)</mml:mo>
                                  </mml:mrow>
                                </mml:mrow>
                                <mml:mo>−</mml:mo>
                                <mml:mrow>
                                  <mml:mi>R</mml:mi>
                                  <mml:mo>⁢</mml:mo>
                                  <mml:mrow>
                                    <mml:mo stretchy="false">(</mml:mo>
                                    <mml:mi>i</mml:mi>
                                    <mml:mo>,</mml:mo>
                                    <mml:mi>j</mml:mi>
                                    <mml:mo stretchy="false">)</mml:mo>
                                  </mml:mrow>
                                </mml:mrow>
                              </mml:mrow>
                              <mml:mo>)</mml:mo>
                            </mml:mrow>
                            <mml:mn>2</mml:mn>
                          </mml:msup>
                        </mml:mrow>
                      </mml:mrow>
                    </mml:mrow>
                  </mml:msqrt>
                </mml:mrow>
              </mml:math>
            </disp-formula>
          </p>
        </sec>
        <sec id="S4.SS2.SSS2">
          <label>4.2.2</label>
          <title>Peak Signal to Noise Ratio (PSNR)</title>
          <p id="S4.SS2.SSS2.p1">The Peak Signal-to-Noise Ratio (PSNR) measures the quality of an image by comparing the original and fused images. It measures how similar the pixels are by comparing the peak signal strength to the noise by comparing the number of matching pixels to the total number of gray levels. Equation <xref rid="S4.E2">2</xref> shows PSNR formula.</p>
          <p>
            <disp-formula id="S4.E2">
              <mml:math alttext="\text{PSNR}=10\cdot\log_{10}\left(\frac{MAX_{I}^{2}}{\text{MSE}}\right)" display="block">
                <mml:mrow>
                  <mml:mtext>PSNR</mml:mtext>
                  <mml:mo>=</mml:mo>
                  <mml:mrow>
                    <mml:mn>10</mml:mn>
                    <mml:mo lspace="0.222em" rspace="0.222em">⋅</mml:mo>
                    <mml:mrow>
                      <mml:msub>
                        <mml:mi>log</mml:mi>
                        <mml:mn>10</mml:mn>
                      </mml:msub>
                      <mml:mo>⁡</mml:mo>
                      <mml:mrow>
                        <mml:mo>(</mml:mo>
                        <mml:mfrac>
                          <mml:mrow>
                            <mml:mi>M</mml:mi>
                            <mml:mo>⁢</mml:mo>
                            <mml:mi>A</mml:mi>
                            <mml:mo>⁢</mml:mo>
                            <mml:msubsup>
                              <mml:mi>X</mml:mi>
                              <mml:mi>I</mml:mi>
                              <mml:mn>2</mml:mn>
                            </mml:msubsup>
                          </mml:mrow>
                          <mml:mtext>MSE</mml:mtext>
                        </mml:mfrac>
                        <mml:mo>)</mml:mo>
                      </mml:mrow>
                    </mml:mrow>
                  </mml:mrow>
                </mml:mrow>
              </mml:math>
            </disp-formula>
          </p>
        </sec>
        <sec id="S4.SS2.SSS3">
          <label>4.2.3</label>
          <title>Mean Absolute Error (MAE)</title>
          <p id="S4.SS2.SSS3.p1">The mean absolute error measures how much the pixels differ between original and resulting images. A lower MAE score suggests better image quality and a score of zero means the images match perfectly [<xref rid="ref035" ref-type="bibr">35</xref>].Equation <xref rid="S4.E3">3</xref> shows the formula for calculating the entropy.</p>
          <p>
            <disp-formula id="S4.E3">
              <mml:math alttext="\text{MAE}=\frac{1}{n}\sum_{j=1}^{n}\left|y_{j}-\widehat{y}_{j}\right|" display="block">
                <mml:mrow>
                  <mml:mtext>MAE</mml:mtext>
                  <mml:mo>=</mml:mo>
                  <mml:mrow>
                    <mml:mfrac>
                      <mml:mn>1</mml:mn>
                      <mml:mi>n</mml:mi>
                    </mml:mfrac>
                    <mml:mo>⁢</mml:mo>
                    <mml:mrow>
                      <mml:munderover>
                        <mml:mo movablelimits="false" rspace="0em">∑</mml:mo>
                        <mml:mrow>
                          <mml:mi>j</mml:mi>
                          <mml:mo>=</mml:mo>
                          <mml:mn>1</mml:mn>
                        </mml:mrow>
                        <mml:mi>n</mml:mi>
                      </mml:munderover>
                      <mml:mrow>
                        <mml:mo>|</mml:mo>
                        <mml:mrow>
                          <mml:msub>
                            <mml:mi>y</mml:mi>
                            <mml:mi>j</mml:mi>
                          </mml:msub>
                          <mml:mo>−</mml:mo>
                          <mml:msub>
                            <mml:mover accent="true">
                              <mml:mi>y</mml:mi>
                              <mml:mo>^</mml:mo>
                            </mml:mover>
                            <mml:mi>j</mml:mi>
                          </mml:msub>
                        </mml:mrow>
                        <mml:mo>|</mml:mo>
                      </mml:mrow>
                    </mml:mrow>
                  </mml:mrow>
                </mml:mrow>
              </mml:math>
            </disp-formula>
          </p>
        </sec>
        <sec id="S4.SS2.SSS4">
          <label>4.2.4</label>
          <title>Entropy (E)</title>
          <p id="S4.SS2.SSS4.p1">This metric separates an image's texture, appearance, and information content. It is crucial for evaluating the amount of information in the final image [<xref rid="ref002" ref-type="bibr">2</xref>]. Equation <xref rid="S4.E4">4</xref> shows the formula for calculating the entropy.</p>
          <p>
            <disp-formula id="S4.E4">
              <mml:math alttext="E=-\sum_{i=0}^{L-1}p_{i}\log_{2}\left(p_{i}\right)" display="block">
                <mml:mrow>
                  <mml:mi>E</mml:mi>
                  <mml:mo>=</mml:mo>
                  <mml:mrow>
                    <mml:mo>−</mml:mo>
                    <mml:mrow>
                      <mml:munderover>
                        <mml:mo movablelimits="false">∑</mml:mo>
                        <mml:mrow>
                          <mml:mi>i</mml:mi>
                          <mml:mo>=</mml:mo>
                          <mml:mn>0</mml:mn>
                        </mml:mrow>
                        <mml:mrow>
                          <mml:mi>L</mml:mi>
                          <mml:mo>−</mml:mo>
                          <mml:mn>1</mml:mn>
                        </mml:mrow>
                      </mml:munderover>
                      <mml:mrow>
                        <mml:msub>
                          <mml:mi>p</mml:mi>
                          <mml:mi>i</mml:mi>
                        </mml:msub>
                        <mml:mo lspace="0.167em">⁢</mml:mo>
                        <mml:mrow>
                          <mml:msub>
                            <mml:mi>log</mml:mi>
                            <mml:mn>2</mml:mn>
                          </mml:msub>
                          <mml:mo>⁡</mml:mo>
                          <mml:mrow>
                            <mml:mo>(</mml:mo>
                            <mml:msub>
                              <mml:mi>p</mml:mi>
                              <mml:mi>i</mml:mi>
                            </mml:msub>
                            <mml:mo>)</mml:mo>
                          </mml:mrow>
                        </mml:mrow>
                      </mml:mrow>
                    </mml:mrow>
                  </mml:mrow>
                </mml:mrow>
              </mml:math>
            </disp-formula>
          </p>
        </sec>
      </sec>
    </sec>
    <sec id="S5">
      <label>5.</label>
      <title>Results and Discussion</title>
      <p id="S5.p1">This section presents the results of all the research experiments carried out in this study. We performed both qualitative and quantitative evaluation of various image fusion and enhancement techniques to provide a comprehensive interpretation of the results.</p>
      <sec id="S5.SS1">
        <label>5.1</label>
        <title>Experiment Results</title>
        <p>
          <fig id="F3">
            <label>Figure 3.</label>
            <caption>
              <p>(a) and (b) are two multifocus source images of "Clock image set".</p>
            </caption>
            <graphic xlink:href="fig3.jpg"/>
          </fig>
        </p>
        <p>
          <fig id="F4">
            <label>Figure 4.</label>
            <caption>
              <p>Fusion results using different techniques.</p>
            </caption>
            <graphic xlink:href="fig4.jpg"/>
          </fig>
        </p>
        <p>
          <fig id="F5">
            <label>Figure 5.</label>
            <caption>
              <p>(a) and (b) are two multifocus source images from the another "Clock image set".</p>
            </caption>
            <graphic xlink:href="fig5.jpg"/>
          </fig>
        </p>
        <p>
          <fig id="F6">
            <label>Figure 6.</label>
            <caption>
              <p>Fusion results through different techniques.</p>
            </caption>
            <graphic xlink:href="fig6.jpg"/>
          </fig>
        </p>
        <p id="S5.SS1.p1">The proposed methodology was tested on different datasets such as clocks, balloons, leaves, and bottles. The results achieved by the proposed method were compared withimage fusion techniques using the same datasets. To provide a comprehensive comparison, the results were analyzed both with and without the application of the Marr–Hildreth technique for image enhancement.Both quantitative and quantitative methodologies were used to compare the results with the proposed novel framework. This maingoal of this extensive testing is to evaluate the methodology's effectiveness for multi-focus images. For quantitative analysis, evaluation metrices such as PSNR, MAE, RMSE and entropy are used in this study. All of these metrices led to a clear view of the level of the fused images that came from the proposed methodology. Furthermore, the qualitative analysis allowed visual checking of the changes, improvements, and corrections made in the fused images. The results of these performance measures will now provide a clear insight into the functionality and effectiveness of the applied image fusion techniques of the present study. The output has clearly shown benefits and efficiency for the suggested methodology in image fusion.</p>
        <p id="S5.SS1.p2">Figure <xref ref-type="fig" rid="F3">3</xref> shows a set of two multifocus images, where (a) and (b) represent the original images used for the study. The fused enhanced images in Figure <xref ref-type="fig" rid="F4">4</xref> were created by combining them using a variety of methods, including DWT, SWT, DCT, DCT+MHED, DWT+MHED, and SWT+MHED.</p>
        <p>
          <table-wrap id="T2">
            <label>Table 2</label>
            <caption>
              <p>Results of multifocus image fusion methods using Clock and Leaves image set.</p>
            </caption>
            <table>
              <thead>
                <tr>
                  <th style="border-top: 1px solid black;" align="center">Fusion Techniques</th>
                  <th style="border-top: 1px solid black;" align="center">PSNR</th>
                  <th style="border-top: 1px solid black;" align="center">RMSE</th>
                  <th style="border-top: 1px solid black;" align="center">MAE</th>
                  <th style="border-top: 1px solid black;" align="center">E</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td style="border-top: 1px solid black;" align="center">DWT</td>
                  <td style="border-top: 1px solid black;" align="center">39.6314</td>
                  <td style="border-top: 1px solid black;" align="center">2.6605</td>
                  <td style="border-top: 1px solid black;" align="center">24.8771</td>
                  <td style="border-top: 1px solid black;" align="center">7.4158</td>
                </tr>
                <tr>
                  <td align="center">SWT</td>
                  <td align="center">38.5665</td>
                  <td align="center">3.0075</td>
                  <td align="center">28.6275</td>
                  <td align="center">7.4215</td>
                </tr>
                <tr>
                  <td align="center">DWT+MHED</td>
                  <td align="center">39.7077</td>
                  <td align="center">2.6372</td>
                  <td align="center">17.2962</td>
                  <td align="center">7.4311</td>
                </tr>
                <tr>
                  <td align="center">DCT</td>
                  <td align="center">39.6266</td>
                  <td align="center">2.6620</td>
                  <td align="center">24.8633</td>
                  <td align="center">7.4155</td>
                </tr>
                <tr>
                  <td align="center">SWT+MHED</td>
                  <td align="center">39.7074</td>
                  <td align="center">2.6373</td>
                  <td align="center">17.2950</td>
                  <td align="center">7.4313</td>
                </tr>
                <tr>
                  <td style="border-bottom: 1px solid black;" align="center">DCT+MHED</td>
                  <td style="border-bottom: 1px solid black;" align="center">39.7990</td>
                  <td style="border-bottom: 1px solid black;" align="center">2.6302</td>
                  <td style="border-bottom: 1px solid black;" align="center">17.2633</td>
                  <td style="border-bottom: 1px solid black;" align="center">7.4320</td>
                </tr>
              </tbody>
            </table>
          </table-wrap>
        </p>
        <p id="S5.SS1.p3">Table <xref rid="T2" ref-type="table">2</xref> compares different multi-focus image fusion methods using the Clock and Leaves image set, based on PSNR, RMSE, MAE, and entropy (E). The DCT+MHED method achieved the highest PSNR of 39.7990, meaning it produced the clearest and most detailed image. It also had the lowest MAE of 17.2633, showing minimal error, and the highest entropy of 7.4320, indicating better detail preservation. Similarly, DWT+MHED and SWT+MHED also performed well, proving that adding the Marr–Hildreth Edge Detection (MHED) technique improves the overall fusion quality.</p>
        <p id="S5.SS1.p4">In contrast, the SWT method had the lowest PSNR of 38.5665 and the highest MAE of 28.6275, meaning it did not preserve details as effectively. Likewise, DWT and DCT without enhancement had higher RMSE values of 2.6605 and 2.6620, indicating more errors. These results clearly show that using enhancement techniques like MHED helps create sharper and more detailed fused images.</p>
        <p id="S5.SS1.p5">Figure <xref ref-type="fig" rid="F5">5</xref> shows a set of two multifocus images, where (a) and (b) represent the original images used for the study. The fused enhanced images in Figure <xref ref-type="fig" rid="F6">6</xref> were created by combining them using a variety of methods, including DWT, SWT, DCT, DCT+MHED, DWT+MHED, and SWT+MHED.</p>
        <p>
          <table-wrap id="T3">
            <label>Table 3</label>
            <caption>
              <p>Results of multifocus image fusion methods using Clocks image set.</p>
            </caption>
            <table>
              <thead>
                <tr>
                  <th style="border-top: 1px solid black;" align="center">Fusion Techniques</th>
                  <th style="border-top: 1px solid black;" align="center">PSNR</th>
                  <th style="border-top: 1px solid black;" align="center">RMSE</th>
                  <th style="border-top: 1px solid black;" align="center">MAE</th>
                  <th style="border-top: 1px solid black;" align="center">E</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td style="border-top: 1px solid black;" align="center">DWT</td>
                  <td style="border-top: 1px solid black;" align="center">40.7087</td>
                  <td style="border-top: 1px solid black;" align="center">2.3501</td>
                  <td style="border-top: 1px solid black;" align="center">19.4622</td>
                  <td style="border-top: 1px solid black;" align="center">6.9863</td>
                </tr>
                <tr>
                  <td align="center">SWT</td>
                  <td align="center">41.4077</td>
                  <td align="center">2.1682</td>
                  <td align="center">18.9728</td>
                  <td align="center">6.9942</td>
                </tr>
                <tr>
                  <td align="center">DWT+MHED</td>
                  <td align="center">39.7810</td>
                  <td align="center">2.6150</td>
                  <td align="center">15.7361</td>
                  <td align="center">7.0041</td>
                </tr>
                <tr>
                  <td align="center">DCT</td>
                  <td align="center">41.4014</td>
                  <td align="center">2.1700</td>
                  <td align="center">18.9641</td>
                  <td align="center">6.9898</td>
                </tr>
                <tr>
                  <td align="center">SWT + MHED</td>
                  <td align="center">39.7828</td>
                  <td align="center">2.6145</td>
                  <td align="center">15.7375</td>
                  <td align="center">7.0085</td>
                </tr>
                <tr>
                  <td style="border-bottom: 1px solid black;" align="center">DCT+MHED</td>
                  <td style="border-bottom: 1px solid black;" align="center">39.7724</td>
                  <td style="border-bottom: 1px solid black;" align="center">2.6176</td>
                  <td style="border-bottom: 1px solid black;" align="center">15.7114</td>
                  <td style="border-bottom: 1px solid black;" align="center">7.0041</td>
                </tr>
              </tbody>
            </table>
          </table-wrap>
        </p>
        <p id="S5.SS1.p6">Table <xref rid="T3" ref-type="table">3</xref> presents the results of different multi-focus image fusion methods using the Clocks image set, evaluated using PSNR, RMSE, MAE, and entropy (E). The SWT method achieved the highest PSNR of 41.4077, indicating that it produced the sharpest and most detailed image. Similarly, DCT closely followed with a PSNR of 41.4014, showing that it effectively preserved image quality. However, the addition of MHED (Marr–Hildreth Edge Detection) in DWT+MHED, SWT+MHED, and DCT+MHED resulted in improved entropy values, highlighting better detail retention.</p>
        <p id="S5.SS1.p7">On the other hand, DWT+MHED and DCT+MHED showed lower MAE values of 15.7361 and 15.7114, respectively, indicating fewer errors and better accuracy. However, DWT alone had a relatively lower performance with a PSNR of 40.7087 and a higher MAE of 19.4622, suggesting that without enhancement techniques, it may not retain fine details as effectively. These results emphasize that applying enhancement techniques like MHED improves image fusion quality by refining details and reducing errors.</p>
        <p>
          <fig id="F7">
            <label>Figure 7.</label>
            <caption>
              <p>(a) and (b) are two multifocus source images from the "Leaves image set".</p>
            </caption>
            <graphic xlink:href="fig7.jpg"/>
          </fig>
        </p>
        <p>
          <fig id="F8">
            <label>Figure 8.</label>
            <caption>
              <p>Fusion results through different techniques.</p>
            </caption>
            <graphic xlink:href="fig8.jpg"/>
          </fig>
        </p>
        <p id="S5.SS1.p8">Figure <xref ref-type="fig" rid="F7">7</xref> shows a set of two multifocus images, where (a) and (b) represent the original images used for the study. The fused enhanced images in Figure <xref ref-type="fig" rid="F8">8</xref> were created by combining them using a variety of methods, including DWT, SWT, DCT, DCT+MHED, DWT+MHED, and SWT+MHED.</p>
        <p>
          <table-wrap id="T4">
            <label>Table 4</label>
            <caption>
              <p>Results of multifocus image fusion methods using leaves image set.</p>
            </caption>
            <table>
              <thead>
                <tr>
                  <th style="border-top: 1px solid black;" align="center">Fusion Techniques</th>
                  <th style="border-top: 1px solid black;" align="center">PSNR</th>
                  <th style="border-top: 1px solid black;" align="center">RMSE</th>
                  <th style="border-top: 1px solid black;" align="center">MAE</th>
                  <th style="border-top: 1px solid black;" align="center">E</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td style="border-top: 1px solid black;" align="center">DWT</td>
                  <td style="border-top: 1px solid black;" align="center">33.7621</td>
                  <td style="border-top: 1px solid black;" align="center">5.2291</td>
                  <td style="border-top: 1px solid black;" align="center">43.3788</td>
                  <td style="border-top: 1px solid black;" align="center">7.2993</td>
                </tr>
                <tr>
                  <td align="center">SWT</td>
                  <td align="center">38.2289</td>
                  <td align="center">3.1267</td>
                  <td align="center">23.2605</td>
                  <td align="center">7.3099</td>
                </tr>
                <tr>
                  <td align="center">DWT+MHED</td>
                  <td align="center">40.2055</td>
                  <td align="center">7.3447</td>
                  <td align="center">8.7347</td>
                  <td align="center">7.3447</td>
                </tr>
                <tr>
                  <td align="center">DCT</td>
                  <td align="center">33.7615</td>
                  <td align="center">5.2295</td>
                  <td align="center">43.3852</td>
                  <td align="center">7.2999</td>
                </tr>
                <tr>
                  <td align="center">SWT + MHED</td>
                  <td align="center">40.2078</td>
                  <td align="center">2.4896</td>
                  <td align="center">8.7319</td>
                  <td align="center">7.3447</td>
                </tr>
                <tr>
                  <td style="border-bottom: 1px solid black;" align="center">DCT+MHED</td>
                  <td style="border-bottom: 1px solid black;" align="center">40.1937</td>
                  <td style="border-bottom: 1px solid black;" align="center">2.4937</td>
                  <td style="border-bottom: 1px solid black;" align="center">8.7438</td>
                  <td style="border-bottom: 1px solid black;" align="center">7.3454</td>
                </tr>
              </tbody>
            </table>
          </table-wrap>
        </p>
        <p id="S5.SS1.p9">Table <xref rid="T4" ref-type="table">4</xref> presents the performance of different multi-focus image fusion methods using the Leaves image set, evaluated using PSNR, RMSE, MAE, and entropy (E). The SWT+MHED method achieved the highest PSNR of 40.2078, indicating superior image quality with well-preserved details. Similarly, DWT+MHED and DCT+MHED produced high PSNR values above 40, demonstrating that applying Marr–Hildreth Edge Detection (MHED) significantly improved image sharpness and clarity.</p>
        <p>
          <fig id="F9">
            <label>Figure 9.</label>
            <caption>
              <p>(a) and (b) multifocus images are taken from the "Balloons image set".</p>
            </caption>
            <graphic xlink:href="fig9.jpg"/>
          </fig>
        </p>
        <p>
          <fig id="F10">
            <label>Figure 10.</label>
            <caption>
              <p>Fusion results through different techniques.</p>
            </caption>
            <graphic xlink:href="fig10.jpg"/>
          </fig>
        </p>
        <p id="S5.SS1.p10">On the other hand, DWT and DCT without enhancement yielded lower PSNR values of 33.7621 and 33.7615, respectively, along with higher MAE values of over 43, indicating weaker detail preservation. The SWT method alone also performed well, with a PSNR of 38.2289, but integrating MHED further reduced error and enhanced fine details.</p>
        <p id="S5.SS1.p11">Overall, these results highlight that using enhancement techniques like MHED in combination with transformation methods leads to better fusion quality by minimizing errors and improving edge definition.</p>
        <p id="S5.SS1.p12">Figure <xref ref-type="fig" rid="F9">9</xref> shows a set of two multifocus images, where (a) and (b) represent the original images used for the study. The fused enhanced images in Figure <xref ref-type="fig" rid="F10">10</xref> were created by combining them using a variety of methods, including DWT, SWT, DCT, DCT+MHED, DWT+MHED, and SWT+MHED.</p>
        <p>
          <table-wrap id="T5">
            <label>Table 5</label>
            <caption>
              <p>Results of multifocus image fusion methods using Balloons image set.</p>
            </caption>
            <table>
              <thead>
                <tr>
                  <th style="border-top: 1px solid black;" align="center">Fusion Techniques</th>
                  <th style="border-top: 1px solid black;" align="center">PSNR</th>
                  <th style="border-top: 1px solid black;" align="center">RMSE</th>
                  <th style="border-top: 1px solid black;" align="center">MAE</th>
                  <th style="border-top: 1px solid black;" align="center">E</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td style="border-top: 1px solid black;" align="center">DWT</td>
                  <td style="border-top: 1px solid black;" align="center">37.5477</td>
                  <td style="border-top: 1px solid black;" align="center">3.3818</td>
                  <td style="border-top: 1px solid black;" align="center">31.7169</td>
                  <td style="border-top: 1px solid black;" align="center">7.4465</td>
                </tr>
                <tr>
                  <td align="center">SWT</td>
                  <td align="center">41.1553</td>
                  <td align="center">2.2834</td>
                  <td align="center">12.2743</td>
                  <td align="center">7.1480</td>
                </tr>
                <tr>
                  <td align="center">DWT+ MHED</td>
                  <td align="center">41.3035</td>
                  <td align="center">2.1946</td>
                  <td align="center">9.9225</td>
                  <td align="center">7.4472</td>
                </tr>
                <tr>
                  <td align="center">DCT</td>
                  <td align="center">37.5437</td>
                  <td align="center">3.3833</td>
                  <td align="center">31.71515</td>
                  <td align="center">7.4474</td>
                </tr>
                <tr>
                  <td align="center">SWT + MHED</td>
                  <td align="center">41.3010</td>
                  <td align="center">2.1952</td>
                  <td align="center">9.9227</td>
                  <td align="center">7.4482</td>
                </tr>
                <tr>
                  <td style="border-bottom: 1px solid black;" align="center">DCT+MHED</td>
                  <td style="border-bottom: 1px solid black;" align="center">41.2940</td>
                  <td style="border-bottom: 1px solid black;" align="center">2.1970</td>
                  <td style="border-bottom: 1px solid black;" align="center">9.9274</td>
                  <td style="border-bottom: 1px solid black;" align="center">7.4498</td>
                </tr>
              </tbody>
            </table>
          </table-wrap>
        </p>
        <p id="S5.SS1.p13">Table <xref rid="T5" ref-type="table">5</xref> presents the results of different multi-focus image fusion techniques applied to the Balloons image set, evaluated using PSNR, RMSE, MAE, and entropy (E). The DWT+MHED method achieved the highest PSNR of 41.3035, indicating superior image quality with well-preserved details. Similarly, SWT+MHED and DCT+MHED also performed well, achieving PSNR values above 41, demonstrating that integrating Marr–Hildreth Edge Detection (MHED) significantly improved sharpness and clarity.</p>
        <p id="S5.SS1.p14">On the other hand, DWT and DCT without enhancement yielded lower PSNR values of 37.5477 and 37.5437, respectively, with higher MAE values exceeding 31, suggesting weaker edge preservation. The SWT method alone also performed well, but incorporating MHED further reduced errors and enhanced fine details.</p>
        <p id="S5.SS1.p15">These results highlight the effectiveness of combining transformation techniques with edge enhancement methods like MHED, which significantly improve the quality of fused images by reducing errors and enhancing clarity.</p>
      </sec>
      <sec id="S5.SS2">
        <label>5.2</label>
        <title>Significance of the Study</title>
        <p id="S5.SS2.p1">This paper presents a significant development in image processing, demonstrating the advantages of integrating multi-focus image fusion techniques based on the Marr–Hildreth technique, DCT, SWT, and DWT. The resulting clarity and detail can enhance results in medical imaging, remote sensing, and photography. The structured methodology provides a reliable way to produce high-quality fused images, providing further analysis and visualization. These findings lay a foundation for future studies to refine and expand these methods, potentially making a pioneering contribution to image fusion technology.</p>
      </sec>
      <sec id="S5.SS3">
        <label>5.3</label>
        <title>Limitations</title>
        <p id="S5.SS3.p1">This work demonstrates the performance of versatile image fusion technology based on the Marr–Hildreth technique, DCT, SWT, and DWT with enhancement and without prior masking. It is limited to grayscale images from the Lytro dataset. The application to other types of images or datasets has not been explored. Additionally, while DCT, SWT, and DWT have shown promising results, other pre-processing and fusion methods were not investigated in this research. The experiments were conducted in a controlled MATLAB environment, which may differ from real-world applications. Future research could expand on these areas to further validate and enhance the findings.</p>
      </sec>
    </sec>
    <sec id="S6">
      <label>6.</label>
      <title>Conclusion</title>
      <p id="S6.p1">This research study suggested a novel technique for multi-focus image fusion using the Marr–Hildreth technique, Discrete Cosine Transform, Stationary Wavelet Transform, and Discrete Wavelet Transform. The experimental results show that both qualitative and quantitative evaluations have significantly improved. Furthermore, when applied to the multi-focus image datasets, the proposed technique works well. The results are significant for image fusion and enhancement in the field, revealing the multiplicity of ways researchers approach solving multi-focus image challenges. It also provides a better understanding of how to develop image fusion and processing research in the new horizon of advanced scientific investigation, an emerging domain.</p>
      <p id="S6.p2">The research limitations are that the study focuses only on grayscale images from the Lytro dataset using DCT, SWT, and DWT-based multi-focus image fusion techniques in MATLAB, without considering other types of images, datasets, or different pre-processing and fusion methods. Future work will expand on this by testing the proposed techniques on a broader range of image types and datasets, including color images. Additionally, exploring other pre-processing and fusion methods could further enhance image quality. Implementing and evaluating these techniques in real-world scenarios would help validate their practical applications. Integrating advanced machine learning algorithms could also offer new ways to optimize the image fusion process, leading to greater improvements in clarity and detail. In conclusion, while Marr-Hildreth Edge Detection (MHED) is typically used for edge detection, in this study, it served a unique role as a pre-processing step. Its primary function was to enhance the sharpness and clarity of the input images before fusion, which proved crucial in improving the overall quality of the fused images. This demonstrates the versatility of MHED in image processing beyond its traditional use.</p>
    </sec>
  </body>
  <back>
    <ack>
      <title>Acknowledgments</title>
      <p id="ack.p1">This work was supported without any funding.</p>
    </ack>
    <sec id="sec0100" sec-type="COI-statement">
      <title>Conflict of interest</title>
      <p>The authors declare no conflicts of interest.</p>
    </sec>
    <ref-list>
      <title>References</title>
      <ref id="ref001">
        <label>[1]</label>
        <mixed-citation> Luhtakallio, E., Meriluoto, T., &amp; Malafaia, C. (2024). Visual politicization and youth challenges to an unequal public sphere: Conceptual and methodological perspectives. In <italic>Handbook on youth activism</italic> (pp. 140-153). Edward Elgar Publishing. [<uri>https://doi.org/10.4337/9781803923222.00021</uri>] </mixed-citation>
      </ref>
      <ref id="ref002">
        <label>[2]</label>
        <mixed-citation> Zhang, X. (2021). Deep learning-based multi-focus image fusion: A survey and a comparative study. <italic>IEEE Transactions on Pattern Analysis and Machine Intelligence, 44</italic>(9), 4819-4838. [<uri>https://doi.org/10.1109/TPAMI.2021.3078906</uri>] </mixed-citation>
      </ref>
      <ref id="ref003">
        <label>[3]</label>
        <mixed-citation> Zhou, Y., Yu, L., Zhi, C., Huang, C., Wang, S., Zhu, M., … &amp; Fu, S. (2022). A survey of multi-focus image fusion methods. <italic>Applied Sciences, 12</italic>(12), 6281. [<uri>https://doi.org/10.3390/app12126281</uri>] </mixed-citation>
      </ref>
      <ref id="ref004">
        <label>[4]</label>
        <mixed-citation> Zhou, Z., Dong, M., Xie, X., &amp; Gao, Z. (2016). Fusion of infrared and visible images for night-vision context enhancement. <italic>Applied optics, 55</italic>(23), 6480-6490. [<uri>https://doi.org/10.1364/AO.55.006480</uri>] </mixed-citation>
      </ref>
      <ref id="ref005">
        <label>[5]</label>
        <mixed-citation> Singh, S., Singh, H., Bueno, G., Deniz, O., Singh, S., Monga, H., … &amp; Pedraza, A. (2023). A review of image fusion: Methods, applications and performance metrics. <italic>Digital Signal Processing, 137</italic>, 104020. [<uri>https://doi.org/10.1016/j.dsp.2023.104020</uri>] </mixed-citation>
      </ref>
      <ref id="ref006">
        <label>[6]</label>
        <mixed-citation> Li, H., Wu, X. J., &amp; Kittler, J. (2018, August). Infrared and visible image fusion using a deep learning framework. In <italic>2018 24th international conference on pattern recognition (ICPR)</italic> (pp. 2705-2710). IEEE. [<uri>https://doi.org/10.1109/ICPR.2018.8546006</uri>] </mixed-citation>
      </ref>
      <ref id="ref007">
        <label>[7]</label>
        <mixed-citation> Liu, Y., Wang, L., Cheng, J., Li, C., &amp; Chen, X. (2020). Multi-focus image fusion: A survey of the state of the art. <italic>Information Fusion, 64</italic>, 71-91. [<uri>https://doi.org/10.1016/j.inffus.2020.06.013</uri>] </mixed-citation>
      </ref>
      <ref id="ref008">
        <label>[8]</label>
        <mixed-citation> Begum, M., Ferdush, J., &amp; Uddin, M. S. (2022). A Hybrid robust watermarking system based on discrete cosine transform, discrete wavelet transform, and singular value decomposition. <italic>Journal of King Saud University-Computer and Information Sciences, 34</italic>(8), 5856-5867. [<uri>https://doi.org/10.1016/j.jksuci.2021.07.012</uri>] </mixed-citation>
      </ref>
      <ref id="ref009">
        <label>[9]</label>
        <mixed-citation> Basu, S., Singhal, S., &amp; Singh, D. (2025). Multi-Focus Image Fusion: A Systematic Literature Review. <italic>SN Computer Science, 6</italic>(2), 150. [<uri>https://doi.org/10.1007/s42979-025-03678-y</uri>] </mixed-citation>
      </ref>
      <ref id="ref010">
        <label>[10]</label>
        <mixed-citation> Mishra, P. K., Patni, J. C., Saini, S., Kishore, J., Baloni, D., &amp; Verma, S. (2024, March). Adaptive Gamma Correction With Unsharp Masking and Gaussian Filter for Image Contrast Enhancement. In <italic>2024 International Conference on Automation and Computation (AUTOCOM)</italic> (pp. 439-444). IEEE. [<uri>https://doi.org/10.1109/AUTOCOM60220.2024.10486148</uri>] </mixed-citation>
      </ref>
      <ref id="ref011">
        <label>[11]</label>
        <mixed-citation> Liu, S., Ma, J., Yang, Y., Qiu, T., Li, H., Hu, S., &amp; Zhang, Y. D. (2022). A multi-focus color image fusion algorithm based on low vision image reconstruction and focused feature extraction. <italic>Signal Processing: Image Communication, 100</italic>, 116533. [<uri>https://doi.org/10.1016/j.image.2021.116533</uri>] </mixed-citation>
      </ref>
      <ref id="ref012">
        <label>[12]</label>
        <mixed-citation> Li, S., Kang, X., &amp; Hu, J. (2013). Image fusion with guided filtering. <italic>IEEE Transactions on Image processing, 22</italic>(7), 2864-2875. [<uri>https://doi.org/10.1109/TIP.2013.2244222</uri>] </mixed-citation>
      </ref>
      <ref id="ref013">
        <label>[13]</label>
        <mixed-citation> Turgut, S. S., &amp; Oral, M. (2022). Multi-focus image fusion based on gradient transform. <italic>arXiv preprint arXiv:2204.09777</italic>. [<uri>https://doi.org/10.48550/arXiv.2204.09777</uri>] </mixed-citation>
      </ref>
      <ref id="ref014">
        <label>[14]</label>
        <mixed-citation> Kaur, R., &amp; Singh, S. (2023, March). Multi-focus image fusion methods: A review. In <italic>International Conference on Advanced Computing, Machine Learning, Robotics and Internet Technologies</italic> (pp. 112-125). Cham: Springer Nature Switzerland. [<uri>https://doi.org/10.1007/978-3-031-47221-3_10</uri>] </mixed-citation>
      </ref>
      <ref id="ref015">
        <label>[15]</label>
        <mixed-citation> Pan, X., Zhai, H., Yang, Y., Chen, L., &amp; Li, A. (2024). Improving multi-focus image fusion through Noisy image and feature difference network. <italic>Image and Vision Computing, 142</italic>, 104891. [<uri>https://doi.org/10.1016/j.imavis.2023.104891</uri>] </mixed-citation>
      </ref>
      <ref id="ref016">
        <label>[16]</label>
        <mixed-citation> You, C. S., &amp; Yang, S. Y. (2022). A simple and effective multi-focus image fusion method based on local standard deviations enhanced by the guided filter. <italic>Displays, 72</italic>, 102146. [<uri>https://doi.org/10.1016/j.displa.2021.102146</uri>] </mixed-citation>
      </ref>
      <ref id="ref017">
        <label>[17]</label>
        <mixed-citation> Farid, M. S., Mahmood, A., &amp; Al-Maadeed, S. A. (2019). Multi-focus image fusion using content adaptive blurring. <italic>Information fusion, 45</italic>, 96-112. [<uri>https://doi.org/10.1016/j.inffus.2018.01.009</uri>] </mixed-citation>
      </ref>
      <ref id="ref018">
        <label>[18]</label>
        <mixed-citation> Bhat, S., &amp; Koundal, D. (2021). Multi-focus image fusion using neutrosophic based wavelet transform. <italic>Applied Soft Computing, 106</italic>, 107307. [<uri>https://doi.org/10.1016/j.asoc.2021.107307</uri>] </mixed-citation>
      </ref>
      <ref id="ref019">
        <label>[19]</label>
        <mixed-citation> Wang, Z., Li, X., Duan, H., Zhang, X., &amp; Wang, H. (2019). Multifocus image fusion using convolutional neural networks in the discrete wavelet transform domain. <italic>Multimedia Tools and Applications, 78</italic>, 34483-34512. [<uri>https://doi.org/10.1007/s11042-019-08070-6</uri>] </mixed-citation>
      </ref>
      <ref id="ref020">
        <label>[20]</label>
        <mixed-citation> Nejati, M., Samavi, S., &amp; Shirani, S. (2015). Multi-focus image fusion using dictionary-based sparse representation. <italic>Information fusion, 25</italic>, 72-84. [<uri>https://doi.org/10.1016/j.inffus.2014.10.004</uri>] </mixed-citation>
      </ref>
      <ref id="ref021">
        <label>[21]</label>
        <mixed-citation> Tribuana, D., &amp; Arda, A. L. (2024). Image preprocessing approaches toward better learning performance with cnn. <italic>Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), 8</italic>(1), 1-9. [<uri>https://doi.org/10.29207/resti.v8i1.5417</uri>] </mixed-citation>
      </ref>
      <ref id="ref022">
        <label>[22]</label>
        <mixed-citation> Shah, P., Merchant, S. N., &amp; Desai, U. B. (2013). Multifocus and multispectral image fusion based on pixel significance using multiresolution decomposition. <italic>Signal, Image and Video Processing, 7</italic>, 95-109. [<uri>https://doi.org/10.1007/s11760-011-0219-7</uri>] </mixed-citation>
      </ref>
      <ref id="ref023">
        <label>[23]</label>
        <mixed-citation> Fu, Y., Wu, X. J., &amp; Durrani, T. (2021). Image fusion based on generative adversarial network consistent with perception. <italic>Information Fusion</italic>, 72, 110-125. [<uri>https://doi.org/10.1016/j.inffus.2021.02.019</uri>] </mixed-citation>
      </ref>
      <ref id="ref024">
        <label>[24]</label>
        <mixed-citation> Marr, D., &amp; Hildreth, E. (1980). Theory of edge detection. <italic>Proceedings of the Royal Society of London. Series B. Biological Sciences, 207</italic>(1167), 187-217. [<uri>https://doi.org/10.1098/rspb.1980.0020</uri>] </mixed-citation>
      </ref>
      <ref id="ref025">
        <label>[25]</label>
        <mixed-citation> Danyal, M. M., Khan, S., Khan, R. S., Jan, S., &amp; Rahman, N. (2024). Enhancing Multi-Modality Medical Imaging: A Novel Approach with Laplacian Filter+ Discrete Fourier Transform Pre-Processing and Stationary Wavelet Transform Fusion. <italic>J. Intell. Med. Healthc, 2</italic>, 35-53. </mixed-citation>
      </ref>
      <ref id="ref026">
        <label>[26]</label>
        <mixed-citation> Joshi, K., Kirola, M., Chaudhary, S., Diwakar, M., &amp; Joshi, N. K. (2019, March). Multi-focus image fusion using discrete wavelet transform method. In International conference on advances in engineering science management &amp; technology (ICAESMT)-2019, Uttaranchal University, Dehradun, India. </mixed-citation>
      </ref>
      <ref id="ref027">
        <label>[27]</label>
        <mixed-citation> Haribabu, M., Bindu, C.H.: Multi focus image fusion based on discrete wavelet transform with statistical measurements (2022). </mixed-citation>
      </ref>
      <ref id="ref028">
        <label>[28]</label>
        <mixed-citation> Alwan, I. M. (2018). Multi-Focus Image Fusion Using Discrete Cosine Harmonic Wavelet Transform. <italic>Int. J. Sci. Res., 7</italic>(1), 835-841. </mixed-citation>
      </ref>
      <ref id="ref029">
        <label>[29]</label>
        <mixed-citation> Avcı, D., Sert, E., Özyurt, F., &amp; Avcı, E. (2024). MFIF-DWT-CNN: Multi-focus ımage fusion based on discrete wavelet transform with deep convolutional neural network. <italic>Multimedia Tools and Applications, 83</italic>(4), 10951-10968. [<uri>https://doi.org/10.1007/s11042-023-16074-6</uri>] </mixed-citation>
      </ref>
      <ref id="ref030">
        <label>[30]</label>
        <mixed-citation> Tan, L., Chen, Y., &amp; Zhang, W. (2019, August). Multi-focus Image Fusion Method based on Wavelet Transform. In <italic>Journal of Physics: Conference Series </italic>(Vol. 1284, No. 1, p. 012068). IOP Publishing. [<uri>https://doi.org/10.1088/1742-6596/1284/1/012068</uri>] </mixed-citation>
      </ref>
      <ref id="ref031">
        <label>[31]</label>
        <mixed-citation> Nanmaran, R., Srimathi, S., Yamuna, G., Thanigaivel, S., Vickram, A. S., Priya, A. K., … &amp; Muhibbullah, M. (2022). Investigating the role of image fusion in brain tumor classification models based on machine learning algorithm for personalized medicine. <italic>Computational and Mathematical Methods in Medicine, 2022</italic>(1), 7137524. [<uri>https://doi.org/10.1155/2022/7137524</uri>] </mixed-citation>
      </ref>
      <ref id="ref032">
        <label>[32]</label>
        <mixed-citation> Singh, J., Banga, V.K.: An integrated approach for image fusion using pca and dct. Journal Name (2019). </mixed-citation>
      </ref>
      <ref id="ref033">
        <label>[33]</label>
        <mixed-citation> Bhat, S., &amp; Koundal, D. (2021). Multi-focus image fusion techniques: a survey. <italic>Artificial Intelligence Review, 54</italic>(8), 5735-5787. [<uri>https://doi.org/10.1007/s10462-021-09961-7</uri>] </mixed-citation>
      </ref>
      <ref id="ref034">
        <label>[34]</label>
        <mixed-citation> Khan, S. S., Ran, Q., Khan, M., &amp; Ji, Z. (2019, December). Pan-sharpening framework based on laplacian sharpening with Brovey. In <italic>2019 IEEE International Conference on Signal, Information and Data Processing (ICSIDP)</italic> (pp. 1-5). IEEE. [<uri>https://doi.org/10.1109/ICSIDP47821.2019.9173129</uri>] </mixed-citation>
      </ref>
      <ref id="ref035">
        <label>[35]</label>
        <mixed-citation> Rajaei, A., Abiri, E., &amp; Helfroush, M. S. (2024). Balanced spatio-spectral feature extraction for hyperspectral and multispectral image fusion. <italic>Computers and Electrical Engineering, 118</italic>, 109391. [<uri>https://doi.org/10.1016/j.compeleceng.2024.109391</uri>] </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>
