Fix Otsu rank filter kernel loop range