But this is not what this function does. This doesn't apply otsu it only does the median filtering.