Algorithm 1 Multi-focus image fusion algorithm. |
1: Input : Source images from fluorescence microscopies. |
2: Output , All-in-focus image. |
3://Obtain guided filtered focus map of source images |
4://Obtain output by selecting the pixels from the set of source images, which depends on the calculated weight of the guidance image for the respective pixels. |
5: for
|
6: for
|
7:
|
8: //Arrange the calculated weights of the guidance image with respect to the source images. |
9: for /where is the number of source images to be fused |
10:
|
11: //Obtain output by sequentially multiplying the source with the maximum weight. |
12: end for
|
13: end for
|
14: end for
|