Class GradientSparsePrewitt_U8

  • All Implemented Interfaces:
    boofcv.struct.sparse.SparseImageGradient<boofcv.struct.image.GrayU8,​boofcv.struct.sparse.GradientValue_I32>, boofcv.struct.sparse.SparseImageOperator<boofcv.struct.image.GrayU8>

    public class GradientSparsePrewitt_U8
    extends java.lang.Object
    implements boofcv.struct.sparse.SparseImageGradient<boofcv.struct.image.GrayU8,​boofcv.struct.sparse.GradientValue_I32>
    Sparse computation of the Prewitt gradient operator.
    • Constructor Summary

      Constructors 
      Constructor Description
      GradientSparsePrewitt_U8​(boofcv.struct.border.ImageBorder_S32<boofcv.struct.image.GrayU8> border)
      Specifies how border pixels are handled.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boofcv.struct.sparse.GradientValue_I32 compute​(int x, int y)  
      java.lang.Class<boofcv.struct.sparse.GradientValue_I32> getGradientType()  
      boolean isInBounds​(int x, int y)  
      void setImage​(boofcv.struct.image.GrayU8 input)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GradientSparsePrewitt_U8

        public GradientSparsePrewitt_U8​(boofcv.struct.border.ImageBorder_S32<boofcv.struct.image.GrayU8> border)
        Specifies how border pixels are handled. If null then the border is not handled.
        Parameters:
        border - how borders are handled
    • Method Detail

      • compute

        public boofcv.struct.sparse.GradientValue_I32 compute​(int x,
                                                              int y)
        Specified by:
        compute in interface boofcv.struct.sparse.SparseImageGradient<boofcv.struct.image.GrayU8,​boofcv.struct.sparse.GradientValue_I32>
      • getGradientType

        public java.lang.Class<boofcv.struct.sparse.GradientValue_I32> getGradientType()
        Specified by:
        getGradientType in interface boofcv.struct.sparse.SparseImageGradient<boofcv.struct.image.GrayU8,​boofcv.struct.sparse.GradientValue_I32>
      • setImage

        public void setImage​(boofcv.struct.image.GrayU8 input)
        Specified by:
        setImage in interface boofcv.struct.sparse.SparseImageOperator<boofcv.struct.image.GrayU8>
      • isInBounds

        public boolean isInBounds​(int x,
                                  int y)
        Specified by:
        isInBounds in interface boofcv.struct.sparse.SparseImageOperator<boofcv.struct.image.GrayU8>