Sampling rate on imfreehand function?

1 view (last 30 days)
C Czyrnyj
C Czyrnyj on 20 Jan 2016
Answered: Image Analyst on 20 Jan 2016
Does anyone know the sampling rate on the imfreehand function? I can't seem to find this information anywhere.
Thanks.

Answers (1)

Image Analyst
Image Analyst on 20 Jan 2016
No. It seems to be time dependent. So if you draw faster, the points will be spaced farther apart. If you want to interpolate so that it's spaced just one pixel apart, you can use interp1() on both x and y. Let me know if you don't
You could also fit a spline through them like my attached demo.
You might also use John D'Errico's interparc function http://www.mathworks.com/matlabcentral/fileexchange/34874-interparc to get points uniformly spaced along the curve you drew.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!