This package contains the MATLAB code which is associated with the following paper:

A. Ilyas, M. S. Farid, M. H. Khan, and M. Grzegorzek, “Exploiting Superpixels for Multi-Focus Image Fusion,” Entropy, vol. 23, no. 2, p. 247, Feb. 2021 [Online]. 
Available: http://dx.doi.org/10.3390/e23020247


Usage of this code is free for research purposes only. 

Please refer to the above publication if you use this code. Thank you.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

The demo file is demo.m  

- Open the file with MATLAB and run it
- The file reades two images present in the folder and fuses them, saves the result in the folder Fused Image

Our implementation modifies the SLIC algorithm [1] and uses it to achieve multi-focus image fusion 

[1] Achanta, R.; Shaji, A.; Smith, K.; Lucchi, A.; Fua, P.; Süsstrunk, S. SLIC Superpixels Compared to State-of-the-Art Superpixel Methods. IEEE Trans. Pattern Anal. Mach. Intell. 2012, 34, 2274–2282.)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

For any errors /suggestions, send an email to

- Areeba Ilyas (areeba.ilyas@pucit.edu.pk) or 
- Dr. Farid (shahid@pucit.edu.pk)

Project Homepage: http://www.di.unito.it/~farid/Research/SBF.html

Last updated: Feb 18, 2021

----------------------------
Permission to use, copy, or modify this software and its documentation for educational and research purposes only and without fee is here granted, provided that this copyright notice and the original authors' names appear on all copies and supporting documentation. This program shall not be used, rewritten, or adapted as the basis of a commercial software or hardware product without first obtaining permission of the authors. The authors make no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.