项目: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
项目: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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。