Class GradientSparseTwo1_F32

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

    public class GradientSparseTwo1_F32
    extends java.lang.Object
    implements boofcv.struct.sparse.SparseImageGradient<boofcv.struct.image.GrayF32,​boofcv.struct.sparse.GradientValue_F32>
    Sparse computation of the two-0 gradient operator.
    • Constructor Summary

      Constructors 
      Constructor Description
      GradientSparseTwo1_F32​(boofcv.struct.border.ImageBorder_F32 border)
      Specifies how border pixels are handled.
    • Method Summary

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

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

      • GradientSparseTwo1_F32

        public GradientSparseTwo1_F32​(boofcv.struct.border.ImageBorder_F32 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_F32 compute​(int x,
                                                              int y)
        Specified by:
        compute in interface boofcv.struct.sparse.SparseImageGradient<boofcv.struct.image.GrayF32,​boofcv.struct.sparse.GradientValue_F32>
      • getGradientType

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

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

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