Devesprit.ImageProcessor & Devesprit.ImageServer
DetectEdges

Description:

Detects the edges in the current image using various one and two dimensional algorithms.

Method Declaration
Copy Code
public ImageFactory DetectEdges(IEdgeFilter filter, bool greyscale = true)

Parameters:

filter The ImageProcessor.Imaging.Filters.EdgeDetection.IEdgeFilter to detect edges with.

Available filters are:

  • KayyaliEdgeFilter
  • KirschEdgeFilter
  • Laplacian3X3EdgeFilter
  • Laplacian5X5EdgeFilter
  • LaplacianOfGaussianEdgeFilter
  • PrewittEdgeFilter
  • RobertsCrossEdgeFilter
  • ScharrEdgeFilter
  • SobelEdgeFilter
greyscale If this parameter is set to false the detected edges will maintain the pixel colors of the originl image.

Assembly:

Devesprit.ImageProcessor

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path").DetectEdges(new PrewittEdgeFilter(), false);

Original

 

Result