So I'm not actually an engineer, I'm a novice computer programmer but I think in order to solve a problem I have I'm going to need some help from the world of engineering.
I remember in high school they were teaching a civil engineering calculus class and one thing they spent a lot of time on was how to figure out the perfect curve for the perfect slope to transition the road to a bridge smoothly. My computer program is a digital paint and photo software which may include 3D sculpting and modeling later on. There is an existing tool that I don't know a ton about but it does something kind of similar called a Bézier curve and basically, it lets you find smooth curves. But I'm looking for something else as well, I think.
Here's a rough picture of what I'm trying to do. Imagine this is someone's face. It is showing a mid-tone and a shadow. The green circle is where an AI-powered healing stamp will attempt to conceal a blemish. But there's a problem. There's both shadow and midtone in the same area as the stamp, and we're basically inventing contours in the skin. The robotic way to do it would be to just B-line between both instances of shadow, but maybe it would look more organic if there was a smooth transition between the external shadow's slope going in and the artificial shadow that continues.
So, what math would you use to figure that out, and does anybody know of any good place to learn it? Could I do it with just Calculus I under my belt?