Detect and draw edges. The filter uses the Canny Edge Detection algorithm.
边缘检测,使用canny边缘算法
The filter accepts the following options:
滤镜接收一下参数
low
high
Set low and high threshold values used by the Canny thresholding algorithm.
设置Canny阈值算法使用的低阈值和高阈值。
The high threshold selects the "strong" edge pixels, which are then connected through 8-connectivity with the "weak" edge pixels selected by the low threshold.
高阈值选择“强”边缘像素,然后通过8-连通性与低阈值选择的“弱”边缘像素连接
四连通区域是11011其中0代表中心点,4个1代表上下左右四个方向。
八连通区域是111101111也就是除了上下左右四个方向外,还有左上、右上、左下、右下。
low and high threshold values must be chosen in the range [0,1], and low should be lesser or equal to high.
必须在[0,1]范围内选择低阈值和高阈值,低阈值应小于或等于高阈值。
Default value for low is 20/255, and default value for high is 50/255.
“低”的默认值为20/255,“高”的默认值为50/255
mode
Define the drawing mode.
定义绘图模式
‘wires’
Draw white/gray wires on black background.
如上图,黑白
‘colormix’
Mix the colors to create a paint/cartoon effect.
最后生成图,类似油画效果,卡通效果
‘canny’
Apply Canny edge detector on all selected planes.
Default value is wires.
planes
Select planes for filtering. By default all available planes are filtered.