This commit is contained in:
2025-09-04 14:08:55 +08:00
parent 22e4f97d2f
commit 87f50911d9

View File

@@ -0,0 +1,17 @@
package org.dromara.easyai.tools;
import org.dromara.easyai.entity.RGBNorm;
import java.util.Comparator;
public class MeanSort implements Comparator<RGBNorm> {
@Override
public int compare(RGBNorm o1, RGBNorm o2) {
if (o1.getNorm() > o2.getNorm()) {
return 1;
} else if (o1.getNorm() < o2.getNorm()) {
return -1;
}
return 0;
}
}