FoliometriK is an application for automated extraction of morphometric variables, both classic lineal dimensions and for geometric morphometry, from digital images of plant leaves to facilitate foliar studies. Pictures must have a homogeneous background and, preferably, they must include some known length reference element to establish scale otherwise measures will be taken in pixel units. Scale is not needed when objective in to obtain data for geometric morphometry (landmarks or Elliptic Fourier Descriptors). The object inside the picture is selected by clicking in it – because the same picture can show many leaves.
You must have installed R software and, if possible, RStudio. You can download the latest versions of these two programs in: https://cran.r-project.org/bin/windows/base/ and http://www.rstudio.com/products/rstudio/download/, respectively.
The app uses functions of the packages: shiny
, shinyalert
, shinyWidgets
, shinyBS
and Momocs
. You can install these libraries from CRAN site by running the following code:
install.packages (c("shiny", "shinyalert", "shinyWidgets", "shinyBS", "Momocs"), dependencies = TRUE, lib = .libPaths()[1])
It is also necessary to have install the package EBImage
, from Bioconductor repository:
source("https://bioconductor.org/biocLite.R")
biocLite("EBImage")
Finally, FoliometriK can be installed from github:
devtools::install_github("VMRA/foliometrik")
For this it is necessary to have the devtools
package installed
The application extracts in a supervised or semi- automatic way the following variables from the leave pictures:
If leaves have basal lobes, other three variables are added:
All these variables are stored in an output file, in CSV format, along with the basic data of the source image (name, dimensions in pixels, length of reference object, both in pixels and the user input unit). If multiple images are opened simultaneously, measurements will append in the same file as they are processed. Output landmark files can be saved in TPS format or NTS format, like Fourier descriptors that are saved in raw format (four coefficients for each harmonic per image) or as scores of Principal Component Analysis with all coefficients of a group of images (which is calculated when the image group finished processing). Also, by choice, the coordinates of the contours can be stored, as well as five temporary figures generated from each leave (landmarks, asymmetry, Fourier and internal angles). They are saved in an additional folder named Graphics_FoliometriK, just for checks anomalous cases rather than to be used in papers because they have relatively low resolution. If all initially loaded pictures have been taken in a standardized manner (at the same camera distance and orientation, therefore with the same scale), you can automatically process all of them, because the settings of first image are maintained for the rest, including the scale conversion factor.
Citation:
Ramirez-Arrieta, VM and D. Denis Avila (2019) Implementing a package for morphometric measurements R automated sheets from digital photographs. Tropical Biology
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.