当前位置: 首页>>代码示例>>Java>>正文


Java CriteriaCollection类代码示例

本文整理汇总了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;
}
 
开发者ID:wildstang111,项目名称:2014_software,代码行数:8,代码来源:HotGoalDetector.java

示例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];
}
 
开发者ID:KProskuryakov,项目名称:FRC623Robot2014,代码行数:10,代码来源:VisionController.java

示例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());
}
 
开发者ID:Team-2502,项目名称:RobotCode2013,代码行数:11,代码来源:Vision.java

示例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");
}
 
开发者ID:team1482BGHS,项目名称:Robotcode,代码行数:10,代码来源:Team1482Robot.java

示例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();
}
 
开发者ID:grt192,项目名称:2013ultimate-ascent,代码行数:11,代码来源:GRTVisionTracker.java

示例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);
}
 
开发者ID:bethpage-robotics,项目名称:Aerial-Assist,代码行数:7,代码来源:AxisCameraM1101.java

示例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);
}
 
开发者ID:owatonnarobotics,项目名称:2014RobotCode,代码行数:7,代码来源:CameraDetection.java

示例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);
}
 
开发者ID:SaintsRobotics,项目名称:Vision,代码行数:6,代码来源:VisionSubsystem.java

示例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);

}
 
开发者ID:team1482BGHS,项目名称:Team_1482_2013,代码行数:7,代码来源:vision.java

示例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);
}
 
开发者ID:team1482BGHS,项目名称:Team_1482_2013,代码行数:6,代码来源:vision.java


注:本文中的edu.wpi.first.wpilibj.image.CriteriaCollection类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。