remove roi with 0 or 1 neighbor