This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
add template param for pointer type to k4a::image::get_buffer()
#1499
Labels
Enhancement
New feature or request
I suggest adding a c++ template parameter to
k4a::image::get_buffer()
so that the pointer type returned can be easily controlled. There is significant probability the image buffer doesn't contain 8-bit data, and significant probability the caller needs a pointer other thanuint8_t*
. This is extremely common when interoperating with OpenCV.Describe the solution you'd like
Could be as quick a hack as...
Describe alternatives you've considered
Without the template parameter, I have multiple casts of multiple kinds throughout code. It is litter with no benefit.
The text was updated successfully, but these errors were encountered: