java.lang.Object
io.github.jspinak.brobot.actions.methods.basicactions.find.states.GetSceneCombinations

@Component public class GetSceneCombinations extends Object
  • Constructor Details

  • Method Details

    • getAllSceneCombinations

      public List<SceneCombination> getAllSceneCombinations(List<ObjectCollection> objectCollections)
      Initializes and returns all SceneCombination objects with the dynamic pixel mask and both scene indices.
      Parameters:
      objectCollections - all scenes and images
      Returns:
      a list of initialized SceneCombination objects without images
    • getDynamicPixelMat

      public Optional<org.bytedeco.opencv.opencv_core.Mat> getDynamicPixelMat(ObjectCollection objectCollection1, ObjectCollection objectCollection2)
      Extract the scenes from both object collections and find the dynamic pixels.
      Parameters:
      objectCollection1 - contains the first scene
      objectCollection2 - contains the second scene
      Returns:
      dynamic pixel mat
    • getSceneCombinationWithDifferentScenes

      public SceneCombination getSceneCombinationWithDifferentScenes(List<SceneCombination> sceneCombinations)
      Finds the first SceneCombination with different scenes. Primarily used in testing. May return null.
      Parameters:
      sceneCombinations - The SceneCombinations to query.
      Returns:
      the first SceneCombination with non-matching scenes.