Debian Codegraph @

libs/img/src/CImage_impl.h

raw
1 /* +------------------------------------------------------------------------+
2 | Mobile Robot Programming Toolkit (MRPT) |
3 | https://www.mrpt.org/ |
4 | |
5 | Copyright (c) 2005-2026, Individual contributors, see AUTHORS file |
6 | See: https://www.mrpt.org/Authors - All rights reserved. |
7 | Released under BSD License. See: https://www.mrpt.org/License |
8 +------------------------------------------------------------------------+ */
9
10 #include <mrpt/core/get_env.h>
11 #include <mrpt/img/CImage.h>
12
13 // Universal include for all versions of OpenCV
14 #include <mrpt/3rdparty/do_opencv_includes.h>
15
16 struct mrpt::img::CImage::Impl
17 {
18 #if MRPT_HAS_OPENCV
19 cv::Mat img;
20 #endif
21
22 ~Impl()
23 {
24 const thread_local bool SHOW_DEBUG_MSG = mrpt::get_env<bool>("MRPT_DEBUG_IMG_LAZY_LOAD", false);
25 if (SHOW_DEBUG_MSG)
26 {
27 std::cout << "[CImage::dtor] Called on this=" << reinterpret_cast<const void*>(this)
28 << std::endl;
29 }
30 }
31 };