calibrate_pixel_size {vmeasur} | R Documentation |
Calibrate the pixel size using a test image
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
calibrate_pixel_size(file_path = tk_file.choose())
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
## Not run:
file = paste(system.file(package = "vmeasur"), "extdata/mm_scale.jpg", sep = "/")
calibrate_pixel_size(file)
## End(Not run)
[Package vmeasur version 0.1.4 Index]