This function returns a cimg wrapped as NumeriMatrix.
using the gradient magnitude in the x and y directions,
estimated by the imager function imgradient
and the greadient angles
estimated as atan(dy/dx) and subsequently simplified and discretized
the canny edges are calculated,
defined as the points in the gradient magnitude map that are
greater than the 4(of the 8 posible) neighbors, orthogonal to the estimated angle
1 | extractEdgeMap(gradientFromR, anglesFromR)
|
gradientFromR |
cimg wraped as NumericVector |
anglesFromR |
cimg wraped as NumericVector |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.