project.android.imageprocessing.filter.processing
Class CannyEdgeDetectionFilter

java.lang.Object
  extended by project.android.imageprocessing.GLRenderer
      extended by project.android.imageprocessing.input.GLTextureOutputRenderer
          extended by project.android.imageprocessing.filter.BasicFilter
              extended by project.android.imageprocessing.filter.GroupFilter
                  extended by project.android.imageprocessing.filter.processing.CannyEdgeDetectionFilter
All Implemented Interfaces:
GLTextureInputRenderer

public class CannyEdgeDetectionFilter
extends GroupFilter

This uses the full Canny process to highlight one-pixel-wide edges blurSize: A multiplier for the prepass blur size, ranging from 0.0 on up upperThreshold: Any edge with a gradient magnitude above this threshold will pass and show up in the final result lowerThreshold: Any edge with a gradient magnitude below this threshold will fail and be removed from the final result

Author:
Chris Batt

Field Summary
 
Fields inherited from class project.android.imageprocessing.GLRenderer
ATTRIBUTE_POSITION, ATTRIBUTE_TEXCOORD, UNIFORM_TEXTURE0, VARYING_TEXCOORD
 
Constructor Summary
CannyEdgeDetectionFilter(float blurSize, float lowerThreshold, float upperThreshold)
           
 
Method Summary
 
Methods inherited from class project.android.imageprocessing.filter.GroupFilter
destroy, newTextureReady, setRenderSize
 
Methods inherited from class project.android.imageprocessing.input.GLTextureOutputRenderer
addTarget, getLockObject, getTargets, removeTarget
 
Methods inherited from class project.android.imageprocessing.GLRenderer
getBackgroundAlpha, getBackgroundBlue, getBackgroundGreen, getBackgroundRed, getHeight, getWidth, onDrawFrame, reInitialize, rotateClockwise90Degrees, rotateCounterClockwise90Degrees, setBackgroundAlpha, setBackgroundBlue, setBackgroundColour, setBackgroundGreen, setBackgroundRed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CannyEdgeDetectionFilter

public CannyEdgeDetectionFilter(float blurSize,
                                float lowerThreshold,
                                float upperThreshold)