orbbec / OrbbecSDK-K4A-Wrapper

This repo is forked from Azure-kinect-Sensor-SDK,contain the K4A wrapper for OrbbecSDK.
https://www.orbbec.com/
MIT License
24 stars 7 forks source link

Error in `calibration::convert_color_2d_to_depth_2d()` #75

Closed Lizomi closed 3 weeks ago

Lizomi commented 1 month ago

Describe the bug

I'm using calibration::convert_color_2d_to_depth_2d() like this:

    int result = calibration.convert_color_2d_to_depth_2d(p2d, depth, &target_p2d);

but I got error logs about invalid k4a_image_t. However, in other functions the depth image is usable.

To Reproduce

Just call this function.

Expected behavior

The k4a::image should be valid.

Logs

[2024-05-30 18:00:36.458] [error] [t=21900] C:\Users\daiyin\Desktop\OrbbecSDK-K4A-Wrapper\src\image\image.c (51): k4a_image_t_get_context(). Invalid k4a_image_t 000001B37CD5DAD0
[2024-05-30 18:00:36.458] [error] [t=21900] C:\Users\daiyin\Desktop\OrbbecSDK-K4A-Wrapper\src\image\image.c (420): Invalid argument to image_get_width_pixels(). image_handle (000001B37CD5DAD0) is not a valid handle of type k4a_image_t
[2024-05-30 18:00:36.458] [error] [t=21900] C:\Users\daiyin\Desktop\OrbbecSDK-K4A-Wrapper\src\image\image.c (51): k4a_image_t_get_context(). Invalid k4a_image_t 000001B37CD5DAD0
[2024-05-30 18:00:36.458] [error] [t=21900] C:\Users\daiyin\Desktop\OrbbecSDK-K4A-Wrapper\src\image\image.c (427): Invalid argument to image_get_height_pixels(). image_handle (000001B37CD5DAD0) is not a valid handle of type k4a_image_t
[2024-05-30 18:00:36.458] [error] [t=21900] C:\Users\daiyin\Desktop\OrbbecSDK-K4A-Wrapper\src\image\image.c (51): k4a_image_t_get_context(). Invalid k4a_image_t 000001B37CD5DAD0
[2024-05-30 18:00:36.458] [error] [t=21900] C:\Users\daiyin\Desktop\OrbbecSDK-K4A-Wrapper\src\image\image.c (389): Invalid argument to image_get_buffer(). image_handle (000001B37CD5DAD0) is not a valid handle of type k4a_image_t

Screenshots

Desktop (please complete the following information):

Additional context

zzuliys commented 3 weeks ago

https://github.com/orbbec/OrbbecSDK-K4A-Wrapper/pull/77/commits/f4cd875479281aae7d6891c12b76ec2009d8a348 The issue has been fixed. Please wait for version 1.10.2 or compile the source code yourself for testing