Sign in to follow this  

Points along a black and White image

This topic is 2961 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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. :)

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

This topic is 2961 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this