traceFromImage: traceFromImage

Usage Arguments Details Value

View source: R/extractFeatures.R

Usage

1
traceFromImage(fin, startStopCoords = NULL, pathNet = NULL)

Arguments

fin

Value of type cimg. Load the image via load.image("directory/finImage.JPG")

startStopCoords

list of 3 coordinates: leadingEnd, startPoint, trailingEnd. If NULL, these points are estimated

pathNet

mxnet model for isolating trailing edge

Details

Processes an image(cimg) containing a fin. First the image undergoes cleanup through a variety of filters and glare removal via constrainSizeFinImage and fillGlare These processes help enhance edge clarity. The trailing edge is highlighted via neural network. The image is then cropped down to the trailing edge for efficiency purposes. The canny edges are then extracted from the crop and passed to traceFromCannyEdges which isolates coordinates for the trailing edge. These coordinates are then passed to extractAnnulus which collects image data used for identification. Both the coordinates and the image annulus are then returned.

Value

Value of type list containing: "coordinates" a dataframe of coordinates "annulus" a 3 channel cimg of isolated features


haimeh/finFindR documentation built on July 17, 2021, 12:56 a.m.