fn_printnumber

Contents

Syntax

im = fn_printnumber(im,num|str|scale,options...)

Description

Print a number or a text as pixels inside an image or movie
Input:
- im      ND array where to print text
- num     vector of double - numbers to print in frames
- str     character array or cell array of character arrays - text to
          print in frames
- scale   a cell array with parameters for printing a scale bar: first
          the size of the scale, second its string (e.g. {[123 3] '1mm'})
- options see below
Ouput:
- im      frames with elements printed
If num or str has N elements, the program finds which dimension of im is
of size N and print a different text for different coordinates in this
dimension.
Available options:
- '3x5', '8x12' [default] or '8x16'   font size
- 'pos(ition)', posstr
          posstr is any of 'topleft', 'topright', 'bottomleft',
          'bottomright', 'center'
- 'col(or)', col
          col is a scalar, N-element vector, 1x3 vector or Nx3 array
          default is black ([0 0 0]) if im has color frames, 0 otherwise

Source

Thomas Deneux

Copyright 2015-2017