View source: R/edger_identify.R
edger_identify | R Documentation |
Define the region(s) of interest (ROI) in which edges will be found. Then, threshold pixels in ROI based on value to find strong edges. Regions can either be drawn on by the user in a GUI or pre-defined. Several regions can be drawn per photo, and regions can be drawn across several photos.
edger_identify(ref_ims, roi = NULL, th = 20, regions = 1)
ref_ims |
A vector containing file paths of images in which the region(s) of interest will be defined. |
roi |
An argument for delineating the region(s) of interest outside of the main function. Default is NULL and will launch a user interface so the user can draw a region(s) of interest on the image. If "roi" is not NULL and ref_images = 1, input should be a 4-column data frame with a number of rows equal to regions. The data frame needs to contain coordinates to the region(s) of interest in the following order: top-left x, top-left y, bottom-right x, bottom-right y. If "roi" is not NULL and ref_images > 1, input should be a list of length ref_images, and each item of the list should be a separate 4-column data frame for the region(s) of interest in each image. Note that plotting of images by "imager" starts in the top-left corner. |
th |
A vector of numeric values between 1-100 for the lowest threshold value you want to recolor in each image(a low edge value captures weaker contrasts). Default is 20. |
regions |
A numeric indicating how many regions to draw. Default is 1. |
The input data frame as an image.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.