built the code, and it passes, going to start working on the segfault
Potentially fixed the segfault issue, the solution implemented utilizes a boolean array that stores whether or not a pixel has been checked. The recursive explore method, named explore2, will pass a pointer to that array and doesn't pass the whole cv::Mat, also a global cv::Mat was declared called depthThreshold