This function returns a cimg wrapped as NumeriMatrix. Using a smoothing kernel, highlights are filled in based on the neighboring values. Iteratively fills in from outer edge inward. Image should have glare cliped to 0 already
1 | fillGlare(imageFromR, highlightCoordinates, aveThresh = 7L)
|
imageFromR |
cimg wraped as NumericVector |
highlightCoordinates |
Coordinates to fill in |
aveThresh |
Weighted sum, representing minimum number of neighboring non 0 pixels |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.