MEDIAN

Purpose: Perform a median filter on an image file

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

Notes:      The  MEDIAN  statement performs a median 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”

median $inpfile $outfile 5 7

viewer display $outfile
viewer notify

exit

See Also:    MINIMUM   MAXIMUM