Skip to main content
. 2023 Mar 28;13(7):1273. doi: 10.3390/diagnostics13071273
Algorithm 1 Duplication image for input channels
Input: one-channel image
Output: Three-channel image
1   I = read the image
2   C = number of channels for (I)
3      If input image (C,1)
4      Concatenate arrays along specified dimensions (I, I, I)
5     Repeat step 1 to 4 for all images in the dataset
6      END
7   END