Points along a black and White image

Started by
4 comments, last by bzroom 14 years, 5 months ago

asdf

ΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞI'm a Kirby using, Ike abusing, Mario smashing, Dedede trashing, Luigi stomping, Zelda chomping, Smash ball whacking, Bowser smacking BRAWLER!
Advertisement
You'll want to use edge detection algorithms to generate a single pixel border around the contained volume. Treat the pixels as a loop of line segements. Then interpolate along your line loop placing those nodes at what ever interval/criteria you choose.
What do you *really* want? Would it work to pick the dot positions first and then draw the curved path through them? Because that's a hell of a lot easier. :)

asdf

ΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞΞI'm a Kirby using, Ike abusing, Mario smashing, Dedede trashing, Luigi stomping, Zelda chomping, Smash ball whacking, Bowser smacking BRAWLER!
And do you have to generate a path from scratch? Why not have some kind of data file with a bunch of (r, theta) pairs? You would find the next point by storing the current point position and angle, and for each pair in the data file, update the angle with theta, and move forward r pixels in the new direction.

Does the path need to be a closed loop? Do you need to tweak dot positions so they're evenly spaced around the curve? (If so, does "evenly spaced" refer to straight-line distance, distance following the curve, or something else?) About how many points per curve are we talking about?

And perhaps most important: what do these points and curves actually mean? What is their significance?
Quote:Original post by MangaTigerBoy
and sorry, bzroom, the LAST thing I need at this point is a bunch of nonspecific "commands".


I dont know what you mean by that.

This topic is closed to new replies.

Advertisement