microsoft / Azure-Kinect-Sensor-SDK

A cross platform (Linux and Windows) user mode SDK to read data from your Azure Kinect device.
https://Azure.com/Kinect
MIT License
1.49k stars 618 forks source link

How to get FOV/FOI using Azure Kinect Sensor SDK? #917

Open UnaNancyOwen opened 4 years ago

UnaNancyOwen commented 4 years ago

Currently, I can't find how to get FOV/FOI with Azure Kinect Sensor SDK. Is there a way to get these values that depend on the sensor mode?

Describe the solution you'd like

Add FOV/FOI to k4a_calibration_camera_t. The API (k4a_device_get_calibration()) to get it receives color_resolution and depth_mode. FOV/FOI values ​​depend only on color_resolution and depth_mode. We can be implemented quickly.

UnaNancyOwen commented 4 years ago

Do you have any ideas to smarter implementation than this?

wes-b commented 4 years ago

Thanks for the suggestion. Does this lack of information block any development? Our interpretation of this request is that this would be nice to have but there is nothing blocking due to the info being available here: https://docs.microsoft.com/en-us/azure/Kinect-dk/hardware-specification#depth-camera-supported-operating-modes

UnaNancyOwen commented 4 years ago

Yes. Currently, It has hardcoded in my project because there is nothing we can do. Hoever, that information was available in Kinect SDK v2 at least. (IFrameDescription::get_HorizontalFieldOfView(),IFrameDescription::get_VerticalFieldOfView()) I think the Azure Kinect Sensor SDK should also provide it.