This package allows the user to find the edges in one image and apply those edges to other images.
This package relies heavily on the package imager
. The webpage for imager
can be viewed here, and the GitHub page can be viewed here. You also need dplyr
, progressr
, andstringr
.
install.packages(c("devtools", "dplyr", "imager", "progressr", "stringr"))
You also need to download ExifTool and list it in your environmental variables. You can download ExifTool for your system here. Check to see if your computer can navigate to it by running the command exiftool
in the command prompt on your machine.
When installing edger
, specify build_vignettes = TRUE
.
devtools::install_github("kaitlynstrickfaden/edger", build_vignettes = TRUE)
library(edger)
There are three main functions in the edger
package. These are:
edger_single
: a function for finding and recoloring edges in a single image, with the option to save the recolored image. edger_multi
: a function for applying edges to multiple images. This function builds on the edger_single
function by applying the edges found in the first image(s) to other images. It also saves the recolored images with "edger" appended to the original file name.edger_testr
: an interactive function to help you find the right threshold, shift, and rotation values for a series of input images. The coordinates to the drawn region(s) of interest and values are compiled and output as a list to then be used as inputs to the edger_multi
function.The rest of the functions in the package are helper functions that feed into the main wrapper functions.
For a detailed description of the methodology behind the functions, refer to the edger_methodology
vignette. For a detailed description of the functions in the package, refer to the edger_use
vignette.
This package is still in development, so I'd love to hear from folks what other things they'd like to see this package do.
This project is licensed under the MIT License - see the LICENSE.md file for details
Huge thanks to the developers of imager
, Simon Barthelme, David Tschumperle, Jan Wijffels, and Haz Edine.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.