Giter VIP home page Giter VIP logo

Comments (7)

xthexder avatar xthexder commented on May 14, 2024

This functionality exists in k4ainternal/common.h now, maybe we can just make those functions public?

from azure-kinect-sensor-sdk.

Brent-A avatar Brent-A commented on May 14, 2024

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.

Brent-A avatar Brent-A commented on May 14, 2024

@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.

cdedmonds avatar cdedmonds commented on May 14, 2024

@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.

Brent-A avatar Brent-A commented on May 14, 2024

How about a separate k4a_device_get_color_resolution and k4a_device_get_depth_resolution?

from azure-kinect-sensor-sdk.

RoseFlunder avatar RoseFlunder commented on May 14, 2024

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.

wes-b avatar wes-b commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.