STATS=IMFEATURE(L,MEASUREMENTS) command in the Image Processing Toolbox.
I have read over and over again, the reference help in the User manual, but
still cannot understand the 'L' part. Also, there are no examples to show
how this command is applied.
BTW, I am quite mystified that several of my postings to this NG failed to
appear, and that I have often not received any replies. Is this a moderated
NG where they take out postings for one reason or another?
L = [ 0 0 1 1 0 0
0 0 1 1 0 0
0 0 0 0 0 0
0 2 0 0 0 0
0 2 0 0 0 0]
IMFEATURE will compute measurements for two objects, one corresponding
to the 1's and the other corresponding to the 2's. BWLABEL produces
such matrix from a binary image. Here's an example:
bw = imread('text.tif'); % sample image shipped with the
% Image Processing Toolbox
L = bwlabel(bw);
s = imfeature(L,'centroid');
"ntk" <kh...@singnet.com.sg> writes:
Nope.
Regards,
Steve Eddins