## NAME

         mean_test   -   function   used   to   set   criteria    for
         split_and_merge routine

## SYNOPSIS

          #include <stdio.h>
          #include <stdlib.h>
          #include "CVIPdef.h"
          #include "CVIPtoolkit.h"
          #include "split_merge.h"
          #include "CVIPtexture.h"

         static CVIP_BOOLEAN mean_test(Image  *srcImage,  QUAD  *qua-
         dROI, void *paramP)

          <srcImage> - pointer to Image structure
          <quadROI> - pointer to QUAD structure
          <paramP> - pointer to any other parameters needed
                     (none in this case)

## PATH

         $CVIPHOME/SEGMENTATION/split_merge.c

## DESCRIPTION

         An  example  mean  test  module  to   be   used   with   the
         split_merge_segment(...)   routine.  This test function will
         return a value of CVIP_YES if the local mean of  the  region
         pointed  to  by <quadROI> is greater than the global mean of
         <srcImage>, and will return a value of CVIP_NO if the  local
         mean is less than or equal to the global mean.

## TYPES AND CONSTANTS

## RETURN VALUES

         CVIP_YES or CVIP_NO.

## EXAMPLE

         see split_and_merge

## BUGS

         None at this time

## SEE ALSO

         libsegment, split_and_merge, predicate_test

## AUTHOR

         Copyright (C) 1995 SIUE - by Scott Umbaugh and Greg Hance.