dot-get_trace_start_ends: Trace Starting and Ending Points

.get_trace_start_endsR Documentation

Trace Starting and Ending Points

Description

Can also be used to remove those ranges where the trace isn't if returnMat is TRUE

Usage

.get_trace_start_ends(
  imageMatrix,
  cutPercentage = 1,
  peakThreshold = 5,
  gapAllow = 20,
  returnMat = TRUE,
  maxStart = 700,
  minEnd = 4800
)

Arguments

imageMatrix

Imported image into matrix form, can use tiff_import(), processed already

cutPercentage

A bound for which the start and end is never found, could be a flare on the sides of the scanned image

peakThreshold

Smallest difference allowed for a difference to be a possible peak

gapAllow

Distance in which another index could be considered to be the same peak, applicable for large peaks

returnMat

bool, default is to return the image with removed start and end to the user, if FALSE will return just the index of the start and end

maxStart

absolute max for the left side of the image (can be overridden with the length)

minEnd

absolute min for the right side of the image ( can be overridden with the 0)

Value

Image matrix with removed start and end, or the index of these start and ends


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