edu.wpi.first.wpilibj.image.HSLImage的实例源码

项目:wpilibj    文件AxisCamera.java   
/**
 * 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;
}
项目:FRCTesting    文件ImageUtils.java   
/** 
 * 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;
}
项目:2014_software    文件WsCamera.java   
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;
}
项目:wpilib-java    文件AxisCamera.java   
/**
 * 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;
}
项目:2017    文件KilroyCamera.java   
/**
 * 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();
}
项目:2016    文件KilroyCamera.java   
/**
 * Returns the AxisCamera (final),2014
 *          -------------------------------------------------------
 */
public ColorImage getimage () throws NIVisionException
{
    if (this.haveCamera)
        return this.camera.getimage();
    // returns a 0x0 image
    return new HSLImage();
}
项目:Frc2016FirstStronghold    文件AxisCamera.java   
/**
 * 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;
}

相关文章

买水果
比较全面的redis工具类
gson 反序列化到多态子类
java 版本的 mb_strwidth
JAVA 反转字符串的最快方法,大概比StringBuffer.reverse()性...
com.google.gson.internal.bind.ArrayTypeAdapter的实例源码...