how to show points on image in matlab?

后端 未结 3 897
我寻月下人不归
我寻月下人不归 2021-02-20 07:31

i have some pixel points lets say p1(1,1) and p2(1,10).......and so on

i want to display these points on image in any color. how to do this?

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-20 07:56

    Use image, hold on and plot.

    base_points = [142.3125,93.4375; 169.4375,176.0625];
    image(fixed); colormap(gray(256)); axis image;
    hold on;
    plot(base_points(:,1),base_points(:,2),'go');
    

提交回复
热议问题