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):
Describe the bug
I'm using
calibration::convert_color_2d_to_depth_2d()
like this:but I got error logs about invalid
k4a_image_t
. However, in other functions thedepth
image is usable.To Reproduce
Just call this function.
Expected behavior
The
k4a::image
should be valid.Logs
Screenshots
Desktop (please complete the following information):
Additional context