Code covered by the BSD License  

Highlights from
DrawRect

DrawRect

by

 

Draws a 1-pixel rectangle on an input image with a given color ('r', 'g' or 'b').

test_drawrect.m
% test stub for DrawRect

im=imread('text.png');
figure(1);imshow(im);title('original image');
r=[ 10 10 100 100];
out_im=DrawRect(im,r,'r');
figure(2);image(out_im);title('image with rectangle superimposed');

Contact us