Click or drag to resize
Ab4d.SharpEngine logo

SobelEdgeDetectionPostProcess Class

SobelEdgeDetectionPostProcess post process uses Sobel edge detection algorithm to detect edges in the rendered image.
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.CoreComponentBase
    Ab4d.SharpEngine.PostProcessingPostProcessBase
      Ab4d.SharpEngine.PostProcessingStandardPostProcess
        Ab4d.SharpEngine.PostProcessingSimpleFragmentShaderPostProcess
          Ab4d.SharpEngine.PostProcessingSobelEdgeDetectionPostProcess

Namespace: Ab4d.SharpEngine.PostProcessing
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public class SobelEdgeDetectionPostProcess : SimpleFragmentShaderPostProcess

The SobelEdgeDetectionPostProcess type exposes the following members.

Constructors
 NameDescription
Public methodSobelEdgeDetectionPostProcess Initializes a new instance of the BlackAndWhitePostProcess class.
Top
Properties
 NameDescription
Public propertyAddEdgeToCurrentColor Gets or sets a Boolean value that specifies if the edge color defined by this post-process is multiplied with the existing pixel color - this way the edges are added to the existing rendering. When false then only the edges are preserved and the original rendering is not visible anymore. Default value is true.
Public propertyColorFactors Gets or sets a Vector4 value that specifies the factors for individual color contributions to the edge detection. For example, to detect edges only on red colors, set this to (1,0,0,0). To detect edges on changes of the alpha channel (for example when background is transparent), set the ColorFactors to (0, 0, 0, 1). Default value is (0.25f, 0.25f, 0.25f, 0.25f) where all color values are equal.
Public propertyEdgeColor Gets or sets a Color4 that specifies the edge color. Default value is Black.
Public propertyEdgeThreshold Gets or sets a float value that specifies the edge threshold that is needed to decide how big the color difference need to be to render an edge. Smaller values produce more edges, bigger values produce less edges. Default value is 0.05f.
Public propertyNonEdgeColor Gets or sets a Color4 that specifies the color that is used when no edge is detected and when AddEdgeToCurrentColor is false. Default value is White.
Top
Methods
 NameDescription
Protected methodCustomBindAction
(Overrides StandardPostProcessCustomBindAction(RenderingContext, CommandBuffer, PipelineLayout))
Protected methodGetFragmentPushConstantsSize GetFragmentPushConstantsSize can be overriden to provide the size in bytes of the push constants in fragment shader.
(Overrides StandardPostProcessGetFragmentPushConstantsSize)
Top
Remarks

[Missing <remarks> documentation for "T:Ab4d.SharpEngine.PostProcessing.SobelEdgeDetectionPostProcess"]

See Also