View source: R/extractFeatures.R
1 | traceFromImage(fin, startStopCoords = NULL, pathNet = NULL)
|
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 |
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 of type list containing: "coordinates" a dataframe of coordinates "annulus" a 3 channel cimg of isolated features
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.