So I have a program that recognizes leaves, but I want to try and make it more accurate, so I used a image processing function to extract the convex hull in the form of vertices. Now I want to generate functions that will be similar to the different standard classifications of leaves, and compare the convex hull to those. Here is the problem: the convex hull is in the form of vertices while the mathematical function needs parameters to be diffined and the program doesn’t know what those parameters have to be to minimize the distance.
So I though that this might work but it doesn’t return anything (this is trying to find where to nearest point is on a circle):
verts = (ComponentMeasurements[<picture of leaf>,
"ConvexVertices"][[1, 2]]);
Minimize[{Sin[t], Cos[t]} - Rescale[verts][[1]], t]
--Thanks
Chris