<< im2movie Utilities and Interactive Tools imbreakset >>

IPCV - Image Processing and Computer Vision Toolbox for Scilab >> Utilities and Interactive Tools > imaddtext

imaddtext

Adding text to a color image

Syntax

SS = imaddtext(S,str,x,y,font_sz,font_style,font_color [,angle [,box]])

Parameters

S :

Input image

str :

String to add

x :

Offset from lower left corner, x

y :

Offset from lower left corner, y

font_sz :

Font size, 0-10. Type "help graphic_fonts" for details

font_style :

Font style, 0-10. Type "help graphic_fonts" for details

font_color :

Font color. Type "help color_list" for details

angle :

optional real scalar, clockwise angle of string in degrees; default is 0.

box :

optional integer scalar; if box=1 and angle=0, a box is drawn around the string; otherwise, no box is drawn.

SS :

Output image

Description

Add text provided by the user to a color image with specified location, font size, style and color.

Examples

I1 = imread(fullpath(getIPCVpath() + "/images/measure.jpg"));
I2 = imaddtext(I1,'Testing',100,100,5,6,'blue');
imshow(I2);

See also

Authors


Report an issue
<< im2movie Utilities and Interactive Tools imbreakset >>