edger_identify: Find Edges in the Region of Interest

View source: R/edger_identify.R

edger_identifyR Documentation

Find Edges in the Region of Interest

Description

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.

Usage

edger_identify(ref_ims, roi = NULL, th = 20, regions = 1)

Arguments

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.

Value

The input data frame as an image.


kaitlynstrickfaden/edger documentation built on Nov. 22, 2022, 5:55 a.m.