Sampling rate on imfreehand function?
1 view (last 30 days)
Show older comments
Does anyone know the sampling rate on the imfreehand function? I can't seem to find this information anywhere.
Thanks.
0 Comments
Answers (1)
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.
This might also be interesting: http://www.mathworks.com/matlabcentral/answers/44768-creating-masks-of-open-lines-with-imfreehand-and-impoly-roi-tools
0 Comments
See Also
Categories
Find more on Scatter Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!