Ask Your Question
0

Measuring length of skeletonized features

asked 2016-01-24 18:58:01 -0600

batlike gravatar image

In the images I am analyzing, tiny "filaments" (the medial axis of "blobs") span the space of the window. Is there a function to extract the length of each individual feature? I've tried findContours but unfortunately it doesn't recognize these skeletonized features.

image description.

edit retag flag offensive close merge delete

Comments

1

What do you mean for "findContours doesn't recognize these skeletonized features". If you provide a bit of your code (editing you question) we can check it. Because you have tiny filaments, as alternative you could use a blob detector and get the count of black pixels for each blob.

pklab gravatar imagepklab ( 2016-01-25 03:39:21 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2016-01-25 14:37:19 -0600

Tetragramm gravatar image

Try doing Connected Components with Stats. If they're skeletonized properly, the length is the area of the component. Of course, you'll need to flip the white and black.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-01-24 18:58:01 -0600

Seen: 585 times

Last updated: Jan 25 '16