/******************************************************************** ** Image Component Library (ICL) ** ** ** ** Copyright (C) 2006-2013 CITEC, University of Bielefeld ** ** Neuroinformatics Group ** ** Website: www.iclcv.org and ** ** http://opensource.cit-ec.de/projects/icl ** ** ** ** File : ICLMarkers/src/ICLMarkers/MultiCamFiducialImpl.h ** ** Module : ICLMarkers ** ** Authors: Christof Elbrechter ** ** ** ** ** ** GNU LESSER GENERAL PUBLIC LICENSE ** ** This file may be used under the terms of the GNU Lesser General ** ** Public License version 3.0 as published by the ** ** ** ** Free Software Foundation and appearing in the file LICENSE.LGPL ** ** included in the packaging of this file. Please review the ** ** following information to ensure the license requirements will ** ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt ** ** ** ** The development of this software was supported by the ** ** Excellence Cluster EXC 277 Cognitive Interaction Technology. ** ** The Excellence Cluster EXC 277 is a grant of the Deutsche ** ** Forschungsgemeinschaft (DFG) in the context of the German ** ** Excellence Initiative. ** ** ** ********************************************************************/ #pragma once #include #include #include namespace icl{ namespace markers{ /// Internal Implementation class for the MutiCamFiducial /** @section _SB_ Smart Buffering The 3D pose estimation results are buffered internally so that mutiple calls to MutiCamFiducial::getPose3D do not entail doubled pose estimation. */ struct ICLMarkers_API MultiCamFiducialImpl{ int id; //!< associated fiducial ID int numFound; //!< number of view, this Fiducial was found in std::vector fids; //!< all 2D fiducials std::vector cams; //!< all cameras math::FixedColVector center; //!< smart buffer for the center math::FixedColVector orientation; //!< smart buffer for the orientation geom::Mat pose; //!< smart buffer for the pose bool haveCenter; //!< has the center already been estimated bool haveOrientation; //!< has the orientation already been estimated bool havePose; //!< has the pose already been estimated /// null/empty constructor MultiCamFiducialImpl(); /// default constructor with given ID MultiCamFiducialImpl(int id, const std::vector &fids, const std::vector cams); /// (re-) initialization void init(int id); /// estimate and return the 3D center const math::FixedColVector &estimateCenter3D(); /// estimate and return the 3D pose const geom::Mat &estimatePose3D(); /// estimate and return the 3D orientation const math::FixedColVector &estimateOrientation3D(); }; } // namespace markers }