image thumbnail

Adds Scalebar to Matrix (Image)

version 1.0.0 (1.42 KB) by Pablo Gottheil
Easy code, Can be rewritten as desired


Updated 02 Aug 2021

View License

Adds Scalebar to Matrix:
image = grayscale or rgb image (double)
mum_per_pix = ratio µm/pixel
scalebarlength_mum =scalebar length in µm
height = scale bar height in µm
Color = rgb triplet ,e.g. [1 0 0] --> red
OUTPUT is rgb matrix (n*m*3) with scalebar on lower right

Cite As

Pablo Gottheil (2021). Adds Scalebar to Matrix (Image) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!