Hi , I have a binary image , i want to choose 3 points on it and make a curve fitting on it? what is code matlab for doing this??
Direct link to this answer:
What kind of curve? With 3 points, you can do a second order curve or first order line. Do you want a parabola, a circle, or a line? Did you try passing the points into polyfit(), or see the FAQ?
Direct link to this comment:
I have a binary image , I want to fit a half circle on 3 points on it, what is codes?
It's in the FAQ. Did you click on the link I gave you? The code is right there to fit a circle. After that you can decide where to split the circle into halves. Where to you think you want to do that?
What kind of interpolation are you going to use? Is your output image also going to be logical? If so, I assume you are using Nearest Neighbor?
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Opportunities for recent engineering grads.
New to MATLAB?
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries