/******************************************************************** ** 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/MarkerMetricsICL1.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 #include namespace icl{ namespace markers{ /// Marker metrics for "icl1" markers /** each marker has - a border of width 1 unit -> root regions - 4 child regions (cr) each of height 3 units and width 11 units - each child regions contains 1 to 5 child-child-regions (ccr) each round and with diameter of 1 unit
        #############<- border (root region)
        #           # 
        # #       # #
        #         <-#-- child region cr 0
        #############
        #           # 
        # #   #   # #
        #         <-#-- child region cr 1
        #############
        #           # 
        # # #   # # #
        #         <-#-- child region cr 2
        #############
        #           # 
        # # # # # # #
        # ^        <-#-- child region cr 3
        ##|##########
          | 
          child child region ccr 0
        
The ccr's are distributed towards the edges, only in case of a single ccr within a cr, it is placed in the middle. The whole marker structure becomes 13 x 17 units. These are mapped linearily to the actual marker size in mm; */ struct ICLMarkers_API MarkerMetricsICL1 : public MarkerCodeICL1 { /// real dimension of the root region utils::Size32f root; /// child region struct struct CR : public utils::Rect32f{ /// list of child child regions std::vector ccrs; }; /// child regions CR crs[4]; /// creates a metric instance from given code and real size in mm MarkerMetricsICL1(const MarkerCodeICL1 &c, const utils::Size32f &markerSizeMM); }; } // namespace markers }