| Algorithm 2. Overlapping-patches sequential reconstruction strategy |
| Input: Patch-base prediction result preds, image size img_h, img_w, stride stride_h, strid_w |
| Output: Final segmentation result final_avg |
| Calculate patches number N_patches_h in height for each image |
| Calculate patches number in width N_patches_w for each image Calculate patches number N_patches_img for each image |
| for i=1 to N_patches_img |
| for h=1 to N_patches_h |
| for w=1 to N_patches_w. |
| obtain pixel predicted probability full_pro |
| obtain pixel predicted frequency full_sum |
| Calculate final segmentation result final_avg |
| return final segmentation result |