add: images.findImage; change images.findColor implementation to opencv
This commit is contained in:
@@ -43,6 +43,7 @@ public class IntentExtras implements Serializable {
|
||||
|
||||
private IntentExtras(int id) {
|
||||
mMap = extraStore.get(id);
|
||||
extraStore.remove(id);
|
||||
mMaxId = id;
|
||||
}
|
||||
|
||||
|
||||
16
common/src/main/java/com/stardust/util/Nath.java
Normal file
16
common/src/main/java/com/stardust/util/Nath.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package com.stardust.util;
|
||||
|
||||
/**
|
||||
* Created by Stardust on 2017/11/26.
|
||||
*/
|
||||
|
||||
public class Nath {
|
||||
|
||||
public static int min(int... ints) {
|
||||
int min = ints[0];
|
||||
for (int i = 1; i < ints.length; i++) {
|
||||
min = ints[i] < min ? ints[i] : min;
|
||||
}
|
||||
return min;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user