<> === 清除边界对象 === 如果: {{{#!latex $$f_m(x,y) = \begin{cases} f(x,y) & if\ (x,y)\ is\ on\ the\ border\ of\ f \\ 0 & otherwise \end{cases}$$ }}} 则下面的操作将只保留与图像边缘相连的对象:{{{#!latex $$R_f(f_m)$$ }}} 原图像与它的差集只包含原图像中不与边界接触的对象:{{{#!latex $$f - R_f(f_m)$$ }}} 在matlab中可以使用函数imclearborder实现:{{{ g = imclearborder(f, conn); }}}conn是4或者8,指定4连通或者8连通。 <>