#!/bin/csh
# brank -- binary rank filtering (set membership) of a binary image
# a gray level image can be pre-thresholded using the -t option

set argc = ($*)

if ( "$#argc" < "1" ) then
   echo "usage:  brank  < RasFileIn  > RasFileOut  SE_spec [-r med | nnn]"
   echo "[-t lll [uuu]]"
   exit 
endif

morph -m r -i b -k $*
