Inconsistency with setRegionOfInterest

Hello!

I was testing the setRegionOfInterest functionality and came across some inconsistent results after setting the ROI mask. At first it looks like it stops tracking joints when one is found outside of the mask (as seen by moving my feet and hands in and out of the frame). However once I get far enough and my entire body is out of frame, once my hand/foot is in frame it starts tracking my entire skeleton Which seems a bit counter intuitive. I was wondering if this is intended behaviour.

I was using the example with the following code snippet added to zed-sdk/body tracking/body tracking/cpp/src/main.cpp
to line 104.

	sl::Mat mask(camera_config.resolution, sl::MAT_TYPE::U8_C4);
    auto rect = cv::Rect(400, 50, camera_config.resolution.width / 3.5, camera_config.resolution.height - 100);
	cv::Mat cvImage(camera_config.resolution.height, camera_config.resolution.width, CV_8UC4, mask.getPtr<sl::uchar1>(sl::MEM::CPU));
    cv::rectangle(cvImage, rect, cv::Scalar(255, 255, 255, 255), -1);
    zed.setRegionOfInterest(mask);

I can’t add attachments to this post, however I can provide a video of me recreating it if needed.

Thanks!

To keep everyone here updated.

The issue has been reproduced, and we are currently working on a fix.
It will be included in the next patch of the ZED SDK (no ETA for now).

Best,

Stereolabs Support