edger_testr: Interactively Choose Thresholds, Shift, and Rotation

View source: R/edger_testr.R

edger_testrR Documentation

Interactively Choose Thresholds, Shift, and Rotation

Description

An interactive function for locating pixels corresponding to edges in multiple regions and multiple photos. If the default threshold value (0.1) does not display desired contours, input "N" when prompted to input a new threshold value and redisplay. Repeat as necessary until it is satisfactory, then input "Y". Do the same procedure for shift and rotation. The drawn region(s) of interest, threshold values, shifts, and rotations will be output as a list.

Usage

edger_testr(imagepaths, regions = 1, color = "red")

Arguments

imagepaths

A vector containing file paths of images to be analyzed.

regions

A numeric indicating how many regions to draw. Default is 1.

color

A character string for the color of the superimposed object. Default is red.

Value

A list of coordinates to region(s) of interest, edge values, shifts, and rotations for each image. The roi and shift list items are output as lists, while th and rotate are output as vectors.


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