Skip to main content

Advertisement

Log in

CFA image compression using an efficient cascaded overlapping color transformation

  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

Bayer Color-Filter-Array (CFA) is commonly used in single-chip digital image sensors as it efficiently approximates the physiology of the human eye. These sensors capture only one color component per pixel, not an entire RGB image. Conventionally, a Bayer CFA image is converted to an RGB image, and then compressed for processing and storage. However, storing a Bayer CFA image before converting to RGB can preserve more details, which is preferable for post-processing tasks. Due to the arrangement of color channels in a CFA image, compression algorithms cannot efficiently reduce the size of the raw CFA image. In this paper, a Cascade Overlapping Color Transformation (COCT) method is proposed and implemented. In the first step, the Haar Wavelet Transform (HWT) is performed on the image to reduce the spectral redundancy. The second step of the color transformation reduces the redundancy of color components even higher, resulting in a color map that can be compressed better using an image coding system. Experiments performed on several datasets showed that the COCT improves the compression ratio compared to the state-of-the-art techniques. The proposed method improved the compression ratio by 17.6% and 15.6% for 16 bpp and 8 bpp CFA images, respectively. Computational load has also been improved by the proposed method. In addition, the hardware implementation is discussed using a CMOS 65 nm technology that costs 3.18 K gates and 2.05 mW of power.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Algorithm 1
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9

Similar content being viewed by others

Data availability

Several datasets are used for the aim of this project and all the data are publicly available.

Code availability

All codes are available in GitHub at: https://github.com/fsedighi/CFAImageCompression/tree/master.

