Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

help: IMFEATURE in Image processing toolbox

9 views
Skip to first unread message

ntk

unread,
May 23, 1999, 3:00:00 AM5/23/99
to
Can anybody explain to me, and show me an example of the:

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?

edd...@mathworks.com

unread,
May 23, 1999, 3:00:00 AM5/23/99
to

L is a matrix containing integer values corresponding each object that
you want to measure. For example, if you have this matrix:

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

0 new messages