simplified sao_edge_filter