![]() |
Microscopy Image Browser
1.233
|
Render RGB text over RGB or grayscale images by Davide Di Gloria with the great contribution of Franz-Gerold Url. More...
Functions | |
| function out = | rendertext (target, text, color, pos, mode1, mode2) |
| Render RGB text over RGB or grayscale images by Davide Di Gloria with the great contribution of Franz-Gerold Url. More... | |
Render RGB text over RGB or grayscale images by Davide Di Gloria with the great contribution of Franz-Gerold Url.
| function out = rendertext | ( | target, | |
| text, | |||
| color, | |||
| pos, | |||
| mode1, | |||
| mode2 | |||
| ) |
Render RGB text over RGB or grayscale images by Davide Di Gloria with the great contribution of Franz-Gerold Url.
| target | MxNx3 or MxN matrix (grayscale will be converted to RGB) |
| text | string (NO LINE FEED SUPPORT) |
| color | vector in the form [r g b] 0-255 |
| pos | position (r,c) |
| mode1 | [optional] ovr to overwrite, bnd to blend text over image; default is ovr |
| mode2 | [optional] text aligment left, mid or right; default is right |
| out | output, has the same size of target |
Example: