How to draw a line on an image in matlab?

后端 未结 6 1400
無奈伤痛
無奈伤痛 2020-12-02 23:48

I have two points lets say:

  • P(x,y) [point lies at the top of image]
  • P\'(x\',y\') [point lies at bottom of image]

Now i want to draw a l

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-03 00:29

    load clown
    image(X)
    colormap(map)
    c = size(X,2)
    mid = round(c/2)
    X(:,mid) = 1
    image(X)
    

提交回复
热议问题