User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

wiki:exercise7 [2017/12/05 22:53]
wiki:exercise7 [2020/07/17 06:39] (current)
Line 1: Line 1:
 +====== Exercise 7: morphological filters ======
 +In this exercise, the following tools will be used:
 +  * pktools: pkfilter
 +<note tip>​Optional:​ crop the image to test some filters on limited area</​note>​
 +<code bash>
 +pkcrop -i ${OUTPUTDIR}/​cloudmask.tif -o ${OUTPUTDIR}/​cloudmask_crop.tif -ulx $ULX -uly $ULY -lrx $LRX -lry $LRY
 +<note tip>​morphological filters: dilation (-f 7), erosion (-f 8), closing (-f 9), opening (-f 10)</​note>​
 +__Perform a dilation filter on the cloud mask__
 +<code bash>
 +pkfilter -i ${OUTPUTDIR}/​cloudmask.tif -o ${OUTPUTDIR}/​cloudmask_dil.tif -f 7 -dx 5 -dy 5 -c