java.lang.Object
io.github.jspinak.brobot.actions.methods.basicactions.find.motion.DynamicPixelFinder
All Implemented Interfaces:
FindDynamicPixels

@Component public class DynamicPixelFinder extends Object implements FindDynamicPixels
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bytedeco.opencv.opencv_core.Mat
    getDynamicPixelMask(Region region, double intervalSeconds, double totalSecondsToRun)
    Finds the pixels in a region that change over time.
    org.bytedeco.opencv.opencv_core.Mat
    getDynamicPixelMask(org.bytedeco.opencv.opencv_core.MatVector matVector)
    From a collection of Mat(s), returns a mask of pixels that change in any of the Mat(s).
    org.bytedeco.opencv.opencv_core.Mat
    getFixedPixelMask(Region region, double intervalSeconds, double totalSecondsToRun)
    Finds the pixels in a region that over time do not change.
    org.bytedeco.opencv.opencv_core.Mat
    getFixedPixelMask(org.bytedeco.opencv.opencv_core.MatVector matVector)
     

    Methods inherited from class java.lang.Object

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

  • Method Details

    • getDynamicPixelMask

      public org.bytedeco.opencv.opencv_core.Mat getDynamicPixelMask(org.bytedeco.opencv.opencv_core.MatVector matVector)
      From a collection of Mat(s), returns a mask of pixels that change in any of the Mat(s).
      Specified by:
      getDynamicPixelMask in interface FindDynamicPixels
      Parameters:
      matVector - a collection of Mat objects
      Returns:
      a 1D mask of changing pixels
    • getFixedPixelMask

      public org.bytedeco.opencv.opencv_core.Mat getFixedPixelMask(org.bytedeco.opencv.opencv_core.MatVector matVector)
      Specified by:
      getFixedPixelMask in interface FindDynamicPixels
    • getDynamicPixelMask

      public org.bytedeco.opencv.opencv_core.Mat getDynamicPixelMask(Region region, double intervalSeconds, double totalSecondsToRun)
      Finds the pixels in a region that change over time.
      Parameters:
      region - the region to search
      intervalSeconds - frequency of snapshots
      totalSecondsToRun - total seconds to observe the region
      Returns:
      a mask of dynamic pixels
    • getFixedPixelMask

      public org.bytedeco.opencv.opencv_core.Mat getFixedPixelMask(Region region, double intervalSeconds, double totalSecondsToRun)
      Finds the pixels in a region that over time do not change.
      Parameters:
      region - the region to search
      intervalSeconds - frequency of snapshots
      totalSecondsToRun - total seconds to observe the region
      Returns:
      a mask of dynamic pixels