Class DynamicPixelFinder
java.lang.Object
io.github.jspinak.brobot.actions.methods.basicactions.find.motion.DynamicPixelFinder
- All Implemented Interfaces:
FindDynamicPixels
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.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)
-
Constructor Details
-
DynamicPixelFinder
-
-
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 interfaceFindDynamicPixels
- 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 interfaceFindDynamicPixels
-
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 searchintervalSeconds
- frequency of snapshotstotalSecondsToRun
- 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 searchintervalSeconds
- frequency of snapshotstotalSecondsToRun
- total seconds to observe the region- Returns:
- a mask of dynamic pixels
-