How do I create an image matrix with a line drawn in it in MATLAB?

后端 未结 4 1344
眼角桃花
眼角桃花 2020-12-06 18:20

I want to plot a line from one well-defined point to another and then turn it into an image matrix to use a Gaussian filter on it for smoothing. For this I use the functions

4条回答
  •  粉色の甜心
    2020-12-06 18:46

    You can check my answer here. It is robust way to achieve what you are asking for. Advantage of my approach is that it doesn't need additional parameters to control density of the line drawn.

提交回复
热议问题