New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prewitt operator added for edge detection #433

Merged
merged 5 commits into from Apr 22, 2013

Conversation

Projects
None yet
3 participants
@rajatkapoor
Contributor

rajatkapoor commented Apr 20, 2013

Prewitt operator added for edge detection.
Read more at: http://en.wikipedia.org/wiki/Prewitt_operator

Example:

i = Image('lenna')
p = i.prewitt()
p.show()

lenna_prewitt
Output of applying prewitt operator on lenna

lenna_sobel
Output of applying Sobel operator on lenna

@vighneshbirodkar

This comment has been minimized.

Show comment
Hide comment
@vighneshbirodkar

vighneshbirodkar Apr 20, 2013

Contributor

you don't require graynp

you can do


return Image(np.sqrt(grayxnp**2+grayynp**2))

i dont see why you are using graynp

Contributor

vighneshbirodkar commented Apr 20, 2013

you don't require graynp

you can do


return Image(np.sqrt(grayxnp**2+grayynp**2))

i dont see why you are using graynp

@rajatkapoor

This comment has been minimized.

Show comment
Hide comment
@rajatkapoor

rajatkapoor Apr 20, 2013

Contributor

I will surely implement better tests for prewitt, sobel as well as for canny as soon as some idea strikes.

Contributor

rajatkapoor commented Apr 20, 2013

I will surely implement better tests for prewitt, sobel as well as for canny as soon as some idea strikes.

@kscottz kscottz merged commit 6d6d309 into sightmachine:develop Apr 22, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment