Skip to main content
Participant
August 28, 2021
Question

Add Anchor Point Tool

  • August 28, 2021
  • 2 replies
  • 694 views

I am a 4th year IT student, and for my final year project I am making an image editor application using Machine Learning. So in my project I want to include Adobe Photoshop's Add Anchor Point Tool. So can anyone help me by guiding me that how I can train my ML mode using Anchor Points? And in the final output if the user want I can show him anchor points.

This topic has been closed for replies.

2 replies

Brad @ Roaring Mouse
Community Expert
Community Expert
August 29, 2021

These bezier curves are rooted in the core functionality that Illustrator introduced with it's very first version. Years later, this functionality carried over into PS. How bezier curves worked was linked to Postscript code, so you might want to see if you can find an old Postscript Reference Manual and bone up on the basics on how curves work there and the math involved in calculating the positions and vectors of control points. Postscript is less relevant this day and age (mostly replaced by the Portable Document Format), but would be useful in understanding the basics.

jane-e
Community Expert
Community Expert
August 29, 2021

@Brad @ Roaring Mouse wrote:

These bezier (sic) curves are rooted in the core functionality that Illustrator introduced with it's very first version.


 

Hi

 

To clarify, development of Illustrator began in 1985.

 

The curves were first developed years before in 1959 by Paul de Casteljau, and popularized by Pierre Étienne Bézier, French engineer, for designing automobiles when he worked for the Renault car company from 1933 to 1975. 

 

The curves are also used in many non-Adobe applications, such as CorelDRAW, QuarkXPress, and more.

 

Postscript (sic) is less relevant this day and age (mostly replaced by the Portable Document Format)...


PostScript is still relevant to some of us, especially for high-end printing. 😊

 

~ Jane

 

Brad @ Roaring Mouse
Community Expert
Community Expert
August 29, 2021

I'm with ya, Jane. I know that bezier curves are/have been everywhere, I have worked with all of these programs... and I still rely (and edit) on a PostScript workflow to this day, which is why I suggested the manual.. It might give the OP an insight in how to implement their own ideas.

jane-e
Community Expert
Community Expert
August 28, 2021

@Aryan5C34 wrote:

... I am making an image editor application ... I want to include Adobe Photoshop's Add Anchor Point Tool.


 

Are you saying you want to use Photoshop's proprietary source code for an image editor application you are developing?

 

Or do you have a question about how to use Photoshop that we can answer?

 

~ Jane

Aryan5C34Author
Participant
August 28, 2021

The 1st one but with the help of ML.

JJMack
Community Expert
Community Expert
August 29, 2021

I don't want the exact source code. I just want to understand the concept, how they were able to make such a feature. Because I also want to create a feature like that i.e. to get the curve/anchor points, but using Machine Learning.


 Concept?  There is the math.  You have a line that is possible curved any which by control points on each end some formula that determines the path  line follows. To add a control point you cut the line into two lines segments there are now three control point that set the path segments two line segment now follow.  The two paths segment  replicates the Path the Single line's path segment had.  You are changing  the number of control points a path has. Your Machine Learning may want to adds a control point so it can adjust  part of an existing  path to follow the path of  beats of a different drummer.  When I add a control it is because I what to change an existing path. With my leaning  I normally look for control points that I can remove  to make the full  curved path smoother and better.  In my mine its best to make paths with as few control points as you can. It is easier to make a good circle path with four control points then circle with 10 control points. A machine may to able to precisely position and set those 10 control point my 80 year old hands can not.  Photoshop is also a pixels editor with square pixels.  Would 10  equally space  control point land on a pixels that are squarely on the circumference. I would guess not.  Why would your  Machine Learning want to add control point to keep  an existing path. I would think your Machine Learning would determine an existing path is not ideals would to modify it to improve its quality like I do.  How your  Machine Learning will do this is outside the scope of my mind. I just keep making adjustment till  I have a paths  I find acceptable.  I do not have an automated process I use brute force.... Photoshops vector tool gives me that force..

Paths are mathematical description  the line you see is the some size plot for  that mathematical description paths are scalable. They need not be limited to two dimensions

 

curves.pdf 

JJMack