Code to compute percolation analysis of voids regarding median filtering order