.top_env | R Documentation |
Top bound for a set of horizontal lines, follows contour of the top line and corrects for un-wanted noise
.top_env(rolledImage, max_roc = 25, sepDist = 10, maxNoise = 100)
rolledImage |
Image that has been put through the .roll_image() |
max_roc |
maximum rate of change allowed between two pixels on the line before deemed as noise |
sepDist |
how far you want the envelope to be above the line you are tracing |
maxNoise |
the length of creating points alowed before considered to be off of the trace |
vector of points for a line, in the correct scaling for the rolled image. can add to to change the scaling: nrow(imageMatrix) - bottomcut + Envelope
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.