References

  1. Adams MD, Kossentini F, Ward RK (2002) Generalized S transform. IEEE Trans Signal Process 50:2831–2842

    Article  MathSciNet  MATH  Google Scholar 

  2. Andriani S, Brendel H, Seybold T, Goldstone J (2013) Beyond the Kodak image set: A new reference set of color image sequences. In: 2013 IEEE International Conference on Image Processing. IEEE, pp 2289–2293

  3. Bjontegaard G (2001) Calculation of average PSNR differences between RD-curves. VCEG-M33

  4. Bruekers FAML, van den Enden AW (1992) New networks for perfect inversion and perfect reconstruction. IEEE J Sel Areas Commun 10:129–137

    Article  Google Scholar 

  5. Chen, C., Chen, S., Lioa, C., & Abu, P. A. (2019). Lossless CFA image compression chip design for wireless capsule endoscopy. IEEE Access 7:107047–107057. https://doi.org/10.1109/access.2019.2930818

  6. Chen C-A, Chen S-L, Lioa C-H, Abu PAR (2019) Lossless CFA image compression chip design for wireless capsule endoscopy. IEEE Access 7:107047–107057

    Article  Google Scholar 

  7. Chen H, Sun M, Steinbach E (2009) Compression of Bayer-pattern video sequences using adjusted chroma subsampling. IEEE Trans Circuits Syst Video Technol 19:1891–1896

    Article  Google Scholar 

  8. Chen, S., Chen, Y., Lin, T., & Liu, Z. (2015). A cost-efficient lossless compression color filter array images VLSI design for Wireless Capsule Endoscopy. J Med Imaging Health Inform 5(2):378–384. https://doi.org/10.1166/jmihi.2015.1403

  9. Chen S-L, Chen Y-R, Lin T-L, Liu Z-Y (2015) A cost-efficient lossless compression color filter array images VLSI design for wireless capsule endoscopy. J Med Imaging Health Inform 5:378–384

    Article  Google Scholar 

  10. Chen S-L, Liu T-Y, Shen C-W, Tuan M-C (2016) VLSI implementation of a cost-efficient near-lossless CFA image compressor for wireless capsule endoscopy. IEEE Access 4:10235–10245

    Article  Google Scholar 

  11. Chen S-L, Liao C-H, Chi T-K et al (2018) Flexible signals and images lossless compression chip design for IoT and industry 4.0. In: 2018 14th IEEE/ASME International Conference on Mechatronic and Embedded Systems and Applications (MESA). IEEE, pp 1–6

  12. Chen X, Jiang H, Li X, Wang Z (2007) A novel compression method for wireless image sensor node. In: 2007 IEEE Asian Solid-State Circuits Conference. IEEE, pp 184–187

  13. Chen X, Zhang X, Zhang L et al (2009) A wireless capsule endoscope system with low-power controlling and processing ASIC. IEEE Trans Biomed Circuits Syst 3:11–22

    Article  Google Scholar 

  14. Chervyakov N, Lyakhov P, Nagornov N (2020) Analysis of the quantization noise in discrete wavelet transform filters for 3D medical imaging. Appl Sci 10(4):1223. https://doi.org/10.3390/app10041223

    Article  Google Scholar 

  15. Dang-Nguyen D, Pasquini C, Conotter V, Boato G (2015) Raise - a raw images dataset for Digital Image Forensics. ACM Multimedia Systems. https://doi.org/10.1145/2713168.2713194

    Article  Google Scholar 

  16. Daubechies I, Sweldens W (1998) Factoring wavelet transforms into lifting steps. J Fourier Anal Appl 4:247–269

    Article  MathSciNet  MATH  Google Scholar 

  17. Dorobanțiu A (2019) Improving lossless image compression with contextual memory. Appl Sci 9(13):2681. https://doi.org/10.3390/app9132681

    Article  Google Scholar 

  18. Ferroukhi M, Ouahabi A, Attari M, Habchi Y, Taleb-Ahmed A (2019) Medical video coding based on 2nd-generation wavelets: performance evaluation. Electronics 8(1):88. https://doi.org/10.3390/electronics8010088

    Article  Google Scholar 

  19. Khan TH, Wahid KA (2011) Lossless and low-power image compressor for wireless capsule endoscopy. VLSI Design, Hindawi Publishing Corporation. https://doi.org/10.1155/2011/343787

  20. Kim S, Cho NI (2014) Lossless compression of color filter array images by hierarchical prediction and context modeling. IEEE Trans Circuits Syst Video Technol 24:1040–1046

    Article  Google Scholar 

  21. Kodak dataset. http://r0k.us/graphics/kodak/. Last updated 27 January 2013

  22. Li J, Liu Z (2019) Multispectral transforms using convolution neural networks for remote sensing multispectral image compression. Remote Sens 11(7):759. https://doi.org/10.3390/rs11070759

    Article  Google Scholar 

  23. Li, C., Chen, D., Xie, C., Gao, Y., & Liu, J. (2022). Research on lossless compression coding algorithm of N-band parametric spectral integer reversible transformation combined with the lifting scheme for hyperspectral images. IEEE Access 10:88632–88643. https://doi.org/10.1109/access.2022.3199737

  24. Liu F, Hernandez-Cabronero M, Sanchez V, Marcellin M, Bilgin A (2017) The current role of image compression standards in medical imaging. Information 8(4):131. https://doi.org/10.3390/info8040131

    Article  Google Scholar 

  25. Lukac R, Plataniotis KN (2005) Color filter arrays: design and performance analysis. IEEE Trans Consum Electron 51:1260–1267

    Article  Google Scholar 

  26. Mafijur Rahman, K. M., Mohammed, S. K., Vedaei, S. S., Mohebbian, M. R., Sedighipour Chafjiri, F., & Wahid, K. A. (2021). A low complexity lossless Bayer CFA image compression. SIViP 15(8):1767–1775. https://doi.org/10.1007/s11760-021-01921-6

  27. Malvar HS, Sullivan GJ (2012) Progressive-to-lossless compression of color-filter-array images using macropixel spectral-spatial transformation. In: 2012 Data Compression Conference. IEEE, pp 3–12

  28. Merlino, P., & Abramo, A. (2009). A fully pipelined architecture for the loco-I compression algorithm. IEEE Trans Very Large Scale Integr (VLSI) Syst 17(7):967–971. https://doi.org/10.1109/tvlsi.2008.2009188

  29. Mohammed SK, Wahid KA (2018) Lossless and reversible colour space transformation for bayer colour filter array images. IET Image Process 12:1485–1490

    Article  Google Scholar 

  30. Mohammed SK, Rahman KM, Wahid KA (2017) Lossless compression in Bayer color filter array for capsule endoscopy. IEEE Access 5:13823–13834

    Article  Google Scholar 

  31. Nikon dataset. http://193.205.194.113/RAISE/. Accessed 20 Jul 2020

  32. Palum R (2001) Image sampling with the Bayer color filter array. In: PICS, pp 239–245

  33. Parmar M, Reeves SJ (2004) A perceptually based design methodology for color filter arrays [image reconstruction]. In: 2004 IEEE International Conference on Acoustics, Speech, and Signal Processing. IEEE, pp iii–473

  34. Rojas-Hernández R et al (2022) Lossless medical image compression by using difference transform Entropy 24(7):951. Available at: https://doi.org/10.3390/e24070951

  35. Böhme R, Kirchner M (2013) Counter-forensics: Attacking image forensics. In: Sencar H, Memon N (eds) Digital image forensics. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-0757-7_12

  36. Starosolski R (2020) Hybrid adaptive lossless image compression based on discrete wavelet transform. Entropy 22(7):751. https://doi.org/10.3390/e22070751

    Article  MathSciNet  Google Scholar 

  37. Starosolski R (2020) Employing new hybrid adaptive wavelet-based transform and histogram packing to improve JP3D compression of volumetric medical images. Entropy 22(12):1385. https://doi.org/10.3390/e22121385

    Article  MathSciNet  Google Scholar 

  38. Suzuki T (2019) Wavelet-based spectral–spatial transforms for CFA-sampled raw camera image compression. IEEE Trans Image Process 29:433–444

    Article  MathSciNet  MATH  Google Scholar 

  39. Tashan T, Al-Azawi M (2018) Multilevel magnetic resonance imaging compression using compressive sensing. IET Image Proc 12(12):2186–2191. https://doi.org/10.1049/iet-ipr.2018.5611

    Article  Google Scholar 

  40. Turcza P (2022) Entropy encoder for low-power low-resources high-quality CFA image compression. Sig Process Image Commun 106:116716. https://doi.org/10.1016/j.image.2022.116716

    Article  Google Scholar 

  41. Xie X, Li G, Li X et al (2004) A new approach for near-lossless and lossless image compression with Bayer color filter arrays. In: Third International Conference on Image and Graphics (ICIG’04). IEEE, pp 357–360

  42. Zhang F, Xu Z, Chen W, Zhang Z, Zhong H, Luan J, Li C (2019) An image compression method for video surveillance system in underground mines based on residual networks and discrete wavelet transform. Electronics 8(12):1559. https://doi.org/10.3390/electronics8121559

    Article  Google Scholar 

Download references

Acknowledgements

We would like to acknowledge Shiva Moghtaderi for her contribution and the simulations performed as a supplementary part of the study.

Funding

We would like to thank Natural Sciences and Engineering Research Council of Canada (NSERC) for supporting this work.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Fatemeh Sedighipour Chafjiri.

Ethics declarations

Conflicts of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Mohebbian, M.R., Chafjiri, F.S., Vedaei, S.S. et al. CFA image compression using an efficient cascaded overlapping color transformation. Multimed Tools Appl 82, 43233–43250 (2023). https://doi.org/10.1007/s11042-023-15352-7

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-023-15352-7

Keywords

Navigation