Ask Your Question
0

How to get the raw edge data in an image

asked 2013-04-17 13:43:35 -0500

redfern314 gravatar image

Hey there -

I'm trying to get the edges in an image, and I'm using image.edges() with great success. The problem is that this returns an image, and I'd rather find a way to get each edge individually (with the eventual goal of obtaining a list containing groups of location points that define an edge).

I've thought about playing with findBlobs, but that makes it too slow for my application.

Is there an easy way to do this in SimpleCV?

Thanks!

Derek

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2013-04-17 15:19:27 -0500

kscottz gravatar image

Here's what I normally do when I want to work with sets of points. It may or may not suit your application

eimg = img.edges()
# ask numpy where in our gray image is white
x,y = np.where(eimg.getGrayNumpy() > 128) 
# make the points into a list of tuples
pts = zip(x,y)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-04-17 13:43:35 -0500

Seen: 1,594 times

Last updated: Apr 17 '13