/* +------------------------------------------------------------------------+
   |                     Mobile Robot Programming Toolkit (MRPT)            |
   |                          https://www.mrpt.org/                         |
   |                                                                        |
   | Copyright (c) 2005-2023, Individual contributors, see AUTHORS file     |
   | See: https://www.mrpt.org/Authors - All rights reserved.               |
   | Released under BSD License. See: https://www.mrpt.org/License          |
   +------------------------------------------------------------------------+ */

#include "img-precomp.h"
//
#include <mrpt/core/initializer.h>
#include <mrpt/img/CImage.h>
#include <mrpt/img/TCamera.h>
#include <mrpt/img/TStereoCamera.h>
#include <mrpt/img/registerAllClasses.h>
// Deps:
#include <mrpt/config/registerAllClasses.h>
#include <mrpt/io/registerAllClasses.h>
#include <mrpt/math/registerAllClasses.h>

MRPT_INITIALIZER(registerAllClasses_mrpt_img)
{
	using namespace mrpt::img;

#if !defined(DISABLE_MRPT_AUTO_CLASS_REGISTRATION)
	//   Hack to enable compatibility with an older name of this class:
	registerClassCustomName("CMRPTImage", CLASS_ID(CImage));
	registerClass(CLASS_ID(CImage));
	registerClass(CLASS_ID(TCamera));
	registerClass(CLASS_ID(TStereoCamera));
#endif
}

void mrpt::img::registerAllClasses_mrpt_img()
{
	::registerAllClasses_mrpt_img();
	mrpt::io::registerAllClasses_mrpt_io();
	mrpt::math::registerAllClasses_mrpt_math();
	mrpt::config::registerAllClasses_mrpt_config();
}
