calibrate_pixel_size: Calibrate the pixel size using a test image

Description Usage Arguments Value Examples

View source: R/Scale_detection.R

Description

In order to calculate absolute densities from pixel sizes, the size of the field captured by an operating microscope must be determined. This function allows the user to select an image of a ruler captured under a microscope, before automatically determining the scale.

Usage

1

Arguments

file_path

The path to the image of a ruler to use for calibration. If left blank, the user will be prompted to select the file.

Value

A graphical representation of the ruler and calibration process. The number of pixels per mm will also be displayed.

Examples

1
2
3
4
5
6
7
## Not run: 

file = paste(system.file(package = "vmeasur"), "extdata/mm_scale.jpg", sep = "/")
calibrate_pixel_size(file)


## End(Not run)

vmeasur documentation built on Nov. 12, 2021, 1:07 a.m.