Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add template parameter to get_buffer() #1533

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Add template parameter to get_buffer() #1533

wants to merge 1 commit into from

Conversation

HlibKazakov2000
Copy link
Contributor

Fixes #1499

Description of the changes:

-Added a c++ template parameter to k4a::image::get_buffer() so that the pointer type returned can be easily controlled. There is a significant probability the image buffer doesn't contain 8-bit data, and a significant probability the caller needs a pointer other than uint8_t*. This is extremely common when interoperating with OpenCV

Before submitting a Pull Request:

I tested changes on:

  • Windows
  • Linux

@ghost
Copy link

ghost commented Mar 18, 2021

CLA assistant check
All CLA requirements met.

@HlibKazakov2000
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jaygullapalli
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add template param for pointer type to k4a::image::get_buffer()
3 participants