ffmpeg 3.2でリリースしたビデオフィルタ。エッジ検出フィルタに単体ではedgedetectとfrei0rのsobelがあり、カーネルを指定するconvolutionでもエッジ検出ができるが、今回のこれらのフィルタはedgedetectよりもエッジ部分の線が太くconvolutionよりも手軽なのでマスクするのにも便利。sobelとprewitt、robertsはカーネルが少し異なるがオプションは同じである。
- ffmpeg でエッジマスク
- エッジ検出フィルタscharr
- エッジ検出フィルタ roberts
- ffmpeg でエッジ検出をする edgedetect
- 鮮鋭化やぼかし、エンボス処理などができる convolution
基本コマンド
ffmpeg -i input -vf sobel=planes=15:scale=1:delta=0 output
ffmpeg -i input -vf sobel=15:1:0 output
ffplay -i input -vf sobel=15:1:0
- Wikipedia:Sobel operator – Wikipedia
- 公式ドキュメント:FFmpeg Filters Documentation : sobel
- 公式ドキュメント:FFmpeg Filters Documentation : prewitt
