You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
648 B
38 lines
648 B
package org.wlld.imageRecognition.modelEntity;
|
|
|
|
import org.wlld.MatrixTools.Matrix;
|
|
import org.wlld.i.OutBack;
|
|
|
|
/**
|
|
* @param
|
|
* @DATA
|
|
* @Author LiDaPeng
|
|
* @Description
|
|
*/
|
|
public class RgbBack implements OutBack {
|
|
private int id = 0;
|
|
private double out = -2;
|
|
|
|
public void clear() {
|
|
out = -2;
|
|
id = 0;
|
|
}
|
|
|
|
@Override
|
|
public void getBack(double out, int id, long eventId) {
|
|
if (out > this.out) {
|
|
this.out = out;
|
|
this.id = id;
|
|
}
|
|
}
|
|
|
|
@Override
|
|
public void getBackMatrix(Matrix matrix, long eventId) {
|
|
|
|
}
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
}
|