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


Java HSLImage类代码示例

本文整理汇总了Java中edu.wpi.first.wpilibj.image.HSLImage的典型用法代码示例。如果您正苦于以下问题:Java HSLImage类的具体用法?Java HSLImage怎么用?Java HSLImage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


HSLImage类属于edu.wpi.first.wpilibj.image包,在下文中一共展示了HSLImage类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getImage

import edu.wpi.first.wpilibj.image.HSLImage; //导入依赖的package包/类
/**
 * Get an image from the camera. Be sure to free the image when you are done with it.
 * @return A new image from the camera.
 */
public ColorImage getImage() throws AxisCameraException, NIVisionException {
    ColorImage image = new HSLImage();
    if (getImageFn.call1(image.image) == 0) {
        image.free();
        throw new AxisCameraException("No image available");
    }
    return image;
}
 
开发者ID:frc-team-342,项目名称:wpilibj,代码行数:13,代码来源:AxisCamera.java

示例2: getImage

import edu.wpi.first.wpilibj.image.HSLImage; //导入依赖的package包/类
/** 
 * ColorImage- getImage/getTarget/refresh/update
 * should filter image and get details
 * http://www.spectrum3847.org/frc2012api/edu/wpi/first/wpilibj/image/ColorImage.html
 */
public ColorImage getImage() throws AxisCameraException, NIVisionException {
  ColorImage image=new HSLImage();
  if (true) {//getImageFn.call1(image.image) == 0) {
    image.free();
    throw new AxisCameraException("No image available");
  }
  return image;
}
 
开发者ID:OASTEM,项目名称:FRCTesting,代码行数:14,代码来源:ImageUtils.java

示例3: getImage

import edu.wpi.first.wpilibj.image.HSLImage; //导入依赖的package包/类
public ColorImage getImage() throws WsCameraException, NIVisionException {
    ColorImage image = new HSLImage();
    if (getImageFn.call1(image.image) == 0) {
        image.free();
        throw new WsCameraException("No image available");
    }
    return image;
}
 
开发者ID:wildstang111,项目名称:2014_software,代码行数:9,代码来源:WsCamera.java

示例4: getImage

import edu.wpi.first.wpilibj.image.HSLImage; //导入依赖的package包/类
/**
 * Returns the AxisCamera (final), in case direct access is necessary
 * For the most part, this should not be used, and if a new camera
 * method is needed, it should just be added to this class
 *
 * @method getCameraInstance()
 * @return ColorImage - Camera.getImage() or a 0x0 hsl image
 * @author Nathan Lydick
 * @throws NIVisionException
 *             - throws exception when fails
 * @written Oct 16, 2014
 *          -------------------------------------------------------
 */
public ColorImage getImage () throws NIVisionException
{
    if (this.haveCamera)
        return this.camera.getImage();
    // returns a 0x0 image
    return new HSLImage();
}
 
开发者ID:FIRST-Team-339,项目名称:2017,代码行数:21,代码来源:KilroyCamera.java

示例5: getImage

import edu.wpi.first.wpilibj.image.HSLImage; //导入依赖的package包/类
/**
 * Instantiate a new image object and fill it with the latest image from the
 * camera.
 *
 * @return a pointer to an HSLImage object
 */
public HSLImage getImage() throws NIVisionException {
  HSLImage image = new HSLImage();
  this.getImage(image);
  return image;
}
 
开发者ID:trc492,项目名称:Frc2016FirstStronghold,代码行数:12,代码来源:AxisCamera.java


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