Skip to content
firepick1 (Chromebook Ubuntu) edited this page Apr 25, 2014 · 10 revisions

Perform morphological operation. FireSight wrapper for:

  • OpenCV erode

  • OpenCV dilate

  • OpenCV morphologyEx

  • mop Default MORPH_OPEN. Also MORPH_CLOSE, MORPH_DILATE, MORPH_ERODE, MORPH_GRADIENT, MORPH_TOPHAT, MORPH_BLACKHAT

  • ksize JSON [width,height] array or integer giving kernel size. Default 3

  • shape Default MORPH_ELLIPSE. Also MORPH_RECT and MORPH_CROSS.

Stage Model

{}

Example 1: Create test image pipeline

firesight -p json/w.json

Example 2: Erode using disc (ellipse) kernel pipeline

firesight -i img/w.png -p json/morph.json -Dmop=MORPH_ERODE -Dksize=3 -o target/morph-erode-3.png
ksize=3 ksize=5
Clone this wiki locally