Package boofcv.alg.filter.binary.impl
Class ImplBinaryNaiveOps
java.lang.Object
boofcv.alg.filter.binary.impl.ImplBinaryNaiveOps
Simple unoptimized implementations of binary operations.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
static void
static void
static void
static void
static void
static void
static boolean
If a point is inside the image true is returned if its value is not zero, otherwise false is returned.static boolean
If a point is inside the image true is returned if its value is not zero, otherwise true is returned.static void
removePointNoise
(GrayU8 input, GrayU8 output) Binary operation which is designed to remove small bits of spurious noise.
-
Constructor Details
-
ImplBinaryNaiveOps
public ImplBinaryNaiveOps()
-
-
Method Details
-
erode4
-
dilate4
-
edge4
-
edge4
-
erode8
-
dilate8
-
edge8
-
edge8
-
removePointNoise
Binary operation which is designed to remove small bits of spurious noise. An 8-neighborhood is used. If a pixel is connected to less than 2 neighbors then its value zero. If connected to more than 6 then its value is one. Otherwise it retains its original value.- Parameters:
input
- Input image. Not modified.output
- If not null, the output image. If null a new image is declared and returned. Modified.
-
getT
If a point is inside the image true is returned if its value is not zero, otherwise true is returned. -
getF
If a point is inside the image true is returned if its value is not zero, otherwise false is returned.
-