{"title":"Adaptive Run-Length Encoded DCT: A High-Fidelity Compression Algorithm for Real-Time Photoacoustic Microscopy Imaging in LabVIEW.","authors":"Mohsin Zafar, Kamran Avanaki","doi":"10.1002/jbio.70043","DOIUrl":null,"url":null,"abstract":"<p><p>Continuous photoacoustic microscopy (PAM) imaging generates large volumes of data, resulting in significant storage demands. Here, we propose a high-fidelity real-time compression algorithm for PAM data in LabVIEW by combining Discrete Cosine Transform (DCT) with adaptive thresholding and Run Length Encoding (RLE), which we term Adaptive Run Length Encoded DCT (AR-DCT) compression. This algorithm reduces data storage requirements while preserving all the details of the images. AR-DCT ensures real-time compression, achieving superior compression ratios (CRs) compared to traditional DCT compression. We evaluated the performance of AR-DCT using in vivo mouse brain imaging data, demonstrating a CR of ~50, with a structural similarity index of 0.980 and minimal degradation in signal quality (percentage-root-mean-square-difference of 1.345%). The results show that AR-DCT outperforms traditional DCT, offering higher compression efficiency without significantly sacrificing image quality. These findings suggest that AR-DCT provides an effective solution for applications requiring continuous experiments, such as cerebral hemodynamics studies.</p>","PeriodicalId":94068,"journal":{"name":"Journal of biophotonics","volume":" ","pages":"e70043"},"PeriodicalIF":2.3000,"publicationDate":"2025-04-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of biophotonics","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1002/jbio.70043","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Continuous photoacoustic microscopy (PAM) imaging generates large volumes of data, resulting in significant storage demands. Here, we propose a high-fidelity real-time compression algorithm for PAM data in LabVIEW by combining Discrete Cosine Transform (DCT) with adaptive thresholding and Run Length Encoding (RLE), which we term Adaptive Run Length Encoded DCT (AR-DCT) compression. This algorithm reduces data storage requirements while preserving all the details of the images. AR-DCT ensures real-time compression, achieving superior compression ratios (CRs) compared to traditional DCT compression. We evaluated the performance of AR-DCT using in vivo mouse brain imaging data, demonstrating a CR of ~50, with a structural similarity index of 0.980 and minimal degradation in signal quality (percentage-root-mean-square-difference of 1.345%). The results show that AR-DCT outperforms traditional DCT, offering higher compression efficiency without significantly sacrificing image quality. These findings suggest that AR-DCT provides an effective solution for applications requiring continuous experiments, such as cerebral hemodynamics studies.