vision.ShapeInserter Shape,
'Rectangles''Circles''Lines''Polygons'
'Rectangles'. ShapeInserter, , , release(shapeInserter); Shape set(shapeInserter,'Shape','Circles'). , .
:
I = imread('cameraman.tif');
rectangle = int32([10,10,50,60]);
circle = int32([200,200,40]);
shapeInserter = vision.ShapeInserter('Fill',true);
J = step(shapeInserter,I,rectangle);
release(shapeInserter);
set(shapeInserter,'Shape','Circles');
K = step(shapeInserter,J,circle);
imshow(K);
