A Bi-channel Aided Stitching of Atomic Force Microscopy Images | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Article A Bi-channel Aided Stitching of Atomic Force Microscopy Images Huanhuan Zhao, Ruben Millan Solsona, Marti Checa, Spenser R. Brown, and 3 more This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-6221535/v1 This work is licensed under a CC BY 4.0 License Status: Posted Version 1 posted You are reading this latest preprint version Abstract Microscopy is an essential tool in scientific research, enabling the visualization of structures at micro- and nanoscale resolutions. However, the field of microscopy often encounters limitations in field-of-view (FOV), restricting the amount of sample that can be imaged in a single capture. To overcome this limitation, image stitching techniques have been developed to seamlessly merge multiple overlapping images into a single, high-resolution composite. The images collected from microscope need to be optimally stitched before accurate physical information can be extracted from post analysis. However, the existing stitching tools either struggle to stitch images together when the microscopy images are feature sparse or cannot address all the transformations of images when performing image stitching. To address these issues, we propose a bi-channel aided feature-based image stitching method and demonstrate its use on Atomic Force Microscopy (AFM) generated biofilm images as experimental data. The topographical channel image of AFM data captures the morphological details of the sample, and a stitched topographical image is desired for researchers. We utilize the amplitude channel of AFM data to maximize the matching features and to estimate the position of the original topographical images and show that the proposed bi-channel aided stitching method outperforms the traditional direct stitching approach in AFM topographical image stitching task. Furthermore, we found that the differentiation of the topographical images along the x-axis provides similar feature information to the amplitude channel image, which generalizes our approach when the amplitude images are not available. Here we demonstrated the application on AFM, but similar approaches could be employed of optical microscopy with brightfield and fluorescence channels. We believe this proposed workflow can serve as a valuable augmentation strategy for microscopy image stitching tasks and will benefit the experimentalist to avoid erroneous analysis and discovery due to incorrect stitching. Physical sciences/Materials science/Biomaterials Physical sciences/Materials science/Techniques and instrumentation/Microscopy/Atomic force microscopy Physical sciences/Materials science/Theory and computation/Computational methods Image Stitching Image registration Atomic Force Microscopy Biofilms Figures Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 Introduction High-resolution microscopy is a cornerstone of scientific discovery, providing unparalleled insight into the structure and function of materials and biological specimens. However, a fundamental challenge in microscopy is the trade-off between resolution and field of view (FOV). High-magnification imaging reveals fine structural details but captures only a limited portion of the sample at a time. This constraint is particularly problematic in fields requiring both fine-scale resolution and large-area context, such as histopathology, neuroscience, and materials science. For example, in medical diagnostics 1 – 4 , pathologists analyzing tissue biopsies must examine entire sections while still detecting subcellular abnormalities indicative of diseases like cancer. Similarly, in neuroscience 5 – 7 , researchers studying brain tissue and spinal cord must visualize intricate neuronal networks spanning large regions while preserving the details of individual synaptic connections. Beyond biology, disciplines like astronomy 8 , 9 also face analogous challenges when stitching together high-resolution telescope images to create expansive sky maps. Similarly, to analyze geospatial data for predicting traffic conditions and optimizing transportation routes, large high-resolution satellite images need to be stitched together 10 – 13 . Here, seamless stitching of these high-resolution images is a crucial step to ensure 1) preservation of the physical insights of the original images and 2) avoiding potential false interpretation and discovery of the underlying information of the images. During the collection of these images, a degree of overlap between two adjacent images is set. If the degree is lower, the number of sampling images is reduced, which decreases the total scanning cost. While increasing the overlap, the data acquisition cost proportionally increases. Different methods have been developed for effective image stitching, each with its own strengths and limitations. Direct methods, which use pixel intensities to align images, include techniques like Lucas-Kanade optical flow and the Sum of Absolute Differences (SAD). These methods are accurate for small displacements but can be computationally demanding and sensitive to illumination changes for large images. Transform-based methods, such as those utilizing the Fourier transform 14 , 15 , determine translation between images through phase correlation, offering speed and noise resistance but these methods struggle with rotation and scaling. Multi-scale approaches, like pyramid-based stitching, create multi-resolution representations to improve robustness and accuracy through progressive alignment refinement. Feature-based methods 12 , 16 , 17 consider different feature detectors and feature matching algorithms in order to calculate the image transformation matrix. Scale-Invariant Feature Transform (SIFT) 18 , 19 and Speeded-Up Robust Features (SURF) 20 are two popular feature detectors. SIFT is known for its robustness to scale, rotation, and illumination changes, while SURF is optimized for speed but may be less effective under extreme variations. Other notable feature-detection algorithms are Binary Robust Invariant Scalable Keypoints (BRISK) 21 and Accelerated-KAZE (AKAZE) 22 . Oriented FAST and Rotated BRIEF (ORB) 23 offers computational efficiency and is suitable for real-time applications, though it handles scale variations less effectively than SIFT. Natural images, like buildings, mountains, or indoor scenes, typically contain rich texture details. These images are easily captured with cameras, and acquiring images with large overlaps is cost-effective, which simplifies the stitching task. Existing stitching tools, such as AutoStitch 16 , stitch2D 24 and Stitching 25 are highly effective for stitching these types of images. In other words, these stitching methods generally work with a high volume of matching features obtained from significant amounts of image overlapping. However, microscopy images often have sparse features due to the nature of the sample and collecting highly overlapped images (say 30%) is not often feasible due to the cost and time-intensive experimental image acquisition process. In situations when image overlapping is limited, the performance of these stitching methods degrades significantly to the point that they are not even considered for any sort of post image analysis. Thus, as the stitching error increases between two adjacent images due to limited matching features (limited overlap), the error propagates and increases even more when trying to properly stitch non-adjacent images, making the stitching problem even harder to solve. Thus, there is a need for an improved image stitching method that can accurately stitch complex and noisy microscopy images with limited overlap due to experimental constraints. Over the years, various image stitching techniques have been developed to computationally merge multiple microscopy images into seamless, high-resolution composites. When applying image stitching techniques to microscopy images, researchers have primarily adopted two approaches: feature-based methods 26 – 30 and Fourier-based methods 14 . Feature-based methods include feature detection, feature matching, camera pose estimation, warping and blending etc. In contrast, Fourier-based methods calculate the translational offsets between images using phase-correlation and then align the images based on these offsets. While Fourier-based techniques are straightforward and fast, they only address translational shifts, whereas feature-based approaches can handle additional transformations such as rotations and scaling. Ma et al. were among the first to apply a feature-based photography stitching software, AutoStitch , to microscopy images 31 . Yang et al. proposed estimating the overlapping area between the images using phase correction, thereby narrowing the search space for feature detection 32 . This approach is faster than directly stitching using SURF and improves the accuracy of feature matching. However, it still requires images to have enough features since it does not increase the number of detected features as illustrated by the microscopy images with 50% overlap used to present their method. Mohammodi et al. employed SURF as the feature detector and utilized a weighted graph tree to replace camera pose estimation, reducing computational costs 27 . However, to maintain accuracy, they used microscopy images with a 30% overlap. Xu et. al. proposes the enhancement of the features via image edge detection prior to applying SIFT algorithm, to maximize the matching features 33 . However, the method does not address the challenges in microscopy images, when the matching features are sparse and unevenly distributed. Recently, Gan et.al. proposes an optimized SIFT algorithm to address the issue of uneven feature point distribution in the image stitching process, however, the validation is limited to environmental pictures where significant features are available 34 . Preibisch et al. applied a Fourier-Shift Theorem in image stitching with translational variations, however this method does not account for the rotational variations that possibly occur during microscopy image acquisition 35 . MIST is another microscopy image stitching tool 14 , which aims for fast stitching but is limited to handle only translational variations due to relying on a similar Fourier-based approach. Moreover, MIST does not apply image blending and the stitched image usually introduces additional noises such as generating seam lines, which can affect the downstream image analysis. Recently developed neural network-based feature detection and matching algorithms, such as SuperGlue 36 and LoFTR 37 , point in a new direction for image stitching. However, the current stitching tools based on these algorithms are limited to pairwise stitching and cannot process large volumes of images, which is essential in stitching microscopy images. Recent efforts are being made to improve stitching quality of images beyond significant overlapping. Seo et al. pushes the boundary to 1.15% overlap using a brightness-based normalized cross-correlation method 38 ; however, this method can only be applied under the strong assumption that there’s no rotation or size scale when acquiring the images. Here, we propose a feature-based bi-channel aided approach to stitch limited overlapped microscopy images. We demonstrate the proposed method by stitching Atomic Force Microscopy (AFM) generated images of bacterial biofilms via first extracting higher number of matched features from different correlated microscopy imaging channels such as amplitude and then utilizing the information to estimate the alignment of the topographical images. Furthermore, we show that the differentiation of the topographical images along the x-axis provides similar feature information to the amplitude channel image, which generalizes our approach when the amplitude images are not available. We compared the performance of our method with other stitching approaches by experimenting with different biofilm datasets with 10% overlapping and thereby demonstrated the effectiveness of our method. By integrating the proposed workflow, our work aims to improve the balance between cost effective automated microscopy scanning and image stitching accuracy, enabling extraction of accurate physical information and promoting discovery. Result and Discussion In this paper, we have focused on the study of the early stages of bacterial biofilm formations, where the researchers must capture both the overall structural organization of microbial communities and the fine-scale interactions between individual cells, which are critical for understanding biofilm formation, resistance mechanisms, and responses to environmental changes. AFM 39 has been considered for studying surface attachments it operates effectively in both air and liquid environments, allowing imaging under near physiological conditions 40 , 41 . Moreover, AFM provides high-resolution imaging and can generate detailed three-dimensional images of surface topography for studying cell structures, cell-to-cell interactions, and fine features like cell walls, flagella and pili 42 . AFM has not only proven to be a powerful tool for nanoscale mechanical and topographical characterization, but it also enables the integration of various non-invasive chemical imaging 43 , 44 and composition mapping 45 , internal hydration properties of single bacterial endospores 46 and properties of outer membrane extensions of bacteria 47 . While AFM can provide detailed insights into individual cells and bio-structures at the nano- to microscale and capture intricate details about the topography and mechanical properties, traditional AFM techniques are still limited by their slow measurement process and small imaging areas (typically < 100 µm) due to being restricted by piezoelectric actuator constraints, thereby limiting the use of AFM to study large, millimeter-scale biofilm structures. This scale restriction makes it challenging to gain a representative understanding of biofilm assembly across larger areas. Recently, a large-area AFM method has been developed by Millan-Solsona et al. to enable imaging of millimeter-sized biofilm structures 48 . In order to study the dynamic properties of the biofilm at different stages of formation, the collected large area AFM topographical images need to be stitched together to reconstruct the full image. AFM techniques provide multi-channel information, offering various data streams that can aid in the image stitching process. In addition, the limited scan area of the device often necessitates capturing an array of overlapping images. These overlapping regions not only enable accurate stitching but also help mitigate common AFM artifacts. Among the most significant artifacts are sample tilt, rotation induced by the piezo drive, hysteresis, thermal drift, and the limited precision of the motorized stage. To ensure a reliable reconstruction, the stitching system must effectively compensate for these distortions while accounting for the degrees of freedom involved. Specifically, in AFM, image stitching must address sample displacement, rotation, and tilt to achieve accurate alignment and seamless integration. In this paper we propose a bi-channel aided microscopy image stitching method based on the underlying feature-based technique. By controlling the input in the feature-based image stitching pipeline, our goal is to obtain a more precise estimate of the rotation, displacement, and tilt variations of the sampled microscopy images by maximizing the extraction of matched features from the limited overlapping areas. Figure 1 shows the proposed workflow of bi-channel aided stitching method. In general, as shown in Fig. 1 , feature-based stitching involves four key steps: feature detection, feature matching, camera pose estimation, and image warping and blending. In feature detection, distinct patterns or key points from all the scanned microscopy images are identified. Then, the feature matching algorithm extracts the corresponding key points from overlapping areas of adjacent images. In camera pose estimation, we estimate the intrinsic (i.e., focal length and principal point settings) and extrinsic parameters (i.e., rotation and translation) of the camera pose relative to a reference frame. Finally, the warping and blending algorithm applies the estimated image transformations to images and stitches them together seamlessly. Following our proposed approach of bi-channel aided stitching (Fig. 1 b), in this case study of bacterial surface attachment and biofilm formation, topographical images generated from large area-AFM are the sample of interest (first channel) as it captures the morphological details of the attached cells. However, instead of detecting features from topographical images (first imaging channel), we explore other AFM imaging channels that are correlated to the first imaging channel, revealing finer surface details and containing a higher number of detectable features. In this case, this exploration and analysis for identifying the second imaging channel is conducted via domain expert knowledge. Here, to choose the best second imaging channel for feature detection and matching, we find that amplitude images yield more detected and matched features, which enhance the performance in stitching compared to topographical image. To generalize our proposed approach, we aim to investigate other correlated imaging channels when the amplitude images are not available. To eliminate the need for the experimental and storage burden of amplitude images, we investigated further and found that computing the x-axis derivative of the topographical image (first channel) also yields similar feature-rich images like the amplitude images (second channel). Thus, in camera pose estimation, using the highly matched features of correlated microscopy second channel images (eg. amplitude images), we estimate the parameters of the camera pose relative to a reference frame. Since the AFM images are not captured by any conventional camera, the camera pose parameters are treated as an assumed variable used to calculate image transformations. In this step, the algorithm first assigns initial values to the camera pose parameters, then optimizes those using the matched features. Here, these parameters are optimized and estimated from the higher feature-matched second channel such as amplitude channel, which are then used to determine the transformations of the first channel topographical images within a unified coordinate system. In image warping, we align the topographical images together by applying the derived transformation matrix to these images on a per-pixel basis. That is, we first perform feature detection, matching, and camera pose estimation using the second channel images (high featured), and then we apply the estimated transformations to warp the first channel images (sparse featured) together. Finally, the blending algorithm takes the warped topographical images and blends them together seamlessly. It should be noted that our method does not depend on the availability of only amplitude channel images. Rather, we see that the differentiation of the topographical images along the x-axis provides similar feature information to the amplitude channel image, which can be considered as the second channel when the amplitude image is not available. Considering the objectives of having high correlation between first and second channel images and higher detected/matched features of the second channel images, if no better solution is found, then the optimal second channel images is the first channel images. For all the demonstrated analysis of the proposed approach, we considered the package “Stitching”, coded in Python 25 . Stitching provides a Jupyter notebook tutorial that allows us to use each stitching module flexibly. We integrate our idea with the stitching pipeline to perform the AFM topographical images stitching task. We use the amplitude image as input for feature detection. There are four feature detectors available from the Stitching package: ORB, BRISK, AKAZE and SIFT. After exhaustive tuning with different feature algorithms, we chose SIFT as the feature detector with contrast_Threshold = 0.015, edge_Threshold = 15. After extracting key features from all the amplitude images, these features are matched between image pairs using feature matching. There are two feature matching modes available: homography and affine . Affine transformations are computationally cheap and consider scaling, rotation and translation variations whereas Homography mode handles one more type of transformation named perspective distortion. However, as these transformations are unlikely to happen in microscopy images as per domain expert knowledge, we use the affine mode for better feature matching. To demonstrate the performance of the proposed method, we considered two datasets of large-area AFM scanned images of early biofilm formation, with each dataset being scanned at 10% overlap. Discussion on experimental datasets AFM images were acquired using the DriveAFM system from Nanosurf , which features a motorized platform capable of scanning large areas. The datasets were collected using the methodology described in 48 through a custom Python graphical interface designed to capture image arrays. In this study, we utilized 3 × 3 and 7 × 7 overlapping image arrays, each image of 15 x 15 µm 2 and 87 x 87 µm 2 respectively with a 10% overlap. For the remainder of the paper, we correspond these to datasets 1 and 2, respectively. The stack of the images in datasets 1 and 2 is provided in Supplementary Materials ( Fig. S1 ). All images were acquired in tapping mode, capturing topography, amplitude, deflection, and phase channels. AFM topographic images often contain noise, such as artificial horizontal lines caused by the feedback system, adhesion artifacts, or changes in resonance frequency, which result in abrupt variations between consecutive scan lines. Additionally, AFM measurements require post-processing to correct potential sample tilts, thermal drift, and other distortions. These artifacts can be easily removed using commonly applied techniques, such as mean difference adjustment, median adjustment, surface fitting methods, and flattening techniques. In this study, we used custom functions available in 49 to integrate them into the workflow. The samples used in this studyto a time course of surface attachment by Pantoea sp. YR343 , a Gram-negative bacterium isolated from the rhizosphere of poplar trees, known for its plant growth-promoting properties 50 . Pantoea sp. YR343 is a motile, rod-shaped bacterium with pili and peritrichous flagella, facilitating its interactions within its environment. The strain was grown in minimal medium, as described in 48 , on a silicon oxide substrate between 4 and 6 hours for dataset 1 and for 30 minutes for dataset 2. At the time of collection, the coverslip was carefully rinsed in Nanopure water to remove unattached cells, without being allowed to dry at any point. The coverslips were then fixed in 4% paraformaldehyde for 15 minutes and washed once more. Finally, the samples were dried before imaging using pressurized nitrogen. Before implementation, we also analyze the features of the topography and other imaging channels for these datasets. Table 1 shows the comparison of the detected and matched features among the topography, amplitude and the differential channels for both datasets. Figures 2 and 3 show the detected features among the topography and the other imaging channels for a sample image on both datasets respectively. From the figures, it is clear that the images from the amplitude and differential channels contain more features as denoted by the density of green dots. Table 1 Comparison of the detected and matched features between the amplitude images and topographical images of the Pantoea sp. YR343 datasets. The Average Number of matched features column provides the number of total matched image pairs and the average number of matched features for each pair. Average Number of Detected features Average Number of matched features Amplitude channel Differential channel Topography channel Amplitude channel Differential channel Topography channel dataset1 2746 1851 375 169 (12 matches) 149 (12 matches) 13 (6 matches) dataset2 2216 1455 1109 168 (56 matches) 163 (58 matches) 86 (48 matches) Case Study-Implementation on Dataset 1 of Pantoea sp. YR343 sample We first implemented our proposed approach of bi-channel aided image stitching to dataset 1 composed of images of early biofilm assembly by Pantoea sp. YR343, where the strain was grown on a silicon oxide substrate between 4 and 6 hours. The dataset includes 9 scanned topographical and amplitude images, each image of 15 x 15 µm 2 and acquired with a 10% overlap. From Table 1 , we can see each topographical image yielded an average of 375 detected features, resulting in 6 matched image pairs with approximately 13 matched features per pair. In contrast, the corresponding amplitude images capture finer surface details, with each image averaging 2,736 detected features, this resulted in 12 matched pairs, with each pair averaging 169 matched features. Note that detecting a larger number of features not only improves image matching accuracy but also increases the number of matched pairs, leading to a more complete stitched image. In contrast, the differential images average 1,851 detected features, which is lower than the number of detected features in amplitude images, but significantly higher than the detected features in the topographical images. Even though the number of detected features in the differential images is lower than in the amplitude images, the average number of matched features in the differential images is 149, similar to the 169 matched features in the amplitude images It should be noted that the stitching performance depends heavily on the matched features, and therefore, the differential images also provide significant key details like the amplitude images. Figure 4 provides a visual example of feature matching from the amplitude and topographical images (as denoted by green lines), where amplitude images show a significantlarger number of matched features. Using the proposed bi-channel aided image stitching method (see Fig. 1 ), we estimated a transformation matrix from the amplitude images and applied it to the topographical images, resulting in a stitched topographical image. Figure 5 shows the stitching performance of the proposed method and the comparison with traditional approaches using existing algorithms such as Stitching , Stitch2D and MIST . Here, Stitching fails completely to estimate the camera pose and thus it could not provide any solution. From Fig. 5 a, we can see Stitch2D can only partially stitch images with a 20% overlap where the blank rectangle region is the failed region in the image canvas where the method could not align any images due to potentially sparse matching features of the topographical images (see Table 1 ). Furthermore, Stitch2D fails to stitch any topographical images when the overlap decreases to 10%. MIST , on the other hand from Fig. 5 b, performed better and could stitch topographical images with a 10% overlap when the overlap percentage is manually specified. However, the stitched topographical image introduced noises such as several seam lines (denoted by red and yellow solid boxes in Fig. 5 d and 5 e). These seam lines can interfere with subsequent post image analyses, such as image segmentation and object detection,. to study the physical properties of cells during biofilm assembly. Thus, even though MIST could be able to stitch all the images, the stitched image is physically undesired as per the domain experts. From Fig. 5 c, we can clearly see our method outperformed the traditional approach where it can stitch all the topographical images with 10% overlap without generating any significant noise from stitching (denoted by red and yellow dotted boxes in Fig. 5 d and 5 e). Figure 6 shows the comparison of the stitched topographical image via extracting features from amplitude and differential images which are similar to the result using the amplitude channel images. Case Study- Implementation on Dataset 2 of Pantoea sp. YR343 sample Next, we implemented our proposed approach to the biofilm dataset 2 of Pantoea sp. YR343, where the strain was grown on a silicon oxide substrate for 30 mins. The dataset includes 49 scanned topographical and amplitude images, each image of 87 x 87 µm 2 and acquired with a 10% overlap. From Table 1 , we can see each topographical image yielded an average of 1109 detected features, resulting in 48 matched image pairs with approximately 86 matched features per pair. In contrast, the corresponding amplitude images capture averaging 2,216 detected features and producing 56 matched pairs, each averaging 168 matched features. Here, we see the resulting number of average match features of the differential images is 163, which is close to the same for amplitude images. Figure 7 shows the stitching performance of the proposed method and the comparison with Stitching , Stitch2D and MIST . Here, Stitch2D could not produce any solution as it fails to align the images together. From Fig. 7 a, we can see Stitching can only partially stitch images with a 10% overlap despite containing a seemingly sufficient number of matched features of the topographical images (see Table 1 ). This is due to the uneven distribution of matched features and the presence of feature-sparse images, which prevent the algorithm from directly stitching the topographical images. As a result, 15 out of 49 images are missing from the stitched image. MIST , on the other hand, performed better and could stitch all the topographical images with 10% overlap when the overlap percentage was manually specified as shown in Fig. 7 b. However, like in previous analysis, the stitched topographical image introduced more noises such as misalignment (denoted by red solid box in Fig. 7 d) and seam lines (denoted by yellow solid box in Fig. 7 e), which degrades the stitched image to a unsuitable result. Again from Fig. 7 c, we can clearly see our method outperformed the traditional approach where it can stitch all the topographical images with 10% overlap, without any sign of significant misalignment or generation of seam lines. To further investigate the regions where MIST fails, we can see our method provides correct alignment and smooth surfaces (denoted by dotted red and yellow boxes in Figs. 7 d and 7 e respectively) of the stitched topographical image. Finally, Fig. 8 shows the comparison of the stitched topographical image via extracting features from amplitude and differential imaging channels. Similar to previous analysis, both stitched images are very similar, suggesting that our method can be generalized to other image types, serving as a valuable augmentation strategy for microscopy image stitching tasks. Summary In summary, we propose a microscopy imaging bi-channel aided stitching method to aim to gather larger volume of information needed to stitch multiple images via maximizing extraction of matching features. Here, the first imaging channel is the stack of images of interest to stitch together and the second channel is the stack of images, highly correlated to the first channel, where higher volume of detected and matched features between adjacent image pairs can be extracted. In other words, our proposed pipeline is designed to stitch any microscopy image of interest as follows- 1) performing feature detection and matching from the rich-featured correlated image channels (such as amplitude or differential images), 2) then using the feature information to optimize the camera pose estimation, and 3) then we apply the estimated transformations to warp the sparse-featured image of interest to stitch them together. We see that the existing stitching tools generally work well when the image of interest is either less complex such as environmental images or with significant overlapping (eg. 30%) of image pairs. However, real microscopy experimental data is more complex with undistributed and sparse features and additional artifact noise. Furthermore, data acquisition with such an overlapping percentage can be extremely challenging in terms of experimental cost. We demonstrated our method to stitch two sets of complex biofilm assembly images with limited (e.g. 10%) overlaps where our method outperformed significantly than the traditional stitching tools like Stitching , Stitch2D and MIST . We believe that our method can be generalized to stitch any microscopy images (such as STM, STEM etc.) to study large-scale material structures, and benefit the experimentalist to avoid erroneous analysis and discovery due to incorrect stitching. In the future, we aim to automate the optimal selection of the second imaging channel by designing a hybrid objective metric of quantifying mean correlation between stacks of images from first and second imaging channel, and quantifying the mean detected and matched features (as per Table 1 ) of the candidate for second imaging channel. We aim to also integrate the method with this hybrid metric into microscopy for real-time automated stitching. Future work also seeks to extend the method towards 1) adapting deep-learning framework for improved detection of matched features and 2) adding workflow to gather prior knowledge of the features from pretraining with existing microscopy image data from correlated material systems. Declarations Conflict of Interest: The author confirms there is no conflict of interest. Code and Data Availability Statement: The analysis reported here along with the code is summarized in Notebook for the purpose of tutorial and application to other data and can be found in https://github.com/arpanbiswas52/Stitching_AFMimage Author Contribution Author ContributionsA.B supervised the project, supported funding for H.Z, interpreted the results, and wrote the manuscript. H.Z designed the stitching algorithm, wrote the codes for implementation and analysis, analyzed data, prepared figures and co-wrote the paper. R.M wrote codes for image flattening, conducted AFM experiments to generate data, assisted with analysis and paper writing. M.C and L.C assisted with the data preparation and analysis of the results. S.R.B and J.L.M grew the samples used. All authors commented on the manuscript. Acknowledgement This work (A.B and H.Z) was supported by the University of Tennessee startup funding. The authors acknowledge the use of facilities and instrumentation at the UT Knoxville Institute for Advanced Materials and Manufacturing (IAMM) and the Shull Wollan Center (SWC) supported in part by the National Science Foundation Materials Research Science and Engineering Center program through the UT Knoxville Center for Advanced Materials and Manufacturing (DMR-2309083). Work by R.M, S.R.B., M.C, L.C and J.L.M was supported by the U.S. Department of Energy, Office of Science FWP ERKCZ64, Structure Guided Design of Materials to Optimize the Abiotic-Biotic Material Interface, as part of the Bio preparedness Research Virtual Environment (BRaVE) initiative. AFM measurements and sample preparation were conducted as part of a user project at the Center for Nanophase Materials Sciences (CNMS), which is a US Department of Energy, Office of Science User Facility at Oak Ridge National Laboratory. The authors would like to sincerely thank Scott Retterer for his generous assistance in the acquisition of funding for this research. Data Availability The analysis reported here along with the code is summarized in Notebook for the purpose of tutorial and application to other data and can be found in https://github.com/arpanbiswas52/Stitching_AFMimage References Samsudin, S., Adwan, S., Arof, H., Mokhtar, N. & Ibrahim, F. Development of Automated Image Stitching System for Radiographic Images. J. Digit. Imaging 26, 361–370 (2013). Wang, Y. & Wang, M. Research on stitching technique of medical infrared images. in 2010 International Conference on Computer Application and System Modeling (ICCASM 2010) vol. 10 V10-490-V10-493 (2010). Yang, F., He, Y., Deng, Z. S. & Yan, A. Improvement of automated image stitching system for DR X-ray images. Comput. Biol. Med. 71, 108–114 (2016). Zhao, X., Wang, H. & Wang, Y. Medical Image Seamlessly Stitching by SIFT and GIST. in 2010 International Conference on E-Product E-Service and E-Entertainment 1–4 (2010). doi: 10.1109/ICEEE.2010.5661495 . Song, S., Son, J. & Kim, M.-H. Stitching of Microscopic Images for Quantifying Neuronal Growth and Spine Plasticity. in Advances in Visual Computing (eds. Bebis, G. et al.) 45–53 (Springer, Berlin, Heidelberg, 2010). doi: 10.1007/978-3-642-17289-2_5 . Wei, Z., Dan, T., Ding, J., Dere, M. & Wu, G. A General Stitching Solution for Whole-Brain 3D Nuclei Instance Segmentation from Microscopy Images. in Medical Image Computing and Computer Assisted Intervention – MICCAI 2023 (eds. Greenspan, H. et al.) 46–55 (Springer Nature Switzerland, Cham, 2023). doi: 10.1007/978-3-031-43901-8_5 . Lee, D.-H., Lee, D.-W. & Han, B.-S. Possibility Study of Scale Invariant Feature Transform (SIFT) Algorithm Application to Spine Magnetic Resonance Imaging. PLOS ONE 11, e0153043 (2016). Lin, B. et al. A Registration Algorithm for Astronomical Images Based on Geometric Constraints and Homography. Remote Sens. 15, 1921 (2023). Qiu, S. et al. Star Map Stitching Algorithm Based on Visual Principle. Int. J. Pattern Recognit. Artif. Intell. 32, 1850028 (2018). Eken, S. & Sayar, A. A MapReduce-based distributed and scalable framework for stitching of satellite mosaic images. Arab. J. Geosci. 14, 1863 (2021). Jiang, Y. et al. Stitching images of dual-cameras onboard satellite. ISPRS J. Photogramm. Remote Sens. 128, 274–286 (2017). Megha, V. & Rajkumar, K. K. Automatic Satellite Image Stitching Based on Speeded Up Robust Feature. in 2021 International Conference on Artificial Intelligence and Machine Vision (AIMV) 1–6 (2021). doi: 10.1109/AIMV53313.2021.9670954 . Zarei, A. et al. MegaStitch: Robust Large-Scale Image Stitching. IEEE Trans. Geosci. Remote Sens. 60, 1–9 (2022). Chalfoun, J. et al. MIST: Accurate and Scalable Microscopy Image Stitching Tool with Stage Modeling and Error Minimization. Sci. Rep. 7, 4988 (2017). Tong, X. et al. Image Registration With Fourier-Based Image Correlation: A Comprehensive Review of Developments and Applications. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 12, 4062–4081 (2019). Brown, M. & Lowe, D. G. Automatic Panoramic Image Stitching using Invariant Features. Int. J. Comput. Vis. 74, 59–73 (2007). Adel, E., Elmogy, M. & Elbakry, H. Image Stitching based on Feature Extraction Techniques: A Survey. Int. J. Comput. Appl. 99, 1–8 (2014). Lowe, D. G. Object recognition from local scale-invariant features. in Proceedings of the Seventh IEEE International Conference on Computer Vision vol. 2 1150–1157 vol.2 (1999). Lowe, D. G. Distinctive Image Features from Scale-Invariant Keypoints. Int. J. Comput. Vis. 60, 91–110 (2004). Bay, H., Ess, A., Tuytelaars, T. & Van Gool, L. Speeded-Up Robust Features (SURF). Comput. Vis. Image Underst. 110, 346–359 (2008). Leutenegger, S., Chli, M. & Siegwart, R. Y. BRISK: Binary Robust invariant scalable keypoints. in 2011 International Conference on Computer Vision 2548–2555 (2011). doi: 10.1109/ICCV.2011.6126542 . Sharma, S. K. & Jain, K. Image Stitching using AKAZE Features. J. Indian Soc. Remote Sens. 48, 1389–1401 (2020). Wang, M., Niu, S. & Yang, X. A novel panoramic image stitching algorithm based on ORB. in 2017 International Conference on Applied System Innovation (ICASI) 818–821 (2017). doi: 10.1109/ICASI.2017.7988559 . Mansur, A. adamancer/stitch2d. (2024). OpenStitching/stitching. OpenStitching (2025). Mohammadi, F. S., Mohammadi, S. E., Mojarad Adi, P., Mirkarimi, S. M. A. & Shabani, H. A comparative analysis of pairwise image stitching techniques for microscopy images. Sci. Rep. 14, 9215 (2024). Mohammadi, F. S., Shabani, H. & Zarei, M. Fast and robust feature-based stitching algorithm for microscopic images. Sci. Rep. 14, 13304 (2024). Fan, X. & Xia, S. Feature Based Automatic Stitching of Microscopic Images. in Advanced Intelligent Computing Theories and Applications. With Aspects of Contemporary Intelligent Computing Techniques (eds. Huang, D.-S., Heutte, L. & Loog, M.) 791–800 (Springer, Berlin, Heidelberg, 2007). doi: 10.1007/978-3-540-74282-1_88 . Zhang, Y., Pang, B., Yu, Y. & Zhang, C. Automatic microscopy image stitching based on geometry features. in 2013 6th International Congress on Image and Signal Processing (CISP) vol. 2 927–931 (2013). He, B. et al. vEMstitch: an algorithm for fully automatic image stitching of volume electron microscopy. GigaScience 13, giae076 (2024). Ma, B. et al. Use of Autostitch for automatic stitching of microscope images. Micron 38, 492–499 (2007). Yang, F., Deng, Z.-S. & Fan, Q.-H. A method for fast automated microscope image stitching. Micron 48, 17–25 (2013). Xu, C., Yan, J. & Yang, H. Image stitching method based on image edge detection and SIFT algorithm. in Proceedings of the 2021 5th International Conference on Electronic Information Technology and Computer Engineering 425–431 (Association for Computing Machinery, New York, NY, USA, 2022). doi: 10.1145/3501409.3501487 . Gan, W., Wu, Z., Wang, M. & Cui, X. Image Stitching Based on Optimized SIFT Algorithm. in 2023 5th International Conference on Intelligent Control, Measurement and Signal Processing (ICMSP) 1099–1102 (2023). doi: 10.1109/ICMSP58539.2023.10170989 . Preibisch, S., Saalfeld, S. & Tomancak, P. Globally optimal stitching of tiled 3D microscopic image acquisitions. Bioinformatics 25, 1463–1465 (2009). Sarlin, P.-E., DeTone, D., Malisiewicz, T. & Rabinovich, A. SuperGlue: Learning Feature Matching With Graph Neural Networks. in 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) 4937–4946 (2020). doi: 10.1109/CVPR42600.2020.00499 . Sun, J., Shen, Z., Wang, Y., Bao, H. & Zhou, X. LoFTR: Detector-Free Local Feature Matching with Transformers. in 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) 8918–8927 (2021). doi: 10.1109/CVPR46437.2021.00881 . Seo, J.-H. et al. Automated stitching of microscope images of fluorescence in cells with minimal overlap. Micron 126, 102718 (2019). Binnig, G., Quate, C. F. & Gerber, Ch. Atomic Force Microscope. Phys. Rev. Lett. 56, 930–933 (1986). Alonso, J. L. & Goldmann, W. H. Feeling the forces: atomic force microscopy in cell biology. Life Sci. 72, 2553–2560 (2003). Botet-Carreras, A. et al. On the uptake of cationic liposomes by cells: From changes in elasticity to internalization. Colloids Surf. B Biointerfaces 221, 112968 (2023). Lidke, D. S. & Lidke, K. A. Advances in high-resolution imaging – techniques for three-dimensional imaging of cellular structures. J. Cell Sci. 125, 2571–2580 (2012). Müller, D. J. et al. Atomic Force Microscopy-Based Force Spectroscopy and Multiparametric Imaging of Biomolecular and Cellular Systems. Chem. Rev. 121, 11701–11725 (2021). Kochan, K. et al. In vivo atomic force microscopy–infrared spectroscopy of bacteria. J. R. Soc. Interface 15, 20180115 (2018). Checa, M. et al. Mapping the dielectric constant of a single bacterial cell at the nanoscale with scanning dielectric force volume microscopy. Nanoscale 11, 20809–20819 (2019). Van Der Hofstadt, M. et al. Internal Hydration Properties of Single Bacterial Endospores Probed by Electrostatic Force Microscopy. ACS Nano 10, 11327–11336 (2016). Lozano, H. et al. Electrical properties of outer membrane extensions from Shewanella oneidensis MR-1. Nanoscale 13, 18754–18762 (2021). Millan-Solsona, R. et al. Analysis of Biofilm Assembly by Large Area Automated AFM. Preprint at https://doi.org/10.21203/rs.3.rs-5537963/v1 (2025). Millan-Solsona, R. Rmillansol/Large-Area-AFM-Analysis-and-Control. (2025). Bible, A. N. et al. A Carotenoid-Deficient Mutant in Pantoea sp. YR343, a Bacteria Isolated from the Rhizosphere of Populus deltoides, Is Defective in Root Colonization. Front. Microbiol. 7, (2016). Additional Declarations No competing interests reported. Supplementary Files AFMstitchsupp.pdf Cite Share Download PDF Status: Posted Version 1 posted You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-6221535","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"Article","associatedPublications":[],"authors":[{"id":441843730,"identity":"49e07d1f-3b67-4c6f-ac69-23f75de2ded2","order_by":0,"name":"Huanhuan Zhao","email":"","orcid":"","institution":"University of Tennessee at Knoxville","correspondingAuthor":false,"prefix":"","firstName":"Huanhuan","middleName":"","lastName":"Zhao","suffix":""},{"id":441843734,"identity":"eb32ca9a-6cea-4a5a-9689-9f060d47dc66","order_by":1,"name":"Ruben Millan Solsona","email":"","orcid":"","institution":"Oak Ridge National Laboratory","correspondingAuthor":false,"prefix":"","firstName":"Ruben","middleName":"Millan","lastName":"Solsona","suffix":""},{"id":441843736,"identity":"0c9a347b-e4a5-4764-9691-5a737f847a0c","order_by":2,"name":"Marti Checa","email":"","orcid":"","institution":"Oak Ridge National Laboratory","correspondingAuthor":false,"prefix":"","firstName":"Marti","middleName":"","lastName":"Checa","suffix":""},{"id":441843737,"identity":"2dd22811-046f-4ca5-9b34-f21ce01b83b1","order_by":3,"name":"Spenser R. Brown","email":"","orcid":"","institution":"Oak Ridge National Laboratory","correspondingAuthor":false,"prefix":"","firstName":"Spenser","middleName":"R.","lastName":"Brown","suffix":""},{"id":441843740,"identity":"e9f32e4d-a44e-46f8-9f2e-f8ef038fb6a0","order_by":4,"name":"Jennifer L. Morrell-Falvey","email":"","orcid":"","institution":"Oak Ridge National Laboratory","correspondingAuthor":false,"prefix":"","firstName":"Jennifer","middleName":"L.","lastName":"Morrell-Falvey","suffix":""},{"id":441843741,"identity":"196ec66e-4f5e-4982-9116-556ca4430a66","order_by":5,"name":"Liam Collins","email":"","orcid":"","institution":"Oak Ridge National Laboratory","correspondingAuthor":false,"prefix":"","firstName":"Liam","middleName":"","lastName":"Collins","suffix":""},{"id":441843744,"identity":"6278ace8-2bd6-400e-b903-db9843596a12","order_by":6,"name":"Arpan Biswas","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAwUlEQVRIiWNgGAWjYDACCcYGEFXPz8DAzADBRGpJkGxgJloLhEowOECsFv7Zzc2feWrq8oxv5B82YKiwTmwgaMmdg23SPMcOF5vdSGZOYDiTTlgLw43ENuYctgOM24BaDjC2HSasRf5GYvPnnH91jJtngLT8I0KLwY3EBuncNubEDRJAhzE2EKHFEOSXv32HjSXOPDY2SDiWbkxQi9zt9scfZ3yrk+NvT3ws8aHGWpagFlSQQJryUTAKRsEoGAW4AACZd0CziOTLigAAAABJRU5ErkJggg==","orcid":"","institution":"University of Tennessee at Knoxville","correspondingAuthor":true,"prefix":"","firstName":"Arpan","middleName":"","lastName":"Biswas","suffix":""}],"badges":[],"createdAt":"2025-03-13 15:53:09","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-6221535/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-6221535/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":82097819,"identity":"dc965a50-ecdc-40fe-8250-13c884f5c680","added_by":"auto","created_at":"2025-05-06 17:55:44","extension":"png","order_by":1,"title":"Figure 1","display":"","copyAsset":false,"role":"figure","size":464210,"visible":true,"origin":"","legend":"\u003cp\u003eProposed approach of feature-based bi-channel aided image stitching of microscopy images. Here fig. (a) shows the traditional direct stitching of stack of overlapped microscopy topographical images where (b) shows the stitching of the same via our proposed approach. Here in our method, we extract higher matched features (denoted by green lines) from correlated second channel microscopy images (eg. stack of overlapped amplitude or differential images) than extracting matched features directly from the first channel topographical images as in (a). Then, we utilize the insights from a higher number of matched features to improve the camera pose estimation and thereby improve the stitching quality of the topographical images.\u003c/p\u003e","description":"","filename":"image1.png","url":"https://assets-eu.researchsquare.com/files/rs-6221535/v1/df4942a2fb34d1805237c6b0.png"},{"id":82097823,"identity":"423276e2-d627-486f-bb5d-50f4bffc91c7","added_by":"auto","created_at":"2025-05-06 17:55:44","extension":"png","order_by":2,"title":"Figure 2","display":"","copyAsset":false,"role":"figure","size":599350,"visible":true,"origin":"","legend":"\u003cp\u003eComparison of the detected features between the (a) topographical, (b) amplitude and (c) differential images of the \u003cem\u003ePantoea\u003c/em\u003esp. YR343 dataset 1. Here, we present one sampled scan image from the dataset. The green dots in each of the images are the detected features.\u003c/p\u003e","description":"","filename":"image2.png","url":"https://assets-eu.researchsquare.com/files/rs-6221535/v1/3de3fbe9bffdbf6debcc3ad3.png"},{"id":82097833,"identity":"499b492e-4b24-44ac-b316-b5c505796e96","added_by":"auto","created_at":"2025-05-06 17:55:45","extension":"png","order_by":3,"title":"Figure 3","display":"","copyAsset":false,"role":"figure","size":375842,"visible":true,"origin":"","legend":"\u003cp\u003eComparison of the detected features between the (a) topographical, (b) amplitude and (c) differential images of the \u003cem\u003ePantoea\u003c/em\u003esp. YR343 dataset 2. Here, we present one sampled scan image from the dataset. Figures (d), (e) and (f) are the zoomed images at the box section provided in (a), (b) and (c) respectively. The green dots in each of the images are the detected features.\u003c/p\u003e","description":"","filename":"image3.png","url":"https://assets-eu.researchsquare.com/files/rs-6221535/v1/1aeb1176445c86c422f168a8.png"},{"id":82098681,"identity":"cc2aa087-f572-4a84-82cc-ff0fe0185956","added_by":"auto","created_at":"2025-05-06 18:11:45","extension":"png","order_by":4,"title":"Figure 4","display":"","copyAsset":false,"role":"figure","size":365376,"visible":true,"origin":"","legend":"\u003cp\u003eFeature matching of (a) topographical and (b) amplitude images of \u003cem\u003ePantoea\u003c/em\u003e sp. YR343 dataset 1.\u003c/p\u003e","description":"","filename":"image4.png","url":"https://assets-eu.researchsquare.com/files/rs-6221535/v1/785dde3327de8a738372a315.png"},{"id":82098936,"identity":"c570b66e-d314-4f44-a1b9-32625d0bb8a5","added_by":"auto","created_at":"2025-05-06 18:19:45","extension":"png","order_by":5,"title":"Figure 5","display":"","copyAsset":false,"role":"figure","size":577855,"visible":true,"origin":"","legend":"\u003cp\u003eComparison of the stitching of topographical images from \u003cem\u003ePantoea\u003c/em\u003e sp. YR343 dataset 1 stitching result using a) \u003cem\u003eStitch 2D\u003c/em\u003e with 20% overlap, b) \u003cem\u003eMIST\u003c/em\u003ewith 10% overlap and c) the proposed method with 10% overlap with the aid of amplitude channel images.\u003c/p\u003e","description":"","filename":"image5.png","url":"https://assets-eu.researchsquare.com/files/rs-6221535/v1/1b3120dcad1c4abdc136df2a.png"},{"id":82098120,"identity":"49460f91-89a1-4f1a-bcb6-0b475979cd07","added_by":"auto","created_at":"2025-05-06 18:03:45","extension":"png","order_by":6,"title":"Figure 6","display":"","copyAsset":false,"role":"figure","size":671660,"visible":true,"origin":"","legend":"\u003cp\u003eStitching of \u003cem\u003ePantoea\u003c/em\u003e sp. YR343 dataset 1 images using different second imaging channel. Here, a) is the stitched amplitude channel image, b) is the stitched differentiation image, c) is the stitched topographical image with aid of the amplitude image, d) is the stitched topographical image with aid of the differentiation of topographical image along x axis.\u003c/p\u003e","description":"","filename":"image6.png","url":"https://assets-eu.researchsquare.com/files/rs-6221535/v1/8424de45349d3f36dddbd102.png"},{"id":82097827,"identity":"3811f650-b42a-49b3-81c3-601f4c3d36d5","added_by":"auto","created_at":"2025-05-06 17:55:45","extension":"png","order_by":7,"title":"Figure 7","display":"","copyAsset":false,"role":"figure","size":575791,"visible":true,"origin":"","legend":"\u003cp\u003eComparison of the stitching of topographical images from \u003cem\u003ePantoea\u003c/em\u003e sp. YR343 dataset 2 using a) \u003cem\u003eStitching\u003c/em\u003e with 10% overlap, b) \u003cem\u003eMIST\u003c/em\u003e with 10% overlap and c) the proposed method with 10% overlap with the aid of the amplitude channel images.\u003c/p\u003e","description":"","filename":"image7.png","url":"https://assets-eu.researchsquare.com/files/rs-6221535/v1/17c8e09fdc8292db91891486.png"},{"id":82097830,"identity":"ef75ece2-98fc-41fe-aced-b3594ce28de3","added_by":"auto","created_at":"2025-05-06 17:55:45","extension":"png","order_by":8,"title":"Figure 8","display":"","copyAsset":false,"role":"figure","size":2014254,"visible":true,"origin":"","legend":"\u003cp\u003eStitching of \u003cem\u003ePantoea\u003c/em\u003e sp. YR343 dataset 2 images using different second imaging channel. Here, a) is the stitched amplitude channel image, b) is the stitched differentiation image, c) is the stitched topographical image with aid of amplitude image, d) is the stitched topographical image with aid of the differentiation of topographical image along x axis.\u003c/p\u003e","description":"","filename":"image8.png","url":"https://assets-eu.researchsquare.com/files/rs-6221535/v1/92b9ad29ada2335f0291113f.png"},{"id":86001854,"identity":"8f7274a0-9475-449e-990f-a800d9b01162","added_by":"auto","created_at":"2025-07-04 07:42:28","extension":"pdf","order_by":0,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":7277263,"visible":true,"origin":"","legend":"","description":"","filename":"manuscript.pdf","url":"https://assets-eu.researchsquare.com/files/rs-6221535/v1/0840cf23-2564-40ee-80fa-a4c72ad4d63e.pdf"},{"id":82097839,"identity":"110c121f-d395-494f-8bc8-273f72397d81","added_by":"auto","created_at":"2025-05-06 17:55:45","extension":"pdf","order_by":2,"title":"","display":"","copyAsset":false,"role":"supplement","size":733497,"visible":true,"origin":"","legend":"","description":"","filename":"AFMstitchsupp.pdf","url":"https://assets-eu.researchsquare.com/files/rs-6221535/v1/dc3d5432c280946071bc235e.pdf"}],"financialInterests":"No competing interests reported.","formattedTitle":"A Bi-channel Aided Stitching of Atomic Force Microscopy Images","fulltext":[{"header":"Introduction","content":" \u003cp\u003eHigh-resolution microscopy is a cornerstone of scientific discovery, providing unparalleled insight into the structure and function of materials and biological specimens. However, a fundamental challenge in microscopy is the trade-off between resolution and field of view (FOV). High-magnification imaging reveals fine structural details but captures only a limited portion of the sample at a time. This constraint is particularly problematic in fields requiring both fine-scale resolution and large-area context, such as histopathology, neuroscience, and materials science. For example, in medical diagnostics\u003csup\u003e\u003cspan additionalcitationids=\"CR2 CR3\" citationid=\"CR1\" class=\"CitationRef\"\u003e1\u003c/span\u003e\u0026ndash;\u003cspan citationid=\"CR4\" class=\"CitationRef\"\u003e4\u003c/span\u003e\u003c/sup\u003e, pathologists analyzing tissue biopsies must examine entire sections while still detecting subcellular abnormalities indicative of diseases like cancer. Similarly, in neuroscience\u003csup\u003e\u003cspan additionalcitationids=\"CR6\" citationid=\"CR5\" class=\"CitationRef\"\u003e5\u003c/span\u003e\u0026ndash;\u003cspan citationid=\"CR7\" class=\"CitationRef\"\u003e7\u003c/span\u003e\u003c/sup\u003e, researchers studying brain tissue and spinal cord must visualize intricate neuronal networks spanning large regions while preserving the details of individual synaptic connections. Beyond biology, disciplines like astronomy\u003csup\u003e\u003cspan citationid=\"CR8\" class=\"CitationRef\"\u003e8\u003c/span\u003e,\u003cspan citationid=\"CR9\" class=\"CitationRef\"\u003e9\u003c/span\u003e\u003c/sup\u003e also face analogous challenges when stitching together high-resolution telescope images to create expansive sky maps. Similarly, to analyze geospatial data for predicting traffic conditions and optimizing transportation routes, large high-resolution satellite images need to be stitched together\u003csup\u003e\u003cspan additionalcitationids=\"CR11 CR12\" citationid=\"CR10\" class=\"CitationRef\"\u003e10\u003c/span\u003e\u0026ndash;\u003cspan citationid=\"CR13\" class=\"CitationRef\"\u003e13\u003c/span\u003e\u003c/sup\u003e. Here, seamless stitching of these high-resolution images is a crucial step to ensure 1) preservation of the physical insights of the original images and 2) avoiding potential false interpretation and discovery of the underlying information of the images. During the collection of these images, a degree of overlap between two adjacent images is set. If the degree is lower, the number of sampling images is reduced, which decreases the total scanning cost. While increasing the overlap, the data acquisition cost proportionally increases.\u003c/p\u003e \u003cp\u003eDifferent methods have been developed for effective image stitching, each with its own strengths and limitations. Direct methods, which use pixel intensities to align images, include techniques like Lucas-Kanade optical flow and the Sum of Absolute Differences (SAD). These methods are accurate for small displacements but can be computationally demanding and sensitive to illumination changes for large images. Transform-based methods, such as those utilizing the Fourier transform\u003csup\u003e\u003cspan citationid=\"CR14\" class=\"CitationRef\"\u003e14\u003c/span\u003e,\u003cspan citationid=\"CR15\" class=\"CitationRef\"\u003e15\u003c/span\u003e\u003c/sup\u003e, determine translation between images through phase correlation, offering speed and noise resistance but these methods struggle with rotation and scaling. Multi-scale approaches, like pyramid-based stitching, create multi-resolution representations to improve robustness and accuracy through progressive alignment refinement. Feature-based methods\u003csup\u003e\u003cspan citationid=\"CR12\" class=\"CitationRef\"\u003e12\u003c/span\u003e,\u003cspan citationid=\"CR16\" class=\"CitationRef\"\u003e16\u003c/span\u003e,\u003cspan citationid=\"CR17\" class=\"CitationRef\"\u003e17\u003c/span\u003e\u003c/sup\u003e consider different feature detectors and feature matching algorithms in order to calculate the image transformation matrix. Scale-Invariant Feature Transform (SIFT)\u003csup\u003e\u003cspan citationid=\"CR18\" class=\"CitationRef\"\u003e18\u003c/span\u003e,\u003cspan citationid=\"CR19\" class=\"CitationRef\"\u003e19\u003c/span\u003e\u003c/sup\u003e and Speeded-Up Robust Features (SURF)\u003csup\u003e\u003cspan citationid=\"CR20\" class=\"CitationRef\"\u003e20\u003c/span\u003e\u003c/sup\u003e are two popular feature detectors. SIFT is known for its robustness to scale, rotation, and illumination changes, while SURF is optimized for speed but may be less effective under extreme variations. Other notable feature-detection algorithms are Binary Robust Invariant Scalable Keypoints (BRISK)\u003csup\u003e\u003cspan citationid=\"CR21\" class=\"CitationRef\"\u003e21\u003c/span\u003e\u003c/sup\u003e and Accelerated-KAZE (AKAZE)\u003csup\u003e\u003cspan citationid=\"CR22\" class=\"CitationRef\"\u003e22\u003c/span\u003e\u003c/sup\u003e. Oriented FAST and Rotated BRIEF (ORB)\u003csup\u003e\u003cspan citationid=\"CR23\" class=\"CitationRef\"\u003e23\u003c/span\u003e\u003c/sup\u003e offers computational efficiency and is suitable for real-time applications, though it handles scale variations less effectively than SIFT. Natural images, like buildings, mountains, or indoor scenes, typically contain rich texture details. These images are easily captured with cameras, and acquiring images with large overlaps is cost-effective, which simplifies the stitching task. Existing stitching tools, such as \u003cem\u003eAutoStitch\u003c/em\u003e\u003csup\u003e\u003cspan citationid=\"CR16\" class=\"CitationRef\"\u003e16\u003c/span\u003e\u003c/sup\u003e, \u003cem\u003estitch2D\u003c/em\u003e\u003csup\u003e\u003cspan citationid=\"CR24\" class=\"CitationRef\"\u003e24\u003c/span\u003e\u003c/sup\u003e and \u003cem\u003eStitching\u003c/em\u003e\u003csup\u003e\u003cspan citationid=\"CR25\" class=\"CitationRef\"\u003e25\u003c/span\u003e\u003c/sup\u003e are highly effective for stitching these types of images. In other words, these stitching methods generally work with a high volume of matching features obtained from significant amounts of image overlapping. However, microscopy images often have sparse features due to the nature of the sample and collecting highly overlapped images (say 30%) is not often feasible due to the cost and time-intensive experimental image acquisition process. In situations when image overlapping is limited, the performance of these stitching methods degrades significantly to the point that they are not even considered for any sort of post image analysis. Thus, as the stitching error increases between two adjacent images due to limited matching features (limited overlap), the error propagates and increases even more when trying to properly stitch non-adjacent images, making the stitching problem even harder to solve. Thus, there is a need for an improved image stitching method that can accurately stitch complex and noisy microscopy images with limited overlap due to experimental constraints.\u003c/p\u003e \u003cp\u003eOver the years, various image stitching techniques have been developed to computationally merge multiple microscopy images into seamless, high-resolution composites. When applying image stitching techniques to microscopy images, researchers have primarily adopted two approaches: feature-based methods\u003csup\u003e\u003cspan additionalcitationids=\"CR27 CR28 CR29\" citationid=\"CR26\" class=\"CitationRef\"\u003e26\u003c/span\u003e\u0026ndash;\u003cspan citationid=\"CR30\" class=\"CitationRef\"\u003e30\u003c/span\u003e\u003c/sup\u003e and Fourier-based methods\u003csup\u003e\u003cspan citationid=\"CR14\" class=\"CitationRef\"\u003e14\u003c/span\u003e\u003c/sup\u003e. Feature-based methods include feature detection, feature matching, camera pose estimation, warping and blending etc. In contrast, Fourier-based methods calculate the translational offsets between images using phase-correlation and then align the images based on these offsets. While Fourier-based techniques are straightforward and fast, they only address translational shifts, whereas feature-based approaches can handle additional transformations such as rotations and scaling. Ma et al. were among the first to apply a feature-based photography stitching software, \u003cem\u003eAutoStitch\u003c/em\u003e, to microscopy images\u003csup\u003e\u003cspan citationid=\"CR31\" class=\"CitationRef\"\u003e31\u003c/span\u003e\u003c/sup\u003e. Yang et al. proposed estimating the overlapping area between the images using phase correction, thereby narrowing the search space for feature detection\u003csup\u003e\u003cspan citationid=\"CR32\" class=\"CitationRef\"\u003e32\u003c/span\u003e\u003c/sup\u003e. This approach is faster than directly stitching using SURF and improves the accuracy of feature matching. However, it still requires images to have enough features since it does not increase the number of detected features as illustrated by the microscopy images with 50% overlap used to present their method. Mohammodi et al. employed SURF as the feature detector and utilized a weighted graph tree to replace camera pose estimation, reducing computational costs\u003csup\u003e\u003cspan citationid=\"CR27\" class=\"CitationRef\"\u003e27\u003c/span\u003e\u003c/sup\u003e. However, to maintain accuracy, they used microscopy images with a 30% overlap. Xu et. al. proposes the enhancement of the features via image edge detection prior to applying SIFT algorithm, to maximize the matching features\u003csup\u003e\u003cspan citationid=\"CR33\" class=\"CitationRef\"\u003e33\u003c/span\u003e\u003c/sup\u003e. However, the method does not address the challenges in microscopy images, when the matching features are sparse and unevenly distributed. Recently, Gan et.al. proposes an optimized SIFT algorithm to address the issue of uneven feature point distribution in the image stitching process, however, the validation is limited to environmental pictures where significant features are available\u003csup\u003e\u003cspan citationid=\"CR34\" class=\"CitationRef\"\u003e34\u003c/span\u003e\u003c/sup\u003e. Preibisch et al. applied a Fourier-Shift Theorem in image stitching with translational variations, however this method does not account for the rotational variations that possibly occur during microscopy image acquisition\u003csup\u003e\u003cspan citationid=\"CR35\" class=\"CitationRef\"\u003e35\u003c/span\u003e\u003c/sup\u003e. MIST is another microscopy image stitching tool\u003csup\u003e\u003cspan citationid=\"CR14\" class=\"CitationRef\"\u003e14\u003c/span\u003e\u003c/sup\u003e, which aims for fast stitching but is limited to handle only translational variations due to relying on a similar Fourier-based approach. Moreover, MIST does not apply image blending and the stitched image usually introduces additional noises such as generating seam lines, which can affect the downstream image analysis. Recently developed neural network-based feature detection and matching algorithms, such as SuperGlue\u003csup\u003e\u003cspan citationid=\"CR36\" class=\"CitationRef\"\u003e36\u003c/span\u003e\u003c/sup\u003e and LoFTR\u003csup\u003e\u003cspan citationid=\"CR37\" class=\"CitationRef\"\u003e37\u003c/span\u003e\u003c/sup\u003e, point in a new direction for image stitching. However, the current stitching tools based on these algorithms are limited to pairwise stitching and cannot process large volumes of images, which is essential in stitching microscopy images. Recent efforts are being made to improve stitching quality of images beyond significant overlapping. Seo et al. pushes the boundary to 1.15% overlap using a brightness-based normalized cross-correlation method\u003csup\u003e\u003cspan citationid=\"CR38\" class=\"CitationRef\"\u003e38\u003c/span\u003e\u003c/sup\u003e; however, this method can only be applied under the strong assumption that there\u0026rsquo;s no rotation or size scale when acquiring the images.\u003c/p\u003e \u003cp\u003eHere, we propose a feature-based bi-channel aided approach to stitch limited overlapped microscopy images. We demonstrate the proposed method by stitching Atomic Force Microscopy (AFM) generated images of bacterial biofilms via first extracting higher number of matched features from different correlated microscopy imaging channels such as amplitude and then utilizing the information to estimate the alignment of the topographical images. Furthermore, we show that the differentiation of the topographical images along the x-axis provides similar feature information to the amplitude channel image, which generalizes our approach when the amplitude images are not available. We compared the performance of our method with other stitching approaches by experimenting with different biofilm datasets with 10% overlapping and thereby demonstrated the effectiveness of our method. By integrating the proposed workflow, our work aims to improve the balance between cost effective automated microscopy scanning and image stitching accuracy, enabling extraction of accurate physical information and promoting discovery.\u003c/p\u003e"},{"header":"Result and Discussion","content":"\u003cp\u003eIn this paper, we have focused on the study of the early stages of bacterial biofilm formations, where the researchers must capture both the overall structural organization of microbial communities and the fine-scale interactions between individual cells, which are critical for understanding biofilm formation, resistance mechanisms, and responses to environmental changes. AFM\u003csup\u003e\u003cspan citationid=\"CR39\" class=\"CitationRef\"\u003e39\u003c/span\u003e\u003c/sup\u003e has been considered for studying surface attachments it operates effectively in both air and liquid environments, allowing imaging under near physiological conditions\u003csup\u003e\u003cspan citationid=\"CR40\" class=\"CitationRef\"\u003e40\u003c/span\u003e,\u003cspan citationid=\"CR41\" class=\"CitationRef\"\u003e41\u003c/span\u003e\u003c/sup\u003e. Moreover, AFM provides high-resolution imaging and can generate detailed three-dimensional images of surface topography for studying cell structures, cell-to-cell interactions, and fine features like cell walls, flagella and pili\u003csup\u003e\u003cspan citationid=\"CR42\" class=\"CitationRef\"\u003e42\u003c/span\u003e\u003c/sup\u003e. AFM has not only proven to be a powerful tool for nanoscale mechanical and topographical characterization, but it also enables the integration of various non-invasive chemical imaging\u003csup\u003e\u003cspan citationid=\"CR43\" class=\"CitationRef\"\u003e43\u003c/span\u003e,\u003cspan citationid=\"CR44\" class=\"CitationRef\"\u003e44\u003c/span\u003e\u003c/sup\u003e and composition mapping\u003csup\u003e\u003cspan citationid=\"CR45\" class=\"CitationRef\"\u003e45\u003c/span\u003e\u003c/sup\u003e, internal hydration properties of single bacterial endospores\u003csup\u003e\u003cspan citationid=\"CR46\" class=\"CitationRef\"\u003e46\u003c/span\u003e\u003c/sup\u003e and properties of outer membrane extensions of bacteria\u003csup\u003e\u003cspan citationid=\"CR47\" class=\"CitationRef\"\u003e47\u003c/span\u003e\u003c/sup\u003e. While AFM can provide detailed insights into individual cells and bio-structures at the nano- to microscale and capture intricate details about the topography and mechanical properties, traditional AFM techniques are still limited by their slow measurement process and small imaging areas (typically\u0026thinsp;\u0026lt;\u0026thinsp;100 \u0026micro;m) due to being restricted by piezoelectric actuator constraints, thereby limiting the use of AFM to study large, millimeter-scale biofilm structures. This scale restriction makes it challenging to gain a representative understanding of biofilm assembly across larger areas. Recently, a large-area AFM method has been developed by Millan-Solsona et al. to enable imaging of millimeter-sized biofilm structures\u003csup\u003e\u003cspan citationid=\"CR48\" class=\"CitationRef\"\u003e48\u003c/span\u003e\u003c/sup\u003e. In order to study the dynamic properties of the biofilm at different stages of formation, the collected large area AFM topographical images need to be stitched together to reconstruct the full image.\u003c/p\u003e \u003cp\u003eAFM techniques provide multi-channel information, offering various data streams that can aid in the image stitching process. In addition, the limited scan area of the device often necessitates capturing an array of overlapping images. These overlapping regions not only enable accurate stitching but also help mitigate common AFM artifacts. Among the most significant artifacts are sample tilt, rotation induced by the piezo drive, hysteresis, thermal drift, and the limited precision of the motorized stage. To ensure a reliable reconstruction, the stitching system must effectively compensate for these distortions while accounting for the degrees of freedom involved. Specifically, in AFM, image stitching must address sample displacement, rotation, and tilt to achieve accurate alignment and seamless integration.\u003c/p\u003e \u003cp\u003e \u003c/p\u003e \u003cp\u003eIn this paper we propose a bi-channel aided microscopy image stitching method based on the underlying feature-based technique. By controlling the input in the feature-based image stitching pipeline, our goal is to obtain a more precise estimate of the rotation, displacement, and tilt variations of the sampled microscopy images by maximizing the extraction of matched features from the limited overlapping areas. Figure\u0026nbsp;\u003cspan refid=\"Fig1\" class=\"InternalRef\"\u003e1\u003c/span\u003e shows the proposed workflow of bi-channel aided stitching method. In general, as shown in Fig.\u0026nbsp;\u003cspan refid=\"Fig1\" class=\"InternalRef\"\u003e1\u003c/span\u003e, feature-based stitching involves four key steps: feature detection, feature matching, camera pose estimation, and image warping and blending. In feature detection, distinct patterns or key points from all the scanned microscopy images are identified. Then, the feature matching algorithm extracts the corresponding key points from overlapping areas of adjacent images. In camera pose estimation, we estimate the intrinsic (i.e., focal length and principal point settings) and extrinsic parameters (i.e., rotation and translation) of the camera pose relative to a reference frame. Finally, the warping and blending algorithm applies the estimated image transformations to images and stitches them together seamlessly.\u003c/p\u003e \u003cp\u003eFollowing our proposed approach of bi-channel aided stitching (Fig.\u0026nbsp;\u003cspan refid=\"Fig1\" class=\"InternalRef\"\u003e1\u003c/span\u003eb), in this case study of bacterial surface attachment and biofilm formation, topographical images generated from large area-AFM are the sample of interest (first channel) as it captures the morphological details of the attached cells. However, instead of detecting features from topographical images (first imaging channel), we explore other AFM imaging channels that are correlated to the first imaging channel, revealing finer surface details and containing a higher number of detectable features. In this case, this exploration and analysis for identifying the second imaging channel is conducted via domain expert knowledge. Here, to choose the best second imaging channel for feature detection and matching, we find that amplitude images yield more detected and matched features, which enhance the performance in stitching compared to topographical image. To generalize our proposed approach, we aim to investigate other correlated imaging channels when the amplitude images are not available. To eliminate the need for the experimental and storage burden of amplitude images, we investigated further and found that computing the x-axis derivative of the topographical image (first channel) also yields similar feature-rich images like the amplitude images (second channel). Thus, in camera pose estimation, using the highly matched features of correlated microscopy second channel images (eg. amplitude images), we estimate the parameters of the camera pose relative to a reference frame. Since the AFM images are not captured by any conventional camera, the camera pose parameters are treated as an assumed variable used to calculate image transformations. In this step, the algorithm first assigns initial values to the camera pose parameters, then optimizes those using the matched features. Here, these parameters are optimized and estimated from the higher feature-matched second channel such as amplitude channel, which are then used to determine the transformations of the first channel topographical images within a unified coordinate system. In image warping, we align the topographical images together by applying the derived transformation matrix to these images on a per-pixel basis. That is, we first perform feature detection, matching, and camera pose estimation using the second channel images (high featured), and then we apply the estimated transformations to warp the first channel images (sparse featured) together. Finally, the blending algorithm takes the warped topographical images and blends them together seamlessly. It should be noted that our method does not depend on the availability of only amplitude channel images. Rather, we see that the differentiation of the topographical images along the x-axis provides similar feature information to the amplitude channel image, which can be considered as the second channel when the amplitude image is not available. Considering the objectives of having high correlation between first and second channel images and higher detected/matched features of the second channel images, if no better solution is found, then the optimal second channel images is the first channel images.\u003c/p\u003e \u003cp\u003eFor all the demonstrated analysis of the proposed approach, we considered the package \u0026ldquo;Stitching\u0026rdquo;, coded in Python\u003csup\u003e\u003cspan citationid=\"CR25\" class=\"CitationRef\"\u003e25\u003c/span\u003e\u003c/sup\u003e. Stitching provides a Jupyter notebook tutorial that allows us to use each stitching module flexibly. We integrate our idea with the stitching pipeline to perform the AFM topographical images stitching task. We use the amplitude image as input for feature detection. There are four feature detectors available from the Stitching package: ORB, BRISK, AKAZE and SIFT. After exhaustive tuning with different feature algorithms, we chose SIFT as the feature detector with \u003cem\u003econtrast_Threshold\u003c/em\u003e\u0026thinsp;=\u0026thinsp;0.015, \u003cem\u003eedge_Threshold\u003c/em\u003e\u0026thinsp;=\u0026thinsp;15. After extracting key features from all the amplitude images, these features are matched between image pairs using feature matching. There are two feature matching modes available: \u003cem\u003ehomography\u003c/em\u003e and \u003cem\u003eaffine\u003c/em\u003e. \u003cem\u003eAffine\u003c/em\u003e transformations are computationally cheap and consider scaling, rotation and translation variations whereas \u003cem\u003eHomography\u003c/em\u003e mode handles one more type of transformation named perspective distortion. However, as these transformations are unlikely to happen in microscopy images as per domain expert knowledge, we use the affine mode for better feature matching. To demonstrate the performance of the proposed method, we considered two datasets of large-area AFM scanned images of early biofilm formation, with each dataset being scanned at 10% overlap.\u003c/p\u003e \u003cdiv id=\"Sec3\" class=\"Section2\"\u003e \u003ch2\u003eDiscussion on experimental datasets\u003c/h2\u003e \u003cp\u003eAFM images were acquired using the \u003cem\u003eDriveAFM\u003c/em\u003e system from \u003cem\u003eNanosurf\u003c/em\u003e, which features a motorized platform capable of scanning large areas. The datasets were collected using the methodology described in\u003csup\u003e\u003cspan citationid=\"CR48\" class=\"CitationRef\"\u003e48\u003c/span\u003e\u003c/sup\u003e through a custom Python graphical interface designed to capture image arrays. In this study, we utilized 3 \u0026times; 3 and 7 \u0026times; 7 overlapping image arrays, each image of 15 x 15 \u0026micro;m\u003csup\u003e\u003cspan citationid=\"CR2\" class=\"CitationRef\"\u003e2\u003c/span\u003e\u003c/sup\u003e and 87 x 87 \u0026micro;m\u003csup\u003e\u003cspan citationid=\"CR2\" class=\"CitationRef\"\u003e2\u003c/span\u003e\u003c/sup\u003e respectively with a 10% overlap. For the remainder of the paper, we correspond these to datasets 1 and 2, respectively. The stack of the images in datasets 1 and 2 is provided in Supplementary Materials (\u003cb\u003eFig. \u003cspan refid=\"MOESM1\" class=\"InternalRef\"\u003eS1\u003c/span\u003e\u003c/b\u003e). All images were acquired in tapping mode, capturing topography, amplitude, deflection, and phase channels. AFM topographic images often contain noise, such as artificial horizontal lines caused by the feedback system, adhesion artifacts, or changes in resonance frequency, which result in abrupt variations between consecutive scan lines. Additionally, AFM measurements require post-processing to correct potential sample tilts, thermal drift, and other distortions. These artifacts can be easily removed using commonly applied techniques, such as mean difference adjustment, median adjustment, surface fitting methods, and flattening techniques. In this study, we used custom functions available in\u003csup\u003e\u003cspan citationid=\"CR49\" class=\"CitationRef\"\u003e49\u003c/span\u003e\u003c/sup\u003e to integrate them into the workflow. The samples used in this studyto a time course of surface attachment by \u003cb\u003ePantoea\u003c/b\u003e \u003cb\u003esp. YR343\u003c/b\u003e, a Gram-negative bacterium isolated from the rhizosphere of poplar trees, known for its plant growth-promoting properties\u003csup\u003e\u003cspan citationid=\"CR50\" class=\"CitationRef\"\u003e50\u003c/span\u003e\u003c/sup\u003e. \u003cem\u003ePantoea\u003c/em\u003e sp. YR343 is a motile, rod-shaped bacterium with pili and peritrichous flagella, facilitating its interactions within its environment. The strain was grown in minimal medium, as described in\u003csup\u003e\u003cspan citationid=\"CR48\" class=\"CitationRef\"\u003e48\u003c/span\u003e\u003c/sup\u003e, on a silicon oxide substrate between 4 and 6 hours for dataset 1 and for 30 minutes for dataset 2. At the time of collection, the coverslip was carefully rinsed in Nanopure water to remove unattached cells, without being allowed to dry at any point. The coverslips were then fixed in 4% paraformaldehyde for 15 minutes and washed once more. Finally, the samples were dried before imaging using pressurized nitrogen.\u003c/p\u003e \u003cp\u003eBefore implementation, we also analyze the features of the topography and other imaging channels for these datasets. Table\u0026nbsp;\u003cspan refid=\"Tab1\" class=\"InternalRef\"\u003e1\u003c/span\u003e shows the comparison of the detected and matched features among the topography, amplitude and the differential channels for both datasets. Figures\u0026nbsp;\u003cspan refid=\"Fig2\" class=\"InternalRef\"\u003e2\u003c/span\u003e and \u003cspan refid=\"Fig3\" class=\"InternalRef\"\u003e3\u003c/span\u003e show the detected features among the topography and the other imaging channels for a sample image on both datasets respectively. From the figures, it is clear that the images from the amplitude and differential channels contain more features as denoted by the density of green dots.\u003c/p\u003e \u003cp\u003e \u003cdiv class=\"gridtable\"\u003e\u003ctable float=\"Yes\" id=\"Tab1\" border=\"1\"\u003e \u003ccaption language=\"En\"\u003e \u003cdiv class=\"CaptionNumber\"\u003eTable 1\u003c/div\u003e \u003cdiv class=\"CaptionContent\"\u003e \u003cp\u003eComparison of the detected and matched features between the amplitude images and topographical images of the \u003cem\u003ePantoea\u003c/em\u003e sp. YR343 datasets. The Average Number of matched features column provides the number of total matched image pairs and the average number of matched features for each pair.\u003c/p\u003e \u003c/div\u003e \u003c/caption\u003e \u003ccolgroup cols=\"7\"\u003e \u003cdiv align=\"left\" class=\"colspec\" colname=\"c1\" colnum=\"1\"\u003e\u003c/div\u003e \u003cdiv align=\"char\" char=\".\" class=\"colspec\" colname=\"c2\" colnum=\"2\"\u003e\u003c/div\u003e \u003cdiv align=\"char\" char=\".\" class=\"colspec\" colname=\"c3\" colnum=\"3\"\u003e\u003c/div\u003e \u003cdiv align=\"char\" char=\".\" class=\"colspec\" colname=\"c4\" colnum=\"4\"\u003e\u003c/div\u003e \u003cdiv align=\"char\" char=\".\" class=\"colspec\" colname=\"c5\" colnum=\"5\"\u003e\u003c/div\u003e \u003cdiv align=\"char\" char=\".\" class=\"colspec\" colname=\"c6\" colnum=\"6\"\u003e\u003c/div\u003e \u003cdiv align=\"char\" char=\".\" class=\"colspec\" colname=\"c7\" colnum=\"7\"\u003e\u003c/div\u003e \u003cthead\u003e \u003ctr\u003e \u003cth align=\"left\" colname=\"c1\" morerows=\"1\" rowspan=\"2\"\u003e\u0026nbsp;\u003c/th\u003e \u003cth align=\"left\" colspan=\"3\" nameend=\"c4\" namest=\"c2\"\u003e \u003cp\u003eAverage Number of Detected features\u003c/p\u003e \u003c/th\u003e \u003cth align=\"left\" colspan=\"3\" nameend=\"c7\" namest=\"c5\"\u003e \u003cp\u003eAverage Number of matched features\u003c/p\u003e \u003c/th\u003e \u003c/tr\u003e \u003ctr\u003e \u003cth align=\"left\" colname=\"c2\"\u003e \u003cp\u003eAmplitude channel\u003c/p\u003e \u003c/th\u003e \u003cth align=\"left\" colname=\"c3\"\u003e \u003cp\u003eDifferential channel\u003c/p\u003e \u003c/th\u003e \u003cth align=\"left\" colname=\"c4\"\u003e \u003cp\u003eTopography channel\u003c/p\u003e \u003c/th\u003e \u003cth align=\"left\" colname=\"c5\"\u003e \u003cp\u003eAmplitude channel\u003c/p\u003e \u003c/th\u003e \u003cth align=\"left\" colname=\"c6\"\u003e \u003cp\u003eDifferential channel\u003c/p\u003e \u003c/th\u003e \u003cth align=\"left\" colname=\"c7\"\u003e \u003cp\u003eTopography channel\u003c/p\u003e \u003c/th\u003e \u003c/tr\u003e \u003c/thead\u003e \u003ctbody\u003e \u003ctr\u003e \u003ctd align=\"left\" colname=\"c1\"\u003e \u003cp\u003edataset1\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c2\"\u003e \u003cp\u003e\u003cb\u003e2746\u003c/b\u003e\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c3\"\u003e \u003cp\u003e\u003cb\u003e1851\u003c/b\u003e\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c4\"\u003e \u003cp\u003e\u003cb\u003e375\u003c/b\u003e\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c5\"\u003e \u003cp\u003e\u003cb\u003e169\u003c/b\u003e\u003c/p\u003e \u003cp\u003e\u003cb\u003e(12 matches)\u003c/b\u003e\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c6\"\u003e \u003cp\u003e\u003cb\u003e149\u003c/b\u003e\u003c/p\u003e \u003cp\u003e\u003cb\u003e(12 matches)\u003c/b\u003e\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c7\"\u003e \u003cp\u003e\u003cb\u003e13\u003c/b\u003e\u003c/p\u003e \u003cp\u003e\u003cb\u003e(6 matches)\u003c/b\u003e\u003c/p\u003e \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd align=\"left\" colname=\"c1\"\u003e \u003cp\u003edataset2\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c2\"\u003e \u003cp\u003e\u003cb\u003e2216\u003c/b\u003e\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c3\"\u003e \u003cp\u003e\u003cb\u003e1455\u003c/b\u003e\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c4\"\u003e \u003cp\u003e\u003cb\u003e1109\u003c/b\u003e\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c5\"\u003e \u003cp\u003e\u003cb\u003e168\u003c/b\u003e\u003c/p\u003e \u003cp\u003e\u003cb\u003e(56 matches)\u003c/b\u003e\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c6\"\u003e \u003cp\u003e\u003cb\u003e163\u003c/b\u003e\u003c/p\u003e \u003cp\u003e\u003cb\u003e(58 matches)\u003c/b\u003e\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c7\"\u003e \u003cp\u003e\u003cb\u003e86\u003c/b\u003e\u003c/p\u003e \u003cp\u003e\u003cb\u003e(48 matches)\u003c/b\u003e\u003c/p\u003e \u003c/td\u003e \u003c/tr\u003e \u003c/tbody\u003e \u003c/colgroup\u003e \u003c/table\u003e\u003c/div\u003e \u003c/p\u003e \u003cp\u003e \u003c/p\u003e \u003cp\u003e \u003c/p\u003e \u003cp\u003e \u003cb\u003eCase Study-Implementation on Dataset 1 of\u003c/b\u003e \u003cb\u003ePantoea\u003c/b\u003e \u003cb\u003esp. YR343 sample\u003c/b\u003e\u003c/p\u003e \u003cp\u003eWe first implemented our proposed approach of bi-channel aided image stitching to dataset 1 composed of images of early biofilm assembly by \u003cem\u003ePantoea\u003c/em\u003e sp. YR343, where the strain was grown on a silicon oxide substrate between 4 and 6 hours. The dataset includes 9 scanned topographical and amplitude images, each image of 15 x 15 \u0026micro;m\u003csup\u003e\u003cspan citationid=\"CR2\" class=\"CitationRef\"\u003e2\u003c/span\u003e\u003c/sup\u003e and acquired with a 10% overlap. From Table \u003cspan refid=\"Tab1\" class=\"InternalRef\"\u003e1\u003c/span\u003e, we can see each topographical image yielded an average of 375 detected features, resulting in 6 matched image pairs with approximately 13 matched features per pair. In contrast, the corresponding amplitude images capture finer surface details, with each image averaging 2,736 detected features, this resulted in 12 matched pairs, with each pair averaging 169 matched features. Note that detecting a larger number of features not only improves image matching accuracy but also increases the number of matched pairs, leading to a more complete stitched image. In contrast, the differential images average 1,851 detected features, which is lower than the number of detected features in amplitude images, but significantly higher than the detected features in the topographical images. Even though the number of detected features in the differential images is lower than in the amplitude images, the average number of matched features in the differential images is 149, similar to the 169 matched features in the amplitude images\u003c/p\u003e \u003cp\u003eIt should be noted that the stitching performance depends heavily on the matched features, and therefore, the differential images also provide significant key details like the amplitude images. Figure\u0026nbsp;\u003cspan refid=\"Fig4\" class=\"InternalRef\"\u003e4\u003c/span\u003e provides a visual example of feature matching from the amplitude and topographical images (as denoted by green lines), where amplitude images show a significantlarger number of matched features.\u003c/p\u003e \u003cp\u003e \u003c/p\u003e \u003cp\u003eUsing the proposed bi-channel aided image stitching method (see Fig.\u0026nbsp;\u003cspan refid=\"Fig1\" class=\"InternalRef\"\u003e1\u003c/span\u003e), we estimated a transformation matrix from the amplitude images and applied it to the topographical images, resulting in a stitched topographical image. Figure\u0026nbsp;\u003cspan refid=\"Fig5\" class=\"InternalRef\"\u003e5\u003c/span\u003e shows the stitching performance of the proposed method and the comparison with traditional approaches using existing algorithms such as \u003cem\u003eStitching\u003c/em\u003e, \u003cem\u003eStitch2D\u003c/em\u003e and \u003cem\u003eMIST\u003c/em\u003e. Here, \u003cem\u003eStitching\u003c/em\u003e fails completely to estimate the camera pose and thus it could not provide any solution. From Fig.\u0026nbsp;\u003cspan refid=\"Fig5\" class=\"InternalRef\"\u003e5\u003c/span\u003ea, we can see \u003cem\u003eStitch2D\u003c/em\u003e can only partially stitch images with a 20% overlap where the blank rectangle region is the failed region in the image canvas where the method could not align any images due to potentially sparse matching features of the topographical images (see Table\u0026nbsp;\u003cspan refid=\"Tab1\" class=\"InternalRef\"\u003e1\u003c/span\u003e). Furthermore, \u003cem\u003eStitch2D\u003c/em\u003e fails to stitch any topographical images when the overlap decreases to 10%. \u003cem\u003eMIST\u003c/em\u003e, on the other hand from Fig.\u0026nbsp;\u003cspan refid=\"Fig5\" class=\"InternalRef\"\u003e5\u003c/span\u003eb, performed better and could stitch topographical images with a 10% overlap when the overlap percentage is manually specified. However, the stitched topographical image introduced noises such as several seam lines (denoted by red and yellow solid boxes in Fig.\u0026nbsp;\u003cspan refid=\"Fig5\" class=\"InternalRef\"\u003e5\u003c/span\u003ed and \u003cspan refid=\"Fig5\" class=\"InternalRef\"\u003e5\u003c/span\u003ee). These seam lines can interfere with subsequent post image analyses, such as image segmentation and object detection,. to study the physical properties of cells during biofilm assembly. Thus, even though \u003cem\u003eMIST\u003c/em\u003e could be able to stitch all the images, the stitched image is physically undesired as per the domain experts. From Fig.\u0026nbsp;\u003cspan refid=\"Fig5\" class=\"InternalRef\"\u003e5\u003c/span\u003ec, we can clearly see our method outperformed the traditional approach where it can stitch all the topographical images with 10% overlap without generating any significant noise from stitching (denoted by red and yellow dotted boxes in Fig.\u0026nbsp;\u003cspan refid=\"Fig5\" class=\"InternalRef\"\u003e5\u003c/span\u003ed and \u003cspan refid=\"Fig5\" class=\"InternalRef\"\u003e5\u003c/span\u003ee). Figure\u0026nbsp;\u003cspan refid=\"Fig6\" class=\"InternalRef\"\u003e6\u003c/span\u003e shows the comparison of the stitched topographical image via extracting features from amplitude and differential images which are similar to the result using the amplitude channel images.\u003c/p\u003e \u003cp\u003e \u003c/p\u003e \u003cp\u003e \u003c/p\u003e \u003cp\u003e \u003cb\u003eCase Study- Implementation on Dataset 2 of\u003c/b\u003e \u003cb\u003ePantoea\u003c/b\u003e \u003cb\u003esp. YR343 sample\u003c/b\u003e\u003c/p\u003e \u003cp\u003eNext, we implemented our proposed approach to the biofilm dataset 2 of \u003cem\u003ePantoea\u003c/em\u003e sp. YR343, where the strain was grown on a silicon oxide substrate for 30 mins. The dataset includes 49 scanned topographical and amplitude images, each image of 87 x 87 \u0026micro;m\u003csup\u003e\u003cspan citationid=\"CR2\" class=\"CitationRef\"\u003e2\u003c/span\u003e\u003c/sup\u003e and acquired with a 10% overlap. From Table \u003cspan refid=\"Tab1\" class=\"InternalRef\"\u003e1\u003c/span\u003e, we can see each topographical image yielded an average of 1109 detected features, resulting in 48 matched image pairs with approximately 86 matched features per pair. In contrast, the corresponding amplitude images capture averaging 2,216 detected features and producing 56 matched pairs, each averaging 168 matched features. Here, we see the resulting number of average match features of the differential images is 163, which is close to the same for amplitude images. Figure\u0026nbsp;\u003cspan refid=\"Fig7\" class=\"InternalRef\"\u003e7\u003c/span\u003e shows the stitching performance of the proposed method and the comparison with \u003cem\u003eStitching\u003c/em\u003e, \u003cem\u003eStitch2D\u003c/em\u003e and \u003cem\u003eMIST\u003c/em\u003e. Here, \u003cem\u003eStitch2D\u003c/em\u003e could not produce any solution as it fails to align the images together. From Fig.\u0026nbsp;\u003cspan refid=\"Fig7\" class=\"InternalRef\"\u003e7\u003c/span\u003ea, we can see \u003cem\u003eStitching\u003c/em\u003e can only partially stitch images with a 10% overlap despite containing a seemingly sufficient number of matched features of the topographical images (see Table\u0026nbsp;\u003cspan refid=\"Tab1\" class=\"InternalRef\"\u003e1\u003c/span\u003e). This is due to the uneven distribution of matched features and the presence of feature-sparse images, which prevent the algorithm from directly stitching the topographical images. As a result, 15 out of 49 images are missing from the stitched image. \u003cem\u003eMIST\u003c/em\u003e, on the other hand, performed better and could stitch all the topographical images with 10% overlap when the overlap percentage was manually specified as shown in Fig.\u0026nbsp;\u003cspan refid=\"Fig7\" class=\"InternalRef\"\u003e7\u003c/span\u003eb. However, like in previous analysis, the stitched topographical image introduced more noises such as misalignment (denoted by red solid box in Fig.\u0026nbsp;\u003cspan refid=\"Fig7\" class=\"InternalRef\"\u003e7\u003c/span\u003ed) and seam lines (denoted by yellow solid box in Fig.\u0026nbsp;\u003cspan refid=\"Fig7\" class=\"InternalRef\"\u003e7\u003c/span\u003ee), which degrades the stitched image to a unsuitable result. Again from Fig.\u0026nbsp;\u003cspan refid=\"Fig7\" class=\"InternalRef\"\u003e7\u003c/span\u003ec, we can clearly see our method outperformed the traditional approach where it can stitch all the topographical images with 10% overlap, without any sign of significant misalignment or generation of seam lines. To further investigate the regions where \u003cem\u003eMIST\u003c/em\u003e fails, we can see our method provides correct alignment and smooth surfaces (denoted by dotted red and yellow boxes in Figs.\u0026nbsp;\u003cspan refid=\"Fig7\" class=\"InternalRef\"\u003e7\u003c/span\u003ed and \u003cspan refid=\"Fig7\" class=\"InternalRef\"\u003e7\u003c/span\u003ee respectively) of the stitched topographical image.\u003c/p\u003e \u003cp\u003e \u003c/p\u003e \u003cp\u003eFinally, Fig.\u0026nbsp;\u003cspan refid=\"Fig8\" class=\"InternalRef\"\u003e8\u003c/span\u003e shows the comparison of the stitched topographical image via extracting features from amplitude and differential imaging channels. Similar to previous analysis, both stitched images are very similar, suggesting that our method can be generalized to other image types, serving as a valuable augmentation strategy for microscopy image stitching tasks.\u003c/p\u003e \u003cp\u003e \u003c/p\u003e \u003c/div\u003e"},{"header":"Summary","content":"\u003cp\u003eIn summary, we propose a microscopy imaging bi-channel aided stitching method to aim to gather larger volume of information needed to stitch multiple images via maximizing extraction of matching features. Here, the first imaging channel is the stack of images of interest to stitch together and the second channel is the stack of images, highly correlated to the first channel, where higher volume of detected and matched features between adjacent image pairs can be extracted. In other words, our proposed pipeline is designed to stitch any microscopy image of interest as follows- 1) performing feature detection and matching from the rich-featured correlated image channels (such as amplitude or differential images), 2) then using the feature information to optimize the camera pose estimation, and 3) then we apply the estimated transformations to warp the sparse-featured image of interest to stitch them together. We see that the existing stitching tools generally work well when the image of interest is either less complex such as environmental images or with significant overlapping (eg. 30%) of image pairs. However, real microscopy experimental data is more complex with undistributed and sparse features and additional artifact noise. Furthermore, data acquisition with such an overlapping percentage can be extremely challenging in terms of experimental cost. We demonstrated our method to stitch two sets of complex biofilm assembly images with limited (e.g. 10%) overlaps where our method outperformed significantly than the traditional stitching tools like \u003cem\u003eStitching\u003c/em\u003e, \u003cem\u003eStitch2D\u003c/em\u003e and \u003cem\u003eMIST\u003c/em\u003e. We believe that our method can be generalized to stitch any microscopy images (such as STM, STEM etc.) to study large-scale material structures, and benefit the experimentalist to avoid erroneous analysis and discovery due to incorrect stitching. In the future, we aim to automate the optimal selection of the second imaging channel by designing a hybrid objective metric of quantifying mean correlation between stacks of images from first and second imaging channel, and quantifying the mean detected and matched features (as per Table\u0026nbsp;\u003cspan refid=\"Tab1\" class=\"InternalRef\"\u003e1\u003c/span\u003e) of the candidate for second imaging channel. We aim to also integrate the method with this hybrid metric into microscopy for real-time automated stitching. Future work also seeks to extend the method towards 1) adapting deep-learning framework for improved detection of matched features and 2) adding workflow to gather prior knowledge of the features from pretraining with existing microscopy image data from correlated material systems.\u003c/p\u003e"},{"header":"Declarations","content":" \u003ch2\u003eConflict of Interest:\u003c/h2\u003e \u003cp\u003eThe author confirms there is no conflict of interest.\u003c/p\u003e \u003ch2\u003eCode and Data Availability Statement:\u003c/h2\u003e \u003cp\u003eThe analysis reported here along with the code is summarized in Notebook for the purpose of tutorial and application to other data and can be found in \u003cspan class=\"ExternalRef\"\u003e\u003cspan class=\"RefSource\"\u003ehttps://github.com/arpanbiswas52/Stitching_AFMimage\u003c/span\u003e\u003cspan address=\"https://github.com/arpanbiswas52/Stitching_AFMimage\" targettype=\"URL\" class=\"RefTarget\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/p\u003e\u003ch2\u003eAuthor Contribution\u003c/h2\u003e\u003cp\u003eAuthor ContributionsA.B supervised the project, supported funding for H.Z, interpreted the results, and wrote the manuscript. H.Z designed the stitching algorithm, wrote the codes for implementation and analysis, analyzed data, prepared figures and co-wrote the paper. R.M wrote codes for image flattening, conducted AFM experiments to generate data, assisted with analysis and paper writing. M.C and L.C assisted with the data preparation and analysis of the results. S.R.B and J.L.M grew the samples used. All authors commented on the manuscript.\u003c/p\u003e\u003ch2\u003eAcknowledgement\u003c/h2\u003e\u003cp\u003eThis work (A.B and H.Z) was supported by the University of Tennessee startup funding. The authors acknowledge the use of facilities and instrumentation at the UT Knoxville Institute for Advanced Materials and Manufacturing (IAMM) and the Shull Wollan Center (SWC) supported in part by the National Science Foundation Materials Research Science and Engineering Center program through the UT Knoxville Center for Advanced Materials and Manufacturing (DMR-2309083). Work by R.M, S.R.B., M.C, L.C and J.L.M was supported by the U.S. Department of Energy, Office of Science FWP ERKCZ64, Structure Guided Design of Materials to Optimize the Abiotic-Biotic Material Interface, as part of the Bio preparedness Research Virtual Environment (BRaVE) initiative. AFM measurements and sample preparation were conducted as part of a user project at the Center for Nanophase Materials Sciences (CNMS), which is a US Department of Energy, Office of Science User Facility at Oak Ridge National Laboratory. The authors would like to sincerely thank Scott Retterer for his generous assistance in the acquisition of funding for this research.\u003c/p\u003e\u003ch2\u003eData Availability\u003c/h2\u003e\u003cp\u003eThe analysis reported here along with the code is summarized in Notebook for the purpose of tutorial and application to other data and can be found in https://github.com/arpanbiswas52/Stitching_AFMimage\u003c/p\u003e"},{"header":"References","content":"\u003col\u003e\u003cli\u003e\u003cspan\u003eSamsudin, S., Adwan, S., Arof, H., Mokhtar, N. \u0026amp; Ibrahim, F. Development of Automated Image Stitching System for Radiographic Images. J. Digit. Imaging 26, 361\u0026ndash;370 (2013).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eWang, Y. \u0026amp; Wang, M. Research on stitching technique of medical infrared images. in 2010 \u003cem\u003eInternational Conference on Computer Application and System Modeling (ICCASM 2010)\u003c/em\u003e vol. 10 V10-490-V10-493 (2010).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eYang, F., He, Y., Deng, Z. S. \u0026amp; Yan, A. Improvement of automated image stitching system for DR X-ray images. Comput. Biol. Med. 71, 108\u0026ndash;114 (2016).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eZhao, X., Wang, H. \u0026amp; Wang, Y. Medical Image Seamlessly Stitching by SIFT and GIST. in \u003cem\u003e2010 International Conference on E-Product E-Service and E-Entertainment\u003c/em\u003e 1\u0026ndash;4 (2010). doi:\u003cspan class=\"ExternalRef\"\u003e\u003cspan class=\"RefSource\"\u003e10.1109/ICEEE.2010.5661495\u003c/span\u003e\u003cspan address=\"10.1109/ICEEE.2010.5661495\" targettype=\"DOI\" class=\"RefTarget\"\u003e\u003c/span\u003e\u003c/span\u003e.\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eSong, S., Son, J. \u0026amp; Kim, M.-H. Stitching of Microscopic Images for Quantifying Neuronal Growth and Spine Plasticity. in \u003cem\u003eAdvances in Visual Computing\u003c/em\u003e (eds. Bebis, G. et al.) 45\u0026ndash;53 (Springer, Berlin, Heidelberg, 2010). doi:\u003cspan class=\"ExternalRef\"\u003e\u003cspan class=\"RefSource\"\u003e10.1007/978-3-642-17289-2_5\u003c/span\u003e\u003cspan address=\"10.1007/978-3-642-17289-2_5\" targettype=\"DOI\" class=\"RefTarget\"\u003e\u003c/span\u003e\u003c/span\u003e.\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eWei, Z., Dan, T., Ding, J., Dere, M. \u0026amp; Wu, G. A General Stitching Solution for Whole-Brain 3D Nuclei Instance Segmentation from Microscopy Images. in \u003cem\u003eMedical Image Computing and Computer Assisted Intervention \u0026ndash; MICCAI 2023\u003c/em\u003e (eds. Greenspan, H. et al.) 46\u0026ndash;55 (Springer Nature Switzerland, Cham, 2023). doi:\u003cspan class=\"ExternalRef\"\u003e\u003cspan class=\"RefSource\"\u003e10.1007/978-3-031-43901-8_5\u003c/span\u003e\u003cspan address=\"10.1007/978-3-031-43901-8_5\" targettype=\"DOI\" class=\"RefTarget\"\u003e\u003c/span\u003e\u003c/span\u003e.\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eLee, D.-H., Lee, D.-W. \u0026amp; Han, B.-S. Possibility Study of Scale Invariant Feature Transform (SIFT) Algorithm Application to Spine Magnetic Resonance Imaging. PLOS ONE 11, e0153043 (2016).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eLin, B. \u003cem\u003eet al.\u003c/em\u003e A Registration Algorithm for Astronomical Images Based on Geometric Constraints and Homography. Remote Sens. 15, 1921 (2023).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eQiu, S. \u003cem\u003eet al.\u003c/em\u003e Star Map Stitching Algorithm Based on Visual Principle. Int. J. Pattern Recognit. Artif. Intell. 32, 1850028 (2018).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eEken, S. \u0026amp; Sayar, A. A MapReduce-based distributed and scalable framework for stitching of satellite mosaic images. Arab. J. Geosci. 14, 1863 (2021).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eJiang, Y. \u003cem\u003eet al.\u003c/em\u003e Stitching images of dual-cameras onboard satellite. ISPRS J. Photogramm. Remote Sens. 128, 274\u0026ndash;286 (2017).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eMegha, V. \u0026amp; Rajkumar, K. K. Automatic Satellite Image Stitching Based on Speeded Up Robust Feature. in 2021 \u003cem\u003eInternational Conference on Artificial Intelligence and Machine Vision (AIMV)\u003c/em\u003e 1\u0026ndash;6 (2021). doi:\u003cspan class=\"ExternalRef\"\u003e\u003cspan class=\"RefSource\"\u003e10.1109/AIMV53313.2021.9670954\u003c/span\u003e\u003cspan address=\"10.1109/AIMV53313.2021.9670954\" targettype=\"DOI\" class=\"RefTarget\"\u003e\u003c/span\u003e\u003c/span\u003e.\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eZarei, A. \u003cem\u003eet al.\u003c/em\u003e MegaStitch: Robust Large-Scale Image Stitching. IEEE Trans. Geosci. Remote Sens. 60, 1\u0026ndash;9 (2022).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eChalfoun, J. \u003cem\u003eet al.\u003c/em\u003e MIST: Accurate and Scalable Microscopy Image Stitching Tool with Stage Modeling and Error Minimization. Sci. Rep. 7, 4988 (2017).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eTong, X. \u003cem\u003eet al.\u003c/em\u003e Image Registration With Fourier-Based Image Correlation: A Comprehensive Review of Developments and Applications. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 12, 4062\u0026ndash;4081 (2019).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eBrown, M. \u0026amp; Lowe, D. G. Automatic Panoramic Image Stitching using Invariant Features. Int. J. Comput. Vis. 74, 59\u0026ndash;73 (2007).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eAdel, E., Elmogy, M. \u0026amp; Elbakry, H. Image Stitching based on Feature Extraction Techniques: A Survey. Int. J. Comput. Appl. 99, 1\u0026ndash;8 (2014).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eLowe, D. G. Object recognition from local scale-invariant features. in \u003cem\u003eProceedings of the Seventh IEEE International Conference on Computer Vision\u003c/em\u003e vol. 2 1150\u0026ndash;1157 vol.2 (1999).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eLowe, D. G. Distinctive Image Features from Scale-Invariant Keypoints. Int. J. Comput. Vis. 60, 91\u0026ndash;110 (2004).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eBay, H., Ess, A., Tuytelaars, T. \u0026amp; Van Gool, L. Speeded-Up Robust Features (SURF). Comput. Vis. Image Underst. 110, 346\u0026ndash;359 (2008).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eLeutenegger, S., Chli, M. \u0026amp; Siegwart, R. Y. BRISK: Binary Robust invariant scalable keypoints. in 2011 \u003cem\u003eInternational Conference on Computer Vision\u003c/em\u003e 2548\u0026ndash;2555 (2011). doi:\u003cspan class=\"ExternalRef\"\u003e\u003cspan class=\"RefSource\"\u003e10.1109/ICCV.2011.6126542\u003c/span\u003e\u003cspan address=\"10.1109/ICCV.2011.6126542\" targettype=\"DOI\" class=\"RefTarget\"\u003e\u003c/span\u003e\u003c/span\u003e.\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eSharma, S. K. \u0026amp; Jain, K. Image Stitching using AKAZE Features. J. Indian Soc. Remote Sens. 48, 1389\u0026ndash;1401 (2020).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eWang, M., Niu, S. \u0026amp; Yang, X. A novel panoramic image stitching algorithm based on ORB. in 2017 \u003cem\u003eInternational Conference on Applied System Innovation (ICASI)\u003c/em\u003e 818\u0026ndash;821 (2017). doi:\u003cspan class=\"ExternalRef\"\u003e\u003cspan class=\"RefSource\"\u003e10.1109/ICASI.2017.7988559\u003c/span\u003e\u003cspan address=\"10.1109/ICASI.2017.7988559\" targettype=\"DOI\" class=\"RefTarget\"\u003e\u003c/span\u003e\u003c/span\u003e.\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eMansur, A. adamancer/stitch2d. (2024).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eOpenStitching/stitching. OpenStitching (2025).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eMohammadi, F. S., Mohammadi, S. E., Mojarad Adi, P., Mirkarimi, S. M. A. \u0026amp; Shabani, H. A comparative analysis of pairwise image stitching techniques for microscopy images. Sci. Rep. 14, 9215 (2024).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eMohammadi, F. S., Shabani, H. \u0026amp; Zarei, M. Fast and robust feature-based stitching algorithm for microscopic images. Sci. Rep. 14, 13304 (2024).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eFan, X. \u0026amp; Xia, S. Feature Based Automatic Stitching of Microscopic Images. in \u003cem\u003eAdvanced Intelligent Computing Theories and Applications. With Aspects of Contemporary Intelligent Computing Techniques\u003c/em\u003e (eds. Huang, D.-S., Heutte, L. \u0026amp; Loog, M.) 791\u0026ndash;800 (Springer, Berlin, Heidelberg, 2007). doi:\u003cspan class=\"ExternalRef\"\u003e\u003cspan class=\"RefSource\"\u003e10.1007/978-3-540-74282-1_88\u003c/span\u003e\u003cspan address=\"10.1007/978-3-540-74282-1_88\" targettype=\"DOI\" class=\"RefTarget\"\u003e\u003c/span\u003e\u003c/span\u003e.\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eZhang, Y., Pang, B., Yu, Y. \u0026amp; Zhang, C. Automatic microscopy image stitching based on geometry features. in \u003cem\u003e2013 6th International Congress on Image and Signal Processing (CISP)\u003c/em\u003e vol. 2 927\u0026ndash;931 (2013).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eHe, B. \u003cem\u003eet al.\u003c/em\u003e vEMstitch: an algorithm for fully automatic image stitching of volume electron microscopy. GigaScience 13, giae076 (2024).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eMa, B. \u003cem\u003eet al.\u003c/em\u003e Use of Autostitch for automatic stitching of microscope images. Micron 38, 492\u0026ndash;499 (2007).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eYang, F., Deng, Z.-S. \u0026amp; Fan, Q.-H. A method for fast automated microscope image stitching. Micron 48, 17\u0026ndash;25 (2013).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eXu, C., Yan, J. \u0026amp; Yang, H. Image stitching method based on image edge detection and SIFT algorithm. in \u003cem\u003eProceedings of the\u003c/em\u003e 2021 \u003cem\u003e5th International Conference on Electronic Information Technology and Computer Engineering\u003c/em\u003e 425\u0026ndash;431 (Association for Computing Machinery, New York, NY, USA, 2022). doi:\u003cspan class=\"ExternalRef\"\u003e\u003cspan class=\"RefSource\"\u003e10.1145/3501409.3501487\u003c/span\u003e\u003cspan address=\"10.1145/3501409.3501487\" targettype=\"DOI\" class=\"RefTarget\"\u003e\u003c/span\u003e\u003c/span\u003e.\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eGan, W., Wu, Z., Wang, M. \u0026amp; Cui, X. Image Stitching Based on Optimized SIFT Algorithm. in 2023 \u003cem\u003e5th International Conference on Intelligent Control, Measurement and Signal Processing (ICMSP)\u003c/em\u003e 1099\u0026ndash;1102 (2023). doi:\u003cspan class=\"ExternalRef\"\u003e\u003cspan class=\"RefSource\"\u003e10.1109/ICMSP58539.2023.10170989\u003c/span\u003e\u003cspan address=\"10.1109/ICMSP58539.2023.10170989\" targettype=\"DOI\" class=\"RefTarget\"\u003e\u003c/span\u003e\u003c/span\u003e.\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003ePreibisch, S., Saalfeld, S. \u0026amp; Tomancak, P. Globally optimal stitching of tiled 3D microscopic image acquisitions. Bioinformatics 25, 1463\u0026ndash;1465 (2009).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eSarlin, P.-E., DeTone, D., Malisiewicz, T. \u0026amp; Rabinovich, A. SuperGlue: Learning Feature Matching With Graph Neural Networks. in 2020 \u003cem\u003eIEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)\u003c/em\u003e 4937\u0026ndash;4946 (2020). doi:\u003cspan class=\"ExternalRef\"\u003e\u003cspan class=\"RefSource\"\u003e10.1109/CVPR42600.2020.00499\u003c/span\u003e\u003cspan address=\"10.1109/CVPR42600.2020.00499\" targettype=\"DOI\" class=\"RefTarget\"\u003e\u003c/span\u003e\u003c/span\u003e.\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eSun, J., Shen, Z., Wang, Y., Bao, H. \u0026amp; Zhou, X. LoFTR: Detector-Free Local Feature Matching with Transformers. in 2021 \u003cem\u003eIEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)\u003c/em\u003e 8918\u0026ndash;8927 (2021). doi:\u003cspan class=\"ExternalRef\"\u003e\u003cspan class=\"RefSource\"\u003e10.1109/CVPR46437.2021.00881\u003c/span\u003e\u003cspan address=\"10.1109/CVPR46437.2021.00881\" targettype=\"DOI\" class=\"RefTarget\"\u003e\u003c/span\u003e\u003c/span\u003e.\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eSeo, J.-H. \u003cem\u003eet al.\u003c/em\u003e Automated stitching of microscope images of fluorescence in cells with minimal overlap. Micron 126, 102718 (2019).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eBinnig, G., Quate, C. F. \u0026amp; Gerber, Ch. Atomic Force Microscope. Phys. Rev. Lett. 56, 930\u0026ndash;933 (1986).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eAlonso, J. L. \u0026amp; Goldmann, W. H. Feeling the forces: atomic force microscopy in cell biology. Life Sci. 72, 2553\u0026ndash;2560 (2003).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eBotet-Carreras, A. \u003cem\u003eet al.\u003c/em\u003e On the uptake of cationic liposomes by cells: From changes in elasticity to internalization. Colloids Surf. B Biointerfaces 221, 112968 (2023).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eLidke, D. S. \u0026amp; Lidke, K. A. Advances in high-resolution imaging \u0026ndash; techniques for three-dimensional imaging of cellular structures. J. Cell Sci. 125, 2571\u0026ndash;2580 (2012).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eM\u0026uuml;ller, D. J. \u003cem\u003eet al.\u003c/em\u003e Atomic Force Microscopy-Based Force Spectroscopy and Multiparametric Imaging of Biomolecular and Cellular Systems. Chem. Rev. 121, 11701\u0026ndash;11725 (2021).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eKochan, K. \u003cem\u003eet al.\u003c/em\u003e In vivo atomic force microscopy\u0026ndash;infrared spectroscopy of bacteria. J. R. Soc. Interface 15, 20180115 (2018).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eCheca, M. \u003cem\u003eet al.\u003c/em\u003e Mapping the dielectric constant of a single bacterial cell at the nanoscale with scanning dielectric force volume microscopy. Nanoscale 11, 20809\u0026ndash;20819 (2019).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eVan Der Hofstadt, M. \u003cem\u003eet al.\u003c/em\u003e Internal Hydration Properties of Single Bacterial Endospores Probed by Electrostatic Force Microscopy. ACS Nano 10, 11327\u0026ndash;11336 (2016).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eLozano, H. \u003cem\u003eet al.\u003c/em\u003e Electrical properties of outer membrane extensions from Shewanella oneidensis MR-1. Nanoscale 13, 18754\u0026ndash;18762 (2021).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eMillan-Solsona, R. \u003cem\u003eet al.\u003c/em\u003e Analysis of Biofilm Assembly by Large Area Automated AFM. Preprint at \u003cspan class=\"ExternalRef\"\u003e\u003cspan class=\"RefSource\"\u003ehttps://doi.org/10.21203/rs.3.rs-5537963/v1\u003c/span\u003e\u003cspan address=\"10.21203/rs.3.rs-5537963/v1\" targettype=\"DOI\" class=\"RefTarget\"\u003e\u003c/span\u003e\u003c/span\u003e (2025).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eMillan-Solsona, R. Rmillansol/Large-Area-AFM-Analysis-and-Control. (2025).\u003c/span\u003e\u003c/li\u003e \u003cli\u003e\u003cspan\u003eBible, A. N. \u003cem\u003eet al.\u003c/em\u003e A Carotenoid-Deficient Mutant in Pantoea sp. YR343, a Bacteria Isolated from the Rhizosphere of Populus deltoides, Is Defective in Root Colonization. Front. Microbiol. 7, (2016).\u003c/span\u003e\u003c/li\u003e\u003c/ol\u003e"}],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":true,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":true,"highlight":"","institution":"","isAcceptedByJournal":false,"isAuthorSuppliedPdf":false,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":false,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"
[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true},"keywords":"Image Stitching, Image registration, Atomic Force Microscopy, Biofilms","lastPublishedDoi":"10.21203/rs.3.rs-6221535/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-6221535/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003e \u003cem\u003eMicroscopy is an essential tool in scientific research, enabling the visualization of structures at micro- and nanoscale resolutions. However, the field of microscopy often encounters limitations in field-of-view (FOV), restricting the amount of sample that can be imaged in a single capture. To overcome this limitation, image stitching techniques have been developed to seamlessly merge multiple overlapping images into a single, high-resolution composite. The images collected from microscope need to be optimally stitched before accurate physical information can be extracted from post analysis. However, the existing stitching tools either struggle to stitch images together when the microscopy images are feature sparse or cannot address all the transformations of images when performing image stitching. To address these issues, we propose a bi-channel aided feature-based image stitching method and demonstrate its use on Atomic Force Microscopy (AFM) generated biofilm images as experimental data. The topographical channel image of AFM data captures the morphological details of the sample, and a stitched topographical image is desired for researchers. We utilize the amplitude channel of AFM data to maximize the matching features and to estimate the position of the original topographical images and show that the proposed bi-channel aided stitching method outperforms the traditional direct stitching approach in AFM topographical image stitching task. Furthermore, we found that the differentiation of the topographical images along the x-axis provides similar feature information to the amplitude channel image, which generalizes our approach when the amplitude images are not available. Here we demonstrated the application on AFM, but similar approaches could be employed of optical microscopy with brightfield and fluorescence channels. We believe this proposed workflow can serve as a valuable augmentation strategy for microscopy image stitching tasks and will benefit the experimentalist to avoid erroneous analysis and discovery due to incorrect stitching.\u003c/em\u003e \u003c/p\u003e","manuscriptTitle":"A Bi-channel Aided Stitching of Atomic Force Microscopy Images","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2025-05-06 17:55:40","doi":"10.21203/rs.3.rs-6221535/v1","editorialEvents":[{"type":"communityComments","content":0}],"status":"published","journal":{"display":true,"email":"
[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"977a876f-c077-4935-baf6-6cdd57f2e855","owner":[],"postedDate":"May 6th, 2025","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"posted","subjectAreas":[{"id":47049909,"name":"Physical sciences/Materials science/Biomaterials"},{"id":47049910,"name":"Physical sciences/Materials science/Techniques and instrumentation/Microscopy/Atomic force microscopy"},{"id":47049911,"name":"Physical sciences/Materials science/Theory and computation/Computational methods"}],"tags":[],"updatedAt":"2025-07-15T09:53:33+00:00","versionOfRecord":[],"versionCreatedAt":"2025-05-06 17:55:40","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-6221535","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-6221535","identity":"rs-6221535","version":["v1"]},"buildId":"8U1c8b4HqxoKbykW_rLl7","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.