www.gusucode.com > vision 源码程序 matlab案例代码 > vision/DrawMarkersOnAnImageExample.m
%% Draw Markers on an Image % %% % Read the image. I = imread('peppers.png'); %% % Insert a plus (+) marker. RGB = insertMarker(I,[147 279]); %% % Draw four x-marks. pos = [120 248;195 246;195 312;120 312]; color = {'red','white','green','magenta'}; RGB = insertMarker(RGB,pos,'x','color',color,'size',10); %% % Display the image. imshow(RGB);