Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CornersMarker"/> class.
 /// </summary>
 /// 
 /// <param name="detector">Interface of corners' detection algorithm.</param>
 /// 
 public CornersMarker( ICornersDetector detector ) : this( detector, Color.White )
 {
 }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CornersMarker"/> class.
        /// </summary>
        /// 
        /// <param name="detector">Interface of corners' detection algorithm.</param>
        /// <param name="markerColor">Marker's color used to mark corner.</param>
        /// 
        public CornersMarker( ICornersDetector detector, Color markerColor )
        {
            this.detector    = detector;
            this.markerColor = markerColor;

            formatTranslations[PixelFormat.Format8bppIndexed] = PixelFormat.Format8bppIndexed;
            formatTranslations[PixelFormat.Format24bppRgb]    = PixelFormat.Format24bppRgb;
            formatTranslations[PixelFormat.Format32bppRgb]    = PixelFormat.Format32bppRgb;
            formatTranslations[PixelFormat.Format32bppArgb]   = PixelFormat.Format32bppArgb;
        }
Esempio n. 3
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="CornerFeaturesDetector"/> class.
 /// </summary>
 ///
 /// <param name="detector">A corners detector.</param>
 ///
 public CornerFeaturesDetector(ICornersDetector detector)
 {
     this.Detector = detector;
 }
Esempio n. 4
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="CornerFeaturesDetector"/> class.
 /// </summary>
 ///
 /// <param name="detector">A corners detector.</param>
 ///
 public CornerFeaturesDetector(ICornersDetector detector)
 {
     this.Detector = detector;
     this.SupportedFormats.UnionWith(detector.SupportedFormats);
 }
Esempio n. 5
0
 private void init(ICornersDetector detector)
 {
     this.Detector = detector;
 }
Esempio n. 6
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="FastRetinaKeypointDetector"/> class.
 /// </summary>
 ///
 /// <param name="detector">A corners detector.</param>
 ///
 public FastRetinaKeypointDetector(ICornersDetector detector)
 {
     init(detector);
 }
Esempio n. 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CornersMarker"/> class.
 /// </summary>
 ///
 /// <param name="detector">Interface of corners' detection algorithm.</param>
 ///
 public CornersMarker(ICornersDetector detector) : this(detector, Color.White)
 {
 }