/// <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 ) { }
/// <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; }
/// <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; }
/// <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); }
private void init(ICornersDetector detector) { this.Detector = detector; }
/// <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); }
/// <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) { }