boofcv.alg.filter.binary.impl
Class ImplBinaryNaiveOps
- java.lang.Object
-
- boofcv.alg.filter.binary.impl.ImplBinaryNaiveOps
-
public class ImplBinaryNaiveOps extends java.lang.ObjectSimple unoptimized implementations of binary operations.- See Also:
BinaryImageOps
-
-
Constructor Summary
Constructors Constructor and Description ImplBinaryNaiveOps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voiddilate4(GrayU8 input, GrayU8 output)static voiddilate8(GrayU8 input, GrayU8 output)static voidedge4(GrayU8 input, GrayU8 output)static voidedge8(GrayU8 input, GrayU8 output)static voiderode4(GrayU8 input, GrayU8 output)static voiderode8(GrayU8 input, GrayU8 output)static booleangetF(GrayU8 image, int x, int y)If a point is inside the image true is returned if its value is not zero, otherwise false is returned.static booleangetT(GrayU8 image, int x, int y)If a point is inside the image true is returned if its value is not zero, otherwise true is returned.static voidremovePointNoise(GrayU8 input, GrayU8 output)Binary operation which is designed to remove small bits of spurious noise.
-
-
-
Method Detail
-
removePointNoise
public static void removePointNoise(GrayU8 input, GrayU8 output)
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
public static boolean getT(GrayU8 image, int x, int y)
If a point is inside the image true is returned if its value is not zero, otherwise true is returned.
-
getF
public static boolean getF(GrayU8 image, int x, int y)
If a point is inside the image true is returned if its value is not zero, otherwise false is returned.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG