Package boofcv.alg.feature.detect.edge
Class GGradientToEdgeFeatures
java.lang.Object
boofcv.alg.feature.detect.edge.GGradientToEdgeFeatures
Image type agnostic version of
GradientToEdgeFeatures
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <D extends ImageGray<D>>
voidComputes the edge orientation using theMath.atan(double)
function.static <D extends ImageGray<D>>
voiddirection2
(D derivX, D derivY, GrayF32 angle) Computes the edge orientation using theMath.atan2(double, double)
function.static <D extends ImageGray<D>>
voidintensityAbs
(D derivX, D derivY, GrayF32 intensity) Computes the edge intensity using a Euclidean norm.static <D extends ImageGray<D>>
voidintensityE
(D derivX, D derivY, GrayF32 intensity) Computes the edge intensity using a Euclidean norm.static <D extends ImageGray<D>>
voidnonMaxSuppressionCrude4
(GrayF32 intensity, D derivX, D derivY, GrayF32 output) Sets edge intensities to zero if the pixel has an intensity which is less than any of the two adjacent pixels.
-
Constructor Details
-
GGradientToEdgeFeatures
public GGradientToEdgeFeatures()
-
-
Method Details
-
intensityE
Computes the edge intensity using a Euclidean norm.- Parameters:
derivX
- Derivative along x-axis. Not modified.derivY
- Derivative along y-axis. Not modified.intensity
- Edge intensity.
-
intensityAbs
Computes the edge intensity using a Euclidean norm.- Parameters:
derivX
- Derivative along x-axis. Not modified.derivY
- Derivative along y-axis. Not modified.intensity
- Edge intensity.
-
direction
Computes the edge orientation using theMath.atan(double)
function.- Parameters:
derivX
- Derivative along x-axis. Not modified.derivY
- Derivative along y-axis. Not modified.angle
- Edge orientation in radians (-pi/2 to pi/2).
-
direction2
Computes the edge orientation using theMath.atan2(double, double)
function.- Parameters:
derivX
- Derivative along x-axis. Not modified.derivY
- Derivative along y-axis. Not modified.angle
- Edge orientation in radians (-pi to pi).
-
nonMaxSuppressionCrude4
public static <D extends ImageGray<D>> void nonMaxSuppressionCrude4(GrayF32 intensity, D derivX, D derivY, GrayF32 output) Sets edge intensities to zero if the pixel has an intensity which is less than any of the two adjacent pixels. Pixel adjacency is determined based upon the sign of the image gradient. Less precise than other methods, but faster.
- Parameters:
intensity
- Edge intensities. Not modified.derivX
- Image derivative along x-axis.derivY
- Image derivative along y-axis.output
- Filtered intensity. Modified.
-