本文整理汇总了Java中edu.wpi.first.wpilibj.image.CriteriaCollection类的典型用法代码示例。如果您正苦于以下问题:Java CriteriaCollection类的具体用法?Java CriteriaCollection怎么用?Java CriteriaCollection使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CriteriaCollection类属于edu.wpi.first.wpilibj.image包,在下文中一共展示了CriteriaCollection类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入依赖的package包/类
public void init()
{
cc = new CriteriaCollection();
cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, AREA_MINIMUM, 65535, false);
ledState = Relay.Value.kOff;
}
示例2: VisionController
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入依赖的package包/类
private VisionController() {
camera = AxisCamera.getInstance();
cc = new CriteriaCollection(); // create the criteria for the particle filter
cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, AREA_MINIMUM, 65535, false);
target = new TargetReport();
verticalTargets = new int[MAX_PARTICLES];
horizontalTargets = new int[MAX_PARTICLES];
}
示例3: Vision
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入依赖的package包/类
public Vision() {
if (enableVision) camera = AxisCamera.getInstance("10.25.2.11");
lastFrame = System.currentTimeMillis();
frameProcess = 0;
cc = new CriteriaCollection();
cc.addCriteria(MeasurementType.IMAQ_MT_AREA, 3000, 6000, false);
distanceReg = new Regression(0.0000086131992, -0.0893246981, 244.5414525); // a, b, c
angleReg = new Regression(15.32142857, -565.2928571, 5720.678571); // a, b, c
SmartDashboard.putNumber("Angle Regression Constant", angleReg.getConstant());
}
示例4: robotInit
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入依赖的package包/类
public void robotInit() {
camera = AxisCamera.getInstance();
cc = new CriteriaCollection();
cc.addCriteria(MeasurementType.IMAQ_MT_BOUNDING_RECT_WIDTH, 0, 0, false);
cc.addCriteria(MeasurementType.IMAQ_MT_BOUNDING_RECT_HEIGHT, 0, 0, false); //todo: check WPILibJ documentation
SmartDashboard.putBoolean("Grab state", false);
SmartDashboard.putBoolean("Lift state", false);
System.out.println("RobotInit() completed. \n");
}
示例5: GRTVisionTracker
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入依赖的package包/类
public GRTVisionTracker(AxisCamera cam) {
super("Vision Tracker", NUM_DATA);
this.camera = cam;
this.cc = new CriteriaCollection(); // create the criteria for the particle filter
cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, 500, 65535, false);
X_IMAGE_RES = camera.getResolution().width;
listeners = new Vector();
}
示例6: AxisCameraM1101
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入依赖的package包/类
public AxisCameraM1101() {
camera = AxisCamera.getInstance();
criteriaCollection = new CriteriaCollection();
criteriaCollection.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA,
AREA_MINIMUM, 65535, true);
}
示例7: CameraDetection
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入依赖的package包/类
public CameraDetection(){
//camera = AxisCamera.getInstance();
System.out.println("Started Camera.");
cc = new CriteriaCollection(); // create the criteria for the particle filter
cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, AREA_MINIMUM, 65535, false);
}
示例8: init
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入依赖的package包/类
public void init() {
camera = AxisCamera.getInstance();
cc = new CriteriaCollection();
cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, 200, 65536, false);
}
示例9: vision
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入依赖的package包/类
vision() {
camera = AxisCamera.getInstance("10.14.82.12");
cc = new CriteriaCollection(); // create the criteria for the particle filter
cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, 500, 65535, false);
}
示例10: robotInit
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入依赖的package包/类
public void robotInit() {
//camera = AxisCamera.getInstance(); // get an instance of the camera
cc = new CriteriaCollection(); // create the criteria for the particle filter
cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, AREA_MINIMUM, 65535, false);
}