MAXIMUM

Purpose: Perform a maximum filter on an image file

Format:    MAXIMUM    input file     output file    <hsize>     <vsize>

Notes:     The  MAXIMUM  statement performs a maximum filter process and writes the results to the file specified by the  output file  parameter.  If the input and output filenames are the same then  input file  is replaced.  The  <hsize>  and  <vsize>   optional parameters are the area dimensions. If these are omitted then a default of 3x3 is used. If only the  <vsize>  parameter is omitted then  this value will use the  hsize  parameter.

Example:

getfile $inpfile “Select an input IMG file”
getfile $outfile “Select an output IMG file”

maximum $inpfile $outfile

viewer display $outfile
viewer notify
exit

See Also:    MEDIAN   MINIMUM