Description Usage Arguments Value Examples
View source: R/Scale_detection.R
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.
1 | calibrate_pixel_size(file_path = tk_file.choose())
|
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. |
A graphical representation of the ruler and calibration process. The number of pixels per mm will also be displayed.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.