|
@@ -35,15 +35,19 @@ namespace bbiwarg.Input.InputProviding
|
|
protected IDevice device;
|
|
protected IDevice device;
|
|
|
|
|
|
protected IParameterHandle<float> frameRate;
|
|
protected IParameterHandle<float> frameRate;
|
|
- protected IParameterHandle<int> imageWidth;
|
|
|
|
- protected IParameterHandle<int> imageHeight;
|
|
|
|
|
|
+ protected IParameterHandle<int> width;
|
|
|
|
+ protected IParameterHandle<int> height;
|
|
|
|
+ protected IParameterHandle<float> hfov;
|
|
|
|
+ protected IParameterHandle<float> vfov;
|
|
protected IDataHandle<Iisu.Data.IImageData> depthImage;
|
|
protected IDataHandle<Iisu.Data.IImageData> depthImage;
|
|
protected IDataHandle<Iisu.Data.IImageData> confidenceImage;
|
|
protected IDataHandle<Iisu.Data.IImageData> confidenceImage;
|
|
|
|
|
|
protected int lastFrameID;
|
|
protected int lastFrameID;
|
|
|
|
|
|
- public int ImageWidth { get { return imageWidth.Value; } }
|
|
|
|
- public int ImageHeight { get { return imageHeight.Value; } }
|
|
|
|
|
|
+ public int ImageWidth { get { return width.Value; } }
|
|
|
|
+ public int ImageHeight { get { return height.Value; } }
|
|
|
|
+ public float HFOV { get { return hfov.Value; } }
|
|
|
|
+ public float VFOV { get { return vfov.Value; } }
|
|
public bool IsActive { get; private set; }
|
|
public bool IsActive { get; private set; }
|
|
public virtual int CurrentFrameID { get { return device.FrameId; } }
|
|
public virtual int CurrentFrameID { get { return device.FrameId; } }
|
|
|
|
|
|
@@ -95,8 +99,10 @@ namespace bbiwarg.Input.InputProviding
|
|
|
|
|
|
protected virtual void registerHandles()
|
|
protected virtual void registerHandles()
|
|
{
|
|
{
|
|
- imageWidth = device.RegisterParameterHandle<int>("SOURCE.CAMERA.DEPTH.Width");
|
|
|
|
- imageHeight = device.RegisterParameterHandle<int>("SOURCE.CAMERA.DEPTH.Height");
|
|
|
|
|
|
+ width = device.RegisterParameterHandle<int>("SOURCE.CAMERA.DEPTH.Width");
|
|
|
|
+ height = device.RegisterParameterHandle<int>("SOURCE.CAMERA.DEPTH.Height");
|
|
|
|
+ hfov = device.RegisterParameterHandle<float>("SOURCE.CAMERA.DEPTH.HFOV");
|
|
|
|
+ vfov = device.RegisterParameterHandle<float>("SOURCE.CAMERA.DEPTH.VFOV");
|
|
frameRate = device.RegisterParameterHandle<float>("SOURCE.FrameRate");
|
|
frameRate = device.RegisterParameterHandle<float>("SOURCE.FrameRate");
|
|
|
|
|
|
depthImage = device.RegisterDataHandle<Iisu.Data.IImageData>("SOURCE.CAMERA.DEPTH.Image");
|
|
depthImage = device.RegisterDataHandle<Iisu.Data.IImageData>("SOURCE.CAMERA.DEPTH.Image");
|