!31 增加移除分类

Merge pull request !31 from 逐光/test
pull/31/MERGE
逐光 5 years ago committed by Gitee
commit 350c4456ea

@ -66,6 +66,15 @@ public class TempleConfig {
private int featureNub = 4;//聚类特征数量
private Knn knn;//KNN分类器
private int knnNub = 3;//KNN投票人数
private Matrix backGround;//背景
public Matrix getBackGround() {
return backGround;
}
public void setBackGround(Matrix backGround) {
this.backGround = backGround;
}
public Knn getKnn() {
return knn;

@ -19,6 +19,10 @@ public class VectorK {
return matrixK;
}
public void removeType(int typeId) {
matrixK.remove(typeId);
}
public void insertMatrix(int type, Matrix matrix) throws Exception {
if (matrix.isRowVector() && matrix.getY() == length) {
if (matrixMap.containsKey(type)) {

@ -43,13 +43,12 @@ public class FoodTest {
public static void test() throws Exception {
TempleConfig templeConfig = new TempleConfig();
Picture picture = new Picture();
templeConfig.isShowLog(true);
templeConfig.setMaxRain(320);
templeConfig.isShowLog(true);//是否打印日志
templeConfig.setMaxRain(320);//切割阈值
templeConfig.setFeatureNub(3);
templeConfig.sethTh(0.88);
templeConfig.setPoolSize(2);
templeConfig.setSensoryNerveNub(3);
templeConfig.setStudyPoint(0.01);
//templeConfig.setRegionNub(100);
templeConfig.setClassifier(Classifier.VAvg);
templeConfig.init(StudyPattern.Cover_Pattern, true, 400, 400, 3);
Operation operation = new Operation(templeConfig);

Loading…
Cancel
Save