triple_check: Triple Trace Checking

View source: R/userFunctions.R

triple_checkR Documentation

Triple Trace Checking

Description

Using find_peaks, checks for three traces on the same Image, These can't be done currently by this alg

Usage

triple_check(
  imageMatrix,
  topCut,
  bottomCut,
  minDistance = 50,
  percentFromEdge = 2,
  thresholdHeight = 200,
  thresholdDistance = 250,
  threshCutImage = 500
)

Arguments

imageMatrix

Horizontal image processed

topCut

from .topCut() line between the text and the two traces

bottomCut

from .bottomCut() line after traces before the two timing marks

minDistance

The min distance aloud between found peaks

percentFromEdge

the distance alows from the edge of the image

thresholdHeight

How separated the heights of the three peaks can be

thresholdDistance

How far the timing lines can be from each other( saves the cases when the peaks are same height as the timing traces)

threshCutImage

how much different the peak heights have to be in the cut image for the image to be considered to be a triple.

Value

TRUE or FALSE for finding a triple or not


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