Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411517 Posts in 69377 Topics- by 58431 Members - Latest Member: Bohdan_Zoshchenko

April 28, 2024, 12:07:23 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Algorithm for finding outline? (Edge walking?)
Pages: [1]
Print
Author Topic: Algorithm for finding outline? (Edge walking?)  (Read 1368 times)
Christian Knudsen
Level 10
*****



View Profile WWW
« on: December 29, 2009, 02:27:47 PM »

Some time ago I stumbled upon a link to a page that described a very simple algorithm for following the outline of an arbitrary shape. I think it was called "edge walking". However, I can't for the life of me find that page nor the link to it again. I think it was in a post here in the technical forum (or it may have been on gamedev.net, but I'm not sure). Anybody know what I'm talking about?

EDIT: Typical. I search for it for a couple of hours, then give up and post a message here. Then find the webpage I was talking about two seconds later: http://www.sakri.net/blog/2009/05/28/detecting-edge-pixels-with-marching-squares-algorithm/
« Last Edit: December 29, 2009, 02:32:20 PM by chrknudsen » Logged

Laserbrain Studios
Currently working on Hidden Asset (TIGSource DevLog)
Hajo
Level 5
*****

Dream Mechanic


View Profile
« Reply #1 on: December 29, 2009, 02:34:30 PM »

It reminds me of a method where you (the user) tells the tool one point of the outline (points the mouse at e.g.) the tool then determines the image gradient there, and starts to do some pathfinding along the gradient - in theory this should give the contour of the shape.

Edit: Ah, that was close but not exactly what I had in mind Smiley
Logged

Per aspera ad astra
nikki
Level 10
*****


View Profile
« Reply #2 on: December 29, 2009, 05:44:56 PM »

the right hand rule ?
Logged
moi
Level 10
*****


DILF SANTA


View Profile WWW
« Reply #3 on: December 29, 2009, 06:24:38 PM »

Oh hay guys,


Just dropping by to say hello...
Logged

subsystems   subsystems   subsystems
Christian Knudsen
Level 10
*****



View Profile WWW
« Reply #4 on: December 30, 2009, 01:56:04 AM »

Edge WalkingTM
Logged

Laserbrain Studios
Currently working on Hidden Asset (TIGSource DevLog)
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic