一、二值图像的腐蚀、膨胀、开、闭操作
二、灰度图像的腐蚀、膨胀、开、闭操作
function [rectx,recty,area,perimeter,long,width] = minboundrect(x,y,metric)
% minboundrect: Compute the minimal bounding rectangle of points in the plane
% usage: [rectx,recty,area,perimeter] = minboundrect(x,y,metric)
%
% arguments: (input)
% x