L=bwlabel(J);
sta=regionprops(J);
出现错误
??? Error using ==> regionprops>ParseInputs at 1005
Use bwlabel(BW) or double(BW) convert binary image to
a label matrix before calling regionprops.
Error in ==> regionprops at 105
[L,I,requestedStats,officialStats] = ParseInputs(varargin{:});