Comments (7)
This functionality exists in k4ainternal/common.h
now, maybe we can just make those functions public?
from azure-kinect-sensor-sdk.
See comments in #145. For modes in particular, these values may be hardware specific. If we add an API for getting width/height values, we may want to make it dependent on a device_t object, and possibly query the values from future hardware. This adds some complication when dealing with recordings, since the playback API would presumably need to duplicate this functionality, store the mappings in the recording, or inver them from the recorded data.
from azure-kinect-sensor-sdk.
@cdedmonds it turns out we already have an API for this, although its a bit convoluted:
Call k4a_device_get_calibration
or k4a_playback_get_calibration
with the depth mode and color resolution of your choosing, then in the resultant k4a_calibration_t
access cal.depth_camera_calibration.resolution_width
It might be cleanest to provide a helper function like:
k4a_result_t k4a_device_get_resolution(k4a_device_t, k4a_color_resolution_t, int* width, int* height);
which just calls k4a_device_get_calibration
and returns the resolution data.
from azure-kinect-sensor-sdk.
@Brent-A I hadn't thought abot that. Makes sense to expose an API then. Do we want one for color and depth or just color?
from azure-kinect-sensor-sdk.
How about a separate k4a_device_get_color_resolution
and k4a_device_get_depth_resolution
?
from azure-kinect-sensor-sdk.
Think this issue can be closed because k4a_calibration_t
provides the resolution width and height for both depth and color now.
from azure-kinect-sensor-sdk.
Nice! I would rather have a dedicated function to do this and one for FPS. It would be a bit more general purpose then the calibration API.
from azure-kinect-sensor-sdk.
Related Issues (20)
- Can Azure Kinect Viewer play an Encoded video? HOT 1
- align rgb and depth
- Installing k4aviewer on Ubuntu 18.04 HOT 1
- Performance between Linux and Window
- Is there a way to transform specific cordinates of a color_image to that of a correspondant depth_image?
- Getting depth data without depth engine HOT 1
- get mkv use k4arecorder.exe output.mkv , and use ffmpeg to decouple rgb and depth, but depth always have 2 frames less than rgb
- Is there a way to run the Body Tracking Viewer in the other Sensor Orientation modes? HOT 1
- The --record-length parameter in k4arecorder does not match the actual length of the recorded video
- Open K4A Device failed! with the set up following the instructions HOT 2
- Azure Kinect on Jetson Orin HOT 1
- [vcpkg] Run-time crash due to multiple libraries trying to use the same log-file.
- Creating an Image in python from a numpy array doesn't work
- The check of the raw calibration size is incorrect
- Update python bindings to follow the PEP 8 standard
- A convenient way to copy the Sync Settings information is desired
- I have reviewed all the issues related to Azure Kinect, and due to its end-of-life status, Azure Kinect is no longer maintained. Orbbec's Femto Mega and Femto Bolt cameras can serve as alternatives to Azure Kinect. HOT 1
- IR image to color camera transformation changes pixel values HOT 1
- get image failed HOT 1
- Window:find_libusb_device(). libusb device(s) are all unavalable. Is the device being used by another application?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-kinect-sensor-sdk.