addScaleBar: Add a horizontal scale bar to image

View source: R/addScaleBar.R

addScaleBarR Documentation

Add a horizontal scale bar to image

Description

'addScaleBar()' adds a scale bar to an image whose size depends on the metadata of the image

Usage

addScaleBar(
  image = NULL,
  length_per_pixel_in_um = NULL,
  distance_from_border = 20
)

Arguments

image

A 2 or 3 dimensional array which could also be of the formal EBImage image class.

length_per_pixel_in_um

A number representing thelength per pixel in um.

distance_from_border

A number being the distance in pixels of the scale bar from the right image border.

Value

An array (image with added scale bar).


SFB-ELAINE/readCzi documentation built on March 31, 2024, 4:50 a.m.