Пример #1
0
        /// <summary>
        /// 선을 찾는 도구 클래스를 생성합니다.
        /// </summary>
        public CvsLineDetectTool()
        {
            m_Collection = new CvsEdgeSettingCollection();
            m_Setting    = new CvsLineSetting
            {
                ConsensusThreshold = 6,
                OriginX            = 20,
                OriginY            = 20,
                SegmentLength      = 100,
                CaliperCount       = 3,
                ProjectionLength   = 30,
                SearchLength       = 100,
                ContrastThreshold  = 5,
                HalfPixelCount     = 2
            };

            m_LineDetect = m_Setting.GetToolParams();
            m_Collection.SetWholeEdgeSetting(m_Setting.GetCaliperSettings());
            m_Collection.SetParentPose(m_Setting.LinePose);
        }
Пример #2
0
        /// <summary>
        /// 원을 찾는 도구 클래스를 생성합니다.
        /// </summary>
        public CvsCircleDetectTool()
        {
            m_Collection = new CvsEdgeSettingCollection();
            m_Setting    = new CvsCircleSetting
            {
                ConsensusThreshold = 6,
                OriginX            = 20,
                OriginY            = 20,
                Radius             = 100,
                StartAngle         = 180,
                EndAngle           = 0,
                CaliperCount       = 4,
                ProjectionLength   = 30,
                SearchLength       = 100,
                ContrastThreshold  = 5,
                HalfPixelCount     = 2
            };

            m_CircleDetect = m_Setting.GetToolParams();
            m_Collection.SetWholeEdgeSetting(m_Setting.GetCaliperSettings());
            m_Collection.SetParentPose(m_Setting.CirclePose);
        }