Thursday, November 28, 2019

adobe photoshop - Technique for finding the centerline of a curved object?



I'm curious to know if anyone knows of any effective techniques for finding the center line of a curved object.


In the screenshot below you'll see a crude version of what I mean.


Shape with a drawn centerline path


Is there any way to get that line to perfectly trace the center, or is it easiest to just eyeball it?


Photoshop or Illustrator techniques are acceptable.



Answer



If you are happy with just getting close, this works in Illustrator - especially for an image that has a consistent width like your example.




  1. Draw a circle that is the same width as your object's width





  2. Copy/paste the circle as many times as needed and distribute around the object. Use enough of them to follow the shape fairly closely




  3. Using the pen tool simply draw a line through the centerpoints of the circles you made. Just connect them straight, don't worry about curves.




  4. Use the smooth tool to curve the line you just made. (just follow the curve of the original with the smooth tool) If necessary you can make curve adjustments separately at the bezier points.





  5. Delete the circles




The picture below will demonstrate a little better.


Find the middle line


No comments:

Post a Comment

technique - How credible is wikipedia?

I understand that this question relates more to wikipedia than it does writing but... If I was going to use wikipedia for a source for a res...