env_start_end: Envelope Starts and Ends

View source: R/userFunctions.R

env_start_endR Documentation

Envelope Starts and Ends

Description

A better version of .get_image_starts_ends but meant for single traces that are isolated on their own picture.

Usage

env_start_end(
  traceMatrix,
  thresh = 300,
  gapLengthCutoff = 20,
  returnMatrix = TRUE
)

Arguments

traceMatrix

a single isolated trace, with only one trace(no timing on the plot)

thresh

How far it will go before deciding were already past the numbers at start of traces

gapLengthCutoff

How Large the gap between the text and the trace must be in order to consider that point the new start, if gap is less then cutoff, will keep looking until it gets to the thresh value

returnMatrix

Will return the cut matrix if TRUE, if FALSE will return list of the Start and End

Value

list of the Start and End or cut matrix


Bott-binc/magnetoPackage2020 documentation built on Oct. 12, 2024, 7:49 p.m.