-
Notifications
You must be signed in to change notification settings - Fork 31
op morph
firepick1 (Chromebook Ubuntu) edited this page Apr 26, 2014
·
10 revisions
Perform morphological operation. FireSight wrapper for:
Parameters:
-
mop Default
MORPH_OPEN
. AlsoMORPH_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
. AlsoMORPH_RECT
andMORPH_CROSS
.
{}
Example 1: Create test image pipeline
firesight -p json/w.json -o target/w.png
Example 2: MORPH_ERODE pipeline
firesight -i img/w.png -p json/morph.json -Dmop=MORPH_ERODE -Dksize=3 -o target/morph-erode-3.png
| Pixel:1.7ms SOS:2ms RPi:229ms
Extend black.
ksize=3 | ksize=5 |
---|---|
Example 3: MORPH_DILATE pipeline
firesight -i img/w.png -p json/morph.json -Dmop=MORPH_DILATE -Dksize=3 -o target/morph-dilate-3.png
| Pixel:1.7ms SOS:2ms RPi:229ms
Extend white.
ksize=3 | ksize=5 |
---|---|
Example 4: MORPH_OPEN pipeline
firesight -i img/w.png -p json/morph.json -Dmop=MORPH_OPEN -Dksize=3 -o target/morph-open-3.png
| Pixel:3.1ms SOS:4.7ms RPi:454ms
Eliminate white spots.
ksize=3 | ksize=5 |
---|---|
Example 5: MORPH_CLOSE pipeline
firesight -i img/w.png -p json/morph.json -Dmop=MORPH_CLOSE -Dksize=3 -o target/morph-close-3.png
| Pixel:3.1ms SOS:4.7ms RPi:454ms
Eliminate black spots.
ksize=3 | ksize=5 |
---|---|
Example 6: MORPH_GRADIENT pipeline
firesight -i img/w.png -p json/morph.json -Dmop=MORPH_GRADIENT -Dksize=3 -o target/morph-gradient-3.png
| Pixel:3.7ms SOS:4.3ms RPi:526ms
Highlight contours.
ksize=3 | ksize=5 |
---|---|
Example 7: MORPH_TOPHAT pipeline
firesight -i img/w.png -p json/morph.json -Dmop=MORPH_TOPHAT -Dksize=3 -o target/morph-tophat-3.png
| Pixel:3.7ms SOS:4.3ms RPi:526ms
Highlight local maxima.
ksize=3 | ksize=5 |
---|---|
Example 8: MORPH_BLACKHAT pipeline
firesight -i img/w.png -p json/morph.json -Dmop=MORPH_BLACKHAT -Dksize=3 -o target/morph-blackhat-3.png
| Pixel:3.7ms SOS:4.3ms RPi:526ms
Highlight local minima.
ksize=3 | ksize=5 |
---|---|