/// <summary>
 /// Initializes a new instance of the <see cref="EdgeDetectorCompassProcessor{TPixel}"/> class.
 /// </summary>
 /// <param name="configuration">The configuration which allows altering default behaviour or extending the library.</param>
 /// <param name="kernels">Gets the kernels to use.</param>
 /// <param name="grayscale">Whether to convert the image to grayscale before performing edge detection.</param>
 /// <param name="source">The source <see cref="Image{TPixel}"/> for the current processor instance.</param>
 /// <param name="sourceRectangle">The source area to process for the current processor instance.</param>
 internal EdgeDetectorCompassProcessor(Configuration configuration, CompassKernels kernels, bool grayscale, Image <TPixel> source, Rectangle sourceRectangle)
     : base(configuration, source, sourceRectangle)
 {
     this.Grayscale = grayscale;
     this.Kernels   = kernels;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdgeDetectorCompassProcessor{TPixel}"/> class.
 /// </summary>
 /// <param name="kernels">Gets the kernels to use.</param>
 /// <param name="grayscale">Whether to convert the image to grayscale before performing edge detection.</param>
 internal EdgeDetectorCompassProcessor(CompassKernels kernels, bool grayscale)
 {
     this.Grayscale = grayscale;
     this.Kernels   = kernels;
 }