• Post Reply Bookmark Topic Watch Topic
  • New Topic

Methods for edge detection  RSS feed

 
Miles Davis
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So far I've found that one method of edge detection in photos is to calculate the difference in the RGB signature from adjacent pixels and whether that difference crosses a certain threshol or not determines whether the pixel is at an edge. I need to to think of another method of edge detection, but am at a lost. Any ideas? They have to be fairly simple.
 
Carey Brown
Saloon Keeper
Posts: 3310
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you've described the easiest way. Typical image processing edge detection is based on convolutions; passing a matrix of 3x3, 5x5, or 7x7 multipliers over the matrix that is the 2D array of pixels. Convolutions are more sensitive to edges than the simple approach you describe but are harder to implement.
 
Campbell Ritchie
Marshal
Posts: 56529
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too difficult for this forum: moving discussion.
 
Campbell Ritchie
Marshal
Posts: 56529
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think the Java® Tutorials section will help you much.

Try Cai Horstmann and Gary Cornell. I have my old Java5 edition of Core Java™ 2 (vol 2) here and there is a section about Image Manipulation on page 524. I don't know whether that is in the newer editions; I don't have my Java7 edition to hand at the moment. That describes pixels, edge detection, etc.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!